Re: [PATCH v2 net 5/8] net: mscc: ocelot: error checking when calling ocelot_init()

2020-09-18 Thread Alexandre Belloni
On 18/09/2020 04:07:27+0300, Vladimir Oltean wrote: > From: Vladimir Oltean > > ocelot_init() allocates memory, resets the switch and polls for a status > register, things which can fail. Stop probing the driver in that case, > and propagate the error result. > > Signed-off-by: Vladimir Oltean

Re: [PATCH v2 net 5/8] net: mscc: ocelot: error checking when calling ocelot_init()

2020-09-17 Thread Florian Fainelli
On 9/17/2020 6:07 PM, Vladimir Oltean wrote: From: Vladimir Oltean ocelot_init() allocates memory, resets the switch and polls for a status register, things which can fail. Stop probing the driver in that case, and propagate the error result. Signed-off-by: Vladimir Oltean Reviewed-by: Hor

[PATCH v2 net 5/8] net: mscc: ocelot: error checking when calling ocelot_init()

2020-09-17 Thread Vladimir Oltean
From: Vladimir Oltean ocelot_init() allocates memory, resets the switch and polls for a status register, things which can fail. Stop probing the driver in that case, and propagate the error result. Signed-off-by: Vladimir Oltean Reviewed-by: Horatiu Vultur --- Changes in v2: Stopped leaking th