summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorRobert Hancock <[email protected]>2021-03-11 16:55:50 -0600
committerMichal Simek <[email protected]>2021-03-30 09:18:47 +0200
commite8a212ac771fab575d36a68aca46ac8d5395f815 (patch)
treefa417e1e5d527fa790b84a26c66ee1bdc97663ae /scripts/const_structs.checkpatch
parentd8eafb16c85bc3b5d85d7ba8ebb1438cc0ae168f (diff)
net: gem: Fix setting PCS auto-negotiation state
The code was trying to disable PCS auto-negotiation when a fixed-link node is present and enable it otherwise. However, the PCS registers were being written before the PCSSEL bit was set in the network configuration register, and it appears that in this state, PCS register writes are ignored. The result is that the intended change only took effect on the second network operation that was performed, since at that time PCSSEL is already enabled. Fix the order of register writes so that PCS registers are only written to after the PCS is enabled. Fixes: 26e62cc971 ("net: gem: Disable PCS autonegotiation in case of fixed-link") Signed-off-by: Robert Hancock <[email protected]> Reviewed-by: Ramon Fried <[email protected]> Reviewed-by: Ashok Reddy Soma <[email protected]> Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions