thunderbolt: Add vendor specific NHI quirk for auto-clearing interrupt status
authorSanjay R Mehta <sanju.mehta@amd.com>
Fri, 6 Aug 2021 16:59:05 +0000 (11:59 -0500)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 9 Aug 2021 11:58:29 +0000 (14:58 +0300)
commite390909ac763589558ffb91856f121820f933e4b
tree780851d601645462464ce7da03bc30d4029ba851
parent1651d9e7810e79500b4940122e192b8aaeb2d63c
thunderbolt: Add vendor specific NHI quirk for auto-clearing interrupt status

Introduce nhi_check_quirks() routine to handle any vendor specific quirks
to manage a hardware specific implementation.

On Intel hardware the USB4 controller supports clearing the interrupt
status register automatically right after it is being issued. For this
reason add a new quirk that does that on all Intel hardware.

Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/nhi.c
include/linux/thunderbolt.h