All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Aibing Chen <chenaibing@cmss.chinamobile.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] Input: ili210x - widen the firmware address types
Date: Mon, 30 Nov 2026 22:07:40 -0800	[thread overview]
Message-ID: <aw5kJpOA_gXzX_QD@google.com> (raw)
In-Reply-To: <20261201035212.105-1-chenaibing@cmss.chinamobile.com>

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@intel.com>
> Closes: https://lore.kernel.org/all/202112071130.VjoibOrG-lkp@intel.com/
> Fixes: c6ac8f0b4ca9 ("Input: ili210x - add ili251x firmware update support")

Applied, thank you.

-- 
Dmitry

      parent reply	other threads:[~2026-12-01  6:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  3:52 [PATCH v2] Input: ili210x - widen the firmware address types Aibing Chen
2026-12-01  3:58 ` sashiko-bot
2026-12-01  6:07 ` Dmitry Torokhov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aw5kJpOA_gXzX_QD@google.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=chenaibing@cmss.chinamobile.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.