Skip to contentSkip to conversation

drivers:pci Add pcie/Kconfig to pci/Kconfig

PATCH In review Bogicevic Sasa 2 participants 3 messages Jan 12, 2016 – Feb 3, 2016 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers:pci Add pcie/Kconfig to pci/Kconfig

Architectures currently have to include both
drivers/pci/Kconfig and drivers/pci/pcie/Kconfig.
They should include only drivers/pci/Kconfig, and
that should handle PCIe as well.

---
 drivers/pci/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/Kconfig +2 -0
index 73de4ef..005dd7d 100644
@@ -119,3 +119,5 @@ config PCI_LABEL
 	select NLS
 
 source "drivers/pci/host/Kconfig"
+
+source "drivers/pci/pcie/Kconfig"
Signature · 1 line
2.5.0
#1 lore raw

Hi Bogicevic,

Quoted 15 lines · Bogicevic Sasa

Architectures currently have to include both
drivers/pci/Kconfig and drivers/pci/pcie/Kconfig.
They should include only drivers/pci/Kconfig, and
that should handle PCIe as well.

---
 drivers/pci/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/Kconfig +0 -0
index 73de4ef..005dd7d 100644

drivers/pci/Kconfig config PCI_LABEL · line 123

Quoted 5 lines
drivers/pci/Kconfig +2 -0
@@ -119,3 +119,5 @@ config PCI_LABEL
 	select NLS
 
 source "drivers/pci/host/Kconfig"
+
+source "drivers/pci/pcie/Kconfig"

This project is something I'd like to get done, but it requires a little more work. If it were this simple, I would have done it long ago :)

For one thing, we need to update all the Kconfig files that already include drivers/pci/pcie/Kconfig at the same time. On x86, arch/x86/Kconfig already includes both:

source "drivers/pci/pcie/Kconfig"
source "drivers/pci/Kconfig"

With your patch applied, I see these new warnings:

05:42:09 ~/linux (wip/bogicevic-kconfig)$ make menuconfig
...
scripts/kconfig/mconf Kconfig drivers/pci/pcie/Kconfig:61:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:67:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:74:warning: choice value used outside its choice group

I see that you did verify that removing the source line from arch/x86/Kconfig does the right thing. We need to put all the related changes in a single patch so it is self-contained. The tree should be buildable and functional at every stage.

Bjorn

#2 lore raw

Hi Bjorn,
I just sent a patch regarding pcie Kconfig in arch/ . I just wanted to ask how did you get these errors you pasted:

Quoted 3 lines

drivers/pci/pcie/Kconfig:61:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:67:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:74:warning: choice value used outside its choice group

Is there a tool for this ? I just wanted to be better at debugging kernel compilation process.

Thanks, Sasa

{
	name: Bogicevic Sasa
	phone: +381606006200
}
Quoted 52 lines · Bjorn Helgaas

Hi Bogicevic,

Quoted 18 lines · Bogicevic Sasa

Architectures currently have to include both
drivers/pci/Kconfig and drivers/pci/pcie/Kconfig.
They should include only drivers/pci/Kconfig, and
that should handle PCIe as well.

---
drivers/pci/Kconfig | 2 ++

1 file changed, 2 insertions(+)
drivers/pci/Kconfig +0 -0
index 73de4ef..005dd7d 100644
@@ -119,3 +119,5 @@ config PCI_LABEL
 	select NLS
 

source "drivers/pci/host/Kconfig"

drivers/pci/Kconfig config PCI_LABEL · line 123

Quoted 2 lines
drivers/pci/Kconfig +2 -0
+
+source "drivers/pci/pcie/Kconfig"

This project is something I'd like to get done, but it requires a little more work. If it were this simple, I would have done it long ago :)

For one thing, we need to update all the Kconfig files that already include drivers/pci/pcie/Kconfig at the same time. On x86, arch/x86/Kconfig already includes both:

source "drivers/pci/pcie/Kconfig"
source "drivers/pci/Kconfig"

With your patch applied, I see these new warnings:

05:42:09 ~/linux (wip/bogicevic-kconfig)$ make menuconfig
...
scripts/kconfig/mconf Kconfig drivers/pci/pcie/Kconfig:61:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:67:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:74:warning: choice value used outside its choice group

I see that you did verify that removing the source line from arch/x86/Kconfig does the right thing. We need to put all the related changes in a single patch so it is self-contained. The tree should be buildable and functional at every stage.

Bjorn