[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240724102349.430078-1-jtornosm@redhat.com>
Date: Wed, 24 Jul 2024 12:23:44 +0200
From: Jose Ignacio Tornos Martinez <jtornosm@...hat.com>
To: woojung.huh@...rochip.com,
UNGLinuxDriver@...rochip.com,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
netdev@...r.kernel.org,
linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Jose Ignacio Tornos Martinez <jtornosm@...hat.com>
Subject: [PATCH] net: usb: lan78xx: add weak dependency with micrel phy module
The related module for the phy is loaded dynamically depending on the
current hardware. In order to keep this behavior and have the phy modules
available from initramfs, add a 'weak' dependency with the phy modules to
allow user tools, like dracut, get this information.
Include micrel phy module because it is the hardware that I have. Other
possible phy modules can be added later.
Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@...hat.com>
---
drivers/net/usb/lan78xx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index 8adf77e3557e..c3945aebf94e 100644
--- a/drivers/net/usb/lan78xx.c
+++ b/drivers/net/usb/lan78xx.c
@@ -5074,3 +5074,4 @@ module_usb_driver(lan78xx_driver);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
+MODULE_WEAKDEP("micrel");
--
2.45.2
Powered by blists - more mailing lists