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

Commit 08b5f6d7 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: smb135x-charger: use only usbin_uv/_ov for removal



The current driver uses both a falling edge on src_detect interrupt
or a rising edge on usbin_uv/_ov to initiate USB removal
activities. The src_detect is seen dropping even when a valid USB
is present.

Hence update the driver to use only usbin_uv/_ov interrupts for
USB removal.

CRs-Fixed: 631587
Change-Id: Iaa6c5853be8aa591721aea0b2fd5e4007de19f37
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 8b606f17
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -2016,11 +2016,6 @@ static int src_detect_handler(struct smb135x_chg *chip, u8 rt_stat)

	pr_debug("chip->usb_present = %d usb_present = %d\n",
			chip->usb_present, usb_present);
	if (chip->usb_present && !usb_present) {
		/* USB removed */
		chip->usb_present = usb_present;
		handle_usb_removal(chip);
	}

	if (!chip->usb_present && usb_present) {
		/* USB inserted */