if i deselect PCIEPORTBUS, why are iwlwifi PCIE modules still being compiled?
quite possibly a silly question (which has never stopped me before),
but in perusing the PCIE code in the kernel source, i was looking for sample code to demo in a classroom setting and picked on drivers/net/wireless/iwlwifi/pcie, which i was *assuming* was PCIE-dependent -- specifically, i was going to demo the Advanced-N 6235 PCIE wifi card on an intel galileo board.
but i thought it was a bit strange that the pcie/ subdirectory there
doesn't seem to depend on PCIEPORTBUS. as a test, i deselected PCIEPORTBUS in a configuration and did a rebuild, and the source in the pcie/ directory was recompiled.
am i misunderstanding the function of the kernel config variable
PCIEPORTBUS? i notice that .../iwlwifi/Makefile includes the line:
iwlwifi-objs += pcie/drv.o pcie/rx.o pcie/tx.o pcie/trans.o
which simply compiles those files with no regard to dependency. can someone clarify this? thanks.
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 12 lines · Robert P. J. Day
quite possibly a silly question (which has never stopped me before),
but in perusing the PCIE code in the kernel source, i was looking for sample code to demo in a classroom setting and picked ondrivers/net/wireless/iwlwifi/pcie, which i was *assuming* was PCIE-dependent -- specifically, i was going to demo the Advanced-N 6235 PCIE wifi card on an intel galileo board.but i thought it was a bit strange that the pcie/ subdirectory there
doesn't seem to depend on PCIEPORTBUS. as a test, i deselected PCIEPORTBUS in a configuration and did a rebuild, and the source in the pcie/ directory was recompiled.
Quoted 7 lines
am i misunderstanding the function of the kernel config variable
PCIEPORTBUS? i notice that .../iwlwifi/Makefile includes the line:iwlwifi-objs +=
pcie/drv.opcie/rx.opcie/tx.opcie/trans.owhich simply compiles those files with no regard to dependency. can someone clarify this? thanks.
The whole driver depends on CONFIG_PCI, maybe it should depend on something more PCIe specific, but that wasn't easy to sort out, and the APIs it needs aren't PCIe specific afaict.
johannes
Quoted 16 lines · Johannes Berg
Quoted 15 lines · Robert P. J. Day
quite possibly a silly question (which has never stopped me before),
but in perusing the PCIE code in the kernel source, i was looking for sample code to demo in a classroom setting and picked ondrivers/net/wireless/iwlwifi/pcie, which i was *assuming* was PCIE-dependent -- specifically, i was going to demo the Advanced-N 6235 PCIE wifi card on an intel galileo board.but i thought it was a bit strange that the pcie/ subdirectory there
doesn't seem to depend on PCIEPORTBUS. as a test, i deselected PCIEPORTBUS in a configuration and did a rebuild, and the source in the pcie/ directory was recompiled.am i misunderstanding the function of the kernel config variable
PCIEPORTBUS? i notice that .../iwlwifi/Makefile includes the line:
Quoted 8 lines
Quoted 4 lines
iwlwifi-objs +=
pcie/drv.opcie/rx.opcie/tx.opcie/trans.owhich simply compiles those files with no regard to dependency. can someone clarify this? thanks.
The whole driver depends on
CONFIG_PCI, maybe it should depend on something more PCIe specific, but that wasn't easy to sort out, and the APIs it needs aren't PCIe specific afaict.
ok, i'll have to think about that for a few minutes. am i at least
correct in my understanding that, technically, the kernel config option PCIEPORTBUS is supposed to control whether one wants basic PCIE support or not?
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 8 lines · Robert P. J. Day
Quoted 3 lines
The whole driver depends on
CONFIG_PCI, maybe it should depend on something more PCIe specific, but that wasn't easy to sort out, and the APIs it needs aren't PCIe specific afaict.ok, i'll have to think about that for a few minutes. am i at least
correct in my understanding that, technically, the kernel config option PCIEPORTBUS is supposed to control whether one wants basic PCIE support or not?
I don't know, sorry.
johannes
Quoted 6 lines · Johannes Berg
Quoted 4 lines · Robert P. J. Day
Quoted 3 lines
The whole driver depends on
CONFIG_PCI, maybe it should depend on something more PCIe specific, but that wasn't easy to sort out, and the APIs it needs aren't PCIe specific afaict.
Quoted 6 lines
Quoted 4 lines
ok, i'll have to think about that for a few minutes. am i at least
correct in my understanding that, technically, the kernel config option PCIEPORTBUS is supposed to control whether one wants basic PCIE support or not?I don't know, sorry.
ok, i think i'll go hassle people on the linux-pci list about this,
thanks for your patience.
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 16 lines · Johannes Berg
Quoted 15 lines · Robert P. J. Day
quite possibly a silly question (which has never stopped me before),
but in perusing the PCIE code in the kernel source, i was looking for sample code to demo in a classroom setting and picked ondrivers/net/wireless/iwlwifi/pcie, which i was *assuming* was PCIE-dependent -- specifically, i was going to demo the Advanced-N 6235 PCIE wifi card on an intel galileo board.but i thought it was a bit strange that the pcie/ subdirectory there
doesn't seem to depend on PCIEPORTBUS. as a test, i deselected PCIEPORTBUS in a configuration and did a rebuild, and the source in the pcie/ directory was recompiled.am i misunderstanding the function of the kernel config variable
PCIEPORTBUS? i notice that .../iwlwifi/Makefile includes the line:
Quoted 8 lines
Quoted 4 lines
iwlwifi-objs += pcie/drv.o pcie/rx.o pcie/tx.o pcie/trans.owhich simply compiles those files with no regard to dependency. can someone clarify this? thanks.
The whole driver depends on
CONFIG_PCI, maybe it should depend on something more PCIe specific, but that wasn't easy to sort out, and the APIs it needs aren't PCIe specific afaict.
Correct. A number of PCIe specific calls are under CONFIG_PCI, ie. pcie_capability_*() et al.
Regards,
Arend
Quoted 7 lines
johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html