linux/drivers/thunderbolt
Mario Limonciello 03e39ec739 thunderbolt: Clear registers properly when auto clear isn't in use
commit c4af8e3fec upstream.

When `QUIRK_AUTO_CLEAR_INT` isn't set, interrupt masking should be
cleared by writing to Interrupt Mask Clear (IMR) and interrupt
status should be cleared properly at shutdown/init.

This fixes an error where interrupts are left enabled during resume
from hibernation with `CONFIG_USB4=y`.

Fixes: 468c49f447 ("thunderbolt: Disable interrupt auto clear for rings")
Cc: stable@vger.kernel.org # v6.3
Reported-by: Takashi Iwai <tiwai@suse.de>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217343
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-24 17:36:54 +01:00
..
acpi.c
cap.c
ctl.c
ctl.h
debugfs.c
dma_port.c
dma_port.h
dma_test.c
domain.c
eeprom.c
icm.c thunderbolt: Add support for Intel Maple Ridge single port controller 2022-09-28 11:11:42 +02:00
Kconfig
lc.c
Makefile
nhi_ops.c
nhi_regs.h thunderbolt: Clear registers properly when auto clear isn't in use 2023-05-24 17:36:54 +01:00
nhi.c thunderbolt: Clear registers properly when auto clear isn't in use 2023-05-24 17:36:54 +01:00
nhi.h thunderbolt: Add support for Intel Maple Ridge single port controller 2022-09-28 11:11:42 +02:00
nvm.c
path.c thunderbolt: Tear down existing tunnels when resuming from hibernate 2022-11-16 09:58:12 +01:00
property.c
quirks.c
retimer.c thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:47:52 +02:00
sb_regs.h thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:47:52 +02:00
switch.c thunderbolt: Call tb_check_quirks() after initializing adapters 2023-03-30 12:47:51 +02:00
tb_msgs.h
tb_regs.h thunderbolt: Explicitly enable lane adapter hotplug events at startup 2022-10-26 12:34:32 +02:00
tb.c thunderbolt: Add DP OUT resource when DP tunnel is discovered 2022-11-16 09:58:13 +01:00
tb.h thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:47:52 +02:00
test.c
tmu.c
tunnel.c thunderbolt: Use correct function to calculate maximum USB3 link rate 2023-01-24 07:22:46 +01:00
tunnel.h thunderbolt: Tear down existing tunnels when resuming from hibernate 2022-11-16 09:58:12 +01:00
usb4_port.c
usb4.c thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:47:52 +02:00
xdomain.c