]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'sh_eth-fix-reboot-crash'
authorJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 20:02:22 +0000 (12:02 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 20:02:23 +0000 (12:02 -0800)
commit3c5cc6cf59c363a6e33f39942d4293a84fe3e136
treecaef0f26b8a167e9b4ed96105600402c436be841
parent4ce8b07382752920abd44cc0969f35b53c1f2916
parent58e613fe05bde06da4951059d96d994a9d52622a
Merge branch 'sh_eth-fix-reboot-crash'

Geert Uytterhoeven says:

====================
sh_eth: Fix reboot crash

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).
====================

Link: https://lore.kernel.org/r/20210118150656.796584-1-geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>