extcon: intel-mrfld: Sync hardware and software state on init
authorFerry Toth <ftoth@exalondelft.nl>
Tue, 18 May 2021 21:27:09 +0000 (23:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:45:00 +0000 (09:45 +0200)
commit418b333afbd55e67f7911868515051e0a7a37658
tree45a7ac4e3dddbc114527dfb5c6e97ff5f55f2baa
parentaf092ec16e06c179632ee69e1e1713308b1e8d7d
extcon: intel-mrfld: Sync hardware and software state on init

commit ecb5bdff901139850fb3ca3ae2d0cccac045bc52 upstream.

extcon driver for Basin Cove PMIC shadows the switch status used for dwc3
DRD to detect a change in the switch position. This change initializes the
status at probe time.

Cc: stable@vger.kernel.org
Fixes: 492929c54791 ("extcon: mrfld: Introduce extcon driver for Basin Cove PMIC")
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-intel-mrfld.c