diff options
| author | Bruno Thomsen <[email protected]> | 2020-07-30 21:57:48 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-08-03 15:01:02 -0700 |
| commit | bb3831294cd50750806f2ce8d73317dc8feeda09 (patch) | |
| tree | b1954b61b77d4b8ed1a001a58609941317e9f712 /include | |
| parent | 6259e0f5478d7a7e4ff3e38bc739b612b8907246 (diff) | |
net: mdiobus: add reset-post-delay-us handling
Load new "reset-post-delay-us" value from MDIO properties,
and if configured to a greater then zero delay do a
flexible sleeping delay after MDIO bus reset deassert.
This allows devices to exit reset state before start
bus communication.
Signed-off-by: Bruno Thomsen <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 0403eb799913..3a09d2bf69ea 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -293,6 +293,8 @@ struct mii_bus { /* GPIO reset pulse width in microseconds */ int reset_delay_us; + /* GPIO reset deassert delay in microseconds */ + int reset_post_delay_us; /* RESET GPIO descriptor pointer */ struct gpio_desc *reset_gpiod; |