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

Commit a0031710 authored by Kavya Nunna's avatar Kavya Nunna Committed by Ashish Chavan
Browse files

power: smblite-lib/smb5-lib: Fix partner registration for microusb



Typec attach_detach handler gets executed which is not
expected for micro-usb design. Return from type-C attach-detach
handler for micro-usb stack.

Change-Id: Ia7bfe6b407757663be4f7d143ccd88a60079657b
Signed-off-by: default avatarKavya Nunna <knunna@codeaurora.org>
Signed-off-by: default avatarAshish Chavan <ashichav@codeaurora.org>
parent 325d5f39
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6574,6 +6574,10 @@ irqreturn_t smb5_typec_attach_detach_irq_handler(int irq, void *data)
	bool attached = false;
	int rc;

	/* IRQ not expected to be executed for uUSB, return */
	if (chg->connector_type == QTI_POWER_SUPPLY_CONNECTOR_MICRO_USB)
		return IRQ_HANDLED;

	smblib_dbg(chg, PR_INTERRUPT, "IRQ: %s\n", irq_data->name);

	rc = smblib_read(chg, TYPE_C_STATE_MACHINE_STATUS_REG, &stat);