Commit 6e6f75c
irqdomain: Look for existing mapping only once
Avoid looking for an existing mapping twice when creating a new mapping
using irq_create_fwspec_mapping() by factoring out the actual allocation
which is shared with irq_create_mapping_affinity().
The new helper function will also be used to fix a shared-interrupt
mapping race, hence the Fixes tag.
Fixes: b62b2cf ("irqdomain: Fix handling of type settings for existing mappings")
Cc: stable@vger.kernel.org # 4.8
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230213104302.17307-5-johan+linaro@kernel.org1 parent e3b7ab0 commit 6e6f75c
1 file changed
Lines changed: 33 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
685 | 713 | | |
686 | 714 | | |
687 | 715 | | |
| |||
694 | 722 | | |
695 | 723 | | |
696 | 724 | | |
697 | | - | |
698 | | - | |
| 725 | + | |
| 726 | + | |
699 | 727 | | |
700 | | - | |
701 | 728 | | |
702 | 729 | | |
703 | | - | |
704 | | - | |
705 | 730 | | |
706 | 731 | | |
707 | 732 | | |
708 | 733 | | |
709 | 734 | | |
710 | 735 | | |
711 | 736 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | 737 | | |
716 | 738 | | |
717 | 739 | | |
718 | 740 | | |
719 | | - | |
| 741 | + | |
720 | 742 | | |
721 | 743 | | |
722 | 744 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
| 745 | + | |
740 | 746 | | |
741 | 747 | | |
742 | 748 | | |
| |||
841 | 847 | | |
842 | 848 | | |
843 | 849 | | |
844 | | - | |
| 850 | + | |
845 | 851 | | |
846 | 852 | | |
847 | 853 | | |
| |||
0 commit comments