Commit 1dba0a3
can: rcar_canfd: Fix page entries in the AFL list
There are a total of 96 AFL pages and each page has 16 entries with
registers CFDGAFLIDr, CFDGAFLMr, CFDGAFLP0r, CFDGAFLP1r holding
the rule entries (r = 0..15).
Currently, RCANFD_GAFL* macros use a start variable to find AFL entries,
which is incorrect as the testing on RZ/G3E shows ch1 and ch4
gets a start value of 0 and the register contents are overwritten.
Fix this issue by using rule_entry corresponding to the channel
to find the page entries in the AFL list.
Fixes: dd3bd23 ("can: rcar_canfd: Add Renesas R-Car CAN FD driver")
Cc: [email protected]
Signed-off-by: Biju Das <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>1 parent 51f6fc9 commit 1dba0a3
1 file changed
+11
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
| 790 | + | |
791 | 791 | | |
792 | | - | |
793 | | - | |
| 792 | + | |
| 793 | + | |
794 | 794 | | |
795 | 795 | | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | 796 | | |
805 | | - | |
| 797 | + | |
806 | 798 | | |
807 | 799 | | |
808 | 800 | | |
| |||
818 | 810 | | |
819 | 811 | | |
820 | 812 | | |
821 | | - | |
| 813 | + | |
822 | 814 | | |
823 | | - | |
| 815 | + | |
824 | 816 | | |
825 | | - | |
| 817 | + | |
826 | 818 | | |
827 | | - | |
| 819 | + | |
828 | 820 | | |
829 | 821 | | |
830 | 822 | | |
| |||
1851 | 1843 | | |
1852 | 1844 | | |
1853 | 1845 | | |
| 1846 | + | |
1854 | 1847 | | |
1855 | 1848 | | |
1856 | 1849 | | |
| |||
2023 | 2016 | | |
2024 | 2017 | | |
2025 | 2018 | | |
2026 | | - | |
| 2019 | + | |
| 2020 | + | |
2027 | 2021 | | |
2028 | 2022 | | |
2029 | 2023 | | |
| |||
0 commit comments