Skip to contentSkip to conversation

serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support

PATCH In review Ian W MORRISON 4 participants 5 messages Oct 8, 2017 – Oct 9, 2017 2 messages not in the archive

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

PATCH v2 1/2 serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support

ACPI and DT both need SERIAL_DEV_CTRL_TTYPORT to work properly since SERIAL_DEV_CTRL_TTYPORT is the only controller implemented for serdev. This is only possible if serdev support is compiled in as the code hooks into TTY. Otherwise PM will silently break as the corresponding platform devices would no longer be registered and as the tty class device is also gone and hciattach (btattach) will also fail.

This patch set addresses this by making BT_HCIUART_BCM dependent on SERIAL_DEV_CTRL_TTYPORT which in turn is dependent on SERIAL_DEV_BUS and ensures that if SERIAL_DEV_BUS is selected is the code is build it.

---
 drivers/tty/serdev/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serdev/Kconfig +2 -2
index cdc6b820cf93..1144f4db5087 100644
@@ -2,7 +2,7 @@
 # Serial bus device driver configuration
 #
 menuconfig SERIAL_DEV_BUS
-	tristate "Serial device bus"
+	bool "Serial device bus"
 	help
 	  Core support for devices connected via a serial port.
 
@@ -11,6 +11,6 @@ if SERIAL_DEV_BUS
 config SERIAL_DEV_CTRL_TTYPORT
 	bool "Serial device TTY port controller"
 	depends on TTY
-	depends on SERIAL_DEV_BUS != m
+	depends on SERIAL_DEV_BUS
 
 endif
Signature · 1 line
2.11.0
maintainer
#1 lore raw
Quoted 3 lines · Ian W MORRISON

ACPI and DT both need SERIAL_DEV_CTRL_TTYPORT to work properly since SERIAL_DEV_CTRL_TTYPORT is the only controller implemented for serdev. This is only possible if serdev support is compiled in as the code hooks into TTY. Otherwise PM will silently break as the corresponding platform devices would no longer be registered and as the tty class device is also gone and hciattach (btattach) will also fail.

This patch set addresses this by making BT_HCIUART_BCM dependent on SERIAL_DEV_CTRL_TTYPORT which in turn is dependent on SERIAL_DEV_BUS and ensures that if SERIAL_DEV_BUS is selected is the code is build it.

Please properly line-wrap your changelog comments like your editor is asking you to do...

thanks,

greg k-h

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

On 10/8/17 6:26 PM, Greg KH wrote:
<snip>

Quoted 8 lines

Please properly line-wrap your changelog comments like your editor is asking you to do...

thanks,

greg k-h

Hi Greg,

Sorry, I had a brain snap. I purposely removed all the hard line feeds thinking I was sending an email with auto wrap completely forgetting that I was sending a patch with a changelog. I've resent them as v3.

Regards,
Ian

A message that is not in the archive (sent off-list or not yet received): 82b477ef-757a-c953-45e8-fd68b28286e5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#5 lore raw

PATCH v3 1/2 serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support

ACPI and DT both need SERIAL_DEV_CTRL_TTYPORT to work properly since SERIAL_DEV_CTRL_TTYPORT is the only controller implemented for serdev. This is only possible if serdev support is compiled in as the code hooks into TTY. Otherwise PM will silently break as the corresponding platform devices would no longer be registered and as the tty class device is also gone and hciattach (btattach) will also fail.

This patch set addresses this by making BT_HCIUART_BCM dependent on SERIAL_DEV_CTRL_TTYPORT which in turn is dependent on SERIAL_DEV_BUS and ensures that if SERIAL_DEV_BUS is selected is the code is build it.

---
 drivers/tty/serdev/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serdev/Kconfig +2 -2
index cdc6b820cf93..1144f4db5087 100644
@@ -2,7 +2,7 @@
 # Serial bus device driver configuration
 #
 menuconfig SERIAL_DEV_BUS
-	tristate "Serial device bus"
+	bool "Serial device bus"
 	help
 	  Core support for devices connected via a serial port.
 
@@ -11,6 +11,6 @@ if SERIAL_DEV_BUS
 config SERIAL_DEV_CTRL_TTYPORT
 	bool "Serial device TTY port controller"
 	depends on TTY
-	depends on SERIAL_DEV_BUS != m
+	depends on SERIAL_DEV_BUS
 
 endif
Signature · 1 line
2.11.0
#6 lore raw
Quoted 6 lines · Ian W MORRISON

ACPI and DT both need SERIAL_DEV_CTRL_TTYPORT to work properly since SERIAL_DEV_CTRL_TTYPORT is the only controller implemented for serdev. This is only possible if serdev support is compiled in as the code hooks into TTY. Otherwise PM will silently break as the corresponding platform devices would no longer be registered and as the tty class device is also gone and hciattach (btattach) will also fail.

You have quoted and a few us in the sentences above, but I'm afraid the end result is not correct (e.g. this patch has nothing to do with platform devices being registered or not).

Pleas try to explain why you think this change is necessary with your own words.

Quoted 3 lines

This patch set addresses this by making BT_HCIUART_BCM dependent on SERIAL_DEV_CTRL_TTYPORT which in turn is dependent on SERIAL_DEV_BUS and ensures that if SERIAL_DEV_BUS is selected is the code is build it.

This patch does not touch BT_HCIUART_BCM, so the above paragraph is more suited for a cover letter.

Also when resubmitting a patch series, make it self-contained rather than send individual patches in response to their earlier counterparts (which messes up threading).

Quoted 10 lines
---
 drivers/tty/serdev/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serdev/Kconfig +0 -0
index cdc6b820cf93..1144f4db5087 100644

drivers/tty/serdev/Kconfig line 5

Quoted 5 lines
drivers/tty/serdev/Kconfig +1 -1
@@ -2,7 +2,7 @@
 # Serial bus device driver configuration
 #
 menuconfig SERIAL_DEV_BUS
-	tristate "Serial device bus"
+	bool "Serial device bus"

So please explain why you think this is needed. I'm not sure it's necessary.

drivers/tty/serdev/Kconfig if SERIAL_DEV_BUS · line 16

Quoted 11 lines
drivers/tty/serdev/Kconfig +1 -1
 	help
 	  Core support for devices connected via a serial port.
 
@@ -11,6 +11,6 @@ if SERIAL_DEV_BUS
 config SERIAL_DEV_CTRL_TTYPORT
 	bool "Serial device TTY port controller"
 	depends on TTY
-	depends on SERIAL_DEV_BUS != m
+	depends on SERIAL_DEV_BUS
 
 endif

Johan