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
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
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
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
4 matches
Mail list logo