Loading sound/soc/codecs/wcd9330.c +16 −0 Original line number Diff line number Diff line Loading @@ -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", Loading Loading
sound/soc/codecs/wcd9330.c +16 −0 Original line number Diff line number Diff line Loading @@ -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", Loading