OSDN Git Service

pinctrl: baytrail: Add missing spinlock usage in byt_gpio_irq_handler
authorAlexander Stein <alexander.stein@systec-electronic.com>
Mon, 30 Jan 2017 11:35:28 +0000 (12:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 07:08:25 +0000 (08:08 +0100)
commit20658b3df8b98cbdc433c824730471160a087afb
treeef85c2d2a6f6d9795d014a36101dd2b1d2c69c5d
parent7396685a1bca323b96fd79b836ae22b7569d7068
pinctrl: baytrail: Add missing spinlock usage in byt_gpio_irq_handler

commit cdca06e4e85974d8a3503ab15709dbbaf90d3dd1 upstream.

According to VLI64 Intel Atom E3800 Specification Update (#329901)
concurrent read accesses may result in returning 0xffffffff and write
accesses may be dropped silently.
To workaround all accesses must be protected by locks.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/intel/pinctrl-baytrail.c