linux/drivers/net
Florian Fainelli 4d8ee1935b fsl/man: Inherit parent device and of_node
[ Upstream commit a1a50c8e4c ]

Junote Cai reported that he was not able to get a DSA setup involving the
Freescale DPAA/FMAN driver to work and narrowed it down to
of_find_net_device_by_node(). This function requires the network device's
device reference to be correctly set which is the case here, though we have
lost any device_node association there.

The problem is that dpaa_eth_add_device() allocates a "dpaa-ethernet" platform
device, and later on dpaa_eth_probe() is called but SET_NETDEV_DEV() won't be
propagating &pdev->dev.of_node properly. Fix this by inherenting both the parent
device and the of_node when dpaa_eth_add_device() creates the platform device.

Fixes: 3933961682 ("fsl/fman: Add FMan MAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-09-20 08:19:54 +02:00
..
appletalk treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
arcnet arcnet: com90xx: add __init attribute 2016-04-19 20:17:45 -04:00
bonding bonding: fix accounting of active ports in 3ad 2017-06-07 12:07:45 +02:00
caif virtio/vhost: new features for 4.8 2016-08-06 09:20:13 -04:00
can can: gs_usb: fix memory leak in gs_cmd_reset() 2017-06-24 07:11:12 +02:00
cris treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
dsa net: dsa: b53: Add missing ARL entries for BCM53125 2017-08-11 08:49:32 -07:00
ethernet fsl/man: Inherit parent device and of_node 2017-09-20 08:19:54 +02:00
fddi net: skfb: remove obsolete -I cflag 2016-06-15 22:06:06 -07:00
fjes fjes: Delete owner assignment 2016-08-15 11:57:55 -07:00
hamradio NET: mkiss: Fix panic 2017-06-17 06:41:50 +02:00
hippi PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
hyperv Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read() 2017-02-14 15:25:39 -08:00
ieee802154 ieee802154: atusb: do not use the stack for buffers to make them DMA able 2017-01-26 08:24:38 +01:00
ipvlan driver: ipvlan: Unlink the upper dev when ipvlan_link_new failed 2016-12-08 14:30:07 -05:00
irda mcs7780: Fix initialization when CONFIG_VMAP_STACK is enabled 2017-08-11 08:49:32 -07:00
phy net: phy: Fix PHY unbind crash 2017-08-11 08:49:37 -07:00
plip net: plip: use new parport device model 2016-01-09 21:02:05 -05:00
ppp ppp: fix xmit recursion detection on ppp channels 2017-08-12 19:31:21 -07:00
slip treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
team team: loadbalance: push lacpdus to exact delivery 2016-08-26 13:08:59 -07:00
usb usb: qmi_wwan: add D-Link DWM-222 device ID 2017-08-24 17:12:21 -07:00
vmxnet3 vmxnet3: avoid assumption about invalid dma_pa in vmxnet3_set_mc() 2016-10-15 17:47:32 -04:00
wan net: wan: slic_ds26522: Allow driver to built if COMPILE_TEST is enabled 2016-10-14 10:11:49 -04:00
wimax net: wimax: i2400m: usb-notif: don't print error when allocating urb fails 2016-08-13 14:53:40 -07:00
wireless mwifiex: correct channel stat buffer overflows 2017-09-09 17:39:40 +02:00
xen-netback xen-netback: correctly schedule rate-limited queues 2017-08-11 08:49:34 -07:00
dummy.c net: dummy: add more features 2015-10-21 19:36:10 -07:00
eql.c net: better IFF_XMIT_DST_RELEASE support 2014-10-07 13:22:11 -04:00
geneve.c geneve: lock RCU on TX path 2017-03-22 12:43:32 +01:00
gtp.c gtp: add genl family modules alias 2017-06-17 06:41:54 +02:00
ifb.c ifb: support more features 2016-05-09 00:00:28 -04:00
Kconfig ipvlan: Fix dependency issue 2016-09-20 22:55:23 -04:00
LICENSE.SRC Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
loopback.c net: introduce device min_header_len 2017-02-18 15:11:43 +01:00
macsec.c macsec: add genl family module alias 2017-09-20 08:19:53 +02:00
macvlan.c macvlan: Fix device ref leak when purging bc_queue 2017-05-03 08:36:37 -07:00
macvtap.c macvtap: read vnet_hdr_size once 2017-02-18 15:11:42 +01:00
Makefile gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U) 2016-05-10 12:25:04 -04:00
mdio.c mdio: unused ethtool functions 2013-12-26 13:29:35 -05:00
mii.c mii: Handle link state changes for forced modes in mii_check_media() 2015-01-19 15:43:42 -05:00
netconsole.c netconsole: use per-attribute show and store methods 2015-10-13 22:17:51 -07:00
nlmon.c net: nlmon: convert to using IFF_NO_QUEUE 2015-08-18 11:55:05 -07:00
ntb_netdev.c NTB: Add flow control to the ntb_netdev 2015-09-07 15:17:08 -04:00
rionet.c drivers: net: remove NETDEV_TX_LOCKED 2016-04-26 15:53:05 -04:00
sb1000.c PNP: net/sb1000: Use module_pnp_driver to register driver 2015-03-18 22:39:17 +01:00
Space.c net: Fix coding style warnings and errors. 2016-05-19 11:48:27 -07:00
sungem_phy.c sungem: Fix global namespace pollution of phy accessors. 2014-08-27 23:07:12 -07:00
tun.c tun: fix premature POLLOUT notification on tun devices 2017-03-22 12:43:34 +01:00
veth.c net: veth: Set features for MPLS 2016-08-30 22:27:18 -07:00
virtio_net.c virtio_net: fix PAGE_SIZE > 64k 2017-07-05 14:40:23 +02:00
vrf.c vrf: fix bug_on triggered by rx when destroying a vrf 2017-07-21 07:42:19 +02:00
vxlan.c vxlan: fix hlist corruption 2017-07-21 07:42:18 +02:00
xen-netfront.c xen-netfront: Rework the fix for Rx stall during OOM and network stress 2017-07-21 07:42:16 +02:00