[U-Boot] [PATCH 1/2] net: macb: explicitly pass phy_adr to mdio read and write

2019-10-02 Thread Josef Holzmayr
To support accessing arbitrary addresses the mii/mdio bus it is neccesary that the macb_mdio_read and macb_mdio_write functions do not implicitly use the address of the connected phy. The function signature is extended according to the Linux kernel equivalent. Signed-off-by: Josef Holzmayr

[U-Boot] [PATCH 0/2] net: macb: support arbitrary mdio addresses

2019-10-02 Thread Josef Holzmayr
This patch mini-series enables the macb driver to access all addresses on the mdio bus instead of only the one of the connected phy. This is especially useful if you have a tagging switch connected to the macb. Josef Holzmayr (2): net: macb: explicitly pass phy_adr to mdio read and write net

[U-Boot] [PATCH 2/2] net: macb: let miiphy_read/_write pass arbitrary addresses

2019-10-02 Thread Josef Holzmayr
This allows passing arbitrary addresses through macb_miiphy_read and macb_miiphy_write, therefore enabling the mii command to access all mdio bus devices instead of only the defined phy. Signed-off-by: Josef Holzmayr --- drivers/net/macb.c | 10 ++ 1 file changed, 2 insertions(+), 8

[U-Boot] [PATCH] Check eth_get_dev() for null on NetLoop entry

2012-11-23 Thread Josef Holzmayr
If using an usb ethernet interface and starting usb is forgot, any attempt to use ethernet will try to init networking and dereference eth_get_dev() to null. This patch adds a check and aborts in case of a null pointer. --- net/net.c | 11 +++ 1 file changed, 11 insertions(+) diff