Skip to content
Commit d9d8595a authored by Peter Swain's avatar Peter Swain Committed by Ruiqiang Hao
Browse files

mmc: octeontx2: CMD19/21 type correction



commit d31c6e73fc606e9bcc812c1ce75bb40f7ba41b35 from
git@git.assembla.com:cavium/WindRiver.linux.git

The Octeon host controller assumes the return-type and
bus-activity type of commands, so it can boot from eMMC
without software assistance, and support minimal operation
with minimal firmware.
As some details differ between eMMC and SD-card dialects,
and new commands are added as standards evolve, exceptions
to this assumed ctype/rtype table may be forced as commands
are issued, via MIO_EMM_CMD[CTYPE_XOR,RTYPE_XOR] fields.

The driver's knowledge of the hardware's assumption about
two tuning commands is incorrect:
- BUSTEST_W (CMD19) is an output command;
- MMC_SEND_TUNING_BLOCK_HS200 (CMD21) is an R1 read command.

Now these can be issued without error.

Change-Id: I60086d3164aee116cb6b1daf496691430da35544
Signed-off-by: default avatarPeter Swain <pswain@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Reviewed-on: https://sj1git1.cavium.com/8545


Tested-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Reviewed-by: default avatarChandrakala Chavva <cchavva@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/26907


Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent d5eeffb3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment