[PATCH v2 1/1] power: supply: cpcap-charger: Add usleep to cpcap charger to avoid usb plug bounce

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adds 40000 ms sleep before cpcap_charger_enable to hopfully avoid the bounce on 
plug in

Signed-off-by: Carl Philipp Klemm <philipp@xxxxxxxx>
---
 drivers/power/supply/cpcap-charger.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/power/supply/cpcap-charger.c b/drivers/power/supply/cpcap-charger.c
index c0d452e3dc8b..130c61a9f267 100644
--- a/drivers/power/supply/cpcap-charger.c
+++ b/drivers/power/supply/cpcap-charger.c
@@ -631,6 +631,8 @@ static void cpcap_usb_detect(struct work_struct *work)
 		return;
 	}
 
+	usleep_range(40000, 60000);
+
 	/* Throttle chrgcurr2 interrupt for charger done and retry */
 	switch (ddata->state) {
 	case CPCAP_CHARGER_CHARGING:
-- 
2.29.2



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux