[PATCH] cmd: eeprom: don't truncate target address at 32-bit

Tom Rini trini at konsulko.com
Thu Nov 3 17:58:00 CET 2022


On Sun, Oct 23, 2022 at 12:28:12PM +0300, Baruch Siach wrote:

> On 64-bit platforms where int is 32-bit wide, the eeprom command
> parse_numeric_param() routine truncates the memory address parameter to
> the lower 32-bit. Make parse_numeric_param() return long to allow
> read/write of addresses beyond the lower 4GB.
> 
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> Reviewed-by: Ramon Fried <rfried.dev at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221103/6600e325/attachment.sig>


More information about the U-Boot mailing list