Skip to contentSkip to conversation

mfd: pm8008: fix module autoloading

PATCH Applied Johan Hovold 4 participants 11 messages May 26, 2023 – Jun 9, 2023

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

cover mfd: pm8008: fix module autoloading

This series adds the missing module device table alias needed for module autoloading to the pm8008 driver and drops a bogus i2c module alias which has never been used.

Johan

Johan Hovold (2):
mfd: pm8008: fix module autoloading
mfd: pm8008: drop bogus i2c module alias

 drivers/mfd/qcom-pm8008.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.39.3
#1 lore raw

PATCH 1/2 mfd: pm8008: fix module autoloading

Add the missing module device table alias to that the driver can be autoloaded when built as a module.

Fixes 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")
---
 drivers/mfd/qcom-pm8008.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/qcom-pm8008.c +1 -0
index 837246aab4ac..29ec3901564b 100644
@@ -199,6 +199,7 @@ static const struct of_device_id pm8008_match[] = {
 	{ .compatible = "qcom,pm8008", },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, pm8008_match);
 
 static struct i2c_driver pm8008_mfd_driver = {
 	.driver = {
Signature · 1 line
2.39.3
#2 lore raw
Quoted 5 lines · Johan Hovold

Add the missing module device table alias to that the driver can be autoloaded when built as a module.

Fixes 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")

Looks like the commit referenced in Fixes is from 5.13-rc1, perhaps 5.13 would be more fitting here?

Konrad

Quoted 17 lines
---
 drivers/mfd/qcom-pm8008.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/qcom-pm8008.c +1 -0
index 837246aab4ac..29ec3901564b 100644
@@ -199,6 +199,7 @@ static const struct of_device_id pm8008_match[] = {
 	{ .compatible = "qcom,pm8008", },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, pm8008_match);
 
 static struct i2c_driver pm8008_mfd_driver = {
 	.driver = {
#3 lore raw
Quoted 9 lines · Konrad Dybcio
Quoted 5 lines · Johan Hovold

Add the missing module device table alias to that the driver can be autoloaded when built as a module.

Fixes 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")

Looks like the commit referenced in Fixes is from 5.13-rc1, perhaps 5.13 would be more fitting here?

No, I just double checked. This driver was not present 5.13.

Johan

Reviewed-by
#4 lore raw
Quoted 5 lines · Johan Hovold
Quoted 4 lines · Konrad Dybcio
Quoted 3 lines · Johan Hovold

Add the missing module device table alias to that the driver can be autoloaded when built as a module.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Fixes 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")

Looks like the commit referenced in Fixes is from 5.13-rc1, perhaps 5.13 would be more fitting here?

No, I just double checked. This driver was not present 5.13.

Odd, I see the same thing.

Anyway

Konrad

Quoted 2 lines

Johan

maintainer Applied
#5 lore raw
In reply to Johan Hovold
Quoted 9 lines · Johan Hovold

Add the missing module device table alias to that the driver can be autoloaded when built as a module.

Fixes 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")
---
 drivers/mfd/qcom-pm8008.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]
#6 lore raw
Quoted 5 lines · Lee Jones
Quoted 3 lines · Johan Hovold

Add the missing module device table alias to that the driver can be autoloaded when built as a module.

Quoted 8 lines
Quoted 6 lines
Fixes 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")
---
 drivers/mfd/qcom-pm8008.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

Thanks, Lee. Did you forget to push these out? I was gonna see if you merged them for 6.4 or 6.5, but I can't seem to find them in your mfd repo.

Johan

maintainer
#7 lore raw
Quoted 13 lines · Johan Hovold
Quoted 12 lines · Lee Jones
Quoted 9 lines · Johan Hovold

Add the missing module device table alias to that the driver can be autoloaded when built as a module.

Fixes 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")
---
 drivers/mfd/qcom-pm8008.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 5 lines
Quoted 1 line

Applied, thanks

Thanks, Lee. Did you forget to push these out? I was gonna see if you merged them for 6.4 or 6.5, but I can't seem to find them in your mfd repo.

I don't tend to push daily. I can push them now if you like.

These were added for v6.5.

Signature · 1 line
Lee Jones [李琼斯]
#8 lore raw
Quoted 9 lines · Lee Jones
Quoted 3 lines · Johan Hovold

Thanks, Lee. Did you forget to push these out? I was gonna see if you merged them for 6.4 or 6.5, but I can't seem to find them in your mfd repo.

I don't tend to push daily. I can push them now if you like.

These were added for v6.5.

Perfect, thanks!

Johan

#9 lore raw

PATCH 2/2 mfd: pm8008: drop bogus i2c module alias

In reply to Johan Hovold

Prior to commit af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF") drivers using OF matching needed an i2c module alias such as "i2c:pm8008" for module autoloading to work.

Drop the bogus i2c alias from the pm8008 driver which was merged long after i2c core was fixed and whose alias did not match the driver name ("pm8008") to begin with.

---
 drivers/mfd/qcom-pm8008.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mfd/qcom-pm8008.c +0 -1
index 29ec3901564b..c4cef3936ea3 100644
@@ -211,4 +211,3 @@ static struct i2c_driver pm8008_mfd_driver = {
 module_i2c_driver(pm8008_mfd_driver);
 
 MODULE_LICENSE("GPL v2");
-MODULE_ALIAS("i2c:qcom-pm8008");
Signature · 1 line
2.39.3
maintainer Applied
#10 lore raw

Re: [PATCH 2/2] mfd: pm8008: drop bogus i2c module alias

Quoted 4 lines · Johan Hovold

Prior to commit af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF") drivers using OF matching needed an i2c module alias such as "i2c:pm8008" for module autoloading to work.

Quoted 8 lines

Drop the bogus i2c alias from the pm8008 driver which was merged long after i2c core was fixed and whose alias did not match the driver name ("pm8008") to begin with.

---
 drivers/mfd/qcom-pm8008.c | 1 -
 1 file changed, 1 deletion(-)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]