[patch net-next] mlxsw: pci: Fix the FW ready mask length

Subsystems: mellanox ethernet switch drivers, networking drivers, the rest

STALE3562d

2 messages, 2 authors, 2016-11-03 · open the first message on its own page

[patch net-next] mlxsw: pci: Fix the FW ready mask length

From: Jiri Pirko <jiri@resnulli.us>
Date: 2016-11-03 08:41:58

From: Elad Raz <redacted>

The system-status register is actually 16-bit wide and not 8 bit-wide.

Fixes: 233fa44bd67ae ("mlxsw: pci: Implement reset done check")
Signed-off-by: Elad Raz <redacted>
Signed-off-by: Jiri Pirko <redacted>
---
 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h b/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h
index 708736f..d147ddd 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h
@@ -60,7 +60,7 @@
 #define MLXSW_PCI_SW_RESET_RST_BIT		BIT(0)
 #define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS	5000
 #define MLXSW_PCI_FW_READY			0xA1844
-#define MLXSW_PCI_FW_READY_MASK			0xFF
+#define MLXSW_PCI_FW_READY_MASK			0xFFFF
 #define MLXSW_PCI_FW_READY_MAGIC		0x5E
 
 #define MLXSW_PCI_DOORBELL_SDQ_OFFSET		0x000
-- 
2.7.4

Re: [patch net-next] mlxsw: pci: Fix the FW ready mask length

From: David Miller <davem@davemloft.net>
Date: 2016-11-03 20:21:47

From: Jiri Pirko <jiri@resnulli.us>
Date: Thu,  3 Nov 2016 09:41:55 +0100
From: Elad Raz <redacted>

The system-status register is actually 16-bit wide and not 8 bit-wide.

Fixes: 233fa44bd67ae ("mlxsw: pci: Implement reset done check")
Signed-off-by: Elad Raz <redacted>
Signed-off-by: Jiri Pirko <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help