Skip to contentSkip to conversation

ASoC: mediatek: Register machine drivers to module device table

PATCH In review Nícolas F. R. A. Prado 4 participants 22 messages Nov 7, 2022 – Nov 10, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover ASoC: mediatek: Register machine drivers to module device table

Some ASoC machine drivers for MediaTek platforms were not being registered to the module device table, preventing them to be automatically loaded when built as modules. This series adds the missing registration to the drivers.

Nícolas F. R. A. Prado (9):
ASoC: mediatek: mt2701-cs42448: Register to module device table
ASoC: mediatek: mt2701-wm8960: Register to module device table
ASoC: mediatek: mt6797-mt6351: Register to module device table
ASoC: mediatek: mt8183-da7219: Register to module device table
ASoC: mediatek: mt8183-mt6358: Register to module device table
ASoC: mediatek: mt8186-da7219: Register to module device table
ASoC: mediatek: mt8186-rt5682: Register to module device table
ASoC: mediatek: mt8192-mt6359: Register to module device table
ASoC: mediatek: mt8195-mt6359: Register to module device table

 sound/soc/mediatek/mt2701/mt2701-cs42448.c                 | 1 +
 sound/soc/mediatek/mt2701/mt2701-wm8960.c                  | 1 +
 sound/soc/mediatek/mt6797/mt6797-mt6351.c                  | 1 +
 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c         | 1 +
 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c | 1 +
 sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c  | 1 +
 sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c   | 1 +
 sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c    | 1 +
 sound/soc/mediatek/mt8195/mt8195-mt6359.c                  | 1 +
 9 files changed, 9 insertions(+)
Signature · 1 line
2.38.1
#1 lore raw

PATCH 1/9 ASoC: mediatek: mt2701-cs42448: Register to module device table

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt2701/mt2701-cs42448.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt2701/mt2701-cs42448.c +1 -0
index d9fd6eb786aa..08ef109744c7 100644
@@ -418,6 +418,7 @@ static const struct of_device_id mt2701_cs42448_machine_dt_match[] = {
 	{.compatible = "mediatek,mt2701-cs42448-machine",},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mt2701_cs42448_machine_dt_match);
 #endif
 
 static struct platform_driver mt2701_cs42448_machine = {
Signature · 1 line
2.38.1
maintainer Reviewed-by on v1 1/9
#2 lore raw

Re: [PATCH 1/9] ASoC: mediatek: mt2701-cs42448: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

#3 lore raw

PATCH 2/9 ASoC: mediatek: mt2701-wm8960: Register to module device table

In reply to Nícolas F. R. A. Prado

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt2701/mt2701-wm8960.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt2701/mt2701-wm8960.c +1 -0
index 0cdf2ae36243..a184032c15b6 100644
@@ -161,6 +161,7 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = {
 	{.compatible = "mediatek,mt2701-wm8960-machine",},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mt2701_wm8960_machine_dt_match);
 #endif
 
 static struct platform_driver mt2701_wm8960_machine = {
Signature · 1 line
2.38.1
maintainer Reviewed-by on v1 2/9
#4 lore raw

Re: [PATCH 2/9] ASoC: mediatek: mt2701-wm8960: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

#5 lore raw

PATCH 3/9 ASoC: mediatek: mt6797-mt6351: Register to module device table

In reply to Nícolas F. R. A. Prado

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt6797/mt6797-mt6351.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt6797/mt6797-mt6351.c +1 -0
index d2f6213a6bfc..784c201b8fd4 100644
@@ -242,6 +242,7 @@ static const struct of_device_id mt6797_mt6351_dt_match[] = {
 	{.compatible = "mediatek,mt6797-mt6351-sound",},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mt6797_mt6351_dt_match);
 #endif
 
 static struct platform_driver mt6797_mt6351_driver = {
Signature · 1 line
2.38.1
maintainer Reviewed-by on v1 3/9
#6 lore raw

Re: [PATCH 3/9] ASoC: mediatek: mt6797-mt6351: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

#7 lore raw

PATCH 4/9 ASoC: mediatek: mt8183-da7219: Register to module device table

In reply to Nícolas F. R. A. Prado

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c +1 -0
index 9f22d3939818..0e572fe28c58 100644
@@ -842,6 +842,7 @@ static const struct of_device_id mt8183_da7219_max98357_dt_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mt8183_da7219_max98357_dt_match);
 #endif
 
 static struct platform_driver mt8183_da7219_max98357_driver = {
Signature · 1 line
2.38.1
#8 lore raw

PATCH 5/9 ASoC: mediatek: mt8183-mt6358: Register to module device table

In reply to Nícolas F. R. A. Prado

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c +1 -0
index a86085223677..8fb473543cf9 100644
@@ -835,6 +835,7 @@ static const struct of_device_id mt8183_mt6358_ts3a227_max98357_dt_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mt8183_mt6358_ts3a227_max98357_dt_match);
 #endif
 
 static struct platform_driver mt8183_mt6358_ts3a227_max98357_driver = {
Signature · 1 line
2.38.1
#10 lore raw

PATCH 6/9 ASoC: mediatek: mt8186-da7219: Register to module device table

In reply to Nícolas F. R. A. Prado

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c +1 -0
index cfca6bdee834..08ff57f7189c 100644
@@ -1161,6 +1161,7 @@ static const struct of_device_id mt8186_mt6366_da7219_max98357_dt_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mt8186_mt6366_da7219_max98357_dt_match);
 #endif
 
 static struct platform_driver mt8186_mt6366_da7219_max98357_driver = {
Signature · 1 line
2.38.1
maintainer Reviewed-by on v1 6/9
#11 lore raw

Re: [PATCH 6/9] ASoC: mediatek: mt8186-da7219: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

#12 lore raw

PATCH 7/9 ASoC: mediatek: mt8186-rt5682: Register to module device table

In reply to Nícolas F. R. A. Prado

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c +1 -0
index 16d834f3153d..e59d92e2afa3 100644
@@ -1237,6 +1237,7 @@ static const struct of_device_id mt8186_mt6366_rt1019_rt5682s_dt_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mt8186_mt6366_rt1019_rt5682s_dt_match);
 #endif
 
 static struct platform_driver mt8186_mt6366_rt1019_rt5682s_driver = {
Signature · 1 line
2.38.1
maintainer Reviewed-by on v1 7/9
#13 lore raw

Re: [PATCH 7/9] ASoC: mediatek: mt8186-rt5682: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

#14 lore raw

PATCH 8/9 ASoC: mediatek: mt8192-mt6359: Register to module device table

In reply to Nícolas F. R. A. Prado

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c +1 -0
index b93c3237ef2d..16660eda577e 100644
@@ -1261,6 +1261,7 @@ static const struct of_device_id mt8192_mt6359_dt_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mt8192_mt6359_dt_match);
 #endif
 
 static const struct dev_pm_ops mt8192_mt6359_pm_ops = {
Signature · 1 line
2.38.1
maintainer Reviewed-by on v1 8/9
#15 lore raw

Re: [PATCH 8/9] ASoC: mediatek: mt8192-mt6359: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

Tested-by
#16 lore raw

Re: [PATCH 8/9] ASoC: mediatek: mt8192-mt6359: Register to module device table

Quoted 9 lines · AngeloGioacchino Del Regno

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

#17 lore raw

PATCH 9/9 ASoC: mediatek: mt8195-mt6359: Register to module device table

In reply to Nícolas F. R. A. Prado

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

---

 sound/soc/mediatek/mt8195/mt8195-mt6359.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/mt8195/mt8195-mt6359.c +1 -0
index 480ed3e08d5b..61be66f47723 100644
@@ -1544,6 +1544,7 @@ static const struct of_device_id mt8195_mt6359_dt_match[] = {
 	},
 	{},
 };
+MODULE_DEVICE_TABLE(of, mt8195_mt6359_dt_match);
 
 static struct platform_driver mt8195_mt6359_driver = {
 	.driver = {
Signature · 1 line
2.38.1
maintainer Reviewed-by on v1 9/9
#18 lore raw

Re: [PATCH 9/9] ASoC: mediatek: mt8195-mt6359: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

Tested-by
#19 lore raw

Re: [PATCH 9/9] ASoC: mediatek: mt8195-mt6359: Register to module device table

Quoted 9 lines · AngeloGioacchino Del Regno

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:

Quoted 5 lines

Register the compatibles for this module on the module device table so it can be automatically loaded when a matching device is found on the system.

The module was automatically loaded.

Reviewed-by on the v1 series
#20 lore raw
In reply to Nícolas F. R. A. Prado
Quoted 8 lines · Nícolas F. R. A. Prado

Some ASoC machine drivers for MediaTek platforms were not being registered to the module device table, preventing them to be automatically loaded when built as modules. This series adds the missing registration to the drivers.

Quoted 10 lines

Nícolas F. R. A. Prado (9):
ASoC: mediatek: mt2701-cs42448: Register to module device table
ASoC: mediatek: mt2701-wm8960: Register to module device table
ASoC: mediatek: mt6797-mt6351: Register to module device table
ASoC: mediatek: mt8183-da7219: Register to module device table
ASoC: mediatek: mt8183-mt6358: Register to module device table
ASoC: mediatek: mt8186-da7219: Register to module device table
ASoC: mediatek: mt8186-rt5682: Register to module device table
ASoC: mediatek: mt8192-mt6359: Register to module device table
ASoC: mediatek: mt8195-mt6359: Register to module device table

Thanks! This was on my TODO list. Whole series is

maintainer
#21 lore raw
In reply to Nícolas F. R. A. Prado
Quoted 17 lines · Nícolas F. R. A. Prado

Some ASoC machine drivers for MediaTek platforms were not being registered to the module device table, preventing them to be automatically loaded when built as modules. This series adds the missing registration to the drivers.

Nícolas F. R. A. Prado (9):
ASoC: mediatek: mt2701-cs42448: Register to module device table
ASoC: mediatek: mt2701-wm8960: Register to module device table
ASoC: mediatek: mt6797-mt6351: Register to module device table
ASoC: mediatek: mt8183-da7219: Register to module device table
ASoC: mediatek: mt8183-mt6358: Register to module device table
ASoC: mediatek: mt8186-da7219: Register to module device table
ASoC: mediatek: mt8186-rt5682: Register to module device table
ASoC: mediatek: mt8192-mt6359: Register to module device table
ASoC: mediatek: mt8195-mt6359: Register to module device table

Quoted 1 line

[...]

Applied to

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

Thanks!

[1/9] ASoC: mediatek: mt2701-cs42448: Register to module device table

      commit: f0f217ba7dea78872f5001135984159f4def7047
[2/9] ASoC: mediatek: mt2701-wm8960: Register to module device table
      commit: 59429a5ecc3337aaf6bbd878637250c1c878edc2
[3/9] ASoC: mediatek: mt6797-mt6351: Register to module device table
      commit: 083e948082def40d5d801a3e281d637ee3c0f9bf
[4/9] ASoC: mediatek: mt8183-da7219: Register to module device table
      commit: b5e004b0e5b57d14ac7804875878cdfdb31c9288
[5/9] ASoC: mediatek: mt8183-mt6358: Register to module device table
      commit: bc63a806acdcfca201c68c820731d74185118789
[6/9] ASoC: mediatek: mt8186-da7219: Register to module device table
      commit: 7d6d41e5fbf5e96788c88c9e82a3898ad4cf4f3c
[7/9] ASoC: mediatek: mt8186-rt5682: Register to module device table
      commit: 5d7c2ac0eb3e830a5c8e30515805b3a345d9b919
[8/9] ASoC: mediatek: mt8192-mt6359: Register to module device table
      commit: 2d32a3e52b0537638b31b3315ea1feafc5d0bb02
[9/9] ASoC: mediatek: mt8195-mt6359: Register to module device table
      commit: 6bd8ddf05e9a19fb9efebe46bf58f45b9a6af26a

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