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>