patch "usb: typec: ucsi: acpi: Implement resume callback" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: typec: ucsi: acpi: Implement resume callback
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 4e3a50293c2b21961f02e1afa2f17d3a1a90c7c8 Mon Sep 17 00:00:00 2001
From: Heikki Krogerus <[email protected]>
Date: Fri, 7 Oct 2022 13:09:51 +0300
Subject: usb: typec: ucsi: acpi: Implement resume callback
The ACPI driver needs to resume the interface by calling ucsi_resume(). Otherwise we may fail to detect connections and disconnections that happen while the system is suspended.
--- drivers/usb/typec/ucsi/ucsi_acpi.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/usb/typec/ucsi/ucsi_acpi.c +10 -0
@@ -185,6 +185,15 @@ static int ucsi_acpi_remove(struct platform_device *pdev)return 0 ; } +static int ucsi_acpi_resume (struct device *dev) +{ +struct ucsi_acpi *ua =dev_get_drvdata (dev); + +return ucsi_resume (ua->ucsi); +} + +static DEFINE_SIMPLE_DEV_PM_OPS(ucsi_acpi_pm_ops, NULL, ucsi_acpi_resume); +static const struct acpi_device_id ucsi_acpi_match[] = { {"PNP0CA0" ,0 }, { },
@@ -194,6 +203,7 @@ MODULE_DEVICE_TABLE(acpi, ucsi_acpi_match);static struct platform_driver ucsi_acpi_platform_driver = { .driver = { .name ="ucsi_acpi" , + .pm =pm_ptr (&ucsi_acpi_pm_ops), .acpi_match_table =ACPI_PTR (ucsi_acpi_match), }, .probe = ucsi_acpi_probe,
Signature · 1 line
2.38.1