From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from bu3sch.de ([62.75.166.246]:43852 "EHLO vs166246.vserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757662AbZC3Jwq (ORCPT ); Mon, 30 Mar 2009 05:52:46 -0400 From: Michael Buesch To: Larry Finger Subject: Re: [PATCH] b43legacy: Do not select HW_RANDOM Date: Mon, 30 Mar 2009 11:51:18 +0200 Cc: John W Linville , bcm43xx-dev@lists.berlios.de, linux-wireless@vger.kernel.org References: <49d02577.Hcf9JT1rjzxhf7CH%Larry.Finger@lwfinger.net> In-Reply-To: <49d02577.Hcf9JT1rjzxhf7CH%Larry.Finger@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200903301151.19140.mb@bu3sch.de> (sfid-20090330_115311_848180_278DA10F) Sender: linux-wireless-owner@vger.kernel.org List-ID: On Monday 30 March 2009 03:50:47 Larry Finger wrote: > Auto-depend on HW_RANDOM, rather than "select"ing it. > This way the user has the choice to enable or disable HWRNG support. > > Signed-off-by: Larry Finger > --- > > John, please queue for 2.6.31. > > > > Index: wireless-testing/drivers/net/wireless/b43legacy/Kconfig > =================================================================== > --- wireless-testing.orig/drivers/net/wireless/b43legacy/Kconfig > +++ wireless-testing/drivers/net/wireless/b43legacy/Kconfig > @@ -3,7 +3,6 @@ config B43LEGACY > depends on SSB_POSSIBLE && MAC80211 && WLAN_80211 && HAS_DMA > select SSB > select FW_LOADER > - select HW_RANDOM > ---help--- > b43legacy is a driver for 802.11b devices from Broadcom (BCM4301 and > BCM4303) and early model 802.11g chips (BCM4306 Ver. 2) used in the > @@ -51,6 +50,13 @@ config B43LEGACY_RFKILL > depends on B43LEGACY && (RFKILL = y || RFKILL = B43LEGACY) && RFKILL_INPUT && (INPUT_POLLDEV = y || INPUT_POLLDEV = B43LEGACY) > default y > > +# This config option automatically enables b43 HW-RNG support, > +# if the HW-RNG core is enabled. > +config B43legacy_HWRNG > + bool > + depends on B43legacy && (HW_RANDOM = y || HW_RANDOM = B43legacy) > + default y > + > config B43LEGACY_DEBUG > bool "Broadcom 43xx-legacy debugging" > depends on B43LEGACY > > You also need to add #ifdefs to the code, don't you? -- Greetings, Michael.