Return-path: Received: from casper.infradead.org ([85.118.1.10]:56831 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751359Ab1KILPT (ORCPT ); Wed, 9 Nov 2011 06:15:19 -0500 Message-ID: <1320837297.1926.6.camel@shinybook.infradead.org> (sfid-20111109_121543_146424_834A749B) Subject: Re: [PATCH] ssb: Ignore dangling ethernet cores on wireless devices From: David Woodhouse To: Michael =?ISO-8859-1?Q?B=FCsch?= Cc: John Linville , linux-wireless , b43-dev , Larry Finger Date: Wed, 09 Nov 2011 11:14:57 +0000 In-Reply-To: <1294426085.18385.8.camel@maggie> References: <1294426085.18385.8.camel@maggie> Content-Type: multipart/signed; micalg="sha1"; protocol="application/x-pkcs7-signature"; boundary="=-iC2XZo98qEpJYAZ5i1CG" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: --=-iC2XZo98qEpJYAZ5i1CG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2011-01-07 at 19:48 +0100, Michael B=C3=BCsch wrote: >=20 > + case SSB_DEV_ETHERNET: > + if (bus->bustype =3D=3D SSB_BUSTYPE_PCI) { > + if (bus->host_pci->vendor =3D=3D PCI_VEND= OR_ID_BROADCOM && > + (bus->host_pci->device & 0xFF00) =3D= =3D 0x4300) { > + /* This is a dangling ethernet co= re on a > + * wireless device. Ignore it. */ > + continue; > + } > + } > + break;=20 Do you also need to check for (bus->host_pci->device / 1000) =3D=3D 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 !=3D 0x4400? --=20 dwmw2 --=-iC2XZo98qEpJYAZ5i1CG Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITvzCCBi0w ggQVoAMCAQICAwCtOTANBgkqhkiG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