projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4308bc
)
phy: marvell: a3700-comphy: Fix hardcoded array size
author
Mikhail Kobuk
<m.kobuk@ispras.ru>
Thu, 21 Mar 2024 16:47:31 +0000
(19:47 +0300)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 5 Apr 2024 17:02:00 +0000
(22:32 +0530)
Replace hardcoded 'gbe_phy_init' array size by explicit one.
Fixes: 934337080c6c ("phy: marvell: phy-mvebu-a3700-comphy: Add native kernel implementation")
Signed-off-by: Mikhail Kobuk <m.kobuk@ispras.ru>
Link:
https://lore.kernel.org/r/20240321164734.49273-2-m.kobuk@ispras.ru
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/marvell/phy-mvebu-a3700-comphy.c
patch
|
blob
|
history
diff --git
a/drivers/phy/marvell/phy-mvebu-a3700-comphy.c
b/drivers/phy/marvell/phy-mvebu-a3700-comphy.c
index 68710ad1ad70adcf76e5fc39e30fc4620dde9bcc..1d1db1737422a8edd29cf63201ee244270ee1e69 100644
(file)
--- a/
drivers/phy/marvell/phy-mvebu-a3700-comphy.c
+++ b/
drivers/phy/marvell/phy-mvebu-a3700-comphy.c
@@
-603,7
+603,7
@@
static void comphy_gbe_phy_init(struct mvebu_a3700_comphy_lane *lane,
u16 val;
fix_idx = 0;
- for (addr = 0; addr <
512
; addr++) {
+ for (addr = 0; addr <
ARRAY_SIZE(gbe_phy_init)
; addr++) {
/*
* All PHY register values are defined in full for 3.125Gbps
* SERDES speed. The values required for 1.25 Gbps are almost