Re: [PATCH] net: mscc: ocelot: replace readx_poll_timeout with readx_poll_timeout_atomic

2020-05-16 Thread Vladimir Oltean
On Sat, 16 May 2020 at 23:54, David Miller wrote: > > From: Xulin Sun > Date: Fri, 15 May 2020 11:18:13 +0800 > > > BUG: sleeping function called from invalid context at > > drivers/net/ethernet/mscc/ocelot.c:59 > > in_atomic(): 1, irqs_disabled(): 0, pid: 3778, name: ifconfig > > INFO: lockdep

Re: [PATCH] net: mscc: ocelot: replace readx_poll_timeout with readx_poll_timeout_atomic

2020-05-16 Thread David Miller
From: Xulin Sun Date: Fri, 15 May 2020 11:18:13 +0800 > BUG: sleeping function called from invalid context at > drivers/net/ethernet/mscc/ocelot.c:59 > in_atomic(): 1, irqs_disabled(): 0, pid: 3778, name: ifconfig > INFO: lockdep is turned off. > Preemption disabled at: > []

Re: [PATCH] net: mscc: ocelot: replace readx_poll_timeout with readx_poll_timeout_atomic

2020-05-15 Thread Vladimir Oltean
Hi Xulin, On Fri, 15 May 2020 at 06:23, Xulin Sun wrote: > > This fixes call trace like below to use atomic safe API: > > BUG: sleeping function called from invalid context at > drivers/net/ethernet/mscc/ocelot.c:59 > in_atomic(): 1, irqs_disabled(): 0, pid: 3778, name: ifconfig > INFO: lockdep

Re: [PATCH] net: mscc: ocelot: replace readx_poll_timeout with readx_poll_timeout_atomic

2020-05-15 Thread Andrew Lunn
On Fri, May 15, 2020 at 11:18:13AM +0800, Xulin Sun wrote: > This fixes call trace like below to use atomic safe API: > > BUG: sleeping function called from invalid context at > drivers/net/ethernet/mscc/ocelot.c:59 > in_atomic(): 1, irqs_disabled(): 0, pid: 3778, name: ifconfig > INFO: lockdep