From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 3FE8F3783B5 for ; Sun, 6 Sep 2026 15:53:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788710027; cv=none; b=KJCxRanrH/IWsLmbH/XZDYA2YTKkL5nNhOxxNLS7aq8a9dF0+0W96t60kPa4YO7UUnpMg24hjQLgDogX7GXkfkRB6vwM5NA9YhnGuldNEKo9d46sKkJLzoP4l1cUpqXIgpUEDa8d7YcRz/1eiNTQQF8Q4njLnTVNktkFKKRzd9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788710027; c=relaxed/simple; bh=iXeuXZinLwPRHtHoRD2Ox32yQacS6fb88foD+iwKC5I=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BfY8cyfOP/oBs0swGtdW0RGnULszRiJhN3elUzgAdsOHguYw76+NkGBh6SemvLSNkJvVZXbdbRZIFjZl5yTSqtgqL1ibWlHXiAgXEvNsQfaV4mz40jqw/N731MHUGLdkF+19ZS2wI1nXn5vBzsawIW49111tcpsgipXKRxHTo84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=I0k1WdWs; arc=none smtp.client-ip=209.85.214.175 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.b="I0k1WdWs" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2cf452def93so31630045ad.1 for ; Sun, 06 Sep 2026 08:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788710024; x=1789314824; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:subject:cc:to:from:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=YZKG0N4Qd9s3jT0vFHcSeVc0433ACE4MO/8edec8Z6I=; b=I0k1WdWsx9WNfUFzK3BCcm/BNEFTWwsSSN1wsCkjh/W3e03sW3FrKRgga6+nkV5OIa GEqvcSuepfem0vtcK9eRFpdHfs0fsmMrFwXcXObxNZ0W/5MTQfFnnzXgCch1vdFT355o AKlgGOiBw7NXbkXRQhWgRlnS73Soey6eW/4SWZOlLv/qlWWc4yF5Zc0UfmVCgbtRfA7p Rab3z+XWQZPxKy0j9hBclzk5skPzkXj9IYYjj+lQUrExtfpo0tRP+TGkOLjAtcwVM+gS 0vg5gESMA1idbisUWf9LZEANhJ3vno7R5txyykz0JKQOhgbsYpBSQcA8B5+Q9QZbZR9W 4V+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788710024; x=1789314824; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:subject:cc:to:from:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YZKG0N4Qd9s3jT0vFHcSeVc0433ACE4MO/8edec8Z6I=; b=EVJcxPbpTvY36SRnaEq0nrqPMxehNwdRvZuvF5Yk02TVQpslo/2NRLe3vfekcW3tmq Y0Uu8H33ZlWQpGWhukN3AyAtUYMXoVi1qdnHO6DwP6xZ1SrPU/Qr8ZgCFYIS68h366u8 +pu2tQ2pNqK4jtp8d49Ogxv/hMH6EAxyD+uIsNHk6Wszn/l1h/rrUTz0O864siOz2vQt yaI6nJFoEFQw+Mw5WtxdLg7tWpMLSubVTKz1K5hNnphPBMYQakc232UfFD6d+3XqI+rC MQewrQFPAY7SRL7RkBB8JkIG/oZivBBmGhHnT4VzZ/Ph2nrgD28l5bRx7jmwN7xXR7FJ Tbkw== X-Forwarded-Encrypted: i=1; AKwUvBxODPgffQEUe/UqR7A0gmZxxfYqpnMpyi7D9pxzN8fQPNvBAwOTXaiT0Y5TAS3Hpt+0x1Gl4fOzNXHi0W8=@vger.kernel.org X-Gm-Message-State: AFuF++lKIFcWaHtDoenbRCiDIdVGmoCY2ko6GGtBhUQBY3rNydxQEUOd XuSDe63AehzQ0Zq1WCKHO2e6c6/LFl0uAvCTMKCCACUYjAi0WnuF0P3L X-Gm-Gg: AYBFou1ujmxAPOeY4/JTFUbMIZEv2iVFHvzIc9EcZ8x7Z+q64WmJ5Lxgrto0Br9z31y AyE2JtDF3hxHXCCpxgTFVWImv2PNRAObDPymXYTUYVIGY6jihwoMM6pFm5ejV4/WR5kZ98YCWpN Fh/TKFxahBhDB1OWXaBwInKF18pxQd6ZUFmnnVZ8SNrOMK7IiiAJIxjI58TE/3hlfMAuQTXF1GS oJnIzeE72EKbo/PAdN38VoUw8C302cDoOuQDWBZd9pcJLfxAp5UX8pKnUJSV0o4gzJ+u+PPtQog 1ja44wiQWfGQ4D/dDNwJ4UI9VJfftBUHWBDFln6zVI34BvO9q24xzwa6M2J3zaa1YnAAgAoeeLf jgfFWS0ac2H+nkZO+9KLERc56/JQhStg5j6qvpY80/7m33uM1vwYZ9fUpw68C84gaozgZ792Iiy lYh1qGE1TkVKxbgs2ModkSXHYVoZvFauZL/jboWDaEGhoxU8JYtSriv6kVzoNpavUFBAczqq5uL MltUNg6/PEGpuMNnEY= X-Received: by 2002:a17:90b:2ccd:b0:398:baa7:4c2f with SMTP id 98e67ed59e1d1-39b27c442f8mr14641110a91.5.1788710024292; Sun, 06 Sep 2026 08:53:44 -0700 (PDT) Received: from localhost (madb688426.ap.nuro.jp. [219.104.132.38]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39b08c3a526sm21561901a91.10.2026.09.06.08.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Sep 2026 08:53:43 -0700 (PDT) Message-ID: <6a9d8c87.7436a696.197962.124d@mx.google.com> X-Google-Original-Message-ID: <20260906155336.vppadsy6zpw3mlfa@DESKTOP-1P5QNTF.> Date: Mon, 7 Sep 2026 00:53:36 +0900 From: Kohei Ito To: Miguel Ojeda , Gary Guo Cc: Miguel Ojeda , Linus Walleij , Bartosz Golaszewski , Miguel Ojeda , Boqun Feng , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?utf-8?B?w5Z6a2Fu?= , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 1/3] rust: gpio: add GPIO module with common definitions References: <20260906-add-rust-gpio-consumer-v1-0-24d192f93760@gmail.com> <20260906-add-rust-gpio-consumer-v1-1-24d192f93760@gmail.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: Hi, Miguel and Gary, On Sun, Sep 06, 2026 at 02:09:30PM +0100, Gary Guo wrote: > On Sun Sep 6, 2026 at 10:56 AM BST, Miguel Ojeda wrote: > > On Sun, Sep 6, 2026 at 10:46 AM Kohei Ito wrote: > >> > >> Add the top-level GPIO module with minimal common definitions. This > >> module is the basis for future Rust GPIO extensions. > > > > Thanks & welcome! > > > > I see you Cc'd linux-gpio, which is good, but the GPIO maintainers > > should be Cc'd too, since they are the ones that will be deciding on > > this -- doing it for you in this one so that they are in the loop. Thank you for adding the GPIO maintainers. I'll make sure to Cc them in future revisions. > > By the way, it is nice to see GPIO again :) Now that some years have > > passed, how does it compare to > > > > https://lwn.net/Articles/863459/ > > > > ? > > This is possibily also a show case for all our I/O projection and register macro > work :) Thank you for the pointer. I was not aware of the past GPIO abstractions [1]. As I understand it, the past GPIO work focused on the GPIO driver APIs (`include/linux/gpio/driver.h`), i.e., for the drivers that provide GPIO functionality, mostly present in `drivers/gpio`. On the other hand, this series implements GPIO consumer APIs (`include/linux/gpio/consumer.h`), i.e., for the drivers that use GPIOs, such as `drivers/leds/leds-gpio.c` and `drivers/reset/reset-gpio.c`. I assume that the GPIO driver abstractions will be implemented later in `rust/kernel/gpio/driver.rs`. [1] https://github.com/Rust-for-Linux/linux/blob/rust/rust/kernel/gpio.rs (Current hash: 18b7491480025420896e0c8b73c98475c3806c6f) Best regards, Kohei Ito