Commit 159fbfd
PCI: Pass bridge window to pci_bus_release_bridge_resources()
pci_bus_release_bridge_resources() takes type, which is converted into a
bridge window resource in pci_bridge_release_resources().
Find out the correct bridge window for resource whose assignment failed.
Pass that bridge window to pci_bus_release_bridge_resources() instead of
passing the type. When recursing to subordinate, check which bridge windows
have to be released and recurse for each.
For now, use pbus_select_window_for_type() instead of pbus_select_window()
because non-bridge window resources still have their flags reset which
destroys the type information from the struct resource. The struct
pci_dev_resource holds a copy of the flags which are used instead.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250829131113.36754-24-ilpo.jarvinen@linux.intel.com1 parent ebbebd8 commit 159fbfd
1 file changed
+27
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1800 | 1800 | | |
1801 | 1801 | | |
1802 | 1802 | | |
1803 | | - | |
| 1803 | + | |
1804 | 1804 | | |
1805 | 1805 | | |
1806 | | - | |
1807 | | - | |
1808 | 1806 | | |
1809 | 1807 | | |
1810 | | - | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
1831 | | - | |
1832 | | - | |
1833 | | - | |
1834 | | - | |
1835 | | - | |
1836 | | - | |
1837 | | - | |
| 1808 | + | |
1838 | 1809 | | |
1839 | 1810 | | |
| 1811 | + | |
| 1812 | + | |
1840 | 1813 | | |
1841 | | - | |
| 1814 | + | |
1842 | 1815 | | |
1843 | | - | |
| 1816 | + | |
1844 | 1817 | | |
1845 | 1818 | | |
1846 | 1819 | | |
1847 | | - | |
| 1820 | + | |
1848 | 1821 | | |
1849 | 1822 | | |
1850 | 1823 | | |
| |||
1857 | 1830 | | |
1858 | 1831 | | |
1859 | 1832 | | |
1860 | | - | |
| 1833 | + | |
1861 | 1834 | | |
1862 | 1835 | | |
1863 | 1836 | | |
1864 | 1837 | | |
1865 | 1838 | | |
1866 | 1839 | | |
1867 | 1840 | | |
| 1841 | + | |
| 1842 | + | |
1868 | 1843 | | |
1869 | 1844 | | |
1870 | 1845 | | |
| |||
1873 | 1848 | | |
1874 | 1849 | | |
1875 | 1850 | | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
1879 | 1860 | | |
1880 | 1861 | | |
1881 | 1862 | | |
| |||
1885 | 1866 | | |
1886 | 1867 | | |
1887 | 1868 | | |
1888 | | - | |
| 1869 | + | |
1889 | 1870 | | |
1890 | 1871 | | |
1891 | 1872 | | |
| |||
2282 | 2263 | | |
2283 | 2264 | | |
2284 | 2265 | | |
2285 | | - | |
2286 | | - | |
2287 | | - | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
2288 | 2273 | | |
2289 | 2274 | | |
2290 | 2275 | | |
| |||
0 commit comments