netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] sh_eth: Fix reboot crash
@ 2021-01-18 15:06 Geert Uytterhoeven
  2021-01-18 15:06 ` [PATCH net v2 1/2] mdio-bitbang: Export mdiobb_{read,write}() Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2021-01-18 15:06 UTC (permalink / raw)
  To: Sergei Shtylyov, David S . Miller, Jakub Kicinski, Andrew Lunn,
	Heiner Kallweit, Florian Fainelli, Russell King, Ioana Ciornei,
	Wolfram Sang
  Cc: netdev, linux-renesas-soc, linux-kernel, Geert Uytterhoeven

	Hi,

This patch fixes a regression v5.11-rc1, where rebooting while a sh_eth
device is not opened will cause a crash.

Changes compared to v1:
  - Export mdiobb_{read,write}(),
  - Call mdiobb_{read,write}() now they are exported,
  - Use mii_bus.parent to avoid bb_info.dev copy,
  - Drop RFC state.

Alternatively, mdio-bitbang could provide Runtime PM-aware wrappers
itself, and use them either manually (through a new parameter to
alloc_mdio_bitbang(), or a new alloc_mdio_bitbang_*() function), or
automatically (e.g. if pm_runtime_enabled() returns true).  Note that
the latter requires a "struct device *" parameter to operate on.
Currently there are only two drivers that call alloc_mdio_bitbang() and
use Runtime PM: the Renesas sh_eth and ravb drivers.  This series fixes
the former, while the latter is not affected (it keeps the device
powered all the time between driver probe and driver unbind, and
changing that seems to be non-trivial).

Thanks for your comments!

Geert Uytterhoeven (2):
  net: mdio-bitbang: Export mdiobb_{read,write}()
  sh_eth: Make PHY access aware of Runtime PM to fix reboot crash

 drivers/net/ethernet/renesas/sh_eth.c | 26 ++++++++++++++++++++++++++
 drivers/net/mdio/mdio-bitbang.c       |  6 ++++--
 include/linux/mdio-bitbang.h          |  3 +++
 3 files changed, 33 insertions(+), 2 deletions(-)

-- 
2.25.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-19 20:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 15:06 [PATCH net v2 0/2] sh_eth: Fix reboot crash Geert Uytterhoeven
2021-01-18 15:06 ` [PATCH net v2 1/2] mdio-bitbang: Export mdiobb_{read,write}() Geert Uytterhoeven
2021-01-18 19:58   ` Wolfram Sang
2021-01-18 20:40   ` Florian Fainelli
2021-01-18 15:06 ` [PATCH net v2 2/2] sh_eth: Make PHY access aware of Runtime PM to fix reboot crash Geert Uytterhoeven
2021-01-18 19:58   ` Wolfram Sang
2021-01-18 20:40   ` Florian Fainelli
2021-01-18 21:21   ` Andrew Lunn
2021-01-19 20:30 ` [PATCH net v2 0/2] sh_eth: Fix " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).