linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers: net: Fix dependency for EEPROM_93CX6
@ 2012-01-05 12:14 Fabio Estevam
  2012-01-05 12:33 ` Gertjan van Wingerde
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2012-01-05 12:14 UTC (permalink / raw)
  To: netdev; +Cc: linux-wireless, davem, linville, Fabio Estevam, Fabio Estevam

Fix the following build warning:

warning: (KS8851 && AX88796_93CX6 && RTL8180 && RTL8187 && ADM8211 && RT2400PCI && RT2500PCI && RT61PCI && RT2800PCI && R8187SE) selects EEPROM_93CX6 which has unmet direct dependencies (MISC_DEVICES)

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/net/ethernet/8390/Kconfig    |    2 +-
 drivers/net/ethernet/micrel/Kconfig  |    3 +--
 drivers/net/wireless/Kconfig         |    2 +-
 drivers/net/wireless/rt2x00/Kconfig  |    8 ++++----
 drivers/net/wireless/rtl818x/Kconfig |    4 ++--
 5 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/drivers/net/ethernet/8390/Kconfig b/drivers/net/ethernet/8390/Kconfig
index e04ade4..d967c74 100644
--- a/drivers/net/ethernet/8390/Kconfig
+++ b/drivers/net/ethernet/8390/Kconfig
@@ -69,7 +69,7 @@ config AX88796
 config AX88796_93CX6
 	bool "ASIX AX88796 external 93CX6 eeprom support"
 	depends on AX88796
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  Select this if your platform comes with an external 93CX6 eeprom.
 
diff --git a/drivers/net/ethernet/micrel/Kconfig b/drivers/net/ethernet/micrel/Kconfig
index 1ea811c..bc99abf 100644
--- a/drivers/net/ethernet/micrel/Kconfig
+++ b/drivers/net/ethernet/micrel/Kconfig
@@ -42,8 +42,7 @@ config KS8851
 	select NET_CORE
 	select MII
 	select CRC32
-	select MISC_DEVICES
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  SPI driver for Micrel KS8851 SPI attached network chip.
 
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
index abd3b71..d15d3a9 100644
--- a/drivers/net/wireless/Kconfig
+++ b/drivers/net/wireless/Kconfig
@@ -223,7 +223,7 @@ config ADM8211
 	tristate "ADMtek ADM8211 support"
 	depends on MAC80211 && PCI && EXPERIMENTAL
 	select CRC32
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  This driver is for ADM8211A, ADM8211B, and ADM8211C based cards.
 	  These are PCI/mini-PCI/Cardbus 802.11b chips found in cards such as:
diff --git a/drivers/net/wireless/rt2x00/Kconfig b/drivers/net/wireless/rt2x00/Kconfig
index a0a7854..c7be1a9 100644
--- a/drivers/net/wireless/rt2x00/Kconfig
+++ b/drivers/net/wireless/rt2x00/Kconfig
@@ -21,7 +21,7 @@ config RT2400PCI
 	tristate "Ralink rt2400 (PCI/PCMCIA) support"
 	depends on PCI
 	select RT2X00_LIB_PCI
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  This adds support for rt2400 wireless chipset family.
 	  Supported chips: RT2460.
@@ -32,7 +32,7 @@ config RT2500PCI
 	tristate "Ralink rt2500 (PCI/PCMCIA) support"
 	depends on PCI
 	select RT2X00_LIB_PCI
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  This adds support for rt2500 wireless chipset family.
 	  Supported chips: RT2560.
@@ -46,7 +46,7 @@ config RT61PCI
 	select RT2X00_LIB_FIRMWARE
 	select RT2X00_LIB_CRYPTO
 	select CRC_ITU_T
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  This adds support for rt2501 wireless chipset family.
 	  Supported chips: RT2561, RT2561S & RT2661.
@@ -62,7 +62,7 @@ config RT2800PCI
 	select RT2X00_LIB_FIRMWARE
 	select RT2X00_LIB_CRYPTO
 	select CRC_CCITT
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  This adds support for rt27xx/rt28xx/rt30xx wireless chipset family.
 	  Supported chips: RT2760, RT2790, RT2860, RT2880, RT2890, RT3052,
diff --git a/drivers/net/wireless/rtl818x/Kconfig b/drivers/net/wireless/rtl818x/Kconfig
index 17d80fe..3e399b8 100644
--- a/drivers/net/wireless/rtl818x/Kconfig
+++ b/drivers/net/wireless/rtl818x/Kconfig
@@ -4,7 +4,7 @@
 config RTL8180
 	tristate "Realtek 8180/8185 PCI support"
 	depends on MAC80211 && PCI && EXPERIMENTAL
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  This is a driver for RTL8180 and RTL8185 based cards.
 	  These are PCI based chips found in cards such as:
@@ -60,7 +60,7 @@ config RTL8180
 config RTL8187
 	tristate "Realtek 8187 and 8187B USB support"
 	depends on MAC80211 && USB
-	select EEPROM_93CX6
+	select EEPROM_93CX6 if MISC_DEVICES
 	---help---
 	  This is a driver for RTL8187 and RTL8187B based cards.
 	  These are USB based chips found in devices such as:
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drivers: net: Fix dependency for EEPROM_93CX6
  2012-01-05 12:14 [PATCH] drivers: net: Fix dependency for EEPROM_93CX6 Fabio Estevam
@ 2012-01-05 12:33 ` Gertjan van Wingerde
  2012-01-05 13:11   ` Fabio Estevam
  0 siblings, 1 reply; 4+ messages in thread
From: Gertjan van Wingerde @ 2012-01-05 12:33 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: netdev, linux-wireless, davem, linville, Fabio Estevam

On Thu, Jan 5, 2012 at 1:14 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Fix the following build warning:
>
> warning: (KS8851 && AX88796_93CX6 && RTL8180 && RTL8187 && ADM8211 && RT2400PCI && RT2500PCI && RT61PCI && RT2800PCI && R8187SE) selects EEPROM_93CX6 which has unmet direct dependencies (MISC_DEVICES)
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

NAK, at least for the rt2x00 part, but probably for the other parts as well.
The rt2x00 drivers actually need the EEPROM_93CX6 driver to be
present, otherwise they won't work correctly. Therefore only selecting
the symbol when MISC_DEVICES has been enabled can lead to a
non-functional configuration for the rt2x00 devices.

A correct fix would be to also select MISC_DEVICES at all locations
where EEPROM_93CX6 is selected.

---
Gertjan.

> ---
>  drivers/net/ethernet/8390/Kconfig    |    2 +-
>  drivers/net/ethernet/micrel/Kconfig  |    3 +--
>  drivers/net/wireless/Kconfig         |    2 +-
>  drivers/net/wireless/rt2x00/Kconfig  |    8 ++++----
>  drivers/net/wireless/rtl818x/Kconfig |    4 ++--
>  5 files changed, 9 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/net/ethernet/8390/Kconfig b/drivers/net/ethernet/8390/Kconfig
> index e04ade4..d967c74 100644
> --- a/drivers/net/ethernet/8390/Kconfig
> +++ b/drivers/net/ethernet/8390/Kconfig
> @@ -69,7 +69,7 @@ config AX88796
>  config AX88796_93CX6
>        bool "ASIX AX88796 external 93CX6 eeprom support"
>        depends on AX88796
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          Select this if your platform comes with an external 93CX6 eeprom.
>
> diff --git a/drivers/net/ethernet/micrel/Kconfig b/drivers/net/ethernet/micrel/Kconfig
> index 1ea811c..bc99abf 100644
> --- a/drivers/net/ethernet/micrel/Kconfig
> +++ b/drivers/net/ethernet/micrel/Kconfig
> @@ -42,8 +42,7 @@ config KS8851
>        select NET_CORE
>        select MII
>        select CRC32
> -       select MISC_DEVICES
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          SPI driver for Micrel KS8851 SPI attached network chip.
>
> diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
> index abd3b71..d15d3a9 100644
> --- a/drivers/net/wireless/Kconfig
> +++ b/drivers/net/wireless/Kconfig
> @@ -223,7 +223,7 @@ config ADM8211
>        tristate "ADMtek ADM8211 support"
>        depends on MAC80211 && PCI && EXPERIMENTAL
>        select CRC32
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          This driver is for ADM8211A, ADM8211B, and ADM8211C based cards.
>          These are PCI/mini-PCI/Cardbus 802.11b chips found in cards such as:
> diff --git a/drivers/net/wireless/rt2x00/Kconfig b/drivers/net/wireless/rt2x00/Kconfig
> index a0a7854..c7be1a9 100644
> --- a/drivers/net/wireless/rt2x00/Kconfig
> +++ b/drivers/net/wireless/rt2x00/Kconfig
> @@ -21,7 +21,7 @@ config RT2400PCI
>        tristate "Ralink rt2400 (PCI/PCMCIA) support"
>        depends on PCI
>        select RT2X00_LIB_PCI
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          This adds support for rt2400 wireless chipset family.
>          Supported chips: RT2460.
> @@ -32,7 +32,7 @@ config RT2500PCI
>        tristate "Ralink rt2500 (PCI/PCMCIA) support"
>        depends on PCI
>        select RT2X00_LIB_PCI
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          This adds support for rt2500 wireless chipset family.
>          Supported chips: RT2560.
> @@ -46,7 +46,7 @@ config RT61PCI
>        select RT2X00_LIB_FIRMWARE
>        select RT2X00_LIB_CRYPTO
>        select CRC_ITU_T
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          This adds support for rt2501 wireless chipset family.
>          Supported chips: RT2561, RT2561S & RT2661.
> @@ -62,7 +62,7 @@ config RT2800PCI
>        select RT2X00_LIB_FIRMWARE
>        select RT2X00_LIB_CRYPTO
>        select CRC_CCITT
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          This adds support for rt27xx/rt28xx/rt30xx wireless chipset family.
>          Supported chips: RT2760, RT2790, RT2860, RT2880, RT2890, RT3052,
> diff --git a/drivers/net/wireless/rtl818x/Kconfig b/drivers/net/wireless/rtl818x/Kconfig
> index 17d80fe..3e399b8 100644
> --- a/drivers/net/wireless/rtl818x/Kconfig
> +++ b/drivers/net/wireless/rtl818x/Kconfig
> @@ -4,7 +4,7 @@
>  config RTL8180
>        tristate "Realtek 8180/8185 PCI support"
>        depends on MAC80211 && PCI && EXPERIMENTAL
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          This is a driver for RTL8180 and RTL8185 based cards.
>          These are PCI based chips found in cards such as:
> @@ -60,7 +60,7 @@ config RTL8180
>  config RTL8187
>        tristate "Realtek 8187 and 8187B USB support"
>        depends on MAC80211 && USB
> -       select EEPROM_93CX6
> +       select EEPROM_93CX6 if MISC_DEVICES
>        ---help---
>          This is a driver for RTL8187 and RTL8187B based cards.
>          These are USB based chips found in devices such as:
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
---
Gertjan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drivers: net: Fix dependency for EEPROM_93CX6
  2012-01-05 12:33 ` Gertjan van Wingerde
@ 2012-01-05 13:11   ` Fabio Estevam
  2012-01-05 13:18     ` Fabio Estevam
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2012-01-05 13:11 UTC (permalink / raw)
  To: Gertjan van Wingerde
  Cc: netdev, linux-wireless, davem, linville, Fabio Estevam

On Thu, Jan 5, 2012 at 10:33 AM, Gertjan van Wingerde
<gwingerde@gmail.com> wrote:

> A correct fix would be to also select MISC_DEVICES at all locations
> where EEPROM_93CX6 is selected.

Ok, I guess you mean:

diff --git a/drivers/net/ethernet/8390/Kconfig
b/drivers/net/ethernet/8390/Kconfig
index e04ade4..19df534 100644
--- a/drivers/net/ethernet/8390/Kconfig
+++ b/drivers/net/ethernet/8390/Kconfig
@@ -69,6 +69,7 @@ config AX88796
 config AX88796_93CX6
 	bool "ASIX AX88796 external 93CX6 eeprom support"
 	depends on AX88796
+	select MISC_DEVICES
 	select EEPROM_93CX6
 	---help---
 	  Select this if your platform comes with an external 93CX6 eeprom.
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
index abd3b71..3b08db7 100644
--- a/drivers/net/wireless/Kconfig
+++ b/drivers/net/wireless/Kconfig
@@ -223,6 +223,7 @@ config ADM8211
 	tristate "ADMtek ADM8211 support"
 	depends on MAC80211 && PCI && EXPERIMENTAL
 	select CRC32
+	select MISC_DEVICES
 	select EEPROM_93CX6
 	---help---
 	  This driver is for ADM8211A, ADM8211B, and ADM8211C based cards.
diff --git a/drivers/net/wireless/rt2x00/Kconfig
b/drivers/net/wireless/rt2x00/Kconfig
index a0a7854..f9a1028 100644
--- a/drivers/net/wireless/rt2x00/Kconfig
+++ b/drivers/net/wireless/rt2x00/Kconfig
@@ -21,6 +21,7 @@ config RT2400PCI
 	tristate "Ralink rt2400 (PCI/PCMCIA) support"
 	depends on PCI
 	select RT2X00_LIB_PCI
+	select MISC_DEVICES
 	select EEPROM_93CX6
 	---help---
 	  This adds support for rt2400 wireless chipset family.
@@ -32,6 +33,7 @@ config RT2500PCI
 	tristate "Ralink rt2500 (PCI/PCMCIA) support"
 	depends on PCI
 	select RT2X00_LIB_PCI
+	select MISC_DEVICES
 	select EEPROM_93CX6
 	---help---
 	  This adds support for rt2500 wireless chipset family.
@@ -46,6 +48,7 @@ config RT61PCI
 	select RT2X00_LIB_FIRMWARE
 	select RT2X00_LIB_CRYPTO
 	select CRC_ITU_T
+	select MISC_DEVICES
 	select EEPROM_93CX6
 	---help---
 	  This adds support for rt2501 wireless chipset family.
@@ -62,6 +65,7 @@ config RT2800PCI
 	select RT2X00_LIB_FIRMWARE
 	select RT2X00_LIB_CRYPTO
 	select CRC_CCITT
+	select MISC_DEVICES
 	select EEPROM_93CX6
 	---help---
 	  This adds support for rt27xx/rt28xx/rt30xx wireless chipset family.
diff --git a/drivers/net/wireless/rtl818x/Kconfig
b/drivers/net/wireless/rtl818x/Kconfig
index 17d80fe..2c8c2f2 100644
--- a/drivers/net/wireless/rtl818x/Kconfig
+++ b/drivers/net/wireless/rtl818x/Kconfig
@@ -4,6 +4,7 @@
 config RTL8180
 	tristate "Realtek 8180/8185 PCI support"
 	depends on MAC80211 && PCI && EXPERIMENTAL
+	select MISC_DEVICES
 	select EEPROM_93CX6
 	---help---
 	  This is a driver for RTL8180 and RTL8185 based cards.
@@ -60,6 +61,7 @@ config RTL8180
 config RTL8187
 	tristate "Realtek 8187 and 8187B USB support"
 	depends on MAC80211 && USB
+	select MISC_DEVICES
 	select EEPROM_93CX6
 	---help---
 	  This is a driver for RTL8187 and RTL8187B based cards.

,but still get the warnings in this case too.

Regards,

Fabio Estevam

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drivers: net: Fix dependency for EEPROM_93CX6
  2012-01-05 13:11   ` Fabio Estevam
@ 2012-01-05 13:18     ` Fabio Estevam
  0 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2012-01-05 13:18 UTC (permalink / raw)
  To: Gertjan van Wingerde
  Cc: netdev, linux-wireless, davem, linville, Fabio Estevam

On Thu, Jan 5, 2012 at 11:11 AM, Fabio Estevam <festevam@gmail.com> wrote:

...
> ,but still get the warnings in this case too.

I think the correct fix would be to add MISC_DEVICES into the 'depends
on' lines.

Do you agree?

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-05 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-05 12:14 [PATCH] drivers: net: Fix dependency for EEPROM_93CX6 Fabio Estevam
2012-01-05 12:33 ` Gertjan van Wingerde
2012-01-05 13:11   ` Fabio Estevam
2012-01-05 13:18     ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).