]> git.baikalelectronics.ru Git - kernel.git/commit
ravb: Separate handling of irq enable/disable regs into feature
authorPhil Edworthy <phil.edworthy@renesas.com>
Thu, 12 May 2022 11:47:19 +0000 (12:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:14:27 +0000 (10:14 +0100)
commitca597300030cdefcf4182dc471ce5d74322c89b5
treeed32cf8caef04e70525f0224f34ed1b3dd916638
parent1e8159082b507b1c69542dad67bb636a7c6d57db
ravb: Separate handling of irq enable/disable regs into feature

Currently, when the HW has a single interrupt, the driver uses the
GIC, TIC, RIC0 registers to enable and disable interrupts.
When the HW has multiple interrupts, it uses the GIE, GID, TIE, TID,
RIE0, RID0 registers.

However, other devices, e.g. RZ/V2M, have multiple irqs and only have
the GIC, TIC, RIC0 registers.
Therefore, split this into a separate feature.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c
drivers/net/ethernet/renesas/ravb_ptp.c