public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 219626] Infinite udev uevent stream from USB-C port
Date: Thu, 02 Jan 2025 14:20:54 +0000	[thread overview]
Message-ID: <bug-219626-208809-NxHWPtj4Ss@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-219626-208809@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=219626

--- Comment #1 from Marcin Bachry (hegel666@gmail.com) ---
Here's a minimal revert required to fix the issue:

> diff --git a/drivers/usb/typec/ucsi/ucsi_acpi.c
> b/drivers/usb/typec/ucsi/ucsi_acpi.c
> index accf15ff1306..0e28ea57c611 100644
> --- a/drivers/usb/typec/ucsi/ucsi_acpi.c
> +++ b/drivers/usb/typec/ucsi/ucsi_acpi.c
> @@ -61,11 +61,9 @@ static int ucsi_acpi_read_cci(struct ucsi *ucsi, u32 *cci)
>       struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi);
>       int ret;
>  
> -     if (UCSI_COMMAND(ua->cmd) == UCSI_PPM_RESET) {
> -             ret = ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_READ);
> -             if (ret)
> -                     return ret;
> -     }
> +     ret = ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_READ);
> +     if (ret)
> +             return ret;
>  
>       memcpy(cci, ua->base + UCSI_CCI, sizeof(*cci));

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

  reply	other threads:[~2025-01-02 14:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-23 20:19 [Bug 219626] New: Infinite udev uevent stream from USB-C port bugzilla-daemon
2025-01-02 14:20 ` bugzilla-daemon [this message]
2025-01-02 14:21 ` [Bug 219626] " bugzilla-daemon

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=bug-219626-208809-NxHWPtj4Ss@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@kernel.org \
    --cc=linux-usb@vger.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