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)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 21 Jun 2021 09:28:00 +0000 (18:28 +0900)
commitecb5bdff901139850fb3ca3ae2d0cccac045bc52
tree5902dfc08a61f4072a8b548055053e543b8b2128
parent009c9aa5be652675a06d5211e1640e02bbb1c33d
extcon: intel-mrfld: Sync hardware and software state on init

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>
drivers/extcon/extcon-intel-mrfld.c