commit | f20b71846fe1b13f411524377e4aa933d8d10c11 | [log] [tgz] |
---|---|---|
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | Mon May 14 19:38:13 2018 +0300 |
committer | Tom Rini <trini@konsulko.com> | Sat May 26 12:46:50 2018 -0400 |
tree | a7684ddd6ff0eb0c17fa38ca840a2636342d54b0 | |
parent | 928aec721630dfe447b861b9a240128870b5793f [diff] |
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>