mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] net: dsa: realtek: fix Kconfig selects
@ 2023-05-03 10:06 Ahmad Fatoum
  2023-05-09  7:23 ` Sascha Hauer
       [not found] ` <CAA4bVAEtTi0+gYRd04ou+Cv6vDaHd_Q5+hzM5zfEtpGe5=qswQ@mail.gmail.com>
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2023-05-03 10:06 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Unlike Linux, barebox has no CONFIG_FIXED_PHY or CONFIG_IRQ_DOMAIN.
The former is implied by CONFIG_PHYLIB and the latter is unneeded, so
revise the Kconfig option accordingly.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/net/realtek-dsa/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/realtek-dsa/Kconfig b/drivers/net/realtek-dsa/Kconfig
index dd8599565f6e..0708f1ef96f4 100644
--- a/drivers/net/realtek-dsa/Kconfig
+++ b/drivers/net/realtek-dsa/Kconfig
@@ -2,8 +2,7 @@
 menuconfig DRIVER_NET_DSA_REALTEK
 	tristate "Realtek Ethernet switch family support"
 	depends on DSA
-	select FIXED_PHY
-	select IRQ_DOMAIN
+	select PHYLIB
 	select REALTEK_PHY
 	select REGMAP
 	help
-- 
2.39.2




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

* Re: [PATCH] net: dsa: realtek: fix Kconfig selects
  2023-05-03 10:06 [PATCH] net: dsa: realtek: fix Kconfig selects Ahmad Fatoum
@ 2023-05-09  7:23 ` Sascha Hauer
       [not found] ` <CAA4bVAEtTi0+gYRd04ou+Cv6vDaHd_Q5+hzM5zfEtpGe5=qswQ@mail.gmail.com>
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2023-05-09  7:23 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Wed, May 03, 2023 at 12:06:09PM +0200, Ahmad Fatoum wrote:
> Unlike Linux, barebox has no CONFIG_FIXED_PHY or CONFIG_IRQ_DOMAIN.
> The former is implied by CONFIG_PHYLIB and the latter is unneeded, so
> revise the Kconfig option accordingly.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  drivers/net/realtek-dsa/Kconfig | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/drivers/net/realtek-dsa/Kconfig b/drivers/net/realtek-dsa/Kconfig
> index dd8599565f6e..0708f1ef96f4 100644
> --- a/drivers/net/realtek-dsa/Kconfig
> +++ b/drivers/net/realtek-dsa/Kconfig
> @@ -2,8 +2,7 @@
>  menuconfig DRIVER_NET_DSA_REALTEK
>  	tristate "Realtek Ethernet switch family support"
>  	depends on DSA
> -	select FIXED_PHY
> -	select IRQ_DOMAIN
> +	select PHYLIB
>  	select REALTEK_PHY
>  	select REGMAP
>  	help
> -- 
> 2.39.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



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

* Re: [PATCH] net: dsa: realtek: fix Kconfig selects
       [not found] ` <CAA4bVAEtTi0+gYRd04ou+Cv6vDaHd_Q5+hzM5zfEtpGe5=qswQ@mail.gmail.com>
@ 2023-05-19  8:59   ` Ahmad Fatoum
  0 siblings, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2023-05-19  8:59 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On 11.05.23 10:35, Antony Pavlov wrote:
> Hi Ahmad!
> 
> On Wed, 3 May 2023 at 13:08, Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> 
>> Unlike Linux, barebox has no CONFIG_FIXED_PHY or CONFIG_IRQ_DOMAIN.
>> The former is implied by CONFIG_PHYLIB and the latter is unneeded, so
>> revise the Kconfig option accordingly.
> 
> You can drop 'select REGMAP' too.
> 
> It looks like there are several undeclared Kconfig options.
> 
> I used these commands to find them:
> 
> find -iname 'Kconfig*' -type f -exec cat {} ';' | grep "\(^\s*menuconfig
> \|^\s*config \)" | sed "s/^\s*//" | sed "s/^config //"  | sed
> "s/^menuconfig //" | grep "^[A-Z]" | sed "s/ *#.*$//" | sed "s/ if .*$//" |
> sed "s/\s*$//" | sort | uniq  > /tmp/config
> find -iname 'Kconfig*' -type f -exec cat {} ';' | grep "^\s*select " | sed
> "s/^\s*//" | sed "s/^select //" | grep "^[A-Z]" | sed "s/ *#.*$//" | sed
> "s/ if .*$//" | sed "s/\s*$//" | sort | uniq > /tmp/select
> diff -u /tmp/select /tmp/config | grep ^- | grep -v "^---" | sed "s/^-//"
> 
> diff output on the master branch is:
> 
> CONFIG_ARCH_HAS_SJLJ
> CRYPTO_BLKCIPHER
> CRYPTO_DES
> REGMAP

Thanks. I had added scripts/kconfig-lint.py to catch such things, but
it got broken recently by the 32BIT/64BIT rework...

Cheers,
Ahmad

> 
> --
> Best regards,
>   Antony Pavlov
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




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

end of thread, other threads:[~2023-05-19  9:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03 10:06 [PATCH] net: dsa: realtek: fix Kconfig selects Ahmad Fatoum
2023-05-09  7:23 ` Sascha Hauer
     [not found] ` <CAA4bVAEtTi0+gYRd04ou+Cv6vDaHd_Q5+hzM5zfEtpGe5=qswQ@mail.gmail.com>
2023-05-19  8:59   ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox