pinctrl: intel: Protect IO in few call backs by lock
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 12 Jun 2020 14:50:00 +0000 (17:50 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 22 Jun 2020 07:58:52 +0000 (10:58 +0300)
commite64fbfa51e8fc4eeca2d2bbf0d31a30a15734229
tree519b11cafe2340cb8f9bcca67e600dfd3f297478
parent81ab5542d7978f41a2b41c0f325b45980a478c6f
pinctrl: intel: Protect IO in few call backs by lock

Protect IO in intel_gpio_get_direction(), intel_gpio_community_irq_handler(),
intel_config_get_debounce() and intel_config_get_pull() by lock. Even for
simple readl() we better serialize IO to avoid potential problems.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel.c