All of lore.kernel.org
 help / color / mirror / Atom feed
From: Viresh Kumar <viresh.kumar@linaro.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "Jason Wang" <jasowang@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Arnd Bergmann" <arnd@kernel.org>,
	"Cornelia Huck" <cohuck@redhat.com>,
	"Bartosz Golaszewski" <bgolaszewski@baylibre.com>,
	"Vincent Guittot" <vincent.guittot@linaro.org>,
	"Jean-Philippe Brucker" <jean-philippe@linaro.org>,
	"Bill Mills" <bill.mills@linaro.org>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Enrico Weigelt, metux IT consult" <info@metux.net>,
	virtio-dev@lists.oasis-open.org,
	"Geert Uytterhoeven" <geert@linux-m68k.org>,
	stratos-dev@op-lists.linaro.org
Subject: Re: [PATCH V7 1/2] virtio-gpio: Add the device specification
Date: Thu, 29 Jul 2021 09:17:20 +0530	[thread overview]
Message-ID: <20210729034720.qadiqugbg7dzhs5c@vireshk-i7> (raw)
In-Reply-To: <CACRpkda6RUPD+xbwtJNUuC6Wvov84hKY6-+KD4oUsGX0++k=SA@mail.gmail.com>

On 28-07-21, 14:56, Linus Walleij wrote:
> overall this looks good, with the minor nits pointed out:
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Thanks.

> On Wed, Jul 28, 2021 at 1:11 PM Viresh Kumar <viresh.kumar@linaro.org> wrote:
> 
> > +\subsubsection{requestq Operation: Get Direction}\label{sec:Device Types / GPIO Device / requestq Operation / Get Direction}
> > +
> > +The driver sends this message to request the device to return a line's
> > +configured direction.
> > +
> > +\begin{tabularx}{\textwidth}{ |l||X|X|X| }
> > +\hline
> > +\textbf{Request} & \field{type} & \field{gpio} & \field{value} \\
> > +\hline
> > +& \field{VIRTIO_GPIO_MSG_GET_DIRECTION} & line number & 0 \\
> > +\hline
> > +\end{tabularx}
> > +
> > +\begin{tabularx}{\textwidth}{ |l||X|X|X| }
> > +\hline
> > +\textbf{Response} & \field{status} & \field{value[N]} & \field{Where N is} \\
> > +\hline
> > +    & \field{VIRTIO_GPIO_STATUS_*} & \field{VIRTIO_GPIO_DIRECTION_*} & 1 \\
> > +\hline
> > +\end{tabularx}
> 
> Is it clearly defined which value of VIRTIO_GPIO_DIRECTION_[IN|OUT]
> mean "input" and which value means "output"? Else add some text
> clarifying this.

+/* GPIO Direction types */
+#define VIRTIO_GPIO_DIRECTION_NONE              0x00
+#define VIRTIO_GPIO_DIRECTION_OUT               0x01
+#define VIRTIO_GPIO_DIRECTION_IN                0x02

Not sure if you missed this.

Were you looking for this or some text saying
"VIRTIO_GPIO_DIRECTION_IN means direction-input", which looked self
explanatory to me at least, though I can surely add it anyway.

-- 
viresh


  reply	other threads:[~2021-07-29  3:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-28 11:11 [PATCH V7 0/2] virtio: Add specification for virtio-gpio Viresh Kumar
2021-07-28 11:11 ` [virtio-dev] [PATCH V7 1/2] virtio-gpio: Add the device specification Viresh Kumar
2021-07-28 11:26   ` Arnd Bergmann
2021-07-29  3:44     ` Viresh Kumar
2021-07-28 12:56   ` Linus Walleij
2021-07-29  3:47     ` Viresh Kumar [this message]
2021-07-29 11:33       ` Linus Walleij
2021-07-28 11:11 ` [PATCH V7 2/2] virtio-gpio: Add support for interrupts Viresh Kumar
2021-07-28 12:05   ` Arnd Bergmann
2021-07-29  5:40     ` Viresh Kumar
2021-07-29  7:45       ` Arnd Bergmann
2021-07-29  8:45         ` Viresh Kumar
2021-07-29  9:26           ` Arnd Bergmann
2021-07-29 10:59     ` Viresh Kumar
2021-07-29 11:39       ` Arnd Bergmann
2021-07-29 11:47         ` Viresh Kumar
2021-07-28 12:58   ` Linus Walleij
2021-07-28 11:16 ` [PATCH V7 0/2] virtio: Add specification for virtio-gpio Arnd Bergmann

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=20210729034720.qadiqugbg7dzhs5c@vireshk-i7 \
    --to=viresh.kumar@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=arnd@kernel.org \
    --cc=bgolaszewski@baylibre.com \
    --cc=bill.mills@linaro.org \
    --cc=cohuck@redhat.com \
    --cc=geert@linux-m68k.org \
    --cc=info@metux.net \
    --cc=jasowang@redhat.com \
    --cc=jean-philippe@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=mst@redhat.com \
    --cc=stratos-dev@op-lists.linaro.org \
    --cc=vincent.guittot@linaro.org \
    --cc=virtio-dev@lists.oasis-open.org \
    /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.