Skip to contentSkip to conversation

ARM: mstar: remove unused config MACH_MERCURY

PATCH Applied Lukas Bulwahn 6 participants 7 messages Mar 21, 2023 – Mar 24, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mstar: remove unused config MACH_MERCURY

Commit 312b62b6610c ("ARM: mstar: Add machine for MStar/Sigmastar Armv7 SoCs") adds the config MACH_INFINITY and MACH_MERCURY. The MACH_INFINITY config is used in the gpio-msc313 driver, but the MACH_MERCURY config is never used to configure anything in the kernel tree.

Remove the unused config MACH_MERCURY.

---
 arch/arm/mach-mstar/Kconfig | 7 -------
 1 file changed, 7 deletions(-)
arch/arm/mach-mstar/Kconfig +0 -7
index 5dbea7b485af..fa9709f30b46 100644
@@ -20,11 +20,4 @@ config MACH_INFINITY
 	help
 	  Support for MStar/Sigmastar infinity IP camera SoCs.
 
-config MACH_MERCURY
-	bool "MStar/Sigmastar mercury SoC support"
-	default ARCH_MSTARV7
-	help
-	  Support for MStar/Sigmastar mercury dash camera SoCs.
-	  Note that older Mercury2 SoCs are ARM9 based and not supported.
-
 endif
Signature · 1 line
2.17.1
maintainer
#1 lore raw

Hi Lukas

Quoted 7 lines · Lukas Bulwahn

Commit 312b62b6610c ("ARM: mstar: Add machine for MStar/Sigmastar Armv7 SoCs") adds the config MACH_INFINITY and MACH_MERCURY. The MACH_INFINITY config is used in the gpio-msc313 driver, but the MACH_MERCURY config is never used to configure anything in the kernel tree.

Remove the unused config MACH_MERCURY.

Because work is still on going to push that stuff.

nak from me.

Thanks,

Daniel

#2 lore raw
Quoted 4 lines · Daniel Palmer

Hi Lukas

Quoted 1 line · Lukas Bulwahn
Quoted 8 lines
Quoted 6 lines

Commit 312b62b6610c ("ARM: mstar: Add machine for MStar/Sigmastar Armv7 SoCs") adds the config MACH_INFINITY and MACH_MERCURY. The MACH_INFINITY config is used in the gpio-msc313 driver, but the MACH_MERCURY config is never used to configure anything in the kernel tree.

Remove the unused config MACH_MERCURY.

Because work is still on going to push that stuff.

Is there a link to the patchset?

Quoted 2 lines

nak from me.

This stuff hasn't been used for years. We generally don't push dummy code. It's super easy to add it back when the time comes.

regards,
dan carpenter

#3 lore raw
In reply to Daniel Palmer
Quoted 9 lines · Daniel Palmer

Hi Lukas

Quoted 6 lines · Lukas Bulwahn

Commit 312b62b6610c ("ARM: mstar: Add machine for MStar/Sigmastar Armv7 SoCs") adds the config MACH_INFINITY and MACH_MERCURY. The MACH_INFINITY config is used in the gpio-msc313 driver, but the MACH_MERCURY config is never used to configure anything in the kernel tree.

Quoted 5 lines
Quoted 1 line

Remove the unused config MACH_MERCURY.

Because work is still on going to push that stuff.

nak from me.

The symbol has been unused three year though, and will show up every time someone runs a script to look for orphaned Kconfig entries.

I'd still prefer removing it now and only bringing it back when you actually add the code for it.

Arnd

maintainer
#4 lore raw

Hi Arnd,

Quoted 2 lines · Arnd Bergmann

I'd still prefer removing it now and only bringing it back when you actually add the code for it.

Fair enough. Code does exist for it in my tree but I never got around to sending it.

I rescind my nak.

Cheers,

Daniel

maintainer Acked-by
#5 lore raw
In reply to Arnd Bergmann

Hi,

After discussion with Daniel, we agree that's an unused and an orphaned Kconfig symbol (we cannot really argue against it). We agree to remove it, it will be reverted back for a future patches set.

Quoted 25 lines · Arnd Bergmann
Quoted 9 lines · Daniel Palmer

Hi Lukas

Quoted 6 lines · Lukas Bulwahn

Commit 312b62b6610c ("ARM: mstar: Add machine for MStar/Sigmastar Armv7 SoCs") adds the config MACH_INFINITY and MACH_MERCURY. The MACH_INFINITY config is used in the gpio-msc313 driver, but the MACH_MERCURY config is never used to configure anything in the kernel tree.

Quoted 5 lines
Quoted 1 line

Remove the unused config MACH_MERCURY.

Because work is still on going to push that stuff.

nak from me.

The symbol has been unused three year though, and will show up every time someone runs a script to look for orphaned Kconfig entries.

I'd still prefer removing it now and only bringing it back when you actually add the code for it.

Arnd

#6 lore raw
In reply to Lukas Bulwahn
This patch was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This patch was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 8 lines · On Tue, 21 Mar 2023 04:38:10 +0100 you wrote:

Commit 312b62b6610c ("ARM: mstar: Add machine for MStar/Sigmastar Armv7 SoCs") adds the config MACH_INFINITY and MACH_MERCURY. The MACH_INFINITY config is used in the gpio-msc313 driver, but the MACH_MERCURY config is never used to configure anything in the kernel tree.

Remove the unused config MACH_MERCURY.

[...]

Here is the summary with links:
- ARM: mstar: remove unused config MACH_MERCURY

    https://git.kernel.org/soc/soc/c/d6053666ef2b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html