Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2007700rdd; Thu, 11 Jan 2024 17:03:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFql1wJ7lgAoz5EzWIb875pqA7hvP+Sbg11uoDhXHdacD4pxwjWGqT4rwjn+xqCzkzjBkBs X-Received: by 2002:a17:903:40c1:b0:1d5:2b3:5feb with SMTP id t1-20020a17090340c100b001d502b35febmr186413pld.133.1705021404159; Thu, 11 Jan 2024 17:03:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705021404; cv=none; d=google.com; s=arc-20160816; b=A+OiusiHXVdnd42a8DJ3Qa4ihL+cw6kQATdRmpGJQgfEQ9+Ox4Nuxfly6bKMBbC/T0 QOE4eb5F8N9zmtr5uydKO9BJqfer1Qeh1QBGTORwr585ZoHAjndvC1cFhi0EZFsOlFD7 CqLOEQqYk7yB07r9paOWNO6NcIKZMnRP4cG2y0cM0Fnt6WyGi2H41FzT75hqXTsXxGZ/ I8BW0cijqHpz73e6i9FVtHEo0Ynnlrd4AQRsAK78ZqWf+aod2nwulr2tK0GEg26txbm7 lin5EtCNuDGzkZWoOZDkOjshCn8mULNVJQRudvXjWQDexRgvEvAg6l7c5mDxrKR0DjUs YvEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=j3XdDa+qFVErTyo59RgwEE3EAEc/YkpJSsj4wu519lQ=; fh=sa4zWunoeYHoTn/J1DuHuqZiiBB7v0Cr16cZHtHJ9N4=; b=rqoeodk5Ifvn2fn/Nx1raO87qmT+3oED5JT6Hk9kxHwhBWKfvx/E8i/RkpIka69ill laqwNvvXdncdV1tkNBXZ4+HgsYtbaNFm0PsFkzqyQBw+KSljxyiOF+CPxAVYCzF0qhka 52y17zaPqFxAErP0JA76KHqGWrQ24zXfoRM5fvGWm02aJSxDd7/GNIt/AZcdX5CRX/Qq yOn91RzUN/wGIIi9d5Gbhp2wGGxeL0ttLE3ddiSBG6AMLdaWDUxhtQ5/WRk3XWPAOuh6 7lC6Yuhs++YYO1AABn0Lxm0GAhRNQTc5QF/SpRJKLLypSC2ZBDjFApV7WaVt3qujSR1n ZliQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ru6YBIHM; spf=pass (google.com: domain of linux-kernel+bounces-24197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ku5-20020a170903288500b001d471956c39si2156997plb.23.2024.01.11.17.03.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 17:03:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24197-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=@gmail.com header.s=20230601 header.b=Ru6YBIHM; spf=pass (google.com: domain of linux-kernel+bounces-24197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 CA015286539 for ; Fri, 12 Jan 2024 01:03:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76202ED1; Fri, 12 Jan 2024 01:03:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ru6YBIHM" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 5425FA3F; Fri, 12 Jan 2024 01:03:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1d4a2526a7eso36039675ad.3; Thu, 11 Jan 2024 17:03:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705021394; x=1705626194; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=j3XdDa+qFVErTyo59RgwEE3EAEc/YkpJSsj4wu519lQ=; b=Ru6YBIHMoDsVVICzEcoGXLAbRh7sg8/c+cP0l4Cv+9MJOWe5d/gBv+FVkcYWWCAzz+ xyMDfKVE8hIaXGx8tjsC6Jw1zxZrd82ryzj4VaFp8pDvjozR8SSry3y8xhZspVG+GAaz 5cPJzjbLS+KH3vBNRqn66c9cj11jXnNINxbsOav1Ov6sST5A+xE+4uOgIBY+F/PN9kUW r1xvsDusyCJmgfngnHhhFXidkvMjp32Z3jNiE+EVYcIC6dWNjrL2ITPICRtr4j3EoShC jtl3G0U4DEyZrLGcB4ElJyRym+swDkurBNzxY1UGHGk64CQW84UgMQzQosiI5SSNJHGk ZERQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705021394; x=1705626194; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j3XdDa+qFVErTyo59RgwEE3EAEc/YkpJSsj4wu519lQ=; b=HlsjwD7p9J9aXNX5+voR4F2eJQgJmrVoUDKrcpomUuG8yMvDEs70yXR1k3P6ES+C2T AiDO2fk2JhPYPWvLJvPdcrCYwGYAs2l8qwm26RQTIaxD8LOSlja78mOcjyQbKb0JYizg M3EvVuoWeR6qqX9MJbxhb87GsD3ZAxkkeu3NCJGw6W7tugSVjB+rPcj4SM1Q9XG7X6wR sh9faE1KjkUfiYmR4Ahm+PLZuGHTCXRofnmMyfNodqXllQTJM+WWz9czZnoeV8i/B3uJ t94CmgFQMnVn8yAn4V/lzvOeIbNM6T8f7CHKUTMWUhmgoHKBkh4VOCuMqZ6nkGXF6MnI Qypg== X-Gm-Message-State: AOJu0YxmSHQSTvJYhVCcuuFeY9/8NGIlGIVkwbYBk9A5ZSNOCAMdKe+i HiqRoIcqddCBKYupfgLM56w= X-Received: by 2002:a17:902:f814:b0:1d4:35ad:41cd with SMTP id ix20-20020a170902f81400b001d435ad41cdmr137992plb.108.1705021393591; Thu, 11 Jan 2024 17:03:13 -0800 (PST) Received: from rigel (60-241-235-125.tpgi.com.au. [60.241.235.125]) by smtp.gmail.com with ESMTPSA id kz15-20020a170902f9cf00b001d4bcf6cc43sm1825060plb.81.2024.01.11.17.03.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 17:03:13 -0800 (PST) Date: Fri, 12 Jan 2024 09:03:07 +0800 From: Kent Gibson To: Andy Shevchenko Cc: Vegard Nossum , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, brgl@bgdev.pl, linus.walleij@linaro.org, andy@kernel.org, corbet@lwn.net Subject: Re: [PATCH 0/7] Documentation: gpio: add character device userspace API documentation Message-ID: <20240112010307.GA9794@rigel> References: <20240109135952.77458-1-warthog618@gmail.com> <20240109234518.GA7839@rigel> <9e33f7dc-deee-4165-bc10-ad77f38b270a@oracle.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Jan 10, 2024 at 01:10:51PM +0200, Andy Shevchenko wrote: > On Wed, Jan 10, 2024 at 10:16 AM Vegard Nossum wrote: > > On 10/01/2024 00:45, Kent Gibson wrote: > > > On Tue, Jan 09, 2024 at 10:00:26PM +0200, Andy Shevchenko wrote: > > >> On Tue, Jan 9, 2024 at 4:00 PM Kent Gibson wrote: > > >> > > >> May we actually state in the documentation that sysfs is subject to > > >> remove at some point? > > > > > > So formally define what "deprecated" means? > > > Is that covered in the higher level documentation somewhere? > > > If so I'm more than happy to provide a reference. > > > > We have a few files that may be relevant here, that I'm aware of: > > > > 1) https://docs.kernel.org/admin-guide/sysfs-rules.html > > > > documents some general assumptions that userspace can make about the > > stability of sysfs and its files > > > > 2) https://docs.kernel.org/admin-guide/abi.html > > > > This is the public-facing, somewhat machine-readable repository of what > > is supposed to be the kernel's ABI/API, including "obsolete" and > > "removed" interfaces. > > > > 3) Documentation/ABI/README > > > > describes the process of deprecating an interface > > Yes and GPIO currently is under obsolete section with also this: > > "This ABI is deprecated and will be removed after 2020. It is replaced > with the GPIO character device." > > https://docs.kernel.org/admin-guide/abi-obsolete.html#symbols-under-sys-class > > So, proposed cleanup series should probably rely on this documentation > among other existing descriptions of sysfs GPIO. > The sysfs doc already references the doc (sysfs-gpio) that generates the HTML that link points to, so not sure what to change. I can't include a direct reference to the HTML, AFAICT, as that HTML is generated using kernel-abi makefile magic so the usual doc path cross-references don't work - you just get the path as plain text. If there is some way to provide a cross-reference that generates to that link then I'll change it, but I don't know how. >>> + - - ``EFAULT`` > Wondering if these constants can be referenced via % and if it makes sense. That would be great and I do want to do that, particularly for the uAPI v1 docs that use a lot of consts rather than enums, but, AFAICT, you can't create cross-references for consts, you can only add formatting[1]. And the % formatting only works in kernel-doc, in rst you have to add it explicitly yourself, hence the ``EFAULT`` . Cheers, Kent. [1] https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#highlights-and-cross-references