Skip to contentSkip to conversation

PCI: mediatek-gen3: change driver name to mtk-pcie-gen3

PATCH Superseded Felix Fietkau 2 participants 3 messages May 4, 2022

Subsystems (4)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: mediatek-gen3: change driver name to mtk-pcie-gen3

This allows it to coexist with the other mtk pcie driver in the same kernel

---
 drivers/pci/controller/pcie-mediatek-gen3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-mediatek-gen3.c +1 -1
index 3e8d70bfabc6..2e665cd7e735 100644
@@ -1021,7 +1021,7 @@ static struct platform_driver mtk_pcie_driver = {
 	.probe = mtk_pcie_probe,
 	.remove = mtk_pcie_remove,
 	.driver = {
-		.name = "mtk-pcie",
+		.name = "mtk-pcie-gen3",
 		.of_match_table = mtk_pcie_of_match,
 		.pm = &mtk_pcie_pm_ops,
 	},
Signature · 1 line
2.35.1
#1 lore raw
Quoted 1 line · Felix Fietkau

This allows it to coexist with the other mtk pcie driver in the same kernel

I assume this is a v3 of [1]. Please:

- Follow the subject line capitalization convention, i.e.,

    "PCI: mediatek-gen3: Change ..."

- Expand the commit log to say why this is important. From a C language level, using the same "mtk-pcie" string in both drivers is no problem. So please mention where it *is* a problem, e.g., if it's a problem with modprobe or similar, say that. Or if it's to make log messages in dmesg have different driver names, say that.

- s/pcie/PCIe/ in commit log and other English text.

- Add a period at the end of the commit log sentence.

[1] https://lore.kernel.org/r/[email protected]

Quoted 26 lines
---
 drivers/pci/controller/pcie-mediatek-gen3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-mediatek-gen3.c +1 -1
index 3e8d70bfabc6..2e665cd7e735 100644
@@ -1021,7 +1021,7 @@ static struct platform_driver mtk_pcie_driver = {
 	.probe = mtk_pcie_probe,
 	.remove = mtk_pcie_remove,
 	.driver = {
-		.name = "mtk-pcie",
+		.name = "mtk-pcie-gen3",
 		.of_match_table = mtk_pcie_of_match,
 		.pm = &mtk_pcie_pm_ops,
 	},
Signature · 7 lines
2.35.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#2 lore raw
Quoted 4 lines · Bjorn Helgaas
Quoted 1 line · Felix Fietkau

This allows it to coexist with the other mtk pcie driver in the same kernel

I assume this is a v3 of [1]. Please:

Thanks, I wasn't aware of that patch.

Quoted 9 lines

- Follow the subject line capitalization convention, i.e.,

     "PCI: mediatek-gen3: Change ..."

- Expand the commit log to say why this is important. From a C language level, using the same "mtk-pcie" string in both drivers is no problem. So please mention where it *is* a problem, e.g., if it's a problem with modprobe or similar, say that. Or if it's to make log messages in dmesg have different driver names, say that.The reason is the fact that driver_register will refuse to register a

driver if one with the same name has already been registered.

Quoted 5 lines

- s/pcie/PCIe/ in commit log and other English text.

- Add a period at the end of the commit log sentence.

[1] https://lore.kernel.org/r/[email protected]

Will take care of this and send an updated version as v3.

- Felix

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek