diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-06-05 16:40:35 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-06-16 11:22:41 +0200 |
commit | 0b22c25e1b81c5f718e89c4d759e6a359be24417 (patch) | |
tree | 302195bd7433448399e01cbcdee7152f26ee2897 /security/lockdown | |
parent | ba8c90c6184784b397807b72403656085ac2f8c1 (diff) | |
download | linux-0b22c25e1b81c5f718e89c4d759e6a359be24417.tar.bz2 |
gpio: pca953x: Fix direction setting when configure an IRQ
The commit 0f25fda840a9 ("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: 0f25fda840a9 ("gpio: pca953x: Zap ad-hoc reg_direction cache")
Depends-on: 35d13d94893f ("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>
Diffstat (limited to 'security/lockdown')
0 files changed, 0 insertions, 0 deletions