of/pci: Add IORESOURCE_MEM_64 to resource flags for 64-bit memory addresses
authorLeonardo Bras <leobras.c@gmail.com>
Thu, 15 Apr 2021 18:00:51 +0000 (15:00 -0300)
committerRob Herring <robh@kernel.org>
Wed, 21 Apr 2021 12:49:45 +0000 (07:49 -0500)
commit9d57e61bf72336e13e4cd3c31e93ab26266296a8
tree36ed7a0d714463b5f4c8cd20b830b17d7d0b57bc
parentb4193622707846637ea58bd3bdcaf8be997c4db9
of/pci: Add IORESOURCE_MEM_64 to resource flags for 64-bit memory addresses

Many other resource flag parsers already add this flag when the input
has bits 24 & 25 set, so update this one to do the same.

Some devices (like virtio-net) have more than one memory resource
(like MMIO32 and MMIO64) and without this flag it would be needed to
verify the address range to know which one is which.

Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Link: https://lore.kernel.org/r/20210415180050.373791-1-leobras.c@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c