aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0612-Revert-net-phy-Also-request-modules-for-C45-IDs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0612-Revert-net-phy-Also-request-modules-for-C45-IDs.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0612-Revert-net-phy-Also-request-modules-for-C45-IDs.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0612-Revert-net-phy-Also-request-modules-for-C45-IDs.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0612-Revert-net-phy-Also-request-modules-for-C45-IDs.patch
new file mode 100644
index 00000000..8e58a4e8
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0612-Revert-net-phy-Also-request-modules-for-C45-IDs.patch
@@ -0,0 +1,40 @@
+From 79a0918789741355b8482e06e78faf08d372598f Mon Sep 17 00:00:00 2001
+From: Sudheesh Mavila <sudheesh.mavila@amd.com>
+Date: Mon, 4 Feb 2019 11:48:50 +0530
+Subject: [PATCH 0612/2940] Revert "net: phy: Also request modules for C45 IDs"
+
+This reverts commit 535ffdbe907f4f066dbc07d48890ab8f85a3d2da.
+---
+ drivers/net/phy/phy_device.c | 16 +---------------
+ 1 file changed, 1 insertion(+), 15 deletions(-)
+
+diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
+index abdae4dc4867..55b7f5c10f77 100755
+--- a/drivers/net/phy/phy_device.c
++++ b/drivers/net/phy/phy_device.c
+@@ -599,21 +599,7 @@ struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id,
+ * driver will get bored and give up as soon as it finds that
+ * there's no driver _already_ loaded.
+ */
+- if (is_c45 && c45_ids) {
+- const int num_ids = ARRAY_SIZE(c45_ids->device_ids);
+- int i;
+-
+- for (i = 1; i < num_ids; i++) {
+- if (!(c45_ids->devices_in_package & (1 << i)))
+- continue;
+-
+- request_module(MDIO_MODULE_PREFIX MDIO_ID_FMT,
+- MDIO_ID_ARGS(c45_ids->device_ids[i]));
+- }
+- } else {
+- request_module(MDIO_MODULE_PREFIX MDIO_ID_FMT,
+- MDIO_ID_ARGS(phy_id));
+- }
++ request_module(MDIO_MODULE_PREFIX MDIO_ID_FMT, MDIO_ID_ARGS(phy_id));
+
+ device_initialize(&mdiodev->dev);
+
+--
+2.17.1
+