mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
mmc: debugfs: Allow more host caps to be moodified
Tested on rk3588 platform. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Change-Id: I2d5df7bc95eaa4a380b5107364aff8df3a759788
This commit is contained in:
@@ -315,7 +315,10 @@ static int mmc_caps_set(void *data, u64 val)
|
||||
MMC_CAP_SD_HIGHSPEED |
|
||||
MMC_CAP_MMC_HIGHSPEED |
|
||||
MMC_CAP_UHS |
|
||||
MMC_CAP_DDR;
|
||||
MMC_CAP_DDR |
|
||||
MMC_CAP_4_BIT_DATA |
|
||||
MMC_CAP_8_BIT_DATA |
|
||||
MMC_CAP_CMD23;
|
||||
|
||||
if (diff & ~allowed)
|
||||
return -EINVAL;
|
||||
@@ -327,7 +330,10 @@ static int mmc_caps_set(void *data, u64 val)
|
||||
|
||||
static int mmc_caps2_set(void *data, u64 val)
|
||||
{
|
||||
u32 allowed = MMC_CAP2_HSX00_1_8V | MMC_CAP2_HSX00_1_2V;
|
||||
u32 allowed = MMC_CAP2_HSX00_1_8V |
|
||||
MMC_CAP2_HSX00_1_2V |
|
||||
MMC_CAP2_CQE |
|
||||
MMC_CAP2_CQE_DCMD;
|
||||
u32 *caps = data;
|
||||
u32 diff = *caps ^ val;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user