Skip to content

Commit 4c5a331

Browse files
Hariprasad Kelamdavem330
authored andcommitted
octeontx2-af: cn10kb: fix interrupt csr addresses
The current design is that, for asynchronous events like link_up and link_down firmware raises the interrupt to kernel. The previous patch which added RPM_USX driver has a bug where it uses old csr addresses for configuring interrupts. Which is resulting in losing interrupts from source firmware. This patch fixes the issue by correcting csr addresses. Fixes: b9d0fed ("octeontx2-af: cn10kb: Add RPM_USX MAC support") Signed-off-by: Hariprasad Kelam <[email protected]> Signed-off-by: Sunil Goutham <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c97d3fb commit 4c5a331

File tree

2 files changed

+3
-2
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

2 files changed

+3
-2
lines changed

drivers/net/ethernet/marvell/octeontx2/af/rpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static struct mac_ops rpm2_mac_ops = {
4747
.int_set_reg = RPM2_CMRX_SW_INT_ENA_W1S,
4848
.irq_offset = 1,
4949
.int_ena_bit = BIT_ULL(0),
50-
.lmac_fwi = RPM_LMAC_FWI,
50+
.lmac_fwi = RPM2_LMAC_FWI,
5151
.non_contiguous_serdes_lane = true,
5252
.rx_stats_cnt = 43,
5353
.tx_stats_cnt = 34,

drivers/net/ethernet/marvell/octeontx2/af/rpm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494

9595
/* CN10KB CSR Declaration */
9696
#define RPM2_CMRX_SW_INT 0x1b0
97-
#define RPM2_CMRX_SW_INT_ENA_W1S 0x1b8
97+
#define RPM2_CMRX_SW_INT_ENA_W1S 0x1c8
98+
#define RPM2_LMAC_FWI 0x12
9899
#define RPM2_CMR_CHAN_MSK_OR 0x3120
99100
#define RPM2_CMR_RX_OVR_BP_EN BIT_ULL(2)
100101
#define RPM2_CMR_RX_OVR_BP_BP BIT_ULL(1)

0 commit comments

Comments
 (0)