diff options
author | Suzuki K Poulose <[email protected]> | 2021-09-23 15:39:15 +0100 |
---|---|---|
committer | Mathieu Poirier <[email protected]> | 2021-10-27 11:45:27 -0600 |
commit | 85fb92353e0dece18048bdb35c7e6b682129deff (patch) | |
tree | c929709398367b88c277e4086acad201b637a61e /scripts/gdb/linux/utils.py | |
parent | 04a37a174e5697d90c129c286bdb6bbcb516058f (diff) |
coresight: trbe: irq handler: Do not disable TRBE if no action is needed
The IRQ handler of the TRBE driver could race against the update_buffer()
in consuming the IRQ. So, if the update_buffer() gets to processing the
TRBE irq, the TRBSR will be cleared. Thus by the time IRQ handler is
triggered, there is nothing to do there. Handle these cases and do not
disable the TRBE unnecessarily. Since the TRBSR can be read without
stopping the TRBE, we can check that before disabling the TRBE.
Cc: Mathieu Poirier <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: Leo Yan <[email protected]>
Cc: Mike Leach <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions