diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-09-24 00:46:40 +0200 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2021-10-06 13:01:45 +0200 |
commit | 55a9968c7e139209a9e93d4ca4321731bea5fc95 (patch) | |
tree | dc34d2a72a6af85a8b7de107d2df70963bfe50ce /drivers/dma | |
parent | gpio: 74x164: Add SPI device ID table (diff) | |
download | linux-55a9968c7e139209a9e93d4ca4321731bea5fc95.tar.xz linux-55a9968c7e139209a9e93d4ca4321731bea5fc95.zip |
gpio: pca953x: Improve bias setting
The commit 15add06841a3 ("gpio: pca953x: add ->set_config implementation")
introduced support for bias setting. However this, due to being half-baked,
brought potential issues:
- the turning bias via disabling makes the pin floating for a while;
- once enabled, bias can't be disabled.
Fix all these by adding support for bias disabling and move the disabling
part under the corresponding conditional.
While at it, add support for default setting, since it's cheap to add.
Fixes: 15add06841a3 ("gpio: pca953x: add ->set_config implementation")
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/dma')
0 files changed, 0 insertions, 0 deletions