From owner-freebsd-current@FreeBSD.ORG Sat Aug 31 07:10:41 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F19909A8 for ; Sat, 31 Aug 2013 07:10:41 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 7C5F82F39 for ; Sat, 31 Aug 2013 07:10:41 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 2EB397A276; Sat, 31 Aug 2013 09:10:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 75F938EC597; Sat, 31 Aug 2013 09:10:47 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7ppyanR7Ygtj; Sat, 31 Aug 2013 09:10:46 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 96A6B8EC590; Sat, 31 Aug 2013 09:10:46 +0200 (CEST) Message-ID: <52219732.7070209@bitfrost.no> Date: Sat, 31 Aug 2013 09:11:46 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: "Lundberg, Johannes" Subject: Re: 2013 MacBook Air Project References: <522110CB.5050501@mu.org> In-Reply-To: Content-Type: multipart/mixed; boundary="------------070702070501050503080309" Cc: Alfred Perlstein , =?ISO-8859-1?Q?S=F8ren_Schmidt?= , FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Aug 2013 07:10:42 -0000 This is a multi-part message in MIME format. --------------070702070501050503080309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/31/13 01:42, Lundberg, Johannes wrote: > + > + /* MacBookAir6,1 */ > + { USB_VPI(0x05ac, 0x828f, 0) }, > + > }; > Hi, I've updated the FreeBSD USB bluetooth driver with your ID, and a few more from Linux. I've attached an XHCI patch you can try. --HPS --------------070702070501050503080309 Content-Type: text/x-patch; name="xhci_irq.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xhci_irq.diff" === ./xhci.c ================================================================== --- ./xhci.c (revision 255094) +++ ./xhci.c (local) @@ -385,10 +385,6 @@ sc->sc_exit_lat_max = XHCI_HCS3_U1_DEL(temp) + XHCI_HCS3_U2_DEL(temp) + 250 /* us */; - temp = XREAD4(sc, oper, XHCI_USBSTS); - - /* clear interrupts */ - XWRITE4(sc, oper, XHCI_USBSTS, temp); /* disable all device notifications */ XWRITE4(sc, oper, XHCI_DNCTRL, 0); @@ -1479,7 +1475,9 @@ USB_BUS_LOCK(&sc->sc_bus); status = XREAD4(sc, oper, XHCI_USBSTS); - if (status == 0) + iman = XREAD4(sc, runt, XHCI_IMAN(0)); + + if (status == 0 && (iman & XHCI_IMAN_INTR_PEND) == 0) goto done; /* acknowledge interrupts */ @@ -1488,11 +1486,8 @@ DPRINTFN(16, "real interrupt (status=0x%08x)\n", status); - if (status & XHCI_STS_EINT) { + if (iman & XHCI_IMAN_INTR_PEND) { - /* acknowledge pending event */ - iman = XREAD4(sc, runt, XHCI_IMAN(0)); - /* reset interrupt */ XWRITE4(sc, runt, XHCI_IMAN(0), iman); --------------070702070501050503080309--