Skip to contentSkip to conversation

drivers/tty/serial/sh-sci.h: remove dead reference on ARCH_SH7372

PATCH In review Valentin Rothberg 2 participants 2 messages Apr 11, 2015 – Apr 24, 2015

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

PATCH 1/2 drivers/tty/serial/sh-sci.h: remove dead reference on ARCH_SH7372

The Kconfig option ARCH_SH7372 has been removed by commit 59b89af1d555 ("ARM: shmobile: sh7372: Remove Legacy C SoC code"). This patch removes the last reference on this Kconfig option.

---
I found this issue with ./scripts/checkkconfigsymbols.py

---
 drivers/tty/serial/sh-sci.h | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/sh-sci.h +0 -1
index d5db81a0a430..350717404507 100644
@@ -15,7 +15,6 @@
     defined(CONFIG_CPU_SUBTYPE_SH7720) || \
     defined(CONFIG_CPU_SUBTYPE_SH7721) || \
     defined(CONFIG_ARCH_SH73A0) || \
-    defined(CONFIG_ARCH_SH7372) || \
     defined(CONFIG_ARCH_R8A7740)
 
 # define SCxSR_RDxF_CLEAR(port)	 (serial_port_in(port, SCxSR) & 0xfffc)
Signature · 1 line
2.1.0
Acked-by on v1 1/2
#1 lore raw

Hi Valentin,

Quoted 5 lines · Valentin Rothberg

The Kconfig option ARCH_SH7372 has been removed by commit 59b89af1d555 ("ARM: shmobile: sh7372: Remove Legacy C SoC code"). This patch removes the last reference on this Kconfig option.

Thanks for your patch!

Quoted 11 lines

---
I found this issue with ./scripts/checkkconfigsymbols.py

---
 drivers/tty/serial/sh-sci.h | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/sh-sci.h +0 -0
index d5db81a0a430..350717404507 100644

drivers/tty/serial/sh-sci.h line 19

Quoted 6 lines
drivers/tty/serial/sh-sci.h +0 -1
@@ -15,7 +15,6 @@
     defined(CONFIG_CPU_SUBTYPE_SH7720) || \
     defined(CONFIG_CPU_SUBTYPE_SH7721) || \
     defined(CONFIG_ARCH_SH73A0) || \
-    defined(CONFIG_ARCH_SH7372) || \
     defined(CONFIG_ARCH_R8A7740)
 # define SCxSR_RDxF_CLEAR(port)         (serial_port_in(port, SCxSR) & 0xfffc)

There are more things wrong with the above:
1. It's not multi-platform safe: any ARM kernel with sh73a0 or r8a7740 support will treat all SCIFs and HSCIFs as SCIFA/Bs.
2. It wasn't updated for newer SoCs, e.g.
- r8a73a4 has SCIFA/B, too,
- R-Car Gen2 has all of SCIF, HSCIF, SCIFA, SCIFB, which isn't supported by the current logic at all.

Looking into it...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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