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>
Fri, 11 Feb 2022 14:38:23 +0000 (15:38 +0100)
commit6960331dee17ee54d1b6188f0f4fc9537279d514
tree9072112a7d21ed9d0ae8aabc8715f1034f14e7d0
parent6cf72f41808ab5db1d7718b999b3ff0166e67e45
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