]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: fix internal delay applied to the wrong PAD config
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 19 Nov 2021 02:03:49 +0000 (03:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 12:34:37 +0000 (12:34 +0000)
commit9fba95d0d27b9018ca4818581654d813bfa09144
treef58911fd68f94f8f833fd8877956a8ce0c60575e
parent96f57b4345f07c564a3e2432358e6e0b59d6a295
net: dsa: qca8k: fix internal delay applied to the wrong PAD config

With SGMII phy the internal delay is always applied to the PAD0 config.
This is caused by the falling edge configuration that hardcode the reg
to PAD0 (as the falling edge bits are present only in PAD0 reg)
Move the delay configuration before the reg overwrite to correctly apply
the delay.

Fixes: d2bd8e1c0e7e ("net: dsa: qca8k: set internal delay also for sgmii")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c