i2c: bpmp-tegra: Ignore unknown I2C_M flags
authorMikko Perttunen <mperttunen@nvidia.com>
Tue, 12 Jan 2021 10:22:25 +0000 (12:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:54:50 +0000 (11:54 +0100)
commitc47951346c3c62bfad92ce45652b5fda0a785297
treed1421d1b53e2e08122713586ef328ebb5f01b135
parente633c0879be39a63bb8bd79879b9991329515254
i2c: bpmp-tegra: Ignore unknown I2C_M flags

commit bc1c2048abbe3c3074b4de91d213595c57741a6b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-tegra-bpmp.c