Return-path: Received: from mail-qy0-f174.google.com ([209.85.216.174]:40771 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751500Ab1KILwH convert rfc822-to-8bit (ORCPT ); Wed, 9 Nov 2011 06:52:07 -0500 Received: by qyk27 with SMTP id 27so4585726qyk.19 for ; Wed, 09 Nov 2011 03:52:07 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1294426085.18385.8.camel@maggie> <1320837297.1926.6.camel@shinybook.infradead.org> From: =?ISO-8859-1?Q?G=E1bor_Stefanik?= Date: Wed, 9 Nov 2011 12:51:46 +0100 Message-ID: (sfid-20111109_125211_706605_5E4B9DAD) Subject: Re: [PATCH] ssb: Ignore dangling ethernet cores on wireless devices To: David Woodhouse Cc: =?ISO-8859-1?Q?Michael_B=FCsch?= , John Linville , linux-wireless , b43-dev , Larry Finger Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Nov 9, 2011 at 12:50 PM, G?bor Stefanik wrote: > On Wed, Nov 9, 2011 at 12:14 PM, David Woodhouse wrote: >> On Fri, 2011-01-07 at 19:48 +0100, Michael B?sch wrote: >>> >>> + ? ? ? ? ? ? ? case SSB_DEV_ETHERNET: >>> + ? ? ? ? ? ? ? ? ? ? ? if (bus->bustype == SSB_BUSTYPE_PCI) { >>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if (bus->host_pci->vendor == PCI_VENDOR_ID_BROADCOM && >>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (bus->host_pci->device & 0xFF00) == 0x4300) { >>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /* This is a dangling ethernet core on a >>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?* wireless device. Ignore it. */ >>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? continue; >>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } >>> + ? ? ? ? ? ? ? ? ? ? ? } >>> + ? ? ? ? ? ? ? ? ? ? ? break; >> >> Do you also need to check for (bus->host_pci->device / 1000) == 43? >> Or do the chips with 5-digit 'decimal' IDs not have the Ethernet cores? >> >> Would it be better to invert the test and check for != 0x4400? > > I do not know of any Broadcom wireless device with a decimal PCI ID > (as opposed to a decimal Chip ID). Edit: However, 0x4700 should also be checked, as some BCM43xx chips use 0x47xx PCI IDs. > >> >> -- >> dwmw2 >> > > > > -- > Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-) > -- Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)