]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ixp4xx: Support device tree probing
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 25 Apr 2021 00:30:38 +0000 (02:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 01:27:13 +0000 (18:27 -0700)
commit19c07063536d02647f8a5e61acbbfff6a047295d
tree6651d20a4ab4913e16063218aa2442042634cf54
parent31bcae888cad8c81e8029f10cb87afcfb70c1208
net: ethernet: ixp4xx: Support device tree probing

This adds device tree probing to the IXP4xx ethernet
driver.

Add a platform data bool to tell us whether to
register an MDIO bus for the device or not, as well
as the corresponding NPE.

We need to drop the memory region request as part of
this since the OF core will request the memory for the
device.

Cc: Zoltan HERPAI <wigyori@uid0.hu>
Cc: Raylynn Knight <rayknight@me.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xscale/Kconfig
drivers/net/ethernet/xscale/ixp4xx_eth.c
include/linux/platform_data/eth_ixp4xx.h