Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1594395

Re: [PATCH 08/10] serdev: add serdev_device_get_cts

From Rob Herring <robh+dt@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 08/10] serdev: add serdev_device_get_cts
Date 2017-03-07 17:10 +0100
Message-ID <tipQv-1uF-49@gated-at.bofh.it> (permalink)
References <thgFz-sD-7@gated-at.bofh.it> <thgFz-sD-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Mar 4, 2017 at 5:58 AM, Sebastian Reichel <sre@kernel.org> wrote:
> Add method to get current CTS line state.
>
> Signed-off-by: Sebastian Reichel <sre@kernel.org>
> ---
>  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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 08/10] serdev: add serdev_device_get_cts Sebastian Reichel <sre@kernel.org> - 2017-03-04 13:10 +0100
  Re: [PATCH 08/10] serdev: add serdev_device_get_cts Rob Herring <robh+dt@kernel.org> - 2017-03-07 17:10 +0100
    Re: [PATCH 08/10] serdev: add serdev_device_get_cts Sebastian Reichel <sre@kernel.org> - 2017-03-07 22:30 +0100
      Re: [PATCH 08/10] serdev: add serdev_device_get_cts Rob Herring <robh+dt@kernel.org> - 2017-03-08 16:20 +0100

csiph-web