]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Fix B53_SERDES_DIGITAL_CONTROL offset
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 21 Sep 2018 23:43:58 +0000 (16:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 03:01:19 +0000 (20:01 -0700)
commite81c3bd6338073b573c245cc62ac5f3da2bd730e
treeb39e4b70f8127be4c776b3648b03196b91d4aaba
parent20a44aba78f57c01576abbf3e4e20d7ed5e08356
net: dsa: b53: Fix B53_SERDES_DIGITAL_CONTROL offset

Maths went wrong, to get 0x20, we need to do 0x1e + (x) * 2, not 0x18,
fix that offset so we access the correct registers. This would make us
not access the correct SerDes Digital control words, status would be
fine and so we would not be correctly flipping between Fiber and SGMII
modes resulting in incorrect status words being pulled into the SerDes
digital status register.

Fixes: 77e88995d83e ("net: dsa: b53: Add SerDes support")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_serdes.h