From: Russell King - ARM Linux admin Subject: Re: [PATCH v2] serial: sa1100: add note about modem control signals Date: Tue, 4 Jun 2019 12:16:05 +0100 Message-ID: <20190604111605.thwhicndrqmy7rlx@shell.armlinux.org.uk> References: <20190531155700.crrawgf3iot2sm2t@shell.armlinux.org.uk> <20190531212702.cmqbaqwdybgkb3ug@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20190531212702.cmqbaqwdybgkb3ug@pengutronix.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Jiri Slaby List-Id: linux-serial@vger.kernel.org On Fri, May 31, 2019 at 11:27:02PM +0200, Uwe Kleine-K=F6nig wrote: > Hello Russell, > = > On Fri, May 31, 2019 at 05:01:42PM +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=F6nig > > Signed-off-by: Russell King > > --- > > drivers/tty/serial/sa1100.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > = > > diff --git a/drivers/tty/serial/sa1100.c b/drivers/tty/serial/sa1100.c > > index 97bdfeccbea9..8e618129e65c 100644 > > --- a/drivers/tty/serial/sa1100.c > > +++ b/drivers/tty/serial/sa1100.c > > @@ -860,6 +860,10 @@ static int sa1100_serial_resume(struct platform_de= vice *dev) > > static int sa1100_serial_add_one_port(struct sa1100_port *sport, struc= t platform_device *dev) > > { > > sport->port.dev =3D &dev->dev; > > + > > + // mctrl_gpio_init() requires that the GPIO driver supports interrupt= s, > > + // but we need to support GPIO drivers for hardware that has no such > > + // interrupts. Use mctrl_gpio_init_noauto() instead. > = > I hope it's not an impostor who claimed to be Linus to spread deviance > from K&R :-) > = > Acked-by: Uwe Kleine-K=F6nig > = > If you want to, squash this in the commit that introduced > mctrl_gpio_init_noauto while keeping my Ack on the resulting patch. I'd prefer to keep it separate to avoid invalidating the acks that I already have on the first patch. -- = 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