Skip to content
Commit b093410c authored by Grant Grundler's avatar Grant Grundler Committed by Ulf Hansson
Browse files

mmc: block: copy resp[] data on err for MMC_IOC_MULTI_CMD



MMC_IOC_CMD and MMC_IOC_MULTI_CMD ioctl() code currently bails on
any eMMC errors. However, in case there is any resp[] data, we
should attempt to copy resp[] back to user space. The user app
can then determine which command(s) failed in the MMC_IOC_MULTI_CMD
case AND/OR report better diagnostics in both cases.

Gwendal Grignou provided the idea and it was previously implemented
and tested on v3.18 ChromeOS kernel:
    https://chromium-review.googlesource.com/#/c/299956

Signed-off-by: default avatarGrant Grundler <grundler@chromium.org>
Reviewed-by: default avatarHyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: default avatarGwendal Grignou <gwendal@chromium.org>
Tested-by: default avatarDavid Riley <davidriley@chromium.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 85f45058
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment