From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37C9E3ACA6C; Tue, 24 Feb 2026 18:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771957609; cv=none; b=QRCfTjlTtZF5S+oNh1Aw1BMganRUkYHka0DS0gmFK8Nkd4RO9sbaue7a9St6JKH7Dnv9pp6ZvADHF01nS3msw6FNYz5UKgkavTIuvoQ5ReP0UvHiE/Ws1ADfNRxf+hu5ixM2f4ha4x+g/bk7GyoYWEB+gdQOsaVvskqxyAsOr98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771957609; c=relaxed/simple; bh=G7/Adg13ZQ0liy4QhOZKarYCYwGHG6kcs1d81upG/jU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OJ7b3DTSMNaB+hPkD1YAXxr4n11+Q8xgFiebTvr1DjxQr6TNkFzicnwJHoAei+8zusf5ESrUlw3O/aRCqGiliC2BwtxmqJLKcKEZhR5WmdUW/cH1v3Sy40aCF1Iiarwi1fbWe/kWPz+QHLgWROkWB++k8qVPfguoBNoQ/WWKbcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=mG8HyCpF; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="mG8HyCpF" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=H5YAxZr0Jw72bQeCO52v2wrVTxSELxtM46IRbGRfGy4=; b=mG 8HyCpF+e3G87XvR62HmC5UuvjuQweothHamhJx4IRZ9OAMnibWEvcfYoV1MhFJQIjwkpDrY2wNogZ aFjmttioOlXiZPAU2HAfkAW6Qi91KxQxWk02aalaDRzKlIK4WWcY7tY96SRoWOOWAnECSFVzszfGz LRU7I7E3wAn+DCQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1vux7H-008e3Y-Dy; Tue, 24 Feb 2026 19:26:39 +0100 Date: Tue, 24 Feb 2026 19:26:39 +0100 From: Andrew Lunn To: Shenwei Wang Cc: Arnaud POULIQUEN , Linus Walleij , Bartosz Golaszewski , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Mathieu Poirier , Frank Li , Sascha Hauer , Shuah Khan , "linux-gpio@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team , Fabio Estevam , Peng Fan , "devicetree@vger.kernel.org" , "linux-remoteproc@vger.kernel.org" , "imx@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx , Bartosz Golaszewski Subject: Re: [PATCH v8 3/4] gpio: rpmsg: add generic rpmsg GPIO driver Message-ID: <063dc2bf-8b01-45b6-822a-524f4e7c504d@lunn.ch> References: <64ef5dbf-6264-4758-a5d8-d8c52c359fcc@foss.st.com> <79eb8bb8-83cb-4b24-8e56-42a53c710055@lunn.ch> Precedence: bulk X-Mailing-List: imx@lists.linux.dev 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: > Regarding type, it’s needed, especially for the in packets. There are two distinct kinds of incoming > packets: notification‑in and reply‑in. Because of that differences, Combining cmd and type would > blur that distinction and complicate the implementation. [Goes and looks at gpio-virtio] https://elixir.bootlin.com/linux/v6.19.3/source/include/uapi/linux/virtio_gpio.h#L13 /* Virtio GPIO request types */ #define VIRTIO_GPIO_MSG_GET_NAMES 0x0001 #define VIRTIO_GPIO_MSG_GET_DIRECTION 0x0002 #define VIRTIO_GPIO_MSG_SET_DIRECTION 0x0003 #define VIRTIO_GPIO_MSG_GET_VALUE 0x0004 #define VIRTIO_GPIO_MSG_SET_VALUE 0x0005 #define VIRTIO_GPIO_MSG_IRQ_TYPE 0x0006 Andrew