of: address: mark 64-bit PCI resources explicitly as such
PATCH 1/1 of: address: mark 64-bit PCI resources explicitly as such
Eventually, we shouldn't need this, when all code can deal with 64-bit addresses. For now, PCI drivers, when given the choice between 32-bit and 64-bit resources, should select the 32-bit one.
This patch makes the resources straight forward to compare.
Signed-off-by Ahmad Fatoum <[email protected]>
---
Needed for ECAM driver on list to work despite -M virt,highmem=on
--- drivers/of/address.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/of/address.c +3 -1
@@ -133,8 +133,10 @@ static unsigned int of_bus_pci_get_flags(const __be32 *addr)case 0x01 : flags |=IORESOURCE_IO ;break ; -case 0x02 :/* 32 bits */ case 0x03 :/* 64 bits */ + flags |=IORESOURCE_MEM_64 ; +/* fallthrough */ +case 0x02 :/* 32 bits */ flags |=IORESOURCE_MEM ;break ; }
Signature · 7 lines
2.33.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 4 lines · Ahmad Fatoum
Eventually, we shouldn't need this, when all code can deal with 64-bit addresses. For now, PCI drivers, when given the choice between 32-bit and 64-bit resources, should select the 32-bit one.
Quoted 8 lines
This patch makes the resources straight forward to compare.
Signed-off-by Ahmad Fatoum <[email protected]>---
Needed for ECAM driver on list to work despite -M virt,highmem=on--- drivers/of/address.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox