All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
@ 2021-05-12  3:54 ` Zou Wei
  0 siblings, 0 replies; 9+ messages in thread
From: Zou Wei @ 2021-05-12  3:54 UTC (permalink / raw)
  To: cezary.rojewski, liam.r.girdwood, yang.jie, broonie, perex,
	tiwai, kuninori.morimoto.gx, kai.vehmanen, brent.lu,
	ranjani.sridharan, yong.zhi, dharageswari.r,
	sathyanarayana.nujella, fred.oh, tzungbi
  Cc: alsa-devel, linux-kernel, Zou Wei

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 sound/soc/intel/boards/sof_da7219_max98373.c | 1 +
 sound/soc/intel/boards/sof_rt5682.c          | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sound/soc/intel/boards/sof_da7219_max98373.c b/sound/soc/intel/boards/sof_da7219_max98373.c
index f3cb077..8d1ad89 100644
--- a/sound/soc/intel/boards/sof_da7219_max98373.c
+++ b/sound/soc/intel/boards/sof_da7219_max98373.c
@@ -440,6 +440,7 @@ static const struct platform_device_id board_ids[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(platform, board_ids);
 
 static struct platform_driver audio = {
 	.probe = audio_probe,
diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index 58548ea..cf1d053 100644
--- a/sound/soc/intel/boards/sof_rt5682.c
+++ b/sound/soc/intel/boards/sof_rt5682.c
@@ -968,6 +968,7 @@ static const struct platform_device_id board_ids[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(platform, board_ids);
 
 static struct platform_driver sof_audio = {
 	.probe = sof_audio_probe,
-- 
2.6.2


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

* [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
@ 2021-05-12  3:54 ` Zou Wei
  0 siblings, 0 replies; 9+ messages in thread
From: Zou Wei @ 2021-05-12  3:54 UTC (permalink / raw)
  To: cezary.rojewski, liam.r.girdwood, yang.jie, broonie, perex,
	tiwai, kuninori.morimoto.gx, kai.vehmanen, brent.lu,
	ranjani.sridharan, yong.zhi, dharageswari.r,
	sathyanarayana.nujella, fred.oh, tzungbi
  Cc: alsa-devel, linux-kernel, Zou Wei

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 sound/soc/intel/boards/sof_da7219_max98373.c | 1 +
 sound/soc/intel/boards/sof_rt5682.c          | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sound/soc/intel/boards/sof_da7219_max98373.c b/sound/soc/intel/boards/sof_da7219_max98373.c
index f3cb077..8d1ad89 100644
--- a/sound/soc/intel/boards/sof_da7219_max98373.c
+++ b/sound/soc/intel/boards/sof_da7219_max98373.c
@@ -440,6 +440,7 @@ static const struct platform_device_id board_ids[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(platform, board_ids);
 
 static struct platform_driver audio = {
 	.probe = audio_probe,
diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index 58548ea..cf1d053 100644
--- a/sound/soc/intel/boards/sof_rt5682.c
+++ b/sound/soc/intel/boards/sof_rt5682.c
@@ -968,6 +968,7 @@ static const struct platform_device_id board_ids[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(platform, board_ids);
 
 static struct platform_driver sof_audio = {
 	.probe = sof_audio_probe,
-- 
2.6.2


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

* Re: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
  2021-05-12  3:54 ` Zou Wei
  (?)
@ 2021-05-12 13:41 ` Pierre-Louis Bossart
  2021-05-12 15:53     ` Mark Brown
  -1 siblings, 1 reply; 9+ messages in thread
From: Pierre-Louis Bossart @ 2021-05-12 13:41 UTC (permalink / raw)
  To: Zou Wei, cezary.rojewski, liam.r.girdwood, yang.jie, broonie,
	perex, tiwai, kuninori.morimoto.gx, kai.vehmanen, brent.lu,
	ranjani.sridharan, yong.zhi, dharageswari.r,
	sathyanarayana.nujella, fred.oh, tzungbi
  Cc: alsa-devel, linux-kernel



On 5/11/21 10:54 PM, Zou Wei wrote:
> This patch adds missing MODULE_DEVICE_TABLE definition which generates
> correct modalias for automatic loading of this driver when it is built
> as an external module.

I have a limited understanding of all this, but we already support the 
machine drivers as modules and things work fine.

I wonder if this MODULE_DEVICE_TABLE generates the alias automatically, 
which would make the existing ones added manually at the end of the 
files unnecessary? If that was the case, then we should remove those 
MODULE_ALIAS as well, no?

MODULE_DESCRIPTION("SOF Audio Machine driver");
MODULE_AUTHOR("Bard Liao <bard.liao@intel.com>");
MODULE_AUTHOR("Sathya Prakash M R <sathya.prakash.m.r@intel.com>");
MODULE_AUTHOR("Brent Lu <brent.lu@intel.com>");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:sof_rt5682");
MODULE_ALIAS("platform:tgl_max98357a_rt5682");
MODULE_ALIAS("platform:jsl_rt5682_rt1015");
MODULE_ALIAS("platform:tgl_max98373_rt5682");
MODULE_ALIAS("platform:jsl_rt5682_max98360a");
MODULE_ALIAS("platform:cml_rt1015_rt5682");
MODULE_ALIAS("platform:tgl_rt1011_rt5682");
MODULE_ALIAS("platform:jsl_rt5682_rt1015p");

> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Zou Wei <zou_wei@huawei.com>
> ---
>   sound/soc/intel/boards/sof_da7219_max98373.c | 1 +
>   sound/soc/intel/boards/sof_rt5682.c          | 1 +
>   2 files changed, 2 insertions(+)
> 
> diff --git a/sound/soc/intel/boards/sof_da7219_max98373.c b/sound/soc/intel/boards/sof_da7219_max98373.c
> index f3cb077..8d1ad89 100644
> --- a/sound/soc/intel/boards/sof_da7219_max98373.c
> +++ b/sound/soc/intel/boards/sof_da7219_max98373.c
> @@ -440,6 +440,7 @@ static const struct platform_device_id board_ids[] = {
>   	},
>   	{ }
>   };
> +MODULE_DEVICE_TABLE(platform, board_ids);
>   
>   static struct platform_driver audio = {
>   	.probe = audio_probe,
> diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
> index 58548ea..cf1d053 100644
> --- a/sound/soc/intel/boards/sof_rt5682.c
> +++ b/sound/soc/intel/boards/sof_rt5682.c
> @@ -968,6 +968,7 @@ static const struct platform_device_id board_ids[] = {
>   	},
>   	{ }
>   };
> +MODULE_DEVICE_TABLE(platform, board_ids);
>   
>   static struct platform_driver sof_audio = {
>   	.probe = sof_audio_probe,
> 

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

* Re: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
  2021-05-12 13:41 ` Pierre-Louis Bossart
@ 2021-05-12 15:53     ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2021-05-12 15:53 UTC (permalink / raw)
  To: Pierre-Louis Bossart
  Cc: Zou Wei, cezary.rojewski, liam.r.girdwood, yang.jie, perex,
	tiwai, kuninori.morimoto.gx, kai.vehmanen, brent.lu,
	ranjani.sridharan, yong.zhi, dharageswari.r,
	sathyanarayana.nujella, fred.oh, tzungbi, alsa-devel,
	linux-kernel

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

On Wed, May 12, 2021 at 08:41:43AM -0500, Pierre-Louis Bossart wrote:

> I wonder if this MODULE_DEVICE_TABLE generates the alias automatically,
> which would make the existing ones added manually at the end of the files
> unnecessary? If that was the case, then we should remove those MODULE_ALIAS
> as well, no?

Yes, you shouldn't need the MODULE_ALIAS stuff there.

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

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

* Re: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
@ 2021-05-12 15:53     ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2021-05-12 15:53 UTC (permalink / raw)
  To: Pierre-Louis Bossart
  Cc: sathyanarayana.nujella, fred.oh, cezary.rojewski, dharageswari.r,
	kai.vehmanen, kuninori.morimoto.gx, linux-kernel, yang.jie,
	tiwai, liam.r.girdwood, tzungbi, ranjani.sridharan, Zou Wei,
	alsa-devel, brent.lu, yong.zhi

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

On Wed, May 12, 2021 at 08:41:43AM -0500, Pierre-Louis Bossart wrote:

> I wonder if this MODULE_DEVICE_TABLE generates the alias automatically,
> which would make the existing ones added manually at the end of the files
> unnecessary? If that was the case, then we should remove those MODULE_ALIAS
> as well, no?

Yes, you shouldn't need the MODULE_ALIAS stuff there.

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

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

* Re: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
  2021-05-12 15:53     ` Mark Brown
@ 2021-05-12 16:25       ` Pierre-Louis Bossart
  -1 siblings, 0 replies; 9+ messages in thread
From: Pierre-Louis Bossart @ 2021-05-12 16:25 UTC (permalink / raw)
  To: Mark Brown
  Cc: sathyanarayana.nujella, fred.oh, cezary.rojewski, dharageswari.r,
	kai.vehmanen, kuninori.morimoto.gx, linux-kernel, yang.jie,
	tiwai, liam.r.girdwood, tzungbi, ranjani.sridharan, Zou Wei,
	alsa-devel, brent.lu, yong.zhi



>> I wonder if this MODULE_DEVICE_TABLE generates the alias automatically,
>> which would make the existing ones added manually at the end of the files
>> unnecessary? If that was the case, then we should remove those MODULE_ALIAS
>> as well, no?
> 
> Yes, you shouldn't need the MODULE_ALIAS stuff there.

ok, if that's alright with everyone I'll send a larger patchset that 
correct this for all machine drivers, and add the following two tags to 
give proper credits to the reporters.

Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Zou Wei <zou_wei@huawei.com>


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

* Re: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
@ 2021-05-12 16:25       ` Pierre-Louis Bossart
  0 siblings, 0 replies; 9+ messages in thread
From: Pierre-Louis Bossart @ 2021-05-12 16:25 UTC (permalink / raw)
  To: Mark Brown
  Cc: ranjani.sridharan, liam.r.girdwood, cezary.rojewski,
	dharageswari.r, kuninori.morimoto.gx, kai.vehmanen, yang.jie,
	linux-kernel, tiwai, fred.oh, tzungbi, sathyanarayana.nujella,
	Zou Wei, alsa-devel, brent.lu, yong.zhi



>> I wonder if this MODULE_DEVICE_TABLE generates the alias automatically,
>> which would make the existing ones added manually at the end of the files
>> unnecessary? If that was the case, then we should remove those MODULE_ALIAS
>> as well, no?
> 
> Yes, you shouldn't need the MODULE_ALIAS stuff there.

ok, if that's alright with everyone I'll send a larger patchset that 
correct this for all machine drivers, and add the following two tags to 
give proper credits to the reporters.

Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Zou Wei <zou_wei@huawei.com>


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

* Re: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
  2021-05-12  3:54 ` Zou Wei
@ 2021-05-14 15:22   ` Mark Brown
  -1 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2021-05-14 15:22 UTC (permalink / raw)
  To: sathyanarayana.nujella, brent.lu, tiwai, Zou Wei,
	liam.r.girdwood, ranjani.sridharan, yang.jie, dharageswari.r,
	kuninori.morimoto.gx, kai.vehmanen, perex, tzungbi, yong.zhi,
	cezary.rojewski, fred.oh
  Cc: Mark Brown, alsa-devel, linux-kernel

On Wed, 12 May 2021 11:54:07 +0800, Zou Wei wrote:
> This patch adds missing MODULE_DEVICE_TABLE definition which generates
> correct modalias for automatic loading of this driver when it is built
> as an external module.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
      commit: a75e5cdf4dd1307bb1541edbb0c008f40896644c

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

* Re: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
@ 2021-05-14 15:22   ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2021-05-14 15:22 UTC (permalink / raw)
  To: sathyanarayana.nujella, brent.lu, tiwai, Zou Wei,
	liam.r.girdwood, ranjani.sridharan, yang.jie, dharageswari.r,
	kuninori.morimoto.gx, kai.vehmanen, perex, tzungbi, yong.zhi,
	cezary.rojewski, fred.oh
  Cc: alsa-devel, Mark Brown, linux-kernel

On Wed, 12 May 2021 11:54:07 +0800, Zou Wei wrote:
> This patch adds missing MODULE_DEVICE_TABLE definition which generates
> correct modalias for automatic loading of this driver when it is built
> as an external module.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
      commit: a75e5cdf4dd1307bb1541edbb0c008f40896644c

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

end of thread, other threads:[~2021-05-14 15:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12  3:54 [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE Zou Wei
2021-05-12  3:54 ` Zou Wei
2021-05-12 13:41 ` Pierre-Louis Bossart
2021-05-12 15:53   ` Mark Brown
2021-05-12 15:53     ` Mark Brown
2021-05-12 16:25     ` Pierre-Louis Bossart
2021-05-12 16:25       ` Pierre-Louis Bossart
2021-05-14 15:22 ` Mark Brown
2021-05-14 15:22   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.