net: mdio: mscc-miim: add ability to be used in a non-mmio configuration
authorColin Foster <colin.foster@in-advantage.com>
Mon, 5 Sep 2022 16:21:26 +0000 (09:21 -0700)
committerLee Jones <lee@kernel.org>
Fri, 9 Sep 2022 06:54:32 +0000 (07:54 +0100)
commit43a108c6492232cd2e85fbd4874c0500158b8c8b
tree6e2812aa5128e64f125698b13367f9209a0e4ba2
parentbb5721f063ba63cd54cc5916881a706c21e6abc6
net: mdio: mscc-miim: add ability to be used in a non-mmio configuration

There are a few Ocelot chips that contain the logic for this bus, but are
controlled externally. Specifically the VSC7511, 7512, 7513, and 7514. In
the externally controlled configurations these registers are not
memory-mapped.

Add support for these non-memory-mapped configurations.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220905162132.2943088-3-colin.foster@in-advantage.com
drivers/net/mdio/mdio-mscc-miim.c