]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitecf38235bdebf78d2352a0587375c5e220e064bf
tree6e2812aa5128e64f125698b13367f9209a0e4ba2
parent178bf565b47ac1b20d8a5fbca2d134ecc81707c2
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