Re: [RFC PATCH 1/5] net: macb: Check MDIO state before read/write and use timeouts

2018-05-03 Thread Harini Katakam
Hi Claudiu, On Thu, May 3, 2018 at 3:38 PM, Claudiu Beznea wrote: > > > On 22.03.2018 15:51, harinikatakamli...@gmail.com wrote: >> From: Harini Katakam >> >> + ulong timeout; >> + >> + timeout = jiffies + msecs_to_jiffies(1000); >> + /* wait for end of transfer */ >> + do { >>

Re: [RFC PATCH 1/5] net: macb: Check MDIO state before read/write and use timeouts

2018-05-03 Thread Claudiu Beznea
On 22.03.2018 15:51, harinikatakamli...@gmail.com wrote: > From: Harini Katakam > > Replace the while loop in MDIO read/write functions with a timeout. > In addition, add a check for MDIO bus busy before initiating a new > operation as well to make sure there is no ongoing MDIO operation. > >

Re: [RFC PATCH 1/5] net: macb: Check MDIO state before read/write and use timeouts

2018-03-22 Thread Andrew Lunn
On Thu, Mar 22, 2018 at 07:21:36PM +0530, harinikatakamli...@gmail.com wrote: > From: Harini Katakam > > Replace the while loop in MDIO read/write functions with a timeout. > In addition, add a check for MDIO bus busy before initiating a new > operation as well to make sure there is no ongoing MD

[RFC PATCH 1/5] net: macb: Check MDIO state before read/write and use timeouts

2018-03-22 Thread harinikatakamlinux
From: Harini Katakam Replace the while loop in MDIO read/write functions with a timeout. In addition, add a check for MDIO bus busy before initiating a new operation as well to make sure there is no ongoing MDIO operation. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Harini Katakam --- dr