From: Mark Brown <broonie@kernel.org>
To: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
Jonathan Cameron <jic23@kernel.org>,
Hartmut Knaack <knaack.h@gmx.de>,
Lars-Peter Clausen <lars@metafoo.de>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
linux-doc@vger.kernel.org, linux-spi@vger.kernel.org,
linux-iio@vger.kernel.org,
Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH 04/22] docs: spi: convert to ReST and add it to the kABI bookset
Date: Mon, 22 Jul 2019 16:21:10 +0100 [thread overview]
Message-ID: <20190722152110.GE4756@sirena.org.uk> (raw)
In-Reply-To: <20190722101035.4f61c1bf@coco.lan>
[-- Attachment #1: Type: text/plain, Size: 2640 bytes --]
On Mon, Jul 22, 2019 at 10:10:35AM -0300, Mauro Carvalho Chehab wrote:
> Mark Brown <broonie@kernel.org> escreveu:
> > On Mon, Jul 22, 2019 at 08:07:31AM -0300, Mauro Carvalho Chehab wrote:
> > > While there's one file there with briefily describes the uAPI,
> > > the documentation was written just like most subsystems: focused
> > > on kernel developers. So, add it together with driver-api books.
> > Please use subject lines matching the style for the subsystem. This
> > makes it easier for people to identify relevant patches.
> Sure. Do you prefer this prefixed by:
> spi: docs:
> Or with something else?
Anything starting with spi:
> > > Documentation/spi/{spidev => spidev.rst} | 30 +++--
> >
> > This is clearly a userspace focused document rather than a kernel
> > internal one.
>
> True. What I've been doing so far is, for all drivers that I'm converting
> with carries more than one documentation type (kABI, uABI and/or
> admin-guide) is to keep the directory as-is, adding them under
> this section at Documentation/index.rst:
>
> Kernel API documentation
> ------------------------
>
> That's the case of media, input, hwmon, and so many other subsystems.
> Yet, you're right: this implies that there will be some things
> to be done, as the long-term documentation should be like:
>
> Documentation/admin-guide/{media, input, hwmon, spi, ...}
> Documentation/userspace-api/{media, input, hwmon, spi, ...}
> Documentation/driver-api/{media, input, hwmon, spi, ...}
> Btw, if you look at spidev file, it contains stuff for both
> userspace-api:
>
> "SPI devices have a limited userspace API, supporting basic half-duplex
> read() and write() access to SPI slave devices. Using ioctl() requests,"
> And for admin-guide:
> "For a SPI device with chipselect C on bus B, you should see:
>
> /dev/spidevB.C ... character special device, major number 153 with
> a dynamically chosen minor device number. "
I think that split is higly artificial...
> So, if we're willing to move it, the best is to do on a separate patch
> with would split its contents into two files: admin-guide/spi-devices.rst and
> userspace-api/spi-api.rst.
...
> Ideally, we should split what's there at media/uapi into admin-guide
> and userspace-api, but this would mean *a lot* of efforts. Not sure
> if it is worth the effort.
Is the admin/API stuff even sensible for things that are more embedded
or desktop focused? It feels very arbatrary and unhelpful for things
like spidev where theuser is going to be writing a program.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-07-22 15:21 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-22 11:07 [PATCH 00/22] ReST conversion of text files without .txt extension Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 01/22] docs: convert markdown documents to ReST Mauro Carvalho Chehab
2019-07-22 15:11 ` Rob Herring
2019-07-22 11:07 ` [PATCH 03/22] docs: w1: convert to ReST and add to the kAPI group of docs Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 04/22] docs: spi: convert to ReST and add it to the kABI bookset Mauro Carvalho Chehab
2019-07-22 12:11 ` Mark Brown
2019-07-22 13:10 ` Mauro Carvalho Chehab
2019-07-22 15:21 ` Mark Brown [this message]
2019-07-22 15:51 ` Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 05/22] docs: ipmb: place it at driver-api and convert to ReST Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 06/22] docs: packing: move it to core-api book and adjust markups Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 07/22] docs: admin-guide: add auxdisplay files to it after conversion to ReST Mauro Carvalho Chehab
2019-07-22 19:41 ` Miguel Ojeda
2019-07-22 11:07 ` [PATCH 08/22] docs: README.buddha: convert to ReST and add to m68k book Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 09/22] docs: parisc: convert to ReST and add to documentation body Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 10/22] docs: openrisc: " Mauro Carvalho Chehab
2019-07-25 21:08 ` Stafford Horne
2019-07-22 11:07 ` [PATCH 11/22] docs: isdn: convert to ReST and add to kAPI bookset Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 12/22] docs: fs: cifs: convert to ReST and add to admin-guide book Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 13/22] docs: fs: convert docs without extension to ReST Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 14/22] docs: fs: convert porting " Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 15/22] docs: index.rst: don't use genindex for pdf output Mauro Carvalho Chehab
2019-07-25 13:44 ` Vinod Koul
2019-07-22 11:07 ` [PATCH 16/22] docs: wimax: convert to ReST and add to admin-guide Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 17/22] docs: mips: add to the documentation body as ReST Mauro Carvalho Chehab
2019-07-22 17:51 ` Paul Burton
2019-07-22 11:07 ` [PATCH 18/22] docs: hwmon: pxe1610: convert to ReST format and add to the index Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 19/22] docs: nios2: add it to the main Documentation body Mauro Carvalho Chehab
2019-07-22 11:07 ` [PATCH 20/22] docs: net: convert two README files to ReST format Mauro Carvalho Chehab
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=20190722152110.GE4756@sirena.org.uk \
--to=broonie@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=corbet@lwn.net \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=mchehab+samsung@kernel.org \
--cc=pmeerw@pmeerw.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).