From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH 08/10] serdev: add serdev_device_get_cts Date: Tue, 7 Mar 2017 10:03:37 -0600 Message-ID: References: <20170304115833.3538-1-sre@kernel.org> <20170304115833.3538-9-sre@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20170304115833.3538-9-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: linux-bluetooth-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sebastian Reichel Cc: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , Tony Lindgren , Greg Kroah-Hartman , Jiri Slaby , Mark Rutland , "open list:BLUETOOTH DRIVERS" , "linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: devicetree@vger.kernel.org On Sat, Mar 4, 2017 at 5:58 AM, Sebastian Reichel wrote: > Add method to get current CTS line state. > > Signed-off-by: Sebastian Reichel > --- > drivers/tty/serdev/core.c | 11 +++++++++++ > drivers/tty/serdev/serdev-ttyport.c | 15 +++++++++++++++ > include/linux/serdev.h | 6 ++++++ > 3 files changed, 32 insertions(+) > > diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c > index a63b74031e22..36eb3dfb1477 100644 > --- a/drivers/tty/serdev/core.c > +++ b/drivers/tty/serdev/core.c > @@ -184,6 +184,17 @@ void serdev_device_wait_until_sent(struct serdev_device *serdev, long timeout) > } > EXPORT_SYMBOL_GPL(serdev_device_wait_until_sent); > > +bool serdev_device_get_cts(struct serdev_device *serdev) I wonder if this should just be the wait for cts in the core. I think that would be the common use for reading the CTS state. IIRC, I saw some other device needing the same thing. Rob