All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Weidong Wang" <weidongw@illinois.edu>
Cc: linux-clk@vger.kernel.org
Subject: Re: [PATCH] clk: vt8500: Return the error from vtwm_pll_determine_rate()
Date: Fri, 04 Dec 2026 01:11:40 +0000	[thread overview]
Message-ID: <sashiko-outbox-248877@kernel.org> (raw)
In-Reply-To: <20261203-kbug-l1923-v1-1-590e67d6beaa@illinois.edu>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] clk: vt8500: commit message misstates clk_round_rate() error
  behavior
--

commit 3e95563f4a638d437e597748764ec4139a458886
Author: Weidong Wang <weidongw@illinois.edu>

clk: vt8500: Return the error from vtwm_pll_determine_rate()

This commit changes vtwm_pll_determine_rate() to return the error from
the *_find_pll_bits() helpers instead of assigning it to req->rate and
returning 0.

> When a *_find_pll_bits() helper rejects the requested rate,
> vtwm_pll_determine_rate() stores the negative errno in the unsigned
> req->rate and returns 0. The clock core then treats the request as
> successful and clk_round_rate() reports a bogus rate near ULONG_MAX
> instead of an error.

[Severity: Low]
Does clk_round_rate() actually report a rate near ULONG_MAX here?

clk_round_rate() returns signed long, so converting the negative errno
stored in unsigned long req->rate back to long still yields the negative
errno.

The callers that see a bogus rate near ULONG_MAX or treat the failed
request as successful are clk_hw_round_rate() (which returns unsigned
long) and clk_set_rate() via clk_calc_new_rates().  Updating the commit
message to cite those instead would make the changelog accurate.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-kbug-l1923-v1-1-590e67d6beaa@illinois.edu?part=1

      reply	other threads:[~2026-12-04  1:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  0:59 [PATCH] clk: vt8500: Return the error from vtwm_pll_determine_rate() Weidong Wang
2026-12-04  0:59 ` Weidong Wang via B4 Relay
2026-12-04  1:11 ` sashiko-bot [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=sashiko-outbox-248877@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=weidongw@illinois.edu \
    /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.