]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mcp23s08: fix interrupt handling regression
authorDmitry Mastykin <mastichi@gmail.com>
Wed, 18 Oct 2017 14:21:02 +0000 (17:21 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Oct 2017 08:20:03 +0000 (10:20 +0200)
commit4f515fcd871a0f8dd146fb4315f1a53579647330
tree2e9f229c0748053a91a43a7c09a7efc07379baa1
parent591c5eeaee1586a90ce26daf36e290c6a7b61c5e
pinctrl: mcp23s08: fix interrupt handling regression

interrupt handling was broken with conversion to using regmap caching.
cached_gpio value was updated by boolean status instead of gpio reading.

Fixes: c8932986d860 ("pinctrl: mcp23s08: switch to regmap caching")
Tested-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Dmitry Mastykin <mastichi@gmail.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c