Re: [PATCH v2 4/4 net-next] net: mdio device: use flexible sleeping in reset function

2020-08-02 Thread Florian Fainelli
On 7/30/2020 12:57 PM, Bruno Thomsen wrote: > 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(),

Re: [PATCH v2 4/4 net-next] net: mdio device: use flexible sleeping in reset function

2020-08-02 Thread Andrew Lunn
On Thu, Jul 30, 2020 at 09:57:49PM +0200, Bruno Thomsen wrote: > 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 funct

[PATCH v2 4/4 net-next] net: mdio device: use flexible sleeping in reset function

2020-07-30 Thread Bruno Thomsen
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