[PATCH 0/9] 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(+)
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com ---
sound/soc/mediatek/mt2701/mt2701-cs42448.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt2701/mt2701-cs42448.c b/sound/soc/mediatek/mt2701/mt2701-cs42448.c index d9fd6eb786aa..08ef109744c7 100644 --- a/sound/soc/mediatek/mt2701/mt2701-cs42448.c +++ b/sound/soc/mediatek/mt2701/mt2701-cs42448.c @@ -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 = {
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com ---
sound/soc/mediatek/mt2701/mt2701-wm8960.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt2701/mt2701-wm8960.c b/sound/soc/mediatek/mt2701/mt2701-wm8960.c index 0cdf2ae36243..a184032c15b6 100644 --- a/sound/soc/mediatek/mt2701/mt2701-wm8960.c +++ b/sound/soc/mediatek/mt2701/mt2701-wm8960.c @@ -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 = {
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com ---
sound/soc/mediatek/mt6797/mt6797-mt6351.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt6797/mt6797-mt6351.c b/sound/soc/mediatek/mt6797/mt6797-mt6351.c index d2f6213a6bfc..784c201b8fd4 100644 --- a/sound/soc/mediatek/mt6797/mt6797-mt6351.c +++ b/sound/soc/mediatek/mt6797/mt6797-mt6351.c @@ -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 = {
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
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.
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
---
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c index 9f22d3939818..0e572fe28c58 100644 --- a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c +++ b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c @@ -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 = {
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.
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com ---
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c b/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c index a86085223677..8fb473543cf9 100644 --- a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c +++ b/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c @@ -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 = {
On Tue, Nov 8, 2022 at 12:06 AM Nícolas F. R. A. Prado nfraprado@collabora.com wrote:
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.
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Tested-by: Chen-Yu Tsai wenst@chromium.org
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com ---
sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c b/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c index cfca6bdee834..08ff57f7189c 100644 --- a/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c +++ b/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c @@ -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 = {
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com ---
sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c b/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c index 16d834f3153d..e59d92e2afa3 100644 --- a/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c +++ b/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c @@ -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 = {
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com ---
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c b/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c index b93c3237ef2d..16660eda577e 100644 --- a/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c +++ b/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c @@ -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 = {
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
On Tue, Nov 8, 2022 at 4:44 PM AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com wrote:
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
Tested-by: Chen-Yu Tsai wenst@chromium.org
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com ---
sound/soc/mediatek/mt8195/mt8195-mt6359.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/mediatek/mt8195/mt8195-mt6359.c b/sound/soc/mediatek/mt8195/mt8195-mt6359.c index 480ed3e08d5b..61be66f47723 100644 --- a/sound/soc/mediatek/mt8195/mt8195-mt6359.c +++ b/sound/soc/mediatek/mt8195/mt8195-mt6359.c @@ -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 = {
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
On Tue, Nov 8, 2022 at 4:43 PM AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com wrote:
Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
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.
Signed-off-by: Nícolas F. R. A. Prado nfraprado@collabora.com
Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@collabora.com
Tested-by: Chen-Yu Tsai wenst@chromium.org
The module was automatically loaded.
On Tue, Nov 8, 2022 at 12:05 AM Nícolas F. R. A. Prado nfraprado@collabora.com wrote:
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
Thanks! This was on my TODO list. Whole series is
Reviewed-by: Chen-Yu Tsai wenst@chromium.org
On Mon, 7 Nov 2022 11:04:28 -0500, Nícolas F. R. A. Prado wrote:
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
[...]
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
participants (4)
-
AngeloGioacchino Del Regno
-
Chen-Yu Tsai
-
Mark Brown
-
Nícolas F. R. A. Prado