Message ID | 1719009262-2948-1-git-send-email-Tristram.Ha@microchip.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b1c4b4d45263241ec6c2405a8df8265d4b58e707 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [v3,net] net: dsa: microchip: fix wrong register write when masking interrupt | expand |
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni <pabeni@redhat.com>: On Fri, 21 Jun 2024 15:34:22 -0700 you wrote: > From: Tristram Ha <tristram.ha@microchip.com> > > The switch global port interrupt mask, REG_SW_PORT_INT_MASK__4, is > defined as 0x001C in ksz9477_reg.h. The designers used 32-bit value in > anticipation for increase of port count in future product but currently > the maximum port count is 7 and the effective value is 0x7F in register > 0x001F. Each port has its own interrupt mask and is defined as 0x#01F. > It uses only 4 bits for different interrupts. > > [...] Here is the summary with links: - [v3,net] net: dsa: microchip: fix wrong register write when masking interrupt https://git.kernel.org/netdev/net/c/b1c4b4d45263 You are awesome, thank you!
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 1e0085cd9a9a..3ad0879b00cd 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -2185,7 +2185,7 @@ static void ksz_irq_bus_sync_unlock(struct irq_data *d) struct ksz_device *dev = kirq->dev; int ret; - ret = ksz_write32(dev, kirq->reg_mask, kirq->masked); + ret = ksz_write8(dev, kirq->reg_mask, kirq->masked); if (ret) dev_err(dev->dev, "failed to change IRQ mask\n");