From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 21:31:22 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AACD7106564A; Sun, 2 Sep 2012 21:31:22 +0000 (UTC) (envelope-from adutkowski@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 79C8D8FC1B; Sun, 2 Sep 2012 21:31:22 +0000 (UTC) Received: by dadr6 with SMTP id r6so3058097dad.13 for ; Sun, 02 Sep 2012 14:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=ZyAxMa7DvXF56Jhl+3N1Rq/uCryZxcIWUHTh48PSsMg=; b=vzzP4IGyJrCITCNDsx7LCahrdkP523QaBhLAe6uhQiDLpbsTfxrrKtuufLA9SxV/wn zP8Bec6gvFv1Z8kPJz4EAiCmP50Khycw4T9nd40pOa4Wr3acgoZEvsV+2ZdLPT7uyCZV D9Q37Rf9zRzZW0EOUKVUBwCcXBPE93txmEfWferYm5YMwAioch6YtmpcqJ2vlE9iqzf6 /xevtfe6PVHyMEHzmKy5SmZqVcyUknI3Eqam+jm+9QB1D9LWUEqrJq4z70oSm95QJ4zP Odndg5uKlUD744JRXkk/Ho4q2O4OI+L31k3kyWqY/KsSHMQwpchWaRtQjyaevNT4LeUO xqkQ== MIME-Version: 1.0 Received: by 10.68.221.70 with SMTP id qc6mr33607896pbc.92.1346621482043; Sun, 02 Sep 2012 14:31:22 -0700 (PDT) Sender: adutkowski@gmail.com Received: by 10.66.220.169 with HTTP; Sun, 2 Sep 2012 14:31:21 -0700 (PDT) Date: Sun, 2 Sep 2012 23:31:21 +0200 X-Google-Sender-Auth: hqOJDkGrpUsjezDHiCZ6ou63RLY Message-ID: From: Aleksander Dutkowski To: freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: availability of interrupts during bootup process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2012 21:31:22 -0000 hello! I have PMIC (TWL4030) module connected to the SoC (ARM/OMAP3) via i2c (iicbus). Current solution is that i2c_attach calls bus_generic_attach(dev); which calls my pmic probe/attach functions, but main configuration of PMIC in done after drivers setup by config_intrhook. But I need it to be configured during device attaching, because usb ehci driver depends on it. Is it possbile? I've tried it but it hangs on waiting for i2c interrupt, but someone told me, that interrupts are available during bootup for some time. -- regards aleek