Skip to content

Commit bc1c204

Browse files
cyndiswsakernel
authored andcommitted
i2c: bpmp-tegra: Ignore unknown I2C_M flags
In order to not to start returning errors when new I2C_M flags are added, change behavior to just ignore all flags that we don't know about. This includes the I2C_M_DMA_SAFE flag that already exists but causes -EINVAL to be returned for valid transactions. Cc: stable@vger.kernel.org # v4.19+ Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 27b7c6e commit bc1c204

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/busses/i2c-tegra-bpmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static int tegra_bpmp_xlate_flags(u16 flags, u16 *out)
8080
flags &= ~I2C_M_RECV_LEN;
8181
}
8282

83-
return (flags != 0) ? -EINVAL : 0;
83+
return 0;
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)