]> git.baikalelectronics.ru Git - uboot.git/commit
PCI: autoconfig: Don't allocate 64-bit addresses to 32-bit only resources
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Mon, 14 May 2018 16:38:13 +0000 (19:38 +0300)
committerTom Rini <trini@konsulko.com>
Sat, 26 May 2018 16:46:50 +0000 (12:46 -0400)
commitc4c8a0e1309a5d737e23427321bd7aba857fa77c
treea7684ddd6ff0eb0c17fa38ca840a2636342d54b0
parent37c60ea6baead2d9c66e9774b13574e2686e795b
PCI: autoconfig: Don't allocate 64-bit addresses to 32-bit only resources

Currently, if we happen to allocate an address requiring 64 bits to a
device only supporting 32-bit BARs, the address eventually gets silently
truncated to 32 bits. Avoid this by adding a new flag to
pciauto_region_allocate() to bail out in such situations.

Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci_auto.c
drivers/pci/pci_auto_common.c
drivers/pci/pci_auto_old.c
include/pci.h