]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: tcpm/tcpci_maxim: deprecate WAR for setting charger mode
authorAmit Sunil Dhamne <amitsd@google.com>
Wed, 25 Mar 2026 22:22:27 +0000 (22:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Mar 2026 14:58:33 +0000 (16:58 +0200)
commit0c8935642cb08c2b64cc4264ac751298994edd8a
tree67e44f53440cb2563d99586e18cc67e169cfd057
parent70d7dd27f6dc9bada652c3a84ba7e6688a96f8db
usb: typec: tcpm/tcpci_maxim: deprecate WAR for setting charger mode

TCPCI maxim driver directly writes to the charger's register space to
set charger mode depending on the power role. As MAX77759 chg driver
exists, this WAR is not required.

Instead, use a regulator interface to source vbus when typec is in
source power mode. In other power modes, this regulator will be turned
off if active.

Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20260325-max77759-charger-v9-6-4486dd297adc@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci_maxim.h
drivers/usb/typec/tcpm/tcpci_maxim_core.c