linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] of: treat PCI config space as IORESOURCE_MEM type
@ 2014-05-29 16:03 Kumar Gala
  2014-05-29 20:44 ` Rob Herring
  0 siblings, 1 reply; 28+ messages in thread
From: Kumar Gala @ 2014-05-29 16:03 UTC (permalink / raw)
  To: linux-arm-kernel

If we have a PCI config space specified in something like a ranges
property we should treat it as memory type resource.

Signed-off-by: Kumar Gala <galak@codeaurora.org>
---
 drivers/of/address.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/of/address.c b/drivers/of/address.c
index cb4242a..4e7ee59 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -122,6 +122,9 @@ static unsigned int of_bus_pci_get_flags(const __be32 *addr)
 	u32 w = be32_to_cpup(addr);
 
 	switch((w >> 24) & 0x03) {
+	case 0x00: /* cfg space */
+		flags |= IORESOURCE_MEM;
+		break;
 	case 0x01:
 		flags |= IORESOURCE_IO;
 		break;
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

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

end of thread, other threads:[~2014-06-03 11:38 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29 16:03 [PATCH] of: treat PCI config space as IORESOURCE_MEM type Kumar Gala
2014-05-29 20:44 ` Rob Herring
2014-05-29 20:51   ` Kumar Gala
2014-05-29 21:50     ` Rob Herring
2014-05-30  0:56     ` Liviu Dudau
2014-05-30  1:29       ` Bjorn Helgaas
2014-05-30  1:41         ` Liviu Dudau
2014-05-30 20:37           ` Jason Gunthorpe
2014-05-30 20:44             ` Kumar Gala
2014-05-30 20:45           ` Kumar Gala
2014-05-30 23:11             ` Liviu Dudau
2014-05-30 23:16               ` Bjorn Helgaas
2014-05-30 23:30                 ` Liviu Dudau
2014-05-31  0:36                   ` Liviu Dudau
2014-05-31  0:36                     ` [PATCH 1/2] pci: Add IORESOURCE_BIT entry for PCIe ECAM resources Liviu Dudau
2014-05-31 18:41                       ` Arnd Bergmann
2014-06-01 11:26                         ` Liviu Dudau
2014-06-02 15:09                         ` Grant Likely
2014-06-02 15:40                           ` Kumar Gala
2014-06-02 16:23                             ` Grant Likely
2014-06-02 18:09                               ` Kumar Gala
2014-06-02 19:15                                 ` Arnd Bergmann
2014-06-02 20:43                                   ` Kumar Gala
2014-06-02 20:44                                     ` Arnd Bergmann
2014-06-03  8:44                                 ` Grant Likely
2014-06-03  9:21                                   ` Arnd Bergmann
2014-06-03 11:38                                     ` Grant Likely
2014-05-31  0:36                     ` [PATCH 2/2] of: treat PCI config space as IORESOURCE_MEM type with special flags Liviu Dudau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).