Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1019460rdd; Wed, 10 Jan 2024 06:28:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFU9BuMt/hyuv3ZNtxb8MFPfnf3v22+PJbvlNSXfwF7I9q4L/R9A6CFyM4Go0mNHRQKDjPv X-Received: by 2002:a05:6870:c195:b0:206:90:7cda with SMTP id h21-20020a056870c19500b0020600907cdamr813828oad.106.1704896891999; Wed, 10 Jan 2024 06:28:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704896891; cv=none; d=google.com; s=arc-20160816; b=L7ET7KtL8KEj1irmvV1KQMiCfBHmiALWQ0WAIUKk7hFe+1Oyv0LHLhZYI7jT5NT2/X YWlYcTwc5x7DubDfDMiBHcv0l4bwPJULRzYbL/rHGHnwadClmJEme3R10S+K8ztP46gY jbL1Am33Zw0TXxRG22aYnpiuZDexycbzmoCyIHeiilUFq0wGr7evMN9ZtmJCimHlm1H6 19AoXdAGhGExpe+FZss82XIuzdVkurjm3OGJmwjaq76LFklxw/rh4HdYlwsgDWd1u2t4 08Ulu0cLjh65yPIaEQr00w40l/OlcQEQNwaDD3jKqahYb3k3eaiK8OI2SNNWzCBhAR5b zxAw== ARC-Message-Signature: i=1; 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=PHA6IOQJZCL8fY8165RHfI6p058wfxTW2v55pDomW+w=; fh=mEPIKpPKiCGcGy+l5MKFsH7IpTvikAA+xZxSl9MZvL0=; b=kl9h2nELRczMPaIg0bXpUlXHDntB1hRUGYDutivQ8iIPDqIVNV+J4nkQAWdYAkhEKg fl6uFwEEUZHDzGr47lJ1SNijjcUL1kzVMaREAlmXiwNqCavAcRdCoUW/jg2EaCuRZqS6 Wdso+5buvtZ7qytL6lpYkBIKVrl0dejVzfTlj/m0lkAF74tJH4VZR5OnXvDzqV7gMw/+ vKXJaziQBUU3io3E3Fj/F8WmZzDetVVDyV9MbPSpQW0kNh1eYMLS/HMFLGFHavSVtb/P feD9SvWUj9qJ6X4XolYFFe/0IchA0UX1flJmrp6Giwsy6OSWTRPTmxHB8bSS7+wBR1HQ kXKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v+tYxfnj; spf=pass (google.com: domain of linux-kernel+bounces-22355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 cb6-20020a056a02070600b005c67e7f7917si3958324pgb.409.2024.01.10.06.28.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 06:28:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22355-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=@linaro.org header.s=google header.b=v+tYxfnj; spf=pass (google.com: domain of linux-kernel+bounces-22355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 28372281CB5 for ; Wed, 10 Jan 2024 14:28:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D43164B5A6; Wed, 10 Jan 2024 14:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="v+tYxfnj" Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (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 B3B574A9B1 for ; Wed, 10 Jan 2024 14:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5eefd0da5c0so41696427b3.2 for ; Wed, 10 Jan 2024 06:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704896881; x=1705501681; 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=PHA6IOQJZCL8fY8165RHfI6p058wfxTW2v55pDomW+w=; b=v+tYxfnjhwoNBifO6jtJw0Yki4TQPdwi/2ZcssbVujC07QmpH2NeoccyuNuKOGrB/T qSh1ujTy0QP/RQ0Rwqbnb3XH6NAqmaUzTJd7UOFFHWlo2PWr5wAqvHKyOGHd89nODxNJ +YJNuryu3JmySz2W821/jKNd9P4lVKDObH3HnoQ42ZinNsuAwVhW4lbyCGntDOe6sgXw ZNPbpiFfPe35a0J9yRLrP1738ab7JQts40e7O7cQwu5oecCamWvJwBSVrIwKXjaP1EGt u4HLRo34nThnuGkqCnYYRSjXhmlCWF+joVZ6WZpm7pGBabYZVGVD403Rgf7QCIYLQDA5 DXUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704896881; x=1705501681; 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=PHA6IOQJZCL8fY8165RHfI6p058wfxTW2v55pDomW+w=; b=AVPXrR5Zal/SXU1C69c2NvVVAxwkrfgDvwO5FbFBN8Gqh8YgVHXvo+ezE26gx2Qacn bNcSOr2JvCKHx3qt+yJoYVNpdDOSrg9mRawRg0kwG59Mq7N3l5R3yTOZMwgW1Fk5MRo6 jgq0B0lhyHcwmX5eP3CD8mmxFm7WsPSAJU9jyIFkmN4CzIdtIcfSnkoFDDr4YDhiITIy hCH8OSJ9keGNfOkLNe98FJylom+D9kWnohLk8tWrZRXRY22cq3h5NgGHSIG5FW/isU2E kSnUACAbglo6r4ihTKlVCrVUDvuaq1JgYsbFkb2yqQPL3oUGcIT424pYGXCNtE05Ftah UPnA== X-Gm-Message-State: AOJu0Yx0fDv/zEGTcZGXwlsDeN2X6K13rjx5GWRe1ONN59TkL2q91LK0 RD6/QzVVEQeQBUNNjnvlT1x48G9qQLBVs+B5qlAyUAXjM8iz6w== X-Received: by 2002:a81:5486:0:b0:5d7:1940:b382 with SMTP id i128-20020a815486000000b005d71940b382mr1126705ywb.78.1704896881673; Wed, 10 Jan 2024 06:28:01 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240109135952.77458-1-warthog618@gmail.com> <20240109135952.77458-2-warthog618@gmail.com> <20240110130158.GA28045@rigel> In-Reply-To: <20240110130158.GA28045@rigel> From: Linus Walleij Date: Wed, 10 Jan 2024 15:27:50 +0100 Message-ID: Subject: Re: [PATCH 1/7] Documentation: gpio: add chardev userspace API documentation To: Kent Gibson Cc: Phil Howard , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, brgl@bgdev.pl, andy@kernel.org, corbet@lwn.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 10, 2024 at 2:02=E2=80=AFPM Kent Gibson = wrote: > On Wed, Jan 10, 2024 at 11:40:34AM +0000, Phil Howard wrote: > > You catch more flies with honey than with vinegar, so I'd probably soft= en to: > > > > Before abusing userspace APIs to bitbash drivers for your hardware you = should > > read Documentation/driver-api/gpio/drivers-on-gpio.rst to see if your d= evice has > > an existing kernel driver. If not, please consider contributing one. > > > > The note is is a rewording of a section of the existing sysfs documentati= on: > > DO NOT ABUSE SYSFS TO CONTROL HARDWARE THAT HAS PROPER KERNEL DRIVERS= . > PLEASE READ THE DOCUMENT AT Subsystem drivers using GPIO TO AVOID REI= NVENTING > KERNEL WHEELS IN USERSPACE. I MEAN IT. REALLY. > > So I've already toned down the vineger. I wrote that and I recognized the strong wording. I have come with great regret to the conclusion that it is better to shout like this, note that the sentence is not directed to any specific person and that mean= s it is more OK to be harsh. It is not feedback to anyone, it is black-and-ye= llow warning tape to not go into this dangerous area. I like the current wording. Yours, Linus Walleij