Commit 2dbccba6 authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Sekhar Nori
Browse files

net: prueth: Always inform the PRUs of PHY changes



Currently if the PHY state change handler detects that the PHY state has
not changed we do not update the PHY status in the PRU memory. This state
change handler checks the new state against a saved version of the state
stored in host memory, but does not verify that the PRU's knowledge of
the current state has not changed. The PRU's knowledge of the PHY state
is set in PRU DRAM that may be reset when the associated interface state
is changed. This can lead to the PRUs internal PHY state becoming out of
sync with the host's. Fix this here by always updating the PHY state in
the PRU's memory.

Fixes: 14d7cba3 ("net: prueth: Add TI PRUSS Ethernet driver")
Reported-by: default avatarAparna Balasubramanian <aparnab@ti.com>
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Tested-by: default avatarAparna Balasubramanian <aparnab@ti.com>
Acked-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent b823f827
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment