Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 407a214f authored by Manu Gautam's avatar Manu Gautam Committed by Jack Pham
Browse files

usb: type_c: pericom: Allow disabling chip on system suspend



If pericom chip is enabled using GPIO on bootup then keeping it
always enabled may increase rock bottom current of system by few
micro-amps. Provide an option to use to allow disabling the chip
during suspend if state is not-attached using DT or module param.
Command to enable this at runtime:
  echo 1 >  /sys/module/type_c_pericom/parameters/disable_on_suspend

Only side-effect of enabling suspend during LPM is that ID High->Low
transition (or host cable connection) won't be detected when device
is in suspend state. Cable detection will happen when system wakes-up.

Change-Id: I0526bc7b1e752e8490189fbb1ed17973e9c492fd
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent e7345e81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment