hwtracing: hisi_ptt: Disable interrupt after trace end
authorYicong Yang <yangyicong@hisilicon.com>
Tue, 10 Oct 2023 08:47:27 +0000 (16:47 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 16 Nov 2023 11:36:27 +0000 (11:36 +0000)
commit46f69b197b6cd06c709581f7ad271bc02dbedb7a
treec386dae7aa05b16261b71881ca3cf70e446e5f62
parent9d4408feff89f8d86b8f34339b08ceb5f8400190
hwtracing: hisi_ptt: Disable interrupt after trace end

On trace end we disable the hardware but leave the interrupt
unmasked. Mask the interrupt to make the process reverse to
the start. No actual issue since hardware should send no
interrupt after disabled.

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20231010084731.30450-2-yangyicong@huawei.com
drivers/hwtracing/ptt/hisi_ptt.c
drivers/hwtracing/ptt/hisi_ptt.h