diff options
| author | Lino Sanfilippo <[email protected]> | 2022-11-24 14:55:27 +0100 |
|---|---|---|
| committer | Jarkko Sakkinen <[email protected]> | 2023-04-24 16:15:53 +0300 |
| commit | 6d789ad726950e612a7f31044260337237c5b490 (patch) | |
| tree | 2d90e79df81e6c756854076802d6b80b4eeee1a0 /drivers/usb/cdns3/cdns3-debug.h | |
| parent | 282657a8bd7fddcf511b834f43705001668b33a7 (diff) | |
tpm, tpm_tis: Disable interrupts if tpm_tis_probe_irq() failed
Both functions tpm_tis_probe_irq_single() and tpm_tis_probe_irq() may setup
the interrupts and then return with an error. This case is indicated by a
missing TPM_CHIP_FLAG_IRQ flag in chip->flags.
Currently the interrupt setup is only undone if tpm_tis_probe_irq_single()
fails. Undo the setup also if tpm_tis_probe_irq() fails.
Signed-off-by: Lino Sanfilippo <[email protected]>
Tested-by: Michael Niewöhner <[email protected]>
Tested-by: Jarkko Sakkinen <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions