* [PATCH -next 0/4] usb: fix module autoloading
@ 2024-08-22 13:01 Liao Chen
2024-08-22 13:01 ` [PATCH -next 1/4] usb: phy: phy-gpio-vbus-usb: " Liao Chen
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Liao Chen @ 2024-08-22 13:01 UTC (permalink / raw)
To: linux-usb
Cc: linux-kernel, gregkh, alcooperx, bcm-kernel-feedback-list,
heikki.krogerus, stern, justin.chen
Hi all,
This patchset aims to enable autoloading of some use modules.
By registering MDT, the kernel is allowed to automatically
bind the module to devices that match the specified compatible
strings.
Liao Chen (4):
usb: phy: phy-gpio-vbus-usb: fix module autoloading
usb: misc: brcmstb-usb-pinmap: fix module autoloading
usb: typec: fix module autoloading
usb: ehci-brcm: fix module autoloading
drivers/usb/host/ehci-brcm.c | 1 +
drivers/usb/misc/brcmstb-usb-pinmap.c | 1 +
drivers/usb/phy/phy-gpio-vbus-usb.c | 1 +
drivers/usb/typec/anx7411.c | 1 +
4 files changed, 4 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH -next 1/4] usb: phy: phy-gpio-vbus-usb: fix module autoloading
2024-08-22 13:01 [PATCH -next 0/4] usb: fix module autoloading Liao Chen
@ 2024-08-22 13:01 ` Liao Chen
2024-08-22 13:01 ` [PATCH -next 2/4] usb: misc: brcmstb-usb-pinmap: " Liao Chen
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Liao Chen @ 2024-08-22 13:01 UTC (permalink / raw)
To: linux-usb
Cc: linux-kernel, gregkh, alcooperx, bcm-kernel-feedback-list,
heikki.krogerus, stern, justin.chen
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/usb/phy/phy-gpio-vbus-usb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/phy/phy-gpio-vbus-usb.c b/drivers/usb/phy/phy-gpio-vbus-usb.c
index 817c242a76ca..5428b2b67de1 100644
--- a/drivers/usb/phy/phy-gpio-vbus-usb.c
+++ b/drivers/usb/phy/phy-gpio-vbus-usb.c
@@ -374,6 +374,7 @@ static const struct of_device_id gpio_vbus_of_match[] = {
},
{},
};
+MODULE_DEVICE_TABLE(of, gpio_vbus_of_match);
static struct platform_driver gpio_vbus_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH -next 2/4] usb: misc: brcmstb-usb-pinmap: fix module autoloading
2024-08-22 13:01 [PATCH -next 0/4] usb: fix module autoloading Liao Chen
2024-08-22 13:01 ` [PATCH -next 1/4] usb: phy: phy-gpio-vbus-usb: " Liao Chen
@ 2024-08-22 13:01 ` Liao Chen
2024-08-22 16:43 ` Florian Fainelli
2024-08-22 13:01 ` [PATCH -next 3/4] usb: typec: " Liao Chen
2024-08-22 13:01 ` [PATCH -next 4/4] usb: ehci-brcm: " Liao Chen
3 siblings, 1 reply; 8+ messages in thread
From: Liao Chen @ 2024-08-22 13:01 UTC (permalink / raw)
To: linux-usb
Cc: linux-kernel, gregkh, alcooperx, bcm-kernel-feedback-list,
heikki.krogerus, stern, justin.chen
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/usb/misc/brcmstb-usb-pinmap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/misc/brcmstb-usb-pinmap.c b/drivers/usb/misc/brcmstb-usb-pinmap.c
index 2b2019c19cde..1ce885e4184c 100644
--- a/drivers/usb/misc/brcmstb-usb-pinmap.c
+++ b/drivers/usb/misc/brcmstb-usb-pinmap.c
@@ -335,6 +335,7 @@ static const struct of_device_id brcmstb_usb_pinmap_of_match[] = {
{ .compatible = "brcm,usb-pinmap" },
{ },
};
+MODULE_DEVICE_TABLE(of, brcmstb_usb_pinmap_of_match);
static struct platform_driver brcmstb_usb_pinmap_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH -next 3/4] usb: typec: fix module autoloading
2024-08-22 13:01 [PATCH -next 0/4] usb: fix module autoloading Liao Chen
2024-08-22 13:01 ` [PATCH -next 1/4] usb: phy: phy-gpio-vbus-usb: " Liao Chen
2024-08-22 13:01 ` [PATCH -next 2/4] usb: misc: brcmstb-usb-pinmap: " Liao Chen
@ 2024-08-22 13:01 ` Liao Chen
2024-08-26 8:54 ` Heikki Krogerus
2024-08-22 13:01 ` [PATCH -next 4/4] usb: ehci-brcm: " Liao Chen
3 siblings, 1 reply; 8+ messages in thread
From: Liao Chen @ 2024-08-22 13:01 UTC (permalink / raw)
To: linux-usb
Cc: linux-kernel, gregkh, alcooperx, bcm-kernel-feedback-list,
heikki.krogerus, stern, justin.chen
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/usb/typec/anx7411.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/typec/anx7411.c b/drivers/usb/typec/anx7411.c
index 5a5bf3532ad7..33ff301b918f 100644
--- a/drivers/usb/typec/anx7411.c
+++ b/drivers/usb/typec/anx7411.c
@@ -1576,6 +1576,7 @@ static const struct of_device_id anx_match_table[] = {
{.compatible = "analogix,anx7411",},
{},
};
+MODULE_DEVICE_TABLE(of, anx_match_table);
static struct i2c_driver anx7411_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH -next 4/4] usb: ehci-brcm: fix module autoloading
2024-08-22 13:01 [PATCH -next 0/4] usb: fix module autoloading Liao Chen
` (2 preceding siblings ...)
2024-08-22 13:01 ` [PATCH -next 3/4] usb: typec: " Liao Chen
@ 2024-08-22 13:01 ` Liao Chen
2024-08-22 16:43 ` Florian Fainelli
3 siblings, 1 reply; 8+ messages in thread
From: Liao Chen @ 2024-08-22 13:01 UTC (permalink / raw)
To: linux-usb
Cc: linux-kernel, gregkh, alcooperx, bcm-kernel-feedback-list,
heikki.krogerus, stern, justin.chen
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/usb/host/ehci-brcm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/ehci-brcm.c b/drivers/usb/host/ehci-brcm.c
index 77e42c739c58..68cad0620f1a 100644
--- a/drivers/usb/host/ehci-brcm.c
+++ b/drivers/usb/host/ehci-brcm.c
@@ -246,6 +246,7 @@ static const struct of_device_id brcm_ehci_of_match[] = {
{ .compatible = "brcm,bcm7445-ehci", },
{}
};
+MODULE_DEVICE_TABLE(of, brcm_ehci_of_match);
static struct platform_driver ehci_brcm_driver = {
.probe = ehci_brcm_probe,
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH -next 2/4] usb: misc: brcmstb-usb-pinmap: fix module autoloading
2024-08-22 13:01 ` [PATCH -next 2/4] usb: misc: brcmstb-usb-pinmap: " Liao Chen
@ 2024-08-22 16:43 ` Florian Fainelli
0 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2024-08-22 16:43 UTC (permalink / raw)
To: Liao Chen, linux-usb
Cc: linux-kernel, gregkh, alcooperx, bcm-kernel-feedback-list,
heikki.krogerus, stern, justin.chen
On 8/22/24 06:01, 'Liao Chen' via BCM-KERNEL-FEEDBACK-LIST,PDL wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH -next 4/4] usb: ehci-brcm: fix module autoloading
2024-08-22 13:01 ` [PATCH -next 4/4] usb: ehci-brcm: " Liao Chen
@ 2024-08-22 16:43 ` Florian Fainelli
0 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2024-08-22 16:43 UTC (permalink / raw)
To: Liao Chen, linux-usb
Cc: linux-kernel, gregkh, alcooperx, bcm-kernel-feedback-list,
heikki.krogerus, stern, justin.chen
On 8/22/24 06:01, 'Liao Chen' via BCM-KERNEL-FEEDBACK-LIST,PDL wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH -next 3/4] usb: typec: fix module autoloading
2024-08-22 13:01 ` [PATCH -next 3/4] usb: typec: " Liao Chen
@ 2024-08-26 8:54 ` Heikki Krogerus
0 siblings, 0 replies; 8+ messages in thread
From: Heikki Krogerus @ 2024-08-26 8:54 UTC (permalink / raw)
To: Liao Chen
Cc: linux-usb, linux-kernel, gregkh, alcooperx,
bcm-kernel-feedback-list, stern, justin.chen
On Thu, Aug 22, 2024 at 01:01:12PM +0000, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> drivers/usb/typec/anx7411.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/typec/anx7411.c b/drivers/usb/typec/anx7411.c
> index 5a5bf3532ad7..33ff301b918f 100644
> --- a/drivers/usb/typec/anx7411.c
> +++ b/drivers/usb/typec/anx7411.c
> @@ -1576,6 +1576,7 @@ static const struct of_device_id anx_match_table[] = {
> {.compatible = "analogix,anx7411",},
> {},
> };
> +MODULE_DEVICE_TABLE(of, anx_match_table);
>
> static struct i2c_driver anx7411_driver = {
> .driver = {
> --
> 2.34.1
--
heikki
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-08-26 8:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-22 13:01 [PATCH -next 0/4] usb: fix module autoloading Liao Chen
2024-08-22 13:01 ` [PATCH -next 1/4] usb: phy: phy-gpio-vbus-usb: " Liao Chen
2024-08-22 13:01 ` [PATCH -next 2/4] usb: misc: brcmstb-usb-pinmap: " Liao Chen
2024-08-22 16:43 ` Florian Fainelli
2024-08-22 13:01 ` [PATCH -next 3/4] usb: typec: " Liao Chen
2024-08-26 8:54 ` Heikki Krogerus
2024-08-22 13:01 ` [PATCH -next 4/4] usb: ehci-brcm: " Liao Chen
2024-08-22 16:43 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox