Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp442902rdb; Mon, 22 Jan 2024 08:52:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwcPqh4HP/JGDq6lNTgdFRAuF6du8uO5vAIRWJ7c0BQKIDqt/affSuFeCG2roU41RRn92W X-Received: by 2002:a05:6e02:1c0d:b0:362:88bd:831b with SMTP id l13-20020a056e021c0d00b0036288bd831bmr47994ilh.19.1705942350035; Mon, 22 Jan 2024 08:52:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705942350; cv=pass; d=google.com; s=arc-20160816; b=axbCUx/Jq2zNZgsdSEAclRuSJCbKViMMVqHk5UDixI44s9PC9UozjC7GAzI/7sxUII RqowDZLUgt6Rcd6NckCaR/8+aRfD3ZQAXDiixh+eYdwJ3nm4HWpJYVwYfAXOxwhX8Mvn 6WD2gBK+69Y2v8jGAHOZqcbpbGwptEtnID2YBELkqUhci33pkPjpjgwxHNNQZisEm3aO irHlbOyqiu8bKplGwVpWNmybwvraTTPPEjVMH+T4KbCGP6/DFDpGUDHwomkBlUaoy+7r HCk0KK2TU9TJseLCMqn71NulpuE8/5j5rAke4G2pzh5KNlxEXot74boft9GEcCgX8LGc cxGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=d3NX2zTIiUHCv4VYTn24Y9a1KjUPwQyHtr/3ARaL0OE=; fh=+Op2alXkAhQBo+5f7zpv9u26fz4KJM5QZ7+xHPW6JtQ=; b=qUaiNd9d5qAtyWxy6ga2Uk9pMs4xGEFQUoT8ft2JN1V9rrZwg9cfnHsVkE0qlu8UAJ xn83LYKcsT3Yr3TyOzDjxEbiAfbpdH6V1JlidmiQmlqEOycQZPUApITuik0vQozwCdgh TiYcLE9bnJFFjcUxZVLCmDae7BaLtTrnhitUkUaWyA6W+etYcixkRU1NL9nSPaZ4yU5y d/wdC/Ez8znmrqNp0mDJAgwSb41oNdNV5JwkfJGFjDy7/cXtCsK/OF9zFk7Kg0Jg0TAj HmivcZGmxH7ngfUrLI9nAm5DT3pRYFAkDg1IQZsH5CpcAGJZUc6nKIJHublsX+mJJeqm EPBg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=V4mrcj1d; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-32668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32668-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h34-20020a631222000000b005c6045987a1si8254786pgl.7.2024.01.22.08.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 08:52:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=V4mrcj1d; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-32668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32668-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 68A5028163F for ; Mon, 22 Jan 2024 09:51:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F36A39FE6; Mon, 22 Jan 2024 09:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="V4mrcj1d" Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB6E5DDB8 for ; Mon, 22 Jan 2024 09:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705917015; cv=none; b=p6Gy2sF0P6z2aK+ror3I3n2dvGcO0e3uB0q0f6iYrSraiQM/Zr+bGIdk7MJrqJSFBZhFCTnmEFPaGkS/AdorgsIHTa+cCtyEiqeV1H9x+9KE6Q2GnhztP+JZPa/dwx7W5d8KSK03fMgQBzm5DVQnWkW/iANgdYiYv4WHnWtVTyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705917015; c=relaxed/simple; bh=ZXlG0hrIQ9hV/XH8uPY9MP151/A3X5mK2x42WSdRHuw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=eETWyi/JXkzR/u9YCZ7qX8puqClpQoT/pldvoIWn6fUjLbo/JyCmV1m+My9TF1y3s0WrEn+1V9U8XdQCHupJrSezaaEcuwLFQBONMDL6AyAg1dxrtG+z3fWPYhJsZNVqm7fsdmhk+7HopkCKD9Ftep1dR6rjxandL8BcoAS5Lx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=V4mrcj1d; arc=none smtp.client-ip=209.85.217.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-vs1-f50.google.com with SMTP id ada2fe7eead31-469b79d0efdso102167137.3 for ; Mon, 22 Jan 2024 01:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1705917013; x=1706521813; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d3NX2zTIiUHCv4VYTn24Y9a1KjUPwQyHtr/3ARaL0OE=; b=V4mrcj1duGGbnD8yyCHjqBxawhHlqf0DThEhVTzU4w/qf8+Im4xpK0jFJmeW2r7v0+ v39OuE2EHWkRU8DAmtdzQrXcmJdDho34bZQ5Oui79CyjTaAMoPencdAM0fGG4m7CdZ+I Xg5a5P6BmeW6B3RzVlw0mPHr8bimBIM/T1U9KbgWV2UYrmCAuL37nJxIeEgcKZUrJ+0W 4v8CrS3VaqdBE0UvKA5CA7/nZvN+TwBJ0h8ebjq0wue2sOs5xojbviThZs39DOQg5mTj szzerbrXlf2tYspYS5rW8knto3bTazLP6TVyY1nRo1UwIPKNkvbMBo1m7VcqMws0lx8z MWcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705917013; x=1706521813; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d3NX2zTIiUHCv4VYTn24Y9a1KjUPwQyHtr/3ARaL0OE=; b=Lvl8cqeTER4zYlk4/aTRoOh9/rPB4xAHmkLTmGnNo48lwwTjnFe1ZTBFseSwHXQLLe SbqKWOYYIvXSxooqqRtJMyWd+7crPcmWmH4v0voSLO52GYPh1BBl+7GM/YASpHzIhiwB XHzjrqXCi6LjIZutd/cdtDZdHw2RZEwbYJMvwwjKtuGAc7AKzjW357GPoaPU7BgfQX52 EH6dtW+kGfwcg/VtS2o+TOvHnpYRigsUPmv4fTgh0fydO0Yy65EC3T8a1Qy/Ob7Zk/7K lzYPIzcuDte6Bg06faKAix0dXEyJ7SgWxBIRYnn1sRjJxbaoXLlG+ZOyc/91H0crpI19 knZQ== X-Gm-Message-State: AOJu0YwXCJuHtM8CdYiF0MzPtEdvdcCItN/HsgA5P6uDii1Xxj/0xYCB P0eCEpZGTjRNVs73oaIFAdCX3TNUqRHml+A0ZHXUWJ3274fbxwdtukUPp9E/6CIGrkw9/shE0kY F4DGR4eKpCJWZkD3fKnYiYGBoPIdIy4W1+EgSVA== X-Received: by 2002:a67:fdce:0:b0:467:f13f:79f2 with SMTP id l14-20020a67fdce000000b00467f13f79f2mr1484297vsq.13.1705917012766; Mon, 22 Jan 2024 01:50:12 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240115004847.22369-1-warthog618@gmail.com> In-Reply-To: <20240115004847.22369-1-warthog618@gmail.com> From: Bartosz Golaszewski Date: Mon, 22 Jan 2024 10:50:02 +0100 Message-ID: Subject: Re: [PATCH v2 0/9] Documentation: gpio: add character device userspace API documentation To: Kent Gibson Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linus.walleij@linaro.org, andy@kernel.org, corbet@lwn.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 15, 2024 at 1:49=E2=80=AFAM Kent Gibson = wrote: > > My new year's resolution was to improve the documentation of the > character device API and gpio in general, so here we are. > > Wrt the formatting and file breakdown, I've taken inspiration from > the userspace-api/media documentation. > > Patch 1 adds documentation for the current chardev uAPI. I've added > it to the userspace-api book, as that is the most obvious place a > reader would look for it, but have also provided links from the > admin-guide book where the gpio docs currently reside. > > I realise MAINTAINERS should be updated with > Documentation/userspace-api/gpio/, but the split out of GPIO UAPI > hasn't made it into gpio/for-next yet, so I was unsure of how to > handle that. > > Patch 2 updates the gpio-cdev ABI documentation to reference the > chardev documentation as well as gpio.h. > > Patch 3 updates the sysfs-gpio ABI documentation to reference the > gpio-cdev ABI that obsoletes it. > > Patch 4 relocates the sysfs API doc to stress its deprecation by > moving it to a new obsolete section, again in userspace-api but > with a similar section in the admin-guide. The obsolete section > also serves as a placeholder for subsequent changes. > > Patch 5 updates the sysfs API doc to reference the chardev > documentation rather than gpio.h and make use of reST formatting. > > Patch 6 adds documentation for the obsolete v1 version of the > chardev uAPI. It is obsolete, but still useful to have, if > nothing else to help identify the differences between v1 and v2. > > Patch 7 capitalizes the title of the admin-guide/gpio to match > the other subsystems and the userspace-api book. > > Patch 8 adds an obsolescence note to the gpio-mockup, as it is > obsoleted by the gpio-sim. > > Patch 9 moves the gpio-mockup doc into the obsolete section. > > I've got some minor updates for the kernel doc in gpio.h as well, > but they make sense on their own so I've sent those separately > to keep the cross-posting to a minimum. > > I realise the only thing less exciting than writing documentation > is reviewing it, so my apologies and thanks in advance if you > have the fortitude to attempt such a scintillating endeavour. > Not all heroes wear capes. Thanks for doing this Kent! Queued the series for v6.9. [snip]