Skip to content

Commit 07de60a

Browse files
wentongwugregkh
authored andcommitted
mei: vsc: Enhance IVSC chipset stability during warm reboot
During system shutdown, incorporate reset logic to ensure the IVSC chipset remains in a valid state. This adjustment guarantees that the IVSC chipset operates in a known state following a warm reboot. Fixes: 566f5ca ("mei: Add transport driver for IVSC device") Cc: [email protected] # for 6.8+ Signed-off-by: Wentong Wu <[email protected]> Tested-by: Jason Chen <[email protected]> Acked-by: Sakari Ailus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6bef98b commit 07de60a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/misc/mei/vsc-tp.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,19 @@ static void vsc_tp_remove(struct spi_device *spi)
568568
free_irq(spi->irq, tp);
569569
}
570570

571+
static void vsc_tp_shutdown(struct spi_device *spi)
572+
{
573+
struct vsc_tp *tp = spi_get_drvdata(spi);
574+
575+
platform_device_unregister(tp->pdev);
576+
577+
mutex_destroy(&tp->mutex);
578+
579+
vsc_tp_reset(tp);
580+
581+
free_irq(spi->irq, tp);
582+
}
583+
571584
static const struct acpi_device_id vsc_tp_acpi_ids[] = {
572585
{ "INTC1009" }, /* Raptor Lake */
573586
{ "INTC1058" }, /* Tiger Lake */
@@ -580,6 +593,7 @@ MODULE_DEVICE_TABLE(acpi, vsc_tp_acpi_ids);
580593
static struct spi_driver vsc_tp_driver = {
581594
.probe = vsc_tp_probe,
582595
.remove = vsc_tp_remove,
596+
.shutdown = vsc_tp_shutdown,
583597
.driver = {
584598
.name = "vsc-tp",
585599
.acpi_match_table = vsc_tp_acpi_ids,

0 commit comments

Comments
 (0)