Files
rockchip-kernel/drivers/net
Mathieu Olivari 0a3a1bd69e CHROMIUM: drivers: nss-gmac: Set parent during net_device init
net_device currently doesn't have any parent, so it is not linked
properly through sysfs. This makes it unusable from udev.

We now call SET_NETDEV_DEV() on the platform device:

localhost ~ # udevadm info -p /sys/class/net/eth0
P: /devices/soc.2/37000000.ethernet/net/eth0
E: DEVPATH=/devices/soc.2/37000000.ethernet/net/eth0
...

It is now linked to the right platform device and can be identified in
udev accordingly.

BUG=chrome-os-partner:33096
TEST=Tested on Storm with the above commands

Change-Id: I6dbbb65583c0f87b09e59e91c6e324d4d5aee832
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/235560
Reviewed-by: Grant Grundler <grundler@chromium.org>
Reviewed-by: Toshi Kikuchi <toshik@chromium.org>
Commit-Queue: Toshi Kikuchi <toshik@chromium.org>
Tested-by: Toshi Kikuchi <toshik@chromium.org>
2014-12-20 08:57:26 +00:00
..
2014-03-13 15:44:24 -04:00
2013-12-26 13:29:35 -05:00