thunderbolt: Mask ring interrupt on Intel hardware as well
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 30 May 2023 05:48:29 +0000 (08:48 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 31 May 2023 07:37:21 +0000 (10:37 +0300)
commit9f9666e65359d5047089aef97ac87c50f624ecb0
tree2c51e293d8f0731a9d114248741444f25b851600
parent3fe95742af29b8b4eccab2ba94bc521805c6e10c
thunderbolt: Mask ring interrupt on Intel hardware as well

When resuming from system sleep states the driver issues following
warning on Intel hardware:

  thunderbolt 0000:07:00.0: interrupt for TX ring 0 is already enabled

The reason for this is that the commit in question did not mask the ring
interrupt on Intel hardware leaving the interrupt active. Fix this by
masking it also in Intel hardware.

Reported-by: beld zhang <beldzhang@gmail.com>
Tested-by: beld zhang <beldzhang@gmail.com>
Closes: https://lore.kernel.org/linux-usb/ZHKW5NeabmfhgLbY@debian.me/
Fixes: c4af8e3fecd0 ("thunderbolt: Clear registers properly when auto clear isn't in use")
Cc: stable@vger.kernel.org
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/nhi.c