mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
of/address: Fix of_pci_range_parser_one translation of DMA addresses
of_pci_range_parser_one() has a bug when parsing dma-ranges. When it translates the parent address (aka cpu address in the code), 'ranges' is always being used. This happens to work because most users are just 1:1 translation. Cc: Robin Murphy <robin.murphy@arm.com> Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
@@ -12,6 +12,7 @@ struct of_pci_range_parser {
|
||||
const __be32 *end;
|
||||
int np;
|
||||
int pna;
|
||||
bool dma;
|
||||
};
|
||||
|
||||
struct of_pci_range {
|
||||
|
||||
Reference in New Issue
Block a user