[PATCH input] input: add BUS_I3C definition to input.h

Yunli Liu posted 1 patch 10 months, 1 week ago
include/uapi/linux/input.h | 1 +
1 file changed, 1 insertion(+)
[PATCH input] input: add BUS_I3C definition to input.h
Posted by Yunli Liu 10 months, 1 week ago
Add BUS_I3C (0x21) bus type definition to the input subsystem header.
This value is reserved for devices utilizing the I3C bus, which is
increasingly adopted in modern embedded systems due to its enhanced
capabilities over I2C/SPI.

Signed-off-by: Yunli Liu <ylliu3788@163.com>
---
 include/uapi/linux/input.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h
index 2557eb7b0561..c6fbcbad5b7c 100644
--- a/include/uapi/linux/input.h
+++ b/include/uapi/linux/input.h
@@ -275,6 +275,7 @@ struct input_mask {
 #define BUS_CEC			0x1E
 #define BUS_INTEL_ISHTP		0x1F
 #define BUS_AMD_SFH		0x20
+#define BUS_I3C			0x21
 
 /*
  * MT_TOOL types
-- 
2.34.1
Re: [PATCH input] input: add BUS_I3C definition to input.h
Posted by Dmitry Torokhov 9 months, 3 weeks ago
Hi Yunli,

On Sat, Feb 15, 2025 at 10:20:35PM +0800, Yunli Liu wrote:
> Add BUS_I3C (0x21) bus type definition to the input subsystem header.
> This value is reserved for devices utilizing the I3C bus, which is
> increasingly adopted in modern embedded systems due to its enhanced
> capabilities over I2C/SPI.

I would like to see a user of this #define before adding it to the
kernel.

> 
> Signed-off-by: Yunli Liu <ylliu3788@163.com>
> ---
>  include/uapi/linux/input.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h
> index 2557eb7b0561..c6fbcbad5b7c 100644
> --- a/include/uapi/linux/input.h
> +++ b/include/uapi/linux/input.h
> @@ -275,6 +275,7 @@ struct input_mask {
>  #define BUS_CEC			0x1E
>  #define BUS_INTEL_ISHTP		0x1F
>  #define BUS_AMD_SFH		0x20
> +#define BUS_I3C			0x21
>  
>  /*
>   * MT_TOOL types
> -- 
> 2.34.1
> 

Thanks.

-- 
Dmitry