From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-serial@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Jiri Slaby <jslaby@suse.com>
Subject: Re: [PATCH] serial: sa1100: add note about modem control signals
Date: Fri, 31 May 2019 16:57:00 +0100 [thread overview]
Message-ID: <20190531155700.crrawgf3iot2sm2t@shell.armlinux.org.uk> (raw)
In-Reply-To: <20190531153135.sboekptwx4jxlpeg@pengutronix.de>
On Fri, May 31, 2019 at 05:31:35PM +0200, Uwe Kleine-König wrote:
> Hello Russell,
>
> On Fri, May 31, 2019 at 04:24:04PM +0100, Russell King wrote:
> > As suggested by Uwe, add a note indicating that the modem control
> > signals do not support interrupts, which precludes the driver from
> > using mctrl_gpio_init().
> >
> > Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
> > ---
> >
> > Uwe, something like this?
> >
> > drivers/tty/serial/sa1100.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/tty/serial/sa1100.c b/drivers/tty/serial/sa1100.c
> > index a6b4309b62fc..d7dbf0576be8 100644
> > --- a/drivers/tty/serial/sa1100.c
> > +++ b/drivers/tty/serial/sa1100.c
> > @@ -949,6 +949,9 @@ static int sa1100_serial_resume(struct platform_device *dev)
> > static int sa1100_serial_add_one_port(struct sa1100_port *sport, struct platform_device *dev)
> > {
> > sport->port.dev = &dev->dev;
> > +
> > + // GPIO driver does not support interrupts for these modem
> > + // control signals, so the serial driver polls them.
> > sport->gpios = mctrl_gpio_init_noauto(sport->port.dev, 0);
> > if (IS_ERR(sport->gpios)) {
> > int err = PTR_ERR(sport->gpios);
>
> I would mention that because of this mctrl_gpio_init cannot be used.
Ok.
> (And I would have expected C-like comments).
It seems that Linus has changed his opinion on C99 commenting style,
from "it's not real C" to "I prefer it":
https://lore.kernel.org/patchwork/patch/852060/
Yes, this is mostly about the SPDX commenting style, but Linus seems to
be expressing a general preference towards "//" style comments over
"/* */" comments, especially for new comments.
Specifically see replies #14 and #18, especially #18 where the
discussion moves towards trailing-line comments for structure members.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
WARNING: multiple messages have this Message-ID (diff)
From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-serial@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Jiri Slaby <jslaby@suse.com>
Subject: Re: [PATCH] serial: sa1100: add note about modem control signals
Date: Fri, 31 May 2019 16:57:00 +0100 [thread overview]
Message-ID: <20190531155700.crrawgf3iot2sm2t@shell.armlinux.org.uk> (raw)
In-Reply-To: <20190531153135.sboekptwx4jxlpeg@pengutronix.de>
On Fri, May 31, 2019 at 05:31:35PM +0200, Uwe Kleine-König wrote:
> Hello Russell,
>
> On Fri, May 31, 2019 at 04:24:04PM +0100, Russell King wrote:
> > As suggested by Uwe, add a note indicating that the modem control
> > signals do not support interrupts, which precludes the driver from
> > using mctrl_gpio_init().
> >
> > Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
> > ---
> >
> > Uwe, something like this?
> >
> > drivers/tty/serial/sa1100.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/tty/serial/sa1100.c b/drivers/tty/serial/sa1100.c
> > index a6b4309b62fc..d7dbf0576be8 100644
> > --- a/drivers/tty/serial/sa1100.c
> > +++ b/drivers/tty/serial/sa1100.c
> > @@ -949,6 +949,9 @@ static int sa1100_serial_resume(struct platform_device *dev)
> > static int sa1100_serial_add_one_port(struct sa1100_port *sport, struct platform_device *dev)
> > {
> > sport->port.dev = &dev->dev;
> > +
> > + // GPIO driver does not support interrupts for these modem
> > + // control signals, so the serial driver polls them.
> > sport->gpios = mctrl_gpio_init_noauto(sport->port.dev, 0);
> > if (IS_ERR(sport->gpios)) {
> > int err = PTR_ERR(sport->gpios);
>
> I would mention that because of this mctrl_gpio_init cannot be used.
Ok.
> (And I would have expected C-like comments).
It seems that Linus has changed his opinion on C99 commenting style,
from "it's not real C" to "I prefer it":
https://lore.kernel.org/patchwork/patch/852060/
Yes, this is mostly about the SPDX commenting style, but Linus seems to
be expressing a general preference towards "//" style comments over
"/* */" comments, especially for new comments.
Specifically see replies #14 and #18, especially #18 where the
discussion moves towards trailing-line comments for structure members.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-05-31 15:57 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 11:12 [PATCH 0/6] Convert sa1100 serial to use mctrl gpios Russell King - ARM Linux admin
2019-05-31 11:12 ` Russell King - ARM Linux admin
2019-05-31 11:13 ` [PATCH 1/6] serial: sa1100: add support for " Russell King
2019-05-31 11:13 ` Russell King
2019-05-31 12:50 ` Uwe Kleine-König
2019-05-31 12:50 ` Uwe Kleine-König
2019-05-31 13:23 ` Russell King - ARM Linux admin
2019-05-31 13:23 ` Russell King - ARM Linux admin
2019-05-31 13:56 ` Uwe Kleine-König
2019-05-31 13:56 ` Uwe Kleine-König
2019-05-31 14:01 ` Russell King - ARM Linux admin
2019-05-31 14:01 ` Russell King - ARM Linux admin
2019-05-31 15:10 ` Uwe Kleine-König
2019-05-31 15:10 ` Uwe Kleine-König
2019-05-31 15:24 ` [PATCH] serial: sa1100: add note about modem control signals Russell King
2019-05-31 15:24 ` Russell King
2019-05-31 15:31 ` Uwe Kleine-König
2019-05-31 15:31 ` Uwe Kleine-König
2019-05-31 15:57 ` Russell King - ARM Linux admin [this message]
2019-05-31 15:57 ` Russell King - ARM Linux admin
2019-05-31 16:01 ` [PATCH v2] " Russell King
2019-05-31 21:27 ` Uwe Kleine-König
2019-05-31 21:27 ` Uwe Kleine-König
2019-06-04 11:16 ` Russell King - ARM Linux admin
2019-06-04 11:16 ` Russell King - ARM Linux admin
2019-05-31 11:13 ` [PATCH 2/6] ARM: sa1100/assabet: convert serial to gpiod APIs Russell King
2019-05-31 11:13 ` Russell King
2019-05-31 11:13 ` [PATCH 3/6] ARM: sa1100/h3xxx: " Russell King
2019-05-31 11:13 ` Russell King
2019-05-31 11:14 ` [PATCH 4/6] ARM: sa1100/badge4: remove commented out modem control initialisers Russell King
2019-05-31 11:14 ` Russell King
2019-05-31 11:14 ` [PATCH 5/6] ARM: sa1100/hackkit: remove empty serial mctrl functions Russell King
2019-05-31 11:14 ` Russell King
2019-05-31 11:14 ` [PATCH 6/6] ARM: sa1100/neponset: convert serial to use gpiod APIs Russell King
2019-05-31 11:14 ` Russell King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190531155700.crrawgf3iot2sm2t@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-serial@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.