summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJon Hunter2015-09-22 11:27:53 +0200
committerUlf Hansson2015-10-26 16:00:00 +0100
commita5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 (patch)
tree59d6825b63a06eb28f83cce482df405f5228e3ac /kernel
parentmmc: sdhci-pltfm: enable interrupt mode to detect card for ls1021a (diff)
downloadkernel-qcow2-linux-a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0.tar.gz
kernel-qcow2-linux-a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0.tar.xz
kernel-qcow2-linux-a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0.zip
mmc: block: Add new ioctl to send multi commands
Certain eMMC devices allow vendor specific device information to be read via a sequence of vendor commands. These vendor commands must be issued in sequence and an atomic fashion. One way to support this would be to add an ioctl function for sending a sequence of commands to the device atomically as proposed here. These multi commands are simple array of the existing mmc_ioc_cmd structure. The structure passed via the ioctl uses a __u64 type to specify the number of commands (so that the structure is aligned on a 64-bit boundary) and a zero length array as a header for list of commands to be issued. The maximum number of commands that can be sent is determined by MMC_IOC_MAX_CMDS (which defaults to 255 and should be more than sufficient). This based upon work by Seshagiri Holi <sholi@nvidia.com>. Signed-off-by: Seshagiri Holi <sholi@nvidia.com> Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions