--- /dev/null
+From f6b19b354d50c5ae46ad66b5273f92e563fbc847 Mon Sep 17 00:00:00 2001
+From: Jiri Pirko <jiri@mellanox.com>
+Date: Sun, 24 Mar 2019 11:14:38 +0100
+Subject: net: devlink: select NET_DEVLINK from drivers
+
+From: Jiri Pirko <jiri@mellanox.com>
+
+commit f6b19b354d50c5ae46ad66b5273f92e563fbc847 upstream.
+
+Some drivers are becoming more dependent on NET_DEVLINK being selected
+in configuration. With upcoming compat functions, the behavior would be
+wrong in case devlink was not compiled in. So make the drivers select
+NET_DEVLINK and rely on the functions being there, not just stubs.
+
+Signed-off-by: Jiri Pirko <jiri@mellanox.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+[only backport 3 select NET_DEVLINK lines of original patch, to resolve
+ build issues - gregkh]
+Cc: Guenter Roeck <linux@roeck-us.net>
+Cc: Chris Paterson <Chris.Paterson2@renesas.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/ethernet/mellanox/mlx4/Kconfig | 1 +
+ drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 2 +-
+ drivers/net/ethernet/mellanox/mlxsw/Kconfig | 2 +-
+ 3 files changed, 3 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/ethernet/mellanox/mlx4/Kconfig
++++ b/drivers/net/ethernet/mellanox/mlx4/Kconfig
+@@ -27,6 +27,7 @@ config MLX4_EN_DCB
+ config MLX4_CORE
+ tristate
+ depends on PCI
++ select NET_DEVLINK
+ default n
+
+ config MLX4_DEBUG
+--- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
++++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
+@@ -4,8 +4,8 @@
+
+ config MLX5_CORE
+ tristate "Mellanox 5th generation network adapters (ConnectX series) core driver"
+- depends on MAY_USE_DEVLINK
+ depends on PCI
++ select NET_DEVLINK
+ imply PTP_1588_CLOCK
+ imply VXLAN
+ imply MLXFW
+--- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig
++++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig
+@@ -4,7 +4,7 @@
+
+ config MLXSW_CORE
+ tristate "Mellanox Technologies Switch ASICs support"
+- depends on MAY_USE_DEVLINK
++ select NET_DEVLINK
+ ---help---
+ This driver supports Mellanox Technologies Switch ASICs family.
+
net-usb-qmi_wwan-add-support-for-foxconn-t77w968-lte-modules.patch
slip-fix-memory-leak-in-slip_open-error-path.patch
devlink-disallow-reload-operation-during-device-cleanup.patch
+net-devlink-select-net_devlink-from-drivers.patch
alsa-usb-audio-fix-missing-error-check-at-mixer-resolution-test.patch
alsa-usb-audio-not-submit-urb-for-stopped-endpoint.patch
alsa-usb-audio-fix-incorrect-null-check-in-create_yamaha_midi_quirk.patch