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

Commit 83e048d8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd9330: Handle the port disconnect correctly"

parents 2fd4b6ea ccf78c59
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -6513,6 +6513,22 @@ static irqreturn_t tomtom_slimbus_irq(int irq, void *data)
		port_id = (tx ? j - 16 : j);
		val = wcd9xxx_interface_reg_read(codec->control_data,
				TOMTOM_SLIM_PGD_PORT_INT_RX_SOURCE0 + j);
		if (val) {
			if (!tx)
				reg = TOMTOM_SLIM_PGD_PORT_INT_EN0 +
					(port_id / 8);
			else
				reg = TOMTOM_SLIM_PGD_PORT_INT_TX_EN0 +
					(port_id / 8);
			int_val = wcd9xxx_interface_reg_read(
				codec->control_data, reg);
			/*
			 * Ignore interrupts for ports for which the
			 * interrupts are not specifically enabled.
			 */
			if (!(int_val & (1 << (port_id % 8))))
				continue;
		}
		if (val & TOMTOM_SLIM_IRQ_OVERFLOW)
			pr_err_ratelimited(
			   "%s: overflow error on %s port %d, value %x\n",