android_kernel_samsung_sm8650/drivers/usb/redriver
Prashanth K d11bc6a8ad usb: redriver: Avoid disabling regulator if regmap_write fails
While disconnecting USB cable, we clear the General Device
Setting Register (GEN_DEV_SET_REG) in order to disable the
redriver. This is done using the regmap_write API over I2C
interface. There are some cases where this write fails, so
the redriver would still be active, and its regulator would
transition to LPM as we unvote it afterwards. Since redriver
is active, if it consumes current more than the LPM threshold,
it can trigger an OCP. Avoid this situation by not removing
the votes on LDO, so that it would be in NPM.

Change-Id: I0db2cb80ea3ab610240dbec3fa423696eecbe39d
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2024-02-26 14:36:03 +05:30
..
Kconfig
Makefile
nb7vpq904m.c usb: redriver: Avoid disabling regulator if regmap_write fails 2024-02-26 14:36:03 +05:30
redriver.c