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

Commit 17aa9d79 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 02d63ee6 4928f0e1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6487,6 +6487,10 @@ irqreturn_t 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 == 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);
+4 −0
Original line number Diff line number Diff line
@@ -2659,6 +2659,10 @@ irqreturn_t smblite_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 == POWER_SUPPLY_CONNECTOR_MICRO_USB)
		return IRQ_HANDLED;

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

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