diff options
author | Sergei Antonov <saproj@gmail.com> | 2023-06-27 15:05:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-16 18:10:53 +0200 |
commit | f778961ffd4cc152b2fc8ce3b73c09d6201d8cff (patch) | |
tree | 80c8eef4867e25f1b06f0b4689589ae67cfc108c /crypto | |
parent | 81e030509c4d249b2e1029a4d1f773087fdd1faf (diff) | |
download | linux-stable-f778961ffd4cc152b2fc8ce3b73c09d6201d8cff.tar.gz linux-stable-f778961ffd4cc152b2fc8ce3b73c09d6201d8cff.tar.bz2 linux-stable-f778961ffd4cc152b2fc8ce3b73c09d6201d8cff.zip |
mmc: moxart: read scr register without changing byte order
commit d44263222134b5635932974c6177a5cba65a07e8 upstream.
Conversion from big-endian to native is done in a common function
mmc_app_send_scr(). Converting in moxart_transfer_pio() is extra.
Double conversion on a LE system returns an incorrect SCR value,
leads to errors:
mmc0: unrecognised SCR structure version 8
Fixes: 1b66e94e6b99 ("mmc: moxart: Add MOXA ART SD/MMC driver")
Signed-off-by: Sergei Antonov <saproj@gmail.com>
Cc: Jonas Jensen <jonas.jensen@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230627120549.2400325-1-saproj@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions