diff options
| author | David S. Miller <davem@davemloft.net> | 2015-01-27 03:16:56 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-01-27 03:16:56 -0500 |
| commit | 971f49dee2639badd70bea6cf92e4eaa357ffecf (patch) | |
| tree | ddf90b1789e8a24547a0bf6786274df77eebd330 /include/linux/phy.h | |
| parent | d2fa7cc4e3bd759f5c8e093d1e08b718c722f319 (diff) | |
| parent | 803dd9c77ac3a08958535f2a1ad5890104e2c235 (diff) | |
Merge branch 'phy-next'
Florian Fainelli says:
====================
net: phy: prevent double suspend
This patch series addresses a problem that Fugang and I observed on different
platforms where a given PHY device might end-up being suspended twice.
Once as part of the call from ndo_open() all the way down to phy_detach() and
phy_suspend() and a second time when the generic platform device/driver
suspend/resume callbacks are called in drivers/net/phy/mdio_bus.c.
Thanks to Fugang for giving this a quick try on i.MX6/FEC and reporting
positive test results!
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
| -rw-r--r-- | include/linux/phy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 9c189a1fa3a2..685809835b5c 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
| @@ -327,6 +327,8 @@ struct phy_c45_device_ids { | |||
| 327 | * c45_ids: 802.3-c45 Device Identifers if is_c45. | 327 | * c45_ids: 802.3-c45 Device Identifers if is_c45. |
| 328 | * is_c45: Set to true if this phy uses clause 45 addressing. | 328 | * is_c45: Set to true if this phy uses clause 45 addressing. |
| 329 | * is_internal: Set to true if this phy is internal to a MAC. | 329 | * is_internal: Set to true if this phy is internal to a MAC. |
| 330 | * has_fixups: Set to true if this phy has fixups/quirks. | ||
| 331 | * suspended: Set to true if this phy has been suspended successfully. | ||
| 330 | * state: state of the PHY for management purposes | 332 | * state: state of the PHY for management purposes |
| 331 | * dev_flags: Device-specific flags used by the PHY driver. | 333 | * dev_flags: Device-specific flags used by the PHY driver. |
| 332 | * addr: Bus address of PHY | 334 | * addr: Bus address of PHY |
| @@ -364,6 +366,7 @@ struct phy_device { | |||
| 364 | bool is_c45; | 366 | bool is_c45; |
| 365 | bool is_internal; | 367 | bool is_internal; |
| 366 | bool has_fixups; | 368 | bool has_fixups; |
| 369 | bool suspended; | ||
| 367 | 370 | ||
| 368 | enum phy_state state; | 371 | enum phy_state state; |
| 369 | 372 | ||
