Linux PCI subsystem development
 help / color / mirror / Atom feed
* Question regarding pci_request_region()
@ 2014-10-21 14:37 Johannes Thumshirn
  2014-10-21 15:34 ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Thumshirn @ 2014-10-21 14:37 UTC (permalink / raw)
  To: linux-pci

Hi,

I've some questions regarding pci_request_region(). Is there a similar function
that allows me to request the memory from a PCIe device, but not a whole BAR?

in drivers/mcb/mcb-pci.c I do a pci_request_region() for BAR 0. But I only need
the first 0x200 bytes. pci_request_region() locks the memory and thus probing of
mcb attached sub devices fails, as they can't do a request_mem on their part of
the PCI memory space until the mcb parser is done and releases BAR0.

Generally this is no problem when you build all drivers as modules, but once I
do build in drivers, probing fails. Before rewriting all mcb based drivers to
use deferred probing I wanted to ask if there is a more clean way to do this.

Thanks in advance,
       Johannes

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-23  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21 14:37 Question regarding pci_request_region() Johannes Thumshirn
2014-10-21 15:34 ` Bjorn Helgaas
2014-10-23  5:52   ` Johannes Thumshirn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox