Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: block: Change MMC_IOC_MAX_BYTES

It is used for limitation of buffer size during IOCTL such as FFU.
However, eMMC FW size is bigger than (512L*256).
(For instance, currently, Samsung eMMC FW size is over 300KB.)
So, it needs to increase to execute FFU.

Signed-off-by: Jeonghan Kim <jh4u.kim@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Jeonghan Kim and committed by
Ulf Hansson
417b1bf8 d9943c68

+1 -1
+1 -1
include/uapi/linux/mmc/ioctl.h
··· 69 69 * is enforced per ioctl call. For larger data transfers, use the normal 70 70 * block device operations. 71 71 */ 72 - #define MMC_IOC_MAX_BYTES (512L * 256) 72 + #define MMC_IOC_MAX_BYTES (512L * 1024) 73 73 #define MMC_IOC_MAX_CMDS 255 74 74 #endif /* LINUX_MMC_IOCTL_H */