All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH
@ 2026-09-05  6:53 Karl Mehltretter
  2026-09-05  6:53 ` [PATCH 1/2] sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol Karl Mehltretter
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Karl Mehltretter @ 2026-09-05  6:53 UTC (permalink / raw)
  To: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz
  Cc: Karl Mehltretter, linux-sh, Greg Kroah-Hartman

Commit 4f6dfc2136fb ("usb: remove the dead USB_OHCI_SH option") removed
the symbol, but four SH board entries still select it and one defconfig
still sets it. Kconfig silently ignores both, so nothing changes in any
configuration; the patches only remove the dead lines. Parsed with
make ARCH=sh allnoconfig and olddefconfig on sh7757lcr_defconfig.

Karl Mehltretter (2):
  sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol
  sh: configs: Drop CONFIG_USB_OHCI_SH from sh7757lcr_defconfig

 arch/sh/Kconfig                     | 4 ----
 arch/sh/configs/sh7757lcr_defconfig | 1 -
 2 files changed, 5 deletions(-)

-- 
2.53.0


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

* [PATCH 1/2] sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol
  2026-09-05  6:53 [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH Karl Mehltretter
@ 2026-09-05  6:53 ` Karl Mehltretter
  2026-09-05 13:55   ` Geert Uytterhoeven
  2026-09-05  6:53 ` [PATCH 2/2] sh: configs: Drop CONFIG_USB_OHCI_SH from sh7757lcr_defconfig Karl Mehltretter
  2026-09-05 15:11 ` [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH Karl Mehltretter
  2 siblings, 1 reply; 6+ messages in thread
From: Karl Mehltretter @ 2026-09-05  6:53 UTC (permalink / raw)
  To: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz
  Cc: Karl Mehltretter, linux-sh, Greg Kroah-Hartman

Commit 4f6dfc2136fb ("usb: remove the dead USB_OHCI_SH option") removed
CONFIG_USB_OHCI_SH, but four SH board entries still select it under
CONFIG_USB_OHCI_HCD. Selecting a symbol that does not exist is silently
ignored, so these lines do nothing.

Remove them.

Fixes: 4f6dfc2136fb ("usb: remove the dead USB_OHCI_SH option")
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
---
 arch/sh/Kconfig | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index d60f1d5a94c0..01e37d5dded9 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -331,7 +331,6 @@ config CPU_SUBTYPE_SH7720
 	select CPU_SH3
 	select CPU_HAS_DSP
 	select SYS_SUPPORTS_SH_CMT
-	select USB_OHCI_SH if USB_OHCI_HCD
 	select PINCTRL
 	help
 	  Select SH7720 if you have a SH3-DSP SH7720 CPU.
@@ -341,7 +340,6 @@ config CPU_SUBTYPE_SH7721
 	select CPU_SH3
 	select CPU_HAS_DSP
 	select SYS_SUPPORTS_SH_CMT
-	select USB_OHCI_SH if USB_OHCI_HCD
 	help
 	  Select SH7721 if you have a SH3-DSP SH7721 CPU.
 
@@ -426,7 +424,6 @@ config CPU_SUBTYPE_SH7757
 config CPU_SUBTYPE_SH7763
 	bool "Support SH7763 processor"
 	select CPU_SH4A
-	select USB_OHCI_SH if USB_OHCI_HCD
 	help
 	  Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
 
@@ -452,7 +449,6 @@ config CPU_SUBTYPE_SH7786
 	select CPU_SHX3
 	select CPU_HAS_PTEAEX
 	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
-	select USB_OHCI_SH if USB_OHCI_HCD
 	select USB_EHCI_SH if USB_EHCI_HCD
 	select PINCTRL
 
-- 
2.53.0


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

* [PATCH 2/2] sh: configs: Drop CONFIG_USB_OHCI_SH from sh7757lcr_defconfig
  2026-09-05  6:53 [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH Karl Mehltretter
  2026-09-05  6:53 ` [PATCH 1/2] sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol Karl Mehltretter
@ 2026-09-05  6:53 ` Karl Mehltretter
  2026-09-05 15:11 ` [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH Karl Mehltretter
  2 siblings, 0 replies; 6+ messages in thread
From: Karl Mehltretter @ 2026-09-05  6:53 UTC (permalink / raw)
  To: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz
  Cc: Karl Mehltretter, linux-sh, Greg Kroah-Hartman

Commit 4f6dfc2136fb ("usb: remove the dead USB_OHCI_SH option") removed
the symbol. The defconfig still sets it, which olddefconfig silently
drops on every use.

Drop the line.

Fixes: 4f6dfc2136fb ("usb: remove the dead USB_OHCI_SH option")
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
---
 arch/sh/configs/sh7757lcr_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/sh/configs/sh7757lcr_defconfig b/arch/sh/configs/sh7757lcr_defconfig
index 93066ae429ec..a7ec7a23999d 100644
--- a/arch/sh/configs/sh7757lcr_defconfig
+++ b/arch/sh/configs/sh7757lcr_defconfig
@@ -58,7 +58,6 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_SH=y
 CONFIG_USB_OHCI_HCD=y
-CONFIG_USB_OHCI_SH=y
 CONFIG_USB_STORAGE=y
 CONFIG_MMC=y
 CONFIG_MMC_SDHI=y
-- 
2.53.0


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

* Re: [PATCH 1/2] sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol
  2026-09-05  6:53 ` [PATCH 1/2] sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol Karl Mehltretter
@ 2026-09-05 13:55   ` Geert Uytterhoeven
  2026-09-05 15:06     ` Karl Mehltretter
  0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2026-09-05 13:55 UTC (permalink / raw)
  To: Karl Mehltretter
  Cc: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz, linux-sh,
	Greg Kroah-Hartman

Hi Karl,

Thanks for your patch!

On Sat, 5 Sept 2026 at 08:53, Karl Mehltretter <kmehltretter@gmail.com> wrote:
> Commit 4f6dfc2136fb ("usb: remove the dead USB_OHCI_SH option") removed

So you (or the LLM) did look at that commit?

> CONFIG_USB_OHCI_SH, but four SH board entries still select it under
> CONFIG_USB_OHCI_HCD. Selecting a symbol that does not exist is silently
> ignored, so these lines do nothing.
>
> Remove them.
>
> Fixes: 4f6dfc2136fb ("usb: remove the dead USB_OHCI_SH option")
> Assisted-by: LLM
> Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>

> --- a/arch/sh/Kconfig
> +++ b/arch/sh/Kconfig
> @@ -331,7 +331,6 @@ config CPU_SUBTYPE_SH7720
>         select CPU_SH3
>         select CPU_HAS_DSP
>         select SYS_SUPPORTS_SH_CMT
> -       select USB_OHCI_SH if USB_OHCI_HCD

This is wrong, it should select USB_OHCI_HCD_PLATFORM instead.
Someone has already sent a patch for that[1], so it would be great if
that could be picked up instead.

[1] "[PATCH] sh: Use generic OHCI platform provider symbol"
    https://lore.kernel.org/20260624081926.12426-1-pengpeng@iscas.ac.cn/

>         select PINCTRL
>         help
>           Select SH7720 if you have a SH3-DSP SH7720 CPU.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 1/2] sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol
  2026-09-05 13:55   ` Geert Uytterhoeven
@ 2026-09-05 15:06     ` Karl Mehltretter
  0 siblings, 0 replies; 6+ messages in thread
From: Karl Mehltretter @ 2026-09-05 15:06 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz, linux-sh,
	Greg Kroah-Hartman

On Sat, Sep 05, 2026 at 03:55:57PM +0100, Geert Uytterhoeven wrote:
> >         select CPU_HAS_DSP
> >         select SYS_SUPPORTS_SH_CMT
> > -       select USB_OHCI_SH if USB_OHCI_HCD
> 
> This is wrong, it should select USB_OHCI_HCD_PLATFORM instead.
> Someone has already sent a patch for that[1], so it would be great if
> that could be picked up instead.
> 
> [1] "[PATCH] sh: Use generic OHCI platform provider symbol"
>     https://lore.kernel.org/20260624081926.12426-1-pengpeng@iscas.ac.cn/
> 

Yes my patch is not "wrong" (doesn't make things worse) but clearly this 
is the proper solution.

So please consider both patches of this series withdrawn, the
defconfig change in 2/2 is covered by Pengpeng's patch as well.

I have resent Pengpeng's patch as v2 with his authorship kept:

https://lore.kernel.org/r/20260905145225.88518-1-kmehltretter@gmail.com/

Thanks,
Karl

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

* Re: [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH
  2026-09-05  6:53 [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH Karl Mehltretter
  2026-09-05  6:53 ` [PATCH 1/2] sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol Karl Mehltretter
  2026-09-05  6:53 ` [PATCH 2/2] sh: configs: Drop CONFIG_USB_OHCI_SH from sh7757lcr_defconfig Karl Mehltretter
@ 2026-09-05 15:11 ` Karl Mehltretter
  2 siblings, 0 replies; 6+ messages in thread
From: Karl Mehltretter @ 2026-09-05 15:11 UTC (permalink / raw)
  To: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz
  Cc: linux-sh, Greg Kroah-Hartman

On Sat, Sep 05, 2026 at 08:53:38AM +0100, Karl Mehltretter wrote:
> Commit 4f6dfc2136fb ("usb: remove the dead USB_OHCI_SH option") removed
> the symbol, but four SH board entries still select it and one defconfig
> still sets it. Kconfig silently ignores both, so nothing changes in any
> configuration; the patches only remove the dead lines. Parsed with
> make ARCH=sh allnoconfig and olddefconfig on sh7757lcr_defconfig.
> 
> Karl Mehltretter (2):
>   sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol
>   sh: configs: Drop CONFIG_USB_OHCI_SH from sh7757lcr_defconfig
> 
>  arch/sh/Kconfig                     | 4 ----
>  arch/sh/configs/sh7757lcr_defconfig | 1 -
>  2 files changed, 5 deletions(-)
> 
Consider this series dropped, superseded by:

https://lore.kernel.org/r/20260905145225.88518-1-kmehltretter@gmail.com/

Karl

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

end of thread, other threads:[~2026-09-05 15:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-05  6:53 [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH Karl Mehltretter
2026-09-05  6:53 ` [PATCH 1/2] sh: Drop the selects of the removed CONFIG_USB_OHCI_SH symbol Karl Mehltretter
2026-09-05 13:55   ` Geert Uytterhoeven
2026-09-05 15:06     ` Karl Mehltretter
2026-09-05  6:53 ` [PATCH 2/2] sh: configs: Drop CONFIG_USB_OHCI_SH from sh7757lcr_defconfig Karl Mehltretter
2026-09-05 15:11 ` [PATCH 0/2] sh: Drop the leftovers of the removed CONFIG_USB_OHCI_SH Karl Mehltretter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.