* [PATCH v2 1/2] serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support
@ 2017-10-08 3:20 Ian W MORRISON
2017-10-08 7:26 ` Greg KH
[not found] ` <82b477ef-757a-c953-45e8-fd68b28286e5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 2 replies; 5+ messages in thread
From: Ian W MORRISON @ 2017-10-08 3:20 UTC (permalink / raw)
To: Marcel Holtmann, Johan Hovold, Gustavo F. Padovan, Johan Hedberg,
bluez mailin list (linux-bluetooth@vger.kernel.org), hdegoede,
frederic.danis.oss, robh, sre, Loic Poulain, lukas, linux-serial,
linux-acpi, rafael, Greg Kroah-Hartman
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.
Signed-off-by: Ian W MORRISON <ianwmorrison@gmail.com>
---
drivers/tty/serdev/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serdev/Kconfig b/drivers/tty/serdev/Kconfig
index cdc6b820cf93..1144f4db5087 100644
--- a/drivers/tty/serdev/Kconfig
+++ b/drivers/tty/serdev/Kconfig
@@ -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
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support
2017-10-08 3:20 [PATCH v2 1/2] serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support Ian W MORRISON
@ 2017-10-08 7:26 ` Greg KH
[not found] ` <20171008072655.GA3444-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
[not found] ` <82b477ef-757a-c953-45e8-fd68b28286e5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2017-10-08 7:26 UTC (permalink / raw)
To: Ian W MORRISON
Cc: Marcel Holtmann, Johan Hovold, Gustavo F. Padovan, Johan Hedberg,
bluez mailin list (linux-bluetooth@vger.kernel.org), hdegoede,
frederic.danis.oss, robh, sre, Loic Poulain, lukas, linux-serial,
linux-acpi, rafael
On Sun, Oct 08, 2017 at 02:20:07PM +1100, Ian W MORRISON wrote:
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 1/2] serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support
[not found] ` <82b477ef-757a-c953-45e8-fd68b28286e5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-10-09 0:43 ` Ian W MORRISON
2017-10-09 7:54 ` Johan Hovold
0 siblings, 1 reply; 5+ messages in thread
From: Ian W MORRISON @ 2017-10-09 0:43 UTC (permalink / raw)
To: Marcel Holtmann, Johan Hovold, Gustavo F. Padovan, Johan Hedberg,
bluez mailin list (linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
hdegoede-H+wXaHxf7aLQT0dZR+AlfA,
frederic.danis.oss-Re5JQEeQqe8AvxtiuMwx3w,
robh-DgEjT+Ai2ygdnm+yROfE0A, sre-DgEjT+Ai2ygdnm+yROfE0A,
Loic Poulain, lukas-JFq808J9C/izQB+pC5nmwQ,
linux-serial-u79uwXL29TY76Z2rM5mHXA,
linux-acpi-u79uwXL29TY76Z2rM5mHXA, rafael-DgEjT+Ai2ygdnm+yROfE0A,
Greg Kroah-Hartman
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.
Signed-off-by: Ian W MORRISON <ianwmorrison-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/tty/serdev/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serdev/Kconfig b/drivers/tty/serdev/Kconfig
index cdc6b820cf93..1144f4db5087 100644
--- a/drivers/tty/serdev/Kconfig
+++ b/drivers/tty/serdev/Kconfig
@@ -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
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support
[not found] ` <20171008072655.GA3444-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
@ 2017-10-09 0:43 ` Ian W MORRISON
0 siblings, 0 replies; 5+ messages in thread
From: Ian W MORRISON @ 2017-10-09 0:43 UTC (permalink / raw)
To: Greg KH
Cc: Marcel Holtmann, Johan Hovold, Gustavo F. Padovan, Johan Hedberg,
bluez mailin list (linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
hdegoede-H+wXaHxf7aLQT0dZR+AlfA,
frederic.danis.oss-Re5JQEeQqe8AvxtiuMwx3w,
robh-DgEjT+Ai2ygdnm+yROfE0A, sre-DgEjT+Ai2ygdnm+yROfE0A,
Loic Poulain, lukas-JFq808J9C/izQB+pC5nmwQ,
linux-serial-u79uwXL29TY76Z2rM5mHXA,
linux-acpi-u79uwXL29TY76Z2rM5mHXA, rafael-DgEjT+Ai2ygdnm+yROfE0A
On 10/8/17 6:26 PM, Greg KH wrote:
<snip>
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 1/2] serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support
2017-10-09 0:43 ` [PATCH v3 " Ian W MORRISON
@ 2017-10-09 7:54 ` Johan Hovold
0 siblings, 0 replies; 5+ messages in thread
From: Johan Hovold @ 2017-10-09 7:54 UTC (permalink / raw)
To: Ian W MORRISON
Cc: Marcel Holtmann, Johan Hovold, Gustavo F. Padovan, Johan Hedberg,
bluez mailin list (linux-bluetooth@vger.kernel.org), hdegoede,
frederic.danis.oss, robh, sre, Loic Poulain, lukas, linux-serial,
linux-acpi, rafael, Greg Kroah-Hartman
On Mon, Oct 09, 2017 at 11:43:19AM +1100, Ian W MORRISON wrote:
> 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.
> 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).
> Signed-off-by: Ian W MORRISON <ianwmorrison@gmail.com>
> ---
> drivers/tty/serdev/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/tty/serdev/Kconfig b/drivers/tty/serdev/Kconfig
> index cdc6b820cf93..1144f4db5087 100644
> --- a/drivers/tty/serdev/Kconfig
> +++ b/drivers/tty/serdev/Kconfig
> @@ -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.
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-10-09 7:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-08 3:20 [PATCH v2 1/2] serdev: Update drivers/tty/serdev/Kconfig for ACPI serdev support Ian W MORRISON
2017-10-08 7:26 ` Greg KH
[not found] ` <20171008072655.GA3444-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2017-10-09 0:43 ` Ian W MORRISON
[not found] ` <82b477ef-757a-c953-45e8-fd68b28286e5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-10-09 0:43 ` [PATCH v3 " Ian W MORRISON
2017-10-09 7:54 ` Johan Hovold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).