From: Binbin Zhou <zhoubinbin@loongson.cn>
To: Colin Ian King <colin.i.king@gmail.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Huacai Chen <chenhuacai@kernel.org>,
linux-mmc@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][next] mmc: loongson2: Fix comparison of unsigned integer with less than zero
Date: Wed, 9 Jul 2025 09:34:50 +0800 [thread overview]
Message-ID: <104dd784-29bb-445e-8581-b5d1e1d22a8f@loongson.cn> (raw)
In-Reply-To: <20250708135348.1888817-1-colin.i.king@gmail.com>
Hi Colin:
Thanks for your patch.
Sergio has already submitted the relevant patch to fix this issue:
https://lore.kernel.org/all/20250707185545.46275-1-sperezglz@gmail.com/
Thank you for your attention to loongson2 mmc driver.
在 2025/7/8 21:53, Colin Ian King 写道:
> From: Colin Ian King <colin.i.king@intel.com>
>
> Currently the u32 variable ret is being assigned the return value from
> the call to regmap_read_poll_timeout and checking for a less than zero
> error return and this check is always false. Fix this by making ret a
> signed integer.
>
> Fixes: d0f8e961deae ("mmc: loongson2: Add Loongson-2K2000 SD/SDIO/eMMC controller driver")
> Signed-off-by: Colin Ian King <colin.i.king@intel.com>
> ---
> drivers/mmc/host/loongson2-mmc.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/loongson2-mmc.c b/drivers/mmc/host/loongson2-mmc.c
> index 515ccf834f0a..ba6bb8fd5535 100644
> --- a/drivers/mmc/host/loongson2-mmc.c
> +++ b/drivers/mmc/host/loongson2-mmc.c
> @@ -485,7 +485,8 @@ static irqreturn_t loongson2_mmc_irq(int irq, void *devid)
>
> static void loongson2_mmc_dll_mode_init(struct loongson2_mmc_host *host)
> {
> - u32 val, pad_delay, delay, ret;
> + u32 val, pad_delay, delay;
> + int ret;
>
> regmap_update_bits(host->regmap, LOONGSON2_MMC_REG_SEL,
> LOONGSON2_MMC_SEL_DATA, LOONGSON2_MMC_SEL_DATA);
Thanks.
Binbin
prev parent reply other threads:[~2025-07-09 1:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-08 13:53 Colin Ian King
2025-07-09 1:34 ` Binbin Zhou [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=104dd784-29bb-445e-8581-b5d1e1d22a8f@loongson.cn \
--to=zhoubinbin@loongson.cn \
--cc=chenhuacai@kernel.org \
--cc=colin.i.king@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.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®