* [PATCH -next] usb: bdc: fix module autoloading
@ 2024-08-14 3:04 Liao Chen
2024-08-14 4:36 ` Greg KH
2024-08-15 4:25 ` Florian Fainelli
0 siblings, 2 replies; 4+ messages in thread
From: Liao Chen @ 2024-08-14 3:04 UTC (permalink / raw)
To: linux-usb
Cc: linux-kernel, justin.chen, alcooperx, bcm-kernel-feedback-list,
gregkh
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/gadget/udc/bdc/bdc_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
index 35a652807fca..5149e2b7f050 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_core.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
@@ -639,6 +639,7 @@ static const struct of_device_id bdc_of_match[] = {
{ .compatible = "brcm,bdc" },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, bdc_of_match);
static struct platform_driver bdc_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH -next] usb: bdc: fix module autoloading
2024-08-14 3:04 [PATCH -next] usb: bdc: fix module autoloading Liao Chen
@ 2024-08-14 4:36 ` Greg KH
2024-08-15 1:27 ` liaochen (A)
2024-08-15 4:25 ` Florian Fainelli
1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2024-08-14 4:36 UTC (permalink / raw)
To: Liao Chen
Cc: linux-usb, linux-kernel, justin.chen, alcooperx,
bcm-kernel-feedback-list
On Wed, Aug 14, 2024 at 03:04:43AM +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>
> ---
> drivers/usb/gadget/udc/bdc/bdc_core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
> index 35a652807fca..5149e2b7f050 100644
> --- a/drivers/usb/gadget/udc/bdc/bdc_core.c
> +++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
> @@ -639,6 +639,7 @@ static const struct of_device_id bdc_of_match[] = {
> { .compatible = "brcm,bdc" },
> { /* sentinel */ }
> };
> +MODULE_DEVICE_TABLE(of, bdc_of_match);
>
> static struct platform_driver bdc_driver = {
> .driver = {
> --
> 2.34.1
>
>
What commit id does this fix?
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH -next] usb: bdc: fix module autoloading
2024-08-14 4:36 ` Greg KH
@ 2024-08-15 1:27 ` liaochen (A)
0 siblings, 0 replies; 4+ messages in thread
From: liaochen (A) @ 2024-08-15 1:27 UTC (permalink / raw)
To: Greg KH
Cc: linux-usb, linux-kernel, justin.chen, alcooperx,
bcm-kernel-feedback-list
On 2024/8/14 12:36, Greg KH wrote:
> On Wed, Aug 14, 2024 at 03:04:43AM +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>
>> ---
>> drivers/usb/gadget/udc/bdc/bdc_core.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
>> index 35a652807fca..5149e2b7f050 100644
>> --- a/drivers/usb/gadget/udc/bdc/bdc_core.c
>> +++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
>> @@ -639,6 +639,7 @@ static const struct of_device_id bdc_of_match[] = {
>> { .compatible = "brcm,bdc" },
>> { /* sentinel */ }
>> };
>> +MODULE_DEVICE_TABLE(of, bdc_of_match);
>>
>> static struct platform_driver bdc_driver = {
>> .driver = {
>> --
>> 2.34.1
>>
>>
>
> What commit id does this fix?
Hi, this patch fixes commit 8ac1685bf911f70aea6de67b3db5674c3ea112f1
("usb: bdc: hook a quick Device Tree compatible string"), which allows
bdc device probing.
Thanks,
Chen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next] usb: bdc: fix module autoloading
2024-08-14 3:04 [PATCH -next] usb: bdc: fix module autoloading Liao Chen
2024-08-14 4:36 ` Greg KH
@ 2024-08-15 4:25 ` Florian Fainelli
1 sibling, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2024-08-15 4:25 UTC (permalink / raw)
To: Liao Chen, linux-usb
Cc: linux-kernel, justin.chen, alcooperx, bcm-kernel-feedback-list,
gregkh
On 8/13/2024 8:04 PM, '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>
Thanks!
--
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-15 4:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 3:04 [PATCH -next] usb: bdc: fix module autoloading Liao Chen
2024-08-14 4:36 ` Greg KH
2024-08-15 1:27 ` liaochen (A)
2024-08-15 4:25 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox