From: Alex Elder <elder@riscstar.com>
To: pavankumaryalagada@gmail.com, johan@kernel.org
Cc: gregkh@linuxfoundation.org, elder@kernel.org, vireshk@kernel.org,
esennesh@leaflabs.com, skhan@linuxfoundation.org,
greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: greybus: bootrom: use firmware size for debug output
Date: Tue, 24 Nov 2026 12:20:17 -0600 [thread overview]
Message-ID: <3f7e5d79-c356-4082-9be2-bca3b8833f88@riscstar.com> (raw)
In-Reply-To: <20261124181046.44750-1-pavankumaryalagada@gmail.com>
On 11/24/26 12:10 PM, pavankumaryalagada@gmail.com wrote:
> From: Yalagada Pavan Kumar <pavankumaryalagada@gmail.com>
>
> The firmware size is converted to little-endian byte order before
> being stored in size_response->size. However, the debug message
> prints size_response->size directly without converting it back
> to CPU byte order.
>
> Use bootrom->fw->size instead, which already contains the firmware
> size in CPU byte order.
>
> Fixes: fc41c2da44c5 ("greybus: firmware/bootrom: debug output from bootrom protocol")
> Suggested-by: Alex Elder <elder@riscstar.com>
> Signed-off-by: Yalagada Pavan Kumar <pavankumaryalagada@gmail.com>
Thanks for the patch, this looks good.
Reviewed-by: Alex Elder <elder@riscstar.com>
> ---
> drivers/staging/greybus/bootrom.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/greybus/bootrom.c b/drivers/staging/greybus/bootrom.c
> index fb1fbd3f7b99..4e225084851b 100644
> --- a/drivers/staging/greybus/bootrom.c
> +++ b/drivers/staging/greybus/bootrom.c
> @@ -222,8 +222,8 @@ static int gb_bootrom_firmware_size_request(struct gb_operation *op)
> size_response = op->response->payload;
> size_response->size = cpu_to_le32(bootrom->fw->size);
>
> - dev_dbg(dev, "%s: firmware size %u bytes\n",
> - __func__, size_response->size);
> + dev_dbg(dev, "%s: firmware size %zu bytes\n",
> + __func__, bootrom->fw->size);
>
> unlock:
> mutex_unlock(&bootrom->mutex);
prev parent reply other threads:[~2026-11-24 18:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 18:10 pavankumaryalagada
2026-11-24 18:20 ` Alex Elder [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=3f7e5d79-c356-4082-9be2-bca3b8833f88@riscstar.com \
--to=elder@riscstar.com \
--cc=elder@kernel.org \
--cc=esennesh@leaflabs.com \
--cc=gregkh@linuxfoundation.org \
--cc=greybus-dev@lists.linaro.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=pavankumaryalagada@gmail.com \
--cc=skhan@linuxfoundation.org \
--cc=vireshk@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®