i2c: designware: Add missing locks
authorJan Dabros <jsd@semihalf.com>
Tue, 8 Feb 2022 14:12:17 +0000 (15:12 +0100)
committerWolfram Sang <wsa@kernel.org>
Thu, 10 Feb 2022 22:05:16 +0000 (23:05 +0100)
commit4e4c85f2f0ab8d749414ef00ee7dde09bb3a7b01
tree9072112a7d21ed9d0ae8aabc8715f1034f14e7d0
parente071ee718fbc8fcd897956ad8885de5d836202cf
i2c: designware: Add missing locks

All accesses to controller's registers should be protected on
probe, disable and xfer paths. This is needed for i2c bus controllers
that are shared with but not controller by kernel.

Signed-off-by: Jan Dabros <jsd@semihalf.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-designware-common.c
drivers/i2c/busses/i2c-designware-master.c