net: ipa: modem: add missing SET_NETDEV_DEV() for proper sysfs links
authorStephan Gerhold <stephan@gerhold.net>
Wed, 6 Jan 2021 10:07:55 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jan 2021 15:03:59 +0000 (16:03 +0100)
commit7d5c389742195481500834dd48bee0b25879ce36
treed91aa047fa605bba85661e09d79ce5d3fb6d92cc
parent31ad07292553de318f682120e2a9a683d15a7e15
net: ipa: modem: add missing SET_NETDEV_DEV() for proper sysfs links

[ Upstream commit afba9dc1f3a5390475006061c0bdc5ad4915878e ]

At the moment it is quite hard to identify the network interface
provided by IPA in userspace components: The network interface is
created as virtual device, without any link to the IPA device.
The interface name ("rmnet_ipa%d") is the only indication that the
network interface belongs to IPA, but this is not very reliable.

Add SET_NETDEV_DEV() to associate the network interface with the
IPA parent device. This allows userspace services like ModemManager
to properly identify that this network interface is provided by IPA
and belongs to the modem.

Cc: Alex Elder <elder@kernel.org>
Fixes: a646d6ec9098 ("soc: qcom: ipa: modem and microcontroller")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20210106100755.56800-1-stephan@gerhold.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ipa/ipa_modem.c