From: pavankumaryalagada@gmail.com
To: 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,
Yalagada Pavan Kumar <pavankumaryalagada@gmail.com>,
Alex Elder <elder@riscstar.com>
Subject: [PATCH] staging: greybus: bootrom: use firmware size for debug output
Date: Tue, 24 Nov 2026 23:40:46 +0530 [thread overview]
Message-ID: <20261124181046.44750-1-pavankumaryalagada@gmail.com> (raw)
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>
---
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);
--
2.43.0
next reply other threads:[~2026-11-24 18:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 18:10 pavankumaryalagada [this message]
2026-11-24 18:20 ` Alex Elder
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=20261124181046.44750-1-pavankumaryalagada@gmail.com \
--to=pavankumaryalagada@gmail.com \
--cc=elder@kernel.org \
--cc=elder@riscstar.com \
--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=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®