Re: [PATCH v2] Input: ili210x - widen the firmware address types
From: Dmitry Torokhov
Date: Tue Dec 01 2026 - 01:07:47 EST
On Tue, Dec 01, 2026 at 11:52:12AM +0800, Aibing Chen wrote:
> The firmware write command carries a 3-byte address, but the address
> variables are all u16, so an address of 0x10000 is truncated to 0. The
> firmware blob validation explicitly allows the last block to end at
> SZ_64K, so df_end can reach 0x10000 and the dataflash area is then never
> written.
>
> Widen end, start, fw_addr, ac_end and df_end to u32, from the ihex parser
> down to ili210x_firmware_update(), so that the full 3-byte address range
> reaches the command. Use put_unaligned_be24() for the address and for
> the CRC instead of the open-coded byte shifts; the CRC is 16 bit, so its
> upper byte is the constant zero.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/all/202112071130.VjoibOrG-lkp@xxxxxxxxx/
> Fixes: c6ac8f0b4ca9 ("Input: ili210x - add ili251x firmware update support")
Applied, thank you.
--
Dmitry