From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796135231; b=vaZqiJUg9OJ840mqjDTGEs+Z7T2svpuYqGPU4OPxshvtmwLb8ZeYyNEs6Yg/ZR3lMp5S eDLaJqnVHSBwUwsEL5DLC5mMI4C+OaAEcEl2e3mGSv0JXS0Qu2LeO+m/8eK99gyWEXgrj GqU6iDuJBy96WceI/vXrbDGHeXmNs62TvD7ntuZwQAuW2+8tNnO0YHrZRJ8jcgWmaUf/t /8U2IJcNN+5Mn5Xn0jQAZnNSJ44lFCq8EcLskvfTiPp+GKLSsKSaFuKlwmcEjZmviGl6R KuX4pBubb3Qh+f36fsmOo9KzgLjbSZCU5A3P90lwH8Fmp2HwEiEKKKouBnOWzF7B/EA== 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=J0G+ZHNH/HnWZrM8w0BNfN2Z4hyuC0itAO7QeAAhway4mA9QfUcEC9o4WqMY+iUg/1B6 GNVTuiMJFVxsGGrcyEGisAy7xqC0JKR1DwbMJf+Dflk/tqzOi7xcHu9qgB7PuawGrzgAc rN+iSBza6q3uE26feojNV/jO23XzGX2K4NUYBAjRn5vdNe+Gz6gp247OoHSEFTWtPl3wH hx3KA3OkspMesFjABNHf7QtZ0ydosYyNgKiswsRbfD8YxgkuFkQGMA445djxLIo3L76Pe J9SXYV84hHiOneQsDhvQWaMzVmcC00i8lhlDlYAF3r3SeyfxDIYqwIFLtBY07+IcdLQ== 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.175 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 BAEA5606A688 for ; Tue, 1 Dec 2026 14:27:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BAEA5606A688 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-f175.google.com with SMTP id d2e1a72fcca58-8b68e59ab33so8617297b3a.2 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=GtYhLrNIYV6F3t7gPU40K6y0CBKLunpn863nxrSWInC7zV1tVEgOjEdjVJ4bOOReqK 1BP57Dlvk/fE4C8kgxFrPZleMffRrNKROyiN3A75OGL79Px7YV6PvdzdD6Rz9kOk5uE0 tZLjllnXPZxsYrbnQDSuaZ7LLo620x6JrVtrmjM7oae7HgRi7icMux/Beil6zcwl51Jc Op2uixaGjZC9akn5XIWXIzMRCptnQclJnoYEidPX8dXD1u0FQ0jZWE5C97+CTxsl+sXy QgE3g0cHIayFF62wDxYmwBVGlSlRmiwk1NZnXb7yKZEXS4w5eJvkR1Mv5NX0HkONj6Do nTeg== X-Forwarded-Encrypted: i=1; AL+hErHB+nZfTAXPsMw3POTGwDTPjpxx/al5t02khpddmbq2j9I3PGR+6vyycVndzF7gjbtIXR6iIzyQ+JY=@vger.kernel.org X-Gm-Message-State: APuU4Z/npwu+sRifbeEeM4Wtadd5PzQqX8Z6MkDR5FmUl8qvGjFK6LN4 QbKnQtGYmasooY0m00b4Guby8GBoblEcbmEPiAI20PDutCwOmb7sSTej X-Gm-Gg: AZFdTZfRHDO0cvYB5HA8HKP5tI6/Ny/J9GcoTIerO6iK2E37pc4kpT9YA3cUFUizNq/ JZz4I9rs2LACVy0PJiFcAQro0ld6oqWve9y8nLJOlJ7XghkFJAnNZYIqb3hRuyEc7IvdKRXLngI DjAbNUBOp1uL/j1XuZkVeDEH8YJig0+3FEcGy9h1tPyqoRqStaW9mDcPREDEX8PS8RYEkL8VaP0 YuqMXB6Ix0TJGmQZy/TRE0KvHuUAQcfy/0J5TrMI8vK+RBcy+KQveiXb15fni78nYpNXcvPJvUr IP4XqvK41NIdBxC4gsRgJ79+lEbNkZWZLe3wjnT1AieexD+j+QUuLiwJ4/Dy8mLnqMpiQz4uRvn SH8uqhqxmSbUx0SOJqOVmHG7DUqm6vvx7AO5Kui8HnsXe1vpXfxyiiHkIVFyD4zoaXOXkMHwpYT SPjkSE5dpvR5vX/bz5rnMm9EHRY6+e9jT3dMUMn9quN7WqH/7odNLlupItKWktgu3ZJncrD2SJS Qbz9PXVEBA+/SxYEpNAkzgkEIWzrjI8dLrgNf+UofknF3o0ZIKSFk2dDCkKU4x6lkUUTkGIqXmX 3r0RBi/T5/rkEhp/IayuwuLbr/06wnfCuAmRheJqB0oas2AuSudIlIaqsbwar8hH8iRJWf4VP4v /rk1Y3Jc= 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-doc@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