Commit f0d2f15
mmc: meson: Fix usage of meson_mmc_post_req()
Currently meson_mmc_post_req() is called in meson_mmc_request() right
after meson_mmc_start_cmd(). This could lead to DMA unmapping before the request
is actually finished.
To fix, don't call meson_mmc_post_req() until meson_mmc_request_done().
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Fixes: 79ed05e ("mmc: meson-gx: add support for descriptor chain mode")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220216124239.4007667-1-rong.chen@amlogic.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>1 parent 7e57714 commit f0d2f15
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
663 | 665 | | |
664 | 666 | | |
665 | 667 | | |
| 668 | + | |
| 669 | + | |
666 | 670 | | |
667 | 671 | | |
668 | 672 | | |
| |||
880 | 884 | | |
881 | 885 | | |
882 | 886 | | |
883 | | - | |
| 887 | + | |
884 | 888 | | |
885 | 889 | | |
886 | 890 | | |
| |||
896 | 900 | | |
897 | 901 | | |
898 | 902 | | |
899 | | - | |
| 903 | + | |
900 | 904 | | |
901 | 905 | | |
902 | | - | |
| 906 | + | |
903 | 907 | | |
904 | 908 | | |
905 | | - | |
| 909 | + | |
906 | 910 | | |
907 | 911 | | |
908 | 912 | | |
909 | 913 | | |
910 | 914 | | |
911 | 915 | | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | 916 | | |
916 | 917 | | |
917 | 918 | | |
| |||
0 commit comments