mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
gpio: pca953x: Fix direction setting when configure an IRQ
The commit0f25fda840("gpio: pca953x: Zap ad-hoc reg_direction cache") seems inadvertently made a typo in pca953x_irq_bus_sync_unlock(). When the direction bit is 1 it means input, and the piece of code in question was looking for output ones that should be turned to inputs. Fix direction setting when configure an IRQ by injecting a bitmap complement operation. Fixes:0f25fda840("gpio: pca953x: Zap ad-hoc reg_direction cache") Depends-on:35d13d9489("gpio: pca953x: convert to use bitmap API") Cc: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
parent
ba8c90c618
commit
0b22c25e1b
1 changed files with 4 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue