Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp56989rdb; Sun, 14 Jan 2024 06:31:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXLb2wuJPlQY6yKsbBxSDJwhjGycBlOYsfWjY11jHVbqsSH2GPs2gxJ022lOCjfDvdi0xb X-Received: by 2002:ac8:7e8d:0:b0:429:b4d9:9b29 with SMTP id w13-20020ac87e8d000000b00429b4d99b29mr4945889qtj.64.1705242667326; Sun, 14 Jan 2024 06:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705242667; cv=none; d=google.com; s=arc-20160816; b=fhuZ0ZD6IZjEoVT2vIfYsgYMFBiYyhHbbE0+kZNFExGYas+iqorRGEh40TYSFQZoEw w/2KhRgi3VUAKPGpcLPbulTzLTo4mjTcdRfAIbK78uJy+33hogfIVXhmHm1T9Dr3lbmx DyC+4Cp29JUasE86kFMcjQ+75B+RjQFk3IXB9NAIu+GSeJJ2E335tJWN6j8VMbbOCkM8 nRV141k4JL11pE22soRCeZzlCoBTOkgT2lx21nYi+Mf6n3wwjMurHmlS13MRJSgaEbY6 627AatRiQ46zFJx7uvEcsDkUglZTMGPmuHymyPnKQE+4JUQpcQspbm85wi/JBLqRGkcQ ITzA== 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=PGgDW1TWbu/IxiNbUJKSvwDw7b9go5u/b638eBN6ezo=; fh=+6KMqCB6p+ZR+0vA/n8wtefXGSd5KGxMzrxad7dnmlk=; b=dJEelAKyymQIDMr+6I/tWTfbNTRhkxEkfMrElK2xBl746iSKPa2C8voeNYxLLGQHxe 2lvKy8dFoS9QmZvt5nBht5EJLNxnMx/qqqC/V6Idg7/nJkTjQTxsAwv49RzZBHmWZ54u iyTdyd7G/TOPHy2X+2HtW+5Yq6w2mqjjrSgBp/F5COwKHiBpghryA+VYACXluzPKizpX Medc9pWx93HYjLqIrz7ugzznphLdbCd2LCMfn86eWPOIbULLlqxZUKgXto2NsGJREcWk cCO7xOAsciVXKLpipCZ4BayuZiLjabnDcboYMJ84LTx+sEX4hq1iMw67Pk9z1wA3PWa/ PNgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="bhBah/QS"; spf=pass (google.com: domain of linux-kernel+bounces-25481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c11-20020ac85a8b000000b00429be628087si6511685qtc.520.2024.01.14.06.31.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 06:31:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="bhBah/QS"; spf=pass (google.com: domain of linux-kernel+bounces-25481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25481-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 199011C20BB8 for ; Sun, 14 Jan 2024 14:31:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F3EF23C2; Sun, 14 Jan 2024 14:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bhBah/QS" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.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 D13B823BD; Sun, 14 Jan 2024 14:30:57 +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-ej1-f50.google.com with SMTP id a640c23a62f3a-a26fa294e56so819078466b.0; Sun, 14 Jan 2024 06:30:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705242656; x=1705847456; 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=PGgDW1TWbu/IxiNbUJKSvwDw7b9go5u/b638eBN6ezo=; b=bhBah/QSA78acaw0yPLtExnhqNAiHX5WH4KbtpL5jbn5iujAK/CdZ9Z8zFPGVhcdMg ImjCjeiF0LDiomd6d3ymSNLL7/cYBDsJXrKh6fSljbRDJmu1LA3h8L4XcfZHzGbJDc45 /kFj3na2Ie0DFjbIBniljEe76eyJCXmFrGQUsFkjqHp2E3e2+sHCJ3ZCDWqXJnZVMZQq nqepg367cK1kbCKvbIUD3A6Xj6LBD3HPa3r88Kr4KydHzm4NG7tdvjKvcBuYhDvwvpSO nUciuLJI2sLV+WoAcqyjRmu8BazSD+1A1iamOWgDs5tZTUQKKkeERvP9USxtWeQ0VKjn HAZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705242656; x=1705847456; 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=PGgDW1TWbu/IxiNbUJKSvwDw7b9go5u/b638eBN6ezo=; b=S1j5a4Q8bExfCAlmYKyQgzohpmfJjGxYHtr6aV7RDaEGPEJV4WbrVGZeXk8/LLhWQq wF3AXhYGU8+6uuzhA9XGdsFdWP/IcHiZuha9Bls+LzrDXKPQ8J8fDUQgRO7pBtZlkSaz KzR5wPRLkSuq66+0yTVP3NaQG/whhSEC9xnSZMEqqd6li6Q7JaiTGUEjNP5Cb1bOu3bY FfunacZfEnUJEsC5izVZRc2EIyAPPvrqUM1a/NJqzW4gDPX/4MJXDg3BHzoHaXBNQLOk XWvm9hGvc9ZhOyukuRaB9tJEsCsAGfjKt+mOBQyDcRMwnDSWTFv4TPEsk5x+O1Z21+oY 85yg== X-Gm-Message-State: AOJu0Yw83KJSXzO/bbU/WNTXsj0PbzdrzYZR81zm9weTJxUpcH+EnWoL 65Q6xbJrP4f7DyRl8AGkOSZGw90fOD4bM55HZNw= X-Received: by 2002:a17:906:33d0:b0:a28:c06d:2e0a with SMTP id w16-20020a17090633d000b00a28c06d2e0amr1968824eja.70.1705242655969; Sun, 14 Jan 2024 06:30:55 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240109140221.77725-1-warthog618@gmail.com> <20240114141957.GA99741@rigel> In-Reply-To: <20240114141957.GA99741@rigel> From: Andy Shevchenko Date: Sun, 14 Jan 2024 16:30:19 +0200 Message-ID: Subject: Re: [PATCH 0/5] gpio: uapi: documentation improvements To: Kent Gibson Cc: Andy Shevchenko , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, brgl@bgdev.pl, linus.walleij@linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jan 14, 2024 at 4:20=E2=80=AFPM Kent Gibson = wrote: > On Sun, Jan 14, 2024 at 04:10:54PM +0200, Andy Shevchenko wrote: > > On Tue, Jan 09, 2024 at 10:02:16PM +0800, Kent Gibson wrote: > > > This is a series of minor clarifications and formatting tidy ups for > > > the GPIO uAPI kernel doc. > > > > > > The series is intended as a companion to my character device > > > uAPI documentation series, but makes sense on its own too. > > > > > > The patches are self contained and trivial so not much to add here. > > > > Reviewed-by: Andy Shevchenko > > > > for patches starting from the second one. > > > > The first one I personally don't understand why, but I'm not a native s= peaker! > > I believe, it's correct, although the original version seems okay to me= . > > The problem isn't the language, unless you mean I'm explaining poorly, it > is the logic. The original says "zero or negative value means error", bu= t > in case of an error the kernel does not actually set the fd. So if the > user sends a request containing a positive fd they might incorrectly infe= r > that the positive fd being returned implies success. > > The new wording is that the returned fd is only valid on success. Ah, thanks for elaboration, now I understand the issue. Okay, feel free to extend the Rb to the first patch. --=20 With Best Regards, Andy Shevchenko