mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
Revert "mmc: block: ioctl return EINVAL if cmd unknown"
This reverts commit 7c1abbfe2a.
Will fixes by aosp commit "mmc: block: fix ABI regression of mmc_blk_ioctl"
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
parent
00fc9d59e2
commit
a43f5002cd
|
|
@ -690,11 +690,6 @@ static int mmc_blk_ioctl_multi_cmd(struct block_device *bdev,
|
|||
static int mmc_blk_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
if (cmd != MMC_IOC_CMD && cmd != MMC_IOC_MULTI_CMD)
|
||||
return -EINVAL;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The caller must have CAP_SYS_RAWIO, and must be calling this on the
|
||||
* whole block device, not on a partition. This prevents overspray
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user