Skip to contentSkip to conversation

serial: 8250_EXAR: fix duplicate Kconfig text and add missing help text

PATCH In review Paul Gortmaker 3 participants 3 messages Mar 27, 2017 – Mar 28, 2017 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: 8250_EXAR: fix duplicate Kconfig text and add missing help text

In commit d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 ("serial: exar:
split out the exar code from 8250_pci") the exar driver got its own Kconfig. However the text for the new option was never changed from the original 8250_PCI text, and hence it appears confusing when you get asked the same question twice:

8250/16550 PCI device support (SERIAL_8250_PCI) [Y/n/m/?] (NEW)

    8250/16550 PCI device support (SERIAL_8250_EXAR) [Y/n/m] (NEW)

Adding to the confusion, is that there is no help text for this new option to indicate it is specific to a certain family of cards.

Fix both issues at the same time, as well as the space vs. tab issues introduced in the same commit.

Fixes d0aeaa83f0b0 ("serial: exar: split out the exar code from 8250_pci")
Cc Andy Shevchenko <[email protected]>
Cc Sudip Mukherjee <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jiri Slaby <[email protected]>
---
 drivers/tty/serial/8250/Kconfig | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/tty/serial/8250/Kconfig +6 -2
index a65fb8197aec..0e3f529d50e9 100644
@@ -128,9 +128,13 @@ config SERIAL_8250_PCI
 	  by the parport_serial driver, enabled with CONFIG_PARPORT_SERIAL.
 
 config SERIAL_8250_EXAR
-        tristate "8250/16550 PCI device support"
-        depends on SERIAL_8250_PCI
+	tristate "8250/16550 Exar/Commtech PCI/PCIe device support"
+	depends on SERIAL_8250_PCI
 	default SERIAL_8250
+	help
+	  This builds support for XR17C1xx, XR17V3xx and some Commtech
+	  422x PCIe serial cards that are not covered by the more generic
+	  SERIAL_8250_PCI option.
 
 config SERIAL_8250_HP300
 	tristate
Signature · 1 line
2.11.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Paul Gortmaker

In commit d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 ("serial: exar:
split out the exar code from 8250_pci") the exar driver got its own Kconfig. However the text for the new option was never changed from the original 8250_PCI text, and hence it appears confusing when you get asked the same question twice:

Quoted 9 lines

8250/16550 PCI device support (SERIAL_8250_PCI) [Y/n/m/?] (NEW)

    8250/16550 PCI device support (SERIAL_8250_EXAR) [Y/n/m] (NEW)

Adding to the confusion, is that there is no help text for this new option to indicate it is specific to a certain family of cards.

Fix both issues at the same time, as well as the space vs. tab issues introduced in the same commit.

Good catch!

Quoted 34 lines
Fixes d0aeaa83f0b0 ("serial: exar: split out the exar code from 8250_pci")
Cc Andy Shevchenko <[email protected]>
Cc Sudip Mukherjee <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jiri Slaby <[email protected]>
---
 drivers/tty/serial/8250/Kconfig | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/tty/serial/8250/Kconfig +6 -3
index a65fb8197aec..0e3f529d50e9 100644
@@ -128,9 +128,13 @@ config SERIAL_8250_PCI
          by the parport_serial driver, enabled with CONFIG_PARPORT_SERIAL.
 
 config SERIAL_8250_EXAR
-        tristate "8250/16550 PCI device support"
-        depends on SERIAL_8250_PCI
+       tristate "8250/16550 Exar/Commtech PCI/PCIe device support"
+       depends on SERIAL_8250_PCI
        default SERIAL_8250
+       help
+         This builds support for XR17C1xx, XR17V3xx and some Commtech
+         422x PCIe serial cards that are not covered by the more generic
+         SERIAL_8250_PCI option.
 
 config SERIAL_8250_HP300
        tristate
--

2.11.0

Signature · 2 lines
With Best Regards,
Andy Shevchenko
Acked-by on v1 1/1
#2 lore raw
In reply to Paul Gortmaker
Quoted 12 lines · Paul Gortmaker

In commit d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 ("serial: exar:
split out the exar code from 8250_pci") the exar driver got its own Kconfig. However the text for the new option was never changed from the original 8250_PCI text, and hence it appears confusing when you get asked the same question twice:

8250/16550 PCI device support (SERIAL_8250_PCI) [Y/n/m/?] (NEW)

    8250/16550 PCI device support (SERIAL_8250_EXAR) [Y/n/m] (NEW)

Adding to the confusion, is that there is no help text for this new option to indicate it is specific to a certain family of cards.

Quoted 6 lines

Fix both issues at the same time, as well as the space vs. tab issues introduced in the same commit.

Fixes d0aeaa83f0b0 ("serial: exar: split out the exar code from 8250_pci")
Cc Andy Shevchenko <[email protected]>
Cc Sudip Mukherjee <[email protected]>