Commit 7b3c314
committed
MLK-12795 pinctrl: imx: fix initialization of imx_pinctrl_desc
To i.MX7D and i.MX6ULL, we need to support multiple iomux controller,
but we only have one imx_pinctrl_desc with type static. This means
different iomux controller share one imx_pinctrl_desc variable.
The value filled into imx_pinctrl_desc when probing the first iomuxc
node will be overriden when probing the second one.
This will incur errors, such as
'mx7d-pinctrl 30330000.iomuxc: could not map pin config for
"MX7D_PAD_LCD_DATA00"'
In this patch, dynamically allocate imx_pinctrl_desc for each iomux
controller to fix the issue.
Signed-off-by: Peng Fan <[email protected]>
(cherry picked from commit 355b1f2153463bf838e928ffcab871e32cc5081f)1 parent 1c60143 commit 7b3c314
1 file changed
+15
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | 488 | | |
496 | 489 | | |
497 | 490 | | |
| |||
659 | 652 | | |
660 | 653 | | |
661 | 654 | | |
| 655 | + | |
662 | 656 | | |
663 | 657 | | |
664 | 658 | | |
| |||
667 | 661 | | |
668 | 662 | | |
669 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
670 | 669 | | |
671 | 670 | | |
672 | 671 | | |
| |||
704 | 703 | | |
705 | 704 | | |
706 | 705 | | |
707 | | - | |
708 | | - | |
709 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
710 | 713 | | |
711 | 714 | | |
712 | 715 | | |
| |||
717 | 720 | | |
718 | 721 | | |
719 | 722 | | |
720 | | - | |
| 723 | + | |
721 | 724 | | |
722 | 725 | | |
723 | 726 | | |
| |||
0 commit comments