Commit ed9be0e
tpm, tpm_tis: Do not skip reset of original interrupt vector
If in tpm_tis_probe_irq_single() an error occurs after the original
interrupt vector has been read, restore the interrupts before the error is
returned.
Since the caller does not check the error value, return -1 in any case that
the TPM_CHIP_FLAG_IRQ flag is not set. Since the return value of function
tpm_tis_gen_interrupt() is not longer used, make it a void function.
Fixes: 1107d06 ("tpm_tis: Introduce intermediate layer for TPM access")
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>1 parent 6d789ad commit ed9be0e
1 file changed
+11
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
| 736 | + | |
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
| 745 | + | |
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | | - | |
755 | 753 | | |
756 | 754 | | |
757 | 755 | | |
| |||
781 | 779 | | |
782 | 780 | | |
783 | 781 | | |
784 | | - | |
| 782 | + | |
785 | 783 | | |
786 | 784 | | |
787 | 785 | | |
788 | | - | |
| 786 | + | |
789 | 787 | | |
790 | 788 | | |
791 | 789 | | |
792 | 790 | | |
793 | | - | |
794 | | - | |
| 791 | + | |
795 | 792 | | |
796 | 793 | | |
797 | 794 | | |
798 | 795 | | |
799 | | - | |
| 796 | + | |
800 | 797 | | |
801 | 798 | | |
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
805 | 802 | | |
806 | | - | |
807 | | - | |
808 | | - | |
| 803 | + | |
809 | 804 | | |
| 805 | + | |
810 | 806 | | |
811 | 807 | | |
812 | 808 | | |
813 | 809 | | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
820 | 813 | | |
821 | 814 | | |
822 | 815 | | |
| |||
0 commit comments