[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190916.091220.1015956756124841222.davem@davemloft.net>
Date: Mon, 16 Sep 2019 09:12:20 +0200 (CEST)
From: David Miller <davem@...emloft.net>
To: Jose.Abreu@...opsys.com
Cc: netdev@...r.kernel.org, Joao.Pinto@...opsys.com,
peppe.cavallaro@...com, alexandre.torgue@...com,
mcoquelin.stm32@...il.com,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
christophe.roullier@...com
Subject: Re: [PATCH net] net: stmmac: Hold rtnl lock in suspend/resume
callbacks
From: Jose Abreu <Jose.Abreu@...opsys.com>
Date: Fri, 13 Sep 2019 11:50:32 +0200
> We need to hold rnl lock in suspend and resume callbacks because phylink
> requires it. Otherwise we will get a WARN() in suspend and resume.
>
> Also, move phylink start and stop callbacks to inside device's internal
> lock so that we prevent concurrent HW accesses.
>
> Fixes: 74371272f97f ("net: stmmac: Convert to phylink and remove phylib logic")
> Reported-by: Christophe ROULLIER <christophe.roullier@...com>
> Tested-by: Christophe ROULLIER <christophe.roullier@...com>
> Signed-off-by: Jose Abreu <joabreu@...opsys.com>
Applied and queued up for v5.3 -stable.
Thanks.
Powered by blists - more mailing lists