Commit 2871ec99 authored by Ulf Hansson's avatar Ulf Hansson

mmc: wbsd: Replace hardcoded command numbers with existing defines

Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20200409125422.21842-1-ulf.hansson@linaro.org
parent f51167c0
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#include <linux/pnp.h> #include <linux/pnp.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/mmc/host.h> #include <linux/mmc/host.h>
#include <linux/mmc/mmc.h>
#include <linux/mmc/sd.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include <linux/slab.h> #include <linux/slab.h>
...@@ -770,22 +772,22 @@ static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq) ...@@ -770,22 +772,22 @@ static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq)
* interrupts. * interrupts.
*/ */
switch (cmd->opcode) { switch (cmd->opcode) {
case 11: case SD_SWITCH_VOLTAGE:
case 17: case MMC_READ_SINGLE_BLOCK:
case 18: case MMC_READ_MULTIPLE_BLOCK:
case 20: case MMC_WRITE_DAT_UNTIL_STOP:
case 24: case MMC_WRITE_BLOCK:
case 25: case MMC_WRITE_MULTIPLE_BLOCK:
case 26: case MMC_PROGRAM_CID:
case 27: case MMC_PROGRAM_CSD:
case 30: case MMC_SEND_WRITE_PROT:
case 42: case MMC_LOCK_UNLOCK:
case 56: case MMC_GEN_CMD:
break; break;
/* ACMDs. We don't keep track of state, so we just treat them /* ACMDs. We don't keep track of state, so we just treat them
* like any other command. */ * like any other command. */
case 51: case SD_APP_SEND_SCR:
break; break;
default: default:
......
Markdown is supported
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