From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796135231; b=FIoC6QN/kJB8G1lvqvLsL5VS1Q0hBXMg9KlaOrYruP5Oyvb6toQBPI8Hm9DsMdChG2Bc qDYPrWnqLf9Ii71sQhXuvjAs6sHIc5SUqp9YlZ+Cg+LHc5qbKmqhcSqd0BlD7ycZJfvt0 b4QAc17mPT4KrwiX1nMS32ke/DrRMr0cVr103SAAruJqudaebH9ApOcZI1bllRPITgYrt mTYOpkiDV5POSx2KikuVYi4MpujvjfeqS4LLwcj+a16Pz06837gLqwuyj6pTqh3fHDKKR bC1u6Mmpe85KSb+rCIe0Bmgsvwd2mKW3wnWqfe/wi3xzWJOwylAemDRoJW2tLIlsPcw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796135231; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=IXSHK0IOGtrDMoT3rqF7D9cLMzeVrD72GbNXv/p5tHU=; b=uQN/+bPlz2A1t8I5xVy8VWJpapa8EL8onYcSEqqelHPET+VDy5bKqgOiFWGE71qri+2L NNS6Sm8CkggS/nizzuC+Qal2DZHhjx/JYfqJ3K/mDYEs+DwhWV8F4tl5x30m8fYANgXwJ DYWIZbalCnKcQn1VWJvLWZKNaklIHlOSN6WFmUghcJiw/Yle7RMbYYZihmJfnWqlUPr6T PZMjyJ65oHdJ13t3cor5JYs6LmAbflSHXy0vETn6RpryTMRTEGVtRA6sdA6mEfN+T0gQg 0yxzwSa4c07F8XGvlfiGdKqgQ87vsotAd5wqZgOBRNyRRF3qWbIP0B+qllSKmSchmpQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=DtZz0pYg; arc=none smtp.remote-ip=209.85.210.181 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3B5E606A68A for ; Tue, 1 Dec 2026 14:27:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C3B5E606A68A 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=DtZz0pYg Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-8a06cc097c7so6970250b3a.0 for ; Tue, 01 Dec 2026 06:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796135230; x=1796740030; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=IXSHK0IOGtrDMoT3rqF7D9cLMzeVrD72GbNXv/p5tHU=; b=DtZz0pYg4iZ7LKOPirp8zdsfkLIFaxoh+8gF9Tvk/UVDIrlKk93tBYZ3jrzjHFZzwQ 53OtVAzaL54jCsCN3aarrHWZzZD/cavgVIUKi804YhUPqbaJGXR6v7ryF99mK4sTG/gx MJ291yLon2M/IDVvlrSjg8YCF8ez6mcXcLR4RRzIiangA5fHhPtD3mCWgrdVB+8MVDMR zadYZHVsBJ2XJM/4PLwFbM0/fAMwUf5V8mIuKfbqEc3Nwxs1FNfUN4fV+g9886SNVuah F0ZT29sMVCaLTQog+eBGXTjO61K2sEcHFDde6Ca03dO61LjJ5PeT1vNTB7YzQ0+oYQ8r LuKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796135230; x=1796740030; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=IXSHK0IOGtrDMoT3rqF7D9cLMzeVrD72GbNXv/p5tHU=; b=EbTiVu9C3j8cnNPQYI1nbITtL7TsRd1P4DgLZbQBLLKaPktAue92K4Px75aNNSzUE0 b98UEtT5FbJu1r4QHVJe1g3uk7dDwn1KmlSQ97KvvJtL0QAVaM018WUSLcrI0X7IMINT EvkLK/uNhrytUZfJQgwetpcMvT8vy2EfYMaLoQoPGpD6ua2oHmeMdCAEWRj2IaKJtxYG 0pTgKUqGSwQtq98vGbFULk9/TtGCB/mlmisr7lDHjlN2OiRxhdYqo1qjHfySoh816acQ lvgsLDEJVEjc6ldTnP/yJQ+IQQqbipcsdhKbT0zw40/ypMhk7aSZ9EMGLWlsOJCxLIEm ZMVQ== X-Forwarded-Encrypted: i=1; AL+hErFRHlJqNILZsHasQ9pLD8EDk1kc8AnxXd4m6zBXXtTK4VylmkXAs30t3Qwlm2AxmJfOdLVIw4z48h0X7q4=@vger.kernel.org X-Gm-Message-State: APuU4Z++ZpI6yzf5d42jPnBCZXzlvDvpywzxAzgcxjIFiVYlqgJDCffL pZwMkyA4C0y/J/2zMVmOM8L6k6QWgLIKydf5vI29PAEIlwgdT+m2pYAl X-Gm-Gg: AZFdTZfBiyXBFasa/60cWxdt56r0wX2kwU9TIgMcpBeVSFag1URMm+5FpRcdVDzgjJS TlrS0OrUZBbVTw+VGG7uKOIbpqIU4wV+K9L5RPhXBjyv4XCHOH7PkZDeNjuza8BONnaf9dbChr6 yE9eAum4nGfzujDH1vAtOL5ROYjp2opZ2DWJ/hMEVqHJY1HpwZkRsoEkoJ2vp83+AIAaGK9pOhy 4GO9DkS5He11RI309J7ozBNsu9wklLFXZO+/4UB6JSEFq0pD8BXiyvb/30lbdgl6ckmUSNyuoGh OhjnTFNf8ih2AjbZcI4wg4TMd3XOpEM+VU4uJ9EvCnNO6KcyX6wbV/Tx/K9+BUqLd9R4JG+tce0 /Cw37THsc2DZjNDKeOnFAPKWrqF0hLaS+FzGE9kJOqrMHVDQ2wsZHGIATmOoejSDThudJtjgpm4 6quvFsJmMv5UOv0UhHMF+cpihTrEcrMUV/ds20AKsAbwNJA7OSvVcfc6DyApgRSTlaiYxQCRDQG dL12NVluxu42lCE8FUDT0KwYUz6rKR3ajx7CpamyYhlqZ2oALpyE5GI93A4Jy3yfTFQJ7Wwva6S LUG6DGMTkJB+vgMNui0iv2ZOisaGuWALYSRg5MDBOiac1kOuQ4EtZHyWOEGI+nR3onFqWK3FjKP DochroDo= X-Received: by 2002:aa7:9312:0:b0:8b1:e8dc:c8a1 with SMTP id d2e1a72fcca58-8c87bcbd110mr39643633b3a.22.1796135229784; Tue, 01 Dec 2026 06:27:09 -0800 (PST) Received: from DESKTOP-TPPBPA1 (36-226-254-86.dynamic-ip.hinet.net. [36.226.254.86]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c87077944bsm20280798b3a.2.2026.12.01.06.27.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 06:27:09 -0800 (PST) From: Lin Tzu Yang To: Linus Walleij , Bartosz Golaszewski , Shuah Khan Cc: Bamvor Jian Zhang , Jonathan Corbet , linux-gpio@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] Documentation: gpio: virtuser: list the accepted direction values Date: Tue, 1 Dec 2026 22:27:02 +0800 Message-ID: <20261201142703.900902-2-rongh7426@gmail.com> X-Mailer: git-send-email 2.51.1.windows.1 In-Reply-To: <20261201142703.900902-1-rongh7426@gmail.com> References: <20261201142703.900902-1-rongh7426@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The direction and direction_atomic debugfs attributes are documented as accepting "input" and "output". Writing "output" fails with -EINVAL: the driver accepts "input", "output-high" and "output-low", and reads the direction back as "input" or "output". Document the values the driver actually takes. Fixes: 91581c4b3f29 ("gpio: virtuser: new virtual testing driver for the GPIO API") Signed-off-by: Lin Tzu Yang --- Documentation/admin-guide/gpio/gpio-virtuser.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/gpio/gpio-virtuser.rst b/Documentation/admin-guide/gpio/gpio-virtuser.rst index 7e7c0df516..236e9d5f54 100644 --- a/Documentation/admin-guide/gpio/gpio-virtuser.rst +++ b/Documentation/admin-guide/gpio/gpio-virtuser.rst @@ -159,8 +159,9 @@ Allows to set and read the debounce period of the GPIO line. **Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/direction_atomic`` These two attributes allow to set the direction of the GPIO line. They accept -"input" and "output" as values. The atomic variant executes the driver callback -in interrupt context. +"input", "output-high" and "output-low" as values, and read back as +"input" or "output". The atomic variant executes the driver callback in +interrupt context. **Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/interrupts`` -- 2.47.3