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

Commit 5aa1181a authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Vamshi Krishna B V
Browse files

power: qpnp-smbcharger: update USB handling at boot-up



During boot-up USB handling in charger driver is done
twice causing multiple notifications to USB driver. Fix this
by removing call to src_detect_handler and handling USB state
in handle_usb_insertion/removal.

CRs-Fixed: 1035576
Change-Id: I439984815a2ad6a32bfb733ee83c2c4828786d06
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: default avatarVamshi Krishna B V <vbv@codeaurora.org>
parent f7bb6acc
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -6684,7 +6684,6 @@ static int determine_initial_status(struct smbchg_chip *chip)
	} else {
	} else {
		usbid_change_handler(0, chip);
		usbid_change_handler(0, chip);
	}
	}
	src_detect_handler(0, chip);


	chip->usb_present = is_usb_present(chip);
	chip->usb_present = is_usb_present(chip);
	chip->dc_present = is_dc_present(chip);
	chip->dc_present = is_dc_present(chip);