extcon: usbc-tusb320: Add support for mode setting and reset
authorYassine Oudjana <y.oudjana@protonmail.com>
Sat, 25 Sep 2021 05:45:39 +0000 (05:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:28 +0000 (13:14 +0100)
commitb9c8820d91e9b7e52b8513fe3e6be807ff79801e
treeb91e372343c976351f660383e7adf7845833f3c8
parent4524599a6a29117fe0671ff3e05663fe8cdd08ff
extcon: usbc-tusb320: Add support for mode setting and reset

[ Upstream commit 70c55d6be634e5f9894169340f3fe5c73f53ac2d ]

Reset the chip and set its mode to default (maintain mode set by PORT pin)
during probe to make sure it comes up in the default state.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Stable-dep-of: 581c848b610d ("extcon: usbc-tusb320: Update state on probe even if no IRQ pending")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/extcon/extcon-usbc-tusb320.c