[Bug 219626] Infinite udev uevent stream from USB-C port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--- Comment #1 from Marcin Bachry (hegel666@xxxxxxxxx) ---
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.




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux