Thread (4 messages) flat view 4 messages, 4 authors, 2021-01-20

Re: [PATCH] sh_eth: Fix power down vs. is_opened flag ordering

From: Sergei Shtylyov <hidden>
Date: 2021-01-18 16:59:18
Also in: linux-renesas-soc, lkml

On 1/18/21 6:08 PM, Geert Uytterhoeven wrote:
sh_eth_close() does a synchronous power down of the device before
marking it closed.  Revert the order, to make sure the device is never
marked opened while suspended.

While at it, use pm_runtime_put() instead of pm_runtime_put_sync(), as
there is no reason to do a synchronous power down.

Fixes: 7fa2955ff70ce453 ("sh_eth: Fix sleeping function called from invalid context")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Sergei Shtylyov <redacted>

[...]

MBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help