Bjorn Helgaas
a031589bc0
sparc/PCI: convert devtree and arch-probed bus addresses to resource
...
Normal PCI enumeration via PCI config space uses __pci_read_base(), where
the PCI core applies any bus-to-resource offset. But sparc sometimes
reads PCI config space itself, and sometimes it gets addresses from the
device tree.
In ac1edcc579
, I converted sparc to use the PCI core bus-to-resource
conversion, but I missed these sparc-specific paths. I don't have a way
to test it, but I think sparc is broken between that commit and this one.
This patch replaces the sparc-specific pci_resource_adjust() with the
generic pcibios_bus_to_resource() in the following paths:
pci_cfg_fake_ranges() (addresses read from PCI config)
apb_fake_ranges() (addresses computed based on PCI config)
of_scan_pci_bridge() (addresses from OF "ranges" property)
N.B.: Resources of non-P2P bridge devices are set in pci_parse_of_addrs()
and, as far as I can see, never converted to CPU addresses. I do not
understand why these would be treated differently than bridge windows.
CC: "David S. Miller" <davem@davemloft.net >
CC: sparclinux@vger.kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org >
2012-03-20 10:42:01 -07:00
..
2008-12-04 09:17:15 -08:00
2011-10-31 19:30:54 -04:00
2008-12-04 09:17:12 -08:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:52 -04:00
2011-03-30 17:37:56 -07:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:52 -04:00
2008-12-04 09:17:21 -08:00
2011-06-07 16:06:34 -07:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:53 -04:00
2011-10-31 19:30:53 -04:00
2009-06-16 04:56:28 -07:00
2011-04-21 15:47:35 -07:00
2011-10-31 19:30:54 -04:00
2011-12-04 10:46:56 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:53 -04:00
2011-11-17 22:44:58 -08:00
2011-07-16 10:45:12 -07:00
2008-12-04 09:17:20 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2010-04-12 22:37:26 -07:00
2008-12-04 09:17:21 -08:00
2011-04-21 16:44:45 -07:00
2011-09-16 14:21:33 -07:00
2010-08-08 22:07:36 -07:00
2011-10-31 19:30:53 -04:00
2011-08-02 21:28:52 -07:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:53 -04:00
2011-03-31 11:26:23 -03:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:53 -04:00
2011-07-31 14:30:59 -10:00
2011-10-31 19:30:52 -04:00
2011-10-31 19:30:54 -04:00
2011-08-29 09:20:40 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2011-10-25 11:54:26 -07:00
2011-08-02 21:28:52 -07:00
2010-05-20 21:04:19 -05:00
2010-05-20 21:04:19 -05:00
2010-03-30 22:02:32 +09:00
2010-04-14 02:04:29 -07:00
2011-08-05 00:53:57 -07:00
2011-10-31 19:30:53 -04:00
2010-03-30 22:02:32 +09:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:53 -04:00
2012-02-23 20:19:04 -07:00
2011-03-16 18:19:04 -07:00
2011-07-26 16:49:47 -07:00
2011-08-20 17:14:54 -07:00
2011-10-31 19:30:52 -04:00
2008-12-04 09:17:21 -08:00
2011-11-17 22:44:58 -08:00
2009-01-02 19:32:59 -08:00
2011-10-31 19:30:53 -04:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:53 -04:00
2011-10-31 19:30:53 -04:00
2009-06-16 04:56:49 -07:00
2011-06-07 16:06:34 -07:00
2011-10-31 19:30:52 -04:00
2011-03-16 18:19:03 -07:00
2011-05-16 13:38:07 -07:00
2011-10-31 19:30:52 -04:00
2011-10-31 19:30:52 -04:00
2011-10-31 19:30:52 -04:00
2008-12-04 09:17:21 -08:00
2011-12-22 13:46:53 -08:00
2008-12-04 09:17:21 -08:00
2012-03-20 10:42:01 -07:00
2011-10-31 19:30:52 -04:00
2011-10-31 19:30:53 -04:00
2011-07-27 22:10:10 -07:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:53 -04:00
2011-09-20 23:12:42 -07:00
2011-12-11 10:31:57 -08:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:54 -04:00
2011-12-04 10:46:56 -08:00
2011-06-07 16:06:34 -07:00
2010-10-10 21:53:30 -06:00
2011-06-07 16:06:34 -07:00
2010-07-24 09:58:22 -06:00
2010-10-27 18:03:12 -07:00
2012-01-17 16:16:56 -05:00
2011-10-31 19:30:53 -04:00
2010-10-26 08:59:55 -07:00
2010-10-26 08:59:55 -07:00
2011-10-31 19:30:52 -04:00
2011-12-11 10:31:49 -08:00
2011-11-17 22:44:58 -08:00
2011-11-15 12:57:00 -08:00
2011-11-15 12:57:00 -08:00
2011-11-15 12:57:00 -08:00
2011-08-20 17:14:54 -07:00
2011-11-13 20:53:25 -08:00
2011-08-20 17:14:54 -07:00
2011-07-26 16:49:47 -07:00
2011-12-02 14:57:31 +01:00
2009-01-08 16:59:01 -08:00
2011-10-31 19:30:53 -04:00
2008-12-04 09:17:21 -08:00
2011-08-02 21:28:52 -07:00
2011-10-31 19:30:53 -04:00
2011-01-03 20:02:06 -07:00
2011-04-19 22:11:40 -07:00
2011-06-07 16:06:33 -07:00
2011-05-16 13:38:07 -07:00
2012-01-10 16:28:24 -08:00
2011-05-16 13:38:07 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2011-08-26 15:09:58 -07:00
2011-10-31 19:30:54 -04:00
2010-11-17 08:59:32 -08:00
2011-11-28 11:42:09 +11:00
2010-03-03 08:08:49 -08:00
2011-12-21 14:29:42 -08:00
2011-11-01 00:51:30 -07:00
2011-11-01 00:51:30 -07:00
2010-03-12 15:52:32 -08:00
2010-10-09 02:33:34 -06:00
2011-05-20 12:59:54 -07:00
2011-10-31 19:30:53 -04:00
2009-11-02 04:19:42 -08:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:52 -04:00
2011-06-07 16:06:34 -07:00
2010-02-19 15:19:52 -08:00
2010-06-25 11:17:57 -07:00
2011-02-01 12:39:59 -08:00
2011-03-16 18:19:15 -07:00
2011-10-31 19:30:54 -04:00
2011-08-02 21:28:50 -07:00
2011-06-07 16:06:34 -07:00
2011-06-07 16:06:34 -07:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:52 -04:00
2011-10-31 19:30:53 -04:00
2011-10-31 01:05:49 -07:00
2011-08-05 00:53:57 -07:00
2010-11-17 08:59:32 -08:00
2008-12-04 09:17:21 -08:00
2008-07-17 21:37:46 -07:00
2008-07-17 21:37:46 -07:00