[PATCH v3 2/3] i3c: dw: replace ENOTSUPP with SUSV4-compliant EOPNOTSUPP

Frank Li Frank.li at nxp.com
Mon Jun 30 08:13:01 PDT 2025


On Sat, Jun 28, 2025 at 09:20:29PM +0200, Wolfram Sang wrote:
> Replace non-standard ENOTSUPP with the SUSV4-defined error code
> EOPNOTSUPP to fix below checkpatch warning:
>   "ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP"
>
> Signed-off-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
> ---

Reviewed-by: Frank Li <Frank.Li at nxp.com>

>  drivers/i3c/master/dw-i3c-master.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c
> index 611c22b72c15..91429d94a866 100644
> --- a/drivers/i3c/master/dw-i3c-master.c
> +++ b/drivers/i3c/master/dw-i3c-master.c
> @@ -932,7 +932,7 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
>  		return 0;
>
>  	if (i3c_nxfers > master->caps.cmdfifodepth)
> -		return -ENOTSUPP;
> +		return -EOPNOTSUPP;
>
>  	for (i = 0; i < i3c_nxfers; i++) {
>  		if (i3c_xfers[i].rnw)
> @@ -943,7 +943,7 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
>
>  	if (ntxwords > master->caps.datafifodepth ||
>  	    nrxwords > master->caps.datafifodepth)
> -		return -ENOTSUPP;
> +		return -EOPNOTSUPP;
>
>  	xfer = dw_i3c_master_alloc_xfer(master, i3c_nxfers);
>  	if (!xfer)
> @@ -1093,7 +1093,7 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
>  		return 0;
>
>  	if (i2c_nxfers > master->caps.cmdfifodepth)
> -		return -ENOTSUPP;
> +		return -EOPNOTSUPP;
>
>  	for (i = 0; i < i2c_nxfers; i++) {
>  		if (i2c_xfers[i].flags & I2C_M_RD)
> @@ -1104,7 +1104,7 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
>
>  	if (ntxwords > master->caps.datafifodepth ||
>  	    nrxwords > master->caps.datafifodepth)
> -		return -ENOTSUPP;
> +		return -EOPNOTSUPP;
>
>  	xfer = dw_i3c_master_alloc_xfer(master, i2c_nxfers);
>  	if (!xfer)
> --
> 2.47.2
>



More information about the linux-i3c mailing list