Skip to contentSkip to conversation

PCI: mt7621: Kconfig: Convert driver into 'bool'

PATCH Superseded Sergio Paracuellos 3 participants 4 messages Dec 1, 2021 – Dec 4, 2021

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: mt7621: Kconfig: Convert driver into 'bool'

Driver is not ready yet to be compiled as a module since it depends on some MIPS not exported symbols. We have the following current problems:

Building mips:allmodconfig ... failed
--------------
Error log:
ERROR: modpost: missing MODULE_LICENSE() in drivers/pci/controller/pcie-mt7621.o
ERROR: modpost: "mips_cm_unlock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cpc_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cm_lock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cm_is64" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_gcr_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!

Temporarily move from 'tristate' to 'bool' after a better solution is ready.

Also RALINK is redundant because SOC_MT7621 already depends on it. Hence, simplify condition.

Fixes 2bdd5238e756 ("PCI: mt7621: Add MediaTek MT7621 PCIe host controller driver").
---
 drivers/pci/controller/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/controller/Kconfig +2 -2
index 93b141110537..7fc5135ffbbf 100644
@@ -332,8 +332,8 @@ config PCIE_APPLE
 	  If unsure, say Y if you have an Apple Silicon system.
 
 config PCIE_MT7621
-	tristate "MediaTek MT7621 PCIe Controller"
-	depends on (RALINK && SOC_MT7621) || (MIPS && COMPILE_TEST)
+	bool "MediaTek MT7621 PCIe Controller"
+	depends on SOC_MT7621 || (MIPS && COMPILE_TEST)
 	select PHY_MT7621_PCI
 	default SOC_MT7621
 	help
Signature · 1 line
2.33.0
#1 lore raw
Quoted 13 lines · Sergio Paracuellos

Driver is not ready yet to be compiled as a module since it depends on some MIPS not exported symbols. We have the following current problems:

Building mips:allmodconfig ... failed
--------------
Error log:
ERROR: modpost: missing MODULE_LICENSE() in drivers/pci/controller/pcie-mt7621.o
ERROR: modpost: "mips_cm_unlock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cpc_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cm_lock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cm_is64" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_gcr_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!

Quoted 1 line

Temporarily move from 'tristate' to 'bool' after a better solution is ready.

s/after/until/

Quoted 6 lines

Also RALINK is redundant because SOC_MT7621 already depends on it. Hence, simplify condition.

Fixes 2bdd5238e756 ("PCI: mt7621: Add MediaTek MT7621 PCIe host controller driver").
Reviewed-and-Tested-by Guenter Roeck <[email protected]>
Quoted 20 lines
---
  drivers/pci/controller/Kconfig | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/controller/Kconfig +2 -2
index 93b141110537..7fc5135ffbbf 100644
@@ -332,8 +332,8 @@ config PCIE_APPLE
  	  If unsure, say Y if you have an Apple Silicon system.
 
  config PCIE_MT7621
-	tristate "MediaTek MT7621 PCIe Controller"
-	depends on (RALINK && SOC_MT7621) || (MIPS && COMPILE_TEST)
+	bool "MediaTek MT7621 PCIe Controller"
+	depends on SOC_MT7621 || (MIPS && COMPILE_TEST)
  	select PHY_MT7621_PCI
  	default SOC_MT7621
  	help
#2 lore raw
In reply to Sergio Paracuellos

s/PCI: mt7621: Kconfig:/PCI: mt7621:/

in subject. You can run "git log --oneline drivers/pci/controller/Kconfig" to learn the convention.

Quoted 3 lines · Sergio Paracuellos

Driver is not ready yet to be compiled as a module since it depends on some MIPS not exported symbols. We have the following current problems:
...

#3 lore raw
Quoted 5 lines · Bjorn Helgaas

s/PCI: mt7621: Kconfig:/PCI: mt7621:/

in subject. You can run "git log --oneline drivers/pci/controller/Kconfig" to learn the convention.

Will take it into account from now, thanks.

Sent: https://lore.kernel.org/linux-pci/[email protected]/T/#u

Best regards,
Sergio Paracuellos

Quoted 5 lines · Sergio Paracuellos
Quoted 3 lines

Driver is not ready yet to be compiled as a module since it depends on some MIPS not exported symbols. We have the following current problems:
...