From: Stephen Warren Date: Wed, 25 Sep 2019 10:12:28 -0600 Subject: [U-Boot] [PATCH 002/126] dm: core: Correct low cell in ofnode_read_pci_addr() In-Reply-To: <20190925145750.200592-3-sjg@chromium.org> References: <20190925145750.200592-1-sjg@chromium.org> <20190925145750.200592-3-sjg@chromium.org> Message-ID: <51c4c2c2-7fa6-b29d-5262-20e09fa9e237@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 9/25/19 8:55 AM, Simon Glass wrote: > This reads the low cell of the PCI address from the wrong cell. Fix it. > Also fix the function that this code came from. > > Fixes: 9e51204527 (dm: core: Add operations on device tree references) > Fixes: 4ea5243a3a (fdt: fix fdtdec_get_pci_addr() for CONFIG_PHYS_64BIT) > Signed-off-by: Simon Glass > --- > I can't work out why the existing code is correct, but I suppose it might > be for some obscure reason that needs a comment. > > The original patch is here: http://patchwork.ozlabs.org/patch/525853/ This makes sense. I am not sure how the original code worked; I can only assume the mid/low values were always both set to 0, or unused, or something? Tested-by: Stephen Warren