mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: phy: allow PHY drivers to implement their own software reset
As pointed out by Shaohui, most 10G PHYs out there have a non-standard compliant software reset sequence, eventually something much more complex than just toggling the BMCR_RESET bit. Allow PHY driver to implement their own soft_reset() callback to deal with that. If no callback is provided, call into genphy_soft_reset() which makes sure the existing behavior is kept intact. Reported-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
797ac07137
commit
9df81dd758
2 changed files with 19 additions and 2 deletions
|
@ -439,6 +439,11 @@ struct phy_driver {
|
|||
u32 features;
|
||||
u32 flags;
|
||||
|
||||
/*
|
||||
* Called to issue a PHY software reset
|
||||
*/
|
||||
int (*soft_reset)(struct phy_device *phydev);
|
||||
|
||||
/*
|
||||
* Called to initialize the PHY,
|
||||
* including after a reset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue