]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio device: use flexible sleeping in reset function
authorBruno Thomsen <bruno.thomsen@gmail.com>
Thu, 30 Jul 2020 19:57:49 +0000 (21:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:01:02 +0000 (15:01 -0700)
commit1c564e3007325d14b8d44df25a9dc7cff7337113
tree226dab72a2f2a052aa07ef708f4aca9cd3d4930a
parent4359b937ae07a466f4c53ce040491fc0f189091e
net: mdio device: use flexible sleeping in reset function

MDIO device reset assert and deassert length was created by
usleep_range() but that does not ensure optimal handling of
all the different values from device tree properties.
By switching to the new flexible sleeping helper function,
fsleep(), the correct delay function is called depending on
delay length, e.g. udelay(), usleep_range() or msleep().

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_device.c