i2c: bpmp-tegra: Ignore unknown I2C_M flags
authorMikko Perttunen <mperttunen@nvidia.com>
Tue, 12 Jan 2021 10:22:25 +0000 (12:22 +0200)
committerWolfram Sang <wsa@kernel.org>
Sun, 17 Jan 2021 11:17:11 +0000 (12:17 +0100)
commitbc1c2048abbe3c3074b4de91d213595c57741a6b
tree2b207ea249641bbfed0f54d1f979623e32418e02
parent27b7c6e096264cc7b91bb80a4f65f8c0a66f079f
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>
drivers/i2c/busses/i2c-tegra-bpmp.c