mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] serial: 8250_aspeed_vuart: Enable module autoloading
@ 2024-09-03 13:15 Liao Chen
  2024-09-03 15:49 ` Uwe Kleine-König
  2024-09-12  3:07 ` Andrew Jeffery
  0 siblings, 2 replies; 5+ messages in thread
From: Liao Chen @ 2024-09-03 13:15 UTC (permalink / raw)
  To: linux-kernel, linux-serial, linux-arm-kernel, linux-aspeed
  Cc: gregkh, jirislaby, joel, andrew, andi.shyti, andriy.shevchenko,
	u.kleine-koenig, florian.fainelli, liaochen4, tglx

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/tty/serial/8250/8250_aspeed_vuart.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/8250/8250_aspeed_vuart.c b/drivers/tty/serial/8250/8250_aspeed_vuart.c
index 53d8eee9b1c8..25c201cfb91e 100644
--- a/drivers/tty/serial/8250/8250_aspeed_vuart.c
+++ b/drivers/tty/serial/8250/8250_aspeed_vuart.c
@@ -561,6 +561,7 @@ static const struct of_device_id aspeed_vuart_table[] = {
 	{ .compatible = "aspeed,ast2500-vuart" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, aspeed_vuart_table);
 
 static struct platform_driver aspeed_vuart_driver = {
 	.driver = {
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -next] serial: 8250_aspeed_vuart: Enable module autoloading
  2024-09-03 13:15 [PATCH -next] serial: 8250_aspeed_vuart: Enable module autoloading Liao Chen
@ 2024-09-03 15:49 ` Uwe Kleine-König
  2024-09-03 16:19   ` Andy Shevchenko
  2024-09-06  2:04   ` liaochen (A)
  2024-09-12  3:07 ` Andrew Jeffery
  1 sibling, 2 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2024-09-03 15:49 UTC (permalink / raw)
  To: Liao Chen
  Cc: linux-kernel, linux-serial, linux-arm-kernel, linux-aspeed,
	gregkh, jirislaby, joel, andrew, andi.shyti, andriy.shevchenko,
	florian.fainelli, tglx

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

Hello,

On Tue, Sep 03, 2024 at 01:15:03PM +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/tty/serial/8250/8250_aspeed_vuart.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/tty/serial/8250/8250_aspeed_vuart.c b/drivers/tty/serial/8250/8250_aspeed_vuart.c
> index 53d8eee9b1c8..25c201cfb91e 100644
> --- a/drivers/tty/serial/8250/8250_aspeed_vuart.c
> +++ b/drivers/tty/serial/8250/8250_aspeed_vuart.c
> @@ -561,6 +561,7 @@ static const struct of_device_id aspeed_vuart_table[] = {
>  	{ .compatible = "aspeed,ast2500-vuart" },
>  	{ },
>  };
> +MODULE_DEVICE_TABLE(of, aspeed_vuart_table);

I wonder if you found this entry missing by code review, or if you have
a machine with that UART and so you actually benefit.

Otherwise looks right to me.

Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -next] serial: 8250_aspeed_vuart: Enable module autoloading
  2024-09-03 15:49 ` Uwe Kleine-König
@ 2024-09-03 16:19   ` Andy Shevchenko
  2024-09-06  2:04   ` liaochen (A)
  1 sibling, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2024-09-03 16:19 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Liao Chen, linux-kernel, linux-serial, linux-arm-kernel,
	linux-aspeed, gregkh, jirislaby, joel, andrew, andi.shyti,
	florian.fainelli, tglx

On Tue, Sep 03, 2024 at 05:49:54PM +0200, Uwe Kleine-König wrote:
> On Tue, Sep 03, 2024 at 01:15:03PM +0000, Liao Chen wrote:

...

> I wonder if you found this entry missing by code review, or if you have
> a machine with that UART and so you actually benefit.

Using arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-rainier.dts in QEMU
I never experienced an issue. Seems due to defconfig having it =y.
(used arch/arm/configs/aspeed_g5_defconfig)

> Otherwise looks right to me.
> 
> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -next] serial: 8250_aspeed_vuart: Enable module autoloading
  2024-09-03 15:49 ` Uwe Kleine-König
  2024-09-03 16:19   ` Andy Shevchenko
@ 2024-09-06  2:04   ` liaochen (A)
  1 sibling, 0 replies; 5+ messages in thread
From: liaochen (A) @ 2024-09-06  2:04 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: linux-kernel, linux-serial, linux-arm-kernel, linux-aspeed,
	gregkh, jirislaby, joel, andrew, andi.shyti, andriy.shevchenko,
	florian.fainelli, tglx

On 2024/9/3 23:49, Uwe Kleine-König wrote:
> Hello,
> 
> On Tue, Sep 03, 2024 at 01:15:03PM +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/tty/serial/8250/8250_aspeed_vuart.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/tty/serial/8250/8250_aspeed_vuart.c b/drivers/tty/serial/8250/8250_aspeed_vuart.c
>> index 53d8eee9b1c8..25c201cfb91e 100644
>> --- a/drivers/tty/serial/8250/8250_aspeed_vuart.c
>> +++ b/drivers/tty/serial/8250/8250_aspeed_vuart.c
>> @@ -561,6 +561,7 @@ static const struct of_device_id aspeed_vuart_table[] = {
>>   	{ .compatible = "aspeed,ast2500-vuart" },
>>   	{ },
>>   };
>> +MODULE_DEVICE_TABLE(of, aspeed_vuart_table);
> 
> I wonder if you found this entry missing by code review, or if you have
> a machine with that UART and so you actually benefit.

I found it from code review. Since this device could be compiled as a 
module, I think it is better to add this entry.

Thanks,
Chen

> 
> Otherwise looks right to me.
> 
> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> 
> Best regards
> Uwe


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -next] serial: 8250_aspeed_vuart: Enable module autoloading
  2024-09-03 13:15 [PATCH -next] serial: 8250_aspeed_vuart: Enable module autoloading Liao Chen
  2024-09-03 15:49 ` Uwe Kleine-König
@ 2024-09-12  3:07 ` Andrew Jeffery
  1 sibling, 0 replies; 5+ messages in thread
From: Andrew Jeffery @ 2024-09-12  3:07 UTC (permalink / raw)
  To: Liao Chen, linux-kernel, linux-serial, linux-arm-kernel, linux-aspeed
  Cc: gregkh, jirislaby, joel, andi.shyti, andriy.shevchenko,
	u.kleine-koenig, florian.fainelli, tglx

On Tue, 2024-09-03 at 13:15 +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: Andrew Jeffery <andrew@codeconstruct.com.au>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-09-12  3:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-03 13:15 [PATCH -next] serial: 8250_aspeed_vuart: Enable module autoloading Liao Chen
2024-09-03 15:49 ` Uwe Kleine-König
2024-09-03 16:19   ` Andy Shevchenko
2024-09-06  2:04   ` liaochen (A)
2024-09-12  3:07 ` Andrew Jeffery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®