All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Guenter Roeck" <linux@roeck-us.net>, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] hwmon: (asus_rog_ryujin) Fix timeout when reading 0% duty cycle
Date: Wed, 04 Nov 2026 14:49:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-197466@kernel.org> (raw)
In-Reply-To: <20261104144432.3199070-1-linux@roeck-us.net>

> The device uses the same zero-duty report format for both legitimate 0%
> duty GET responses and SET confirmation ACKs on cooler and controller
> duty channels. To distinguish them, rog_ryujin_raw_event() checks
> !completion_done() on cooler_duty_set and controller_duty_set, assuming
> this is only true while a SET command is awaiting confirmation.
> 
> However, init_completion() initializes the completion count to zero, so
> !completion_done() evaluates to true from probe until the first SET
> command completes. Likewise, if rog_ryujin_execute_cmd() fails to send a
> command, times out, or is interrupted after reinit_completion(), the
> completion remains uncompleted. When a valid 0% duty GET response then
> arrives, rog_ryujin_raw_event() consumes it as a SET confirmation and
> leaves the pending *_duty_received completion uncompleted, causing
> rog_ryujin_execute_cmd() to wait 1.5 seconds and fail with -ETIMEDOUT.
> 
> Mark all completions as done with complete_all() after initialization in
> rog_ryujin_probe(), and complete status_completion on error in
> rog_ryujin_execute_cmd(), so !completion_done() is only true while a
> command is actively awaiting a response.
> 
> Fixes: ed3e03790c5c ("hwmon: Add driver for ASUS ROG RYUJIN II 360 AIO cooler")
> Cc: Aleksa Savic <savicaleksa83@gmail.com>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104144432.3199070-1-linux@roeck-us.net?part=1


      reply	other threads:[~2026-11-04 14:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04 14:44 [PATCH] hwmon: (asus_rog_ryujin) Fix timeout when reading 0% duty cycle Guenter Roeck
2026-11-04 14:49 ` 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-197466@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.