[PATCH 2/2] mmc: lock: don't perform lock/unlock commands when in DDR mode

2013-12-19 Thread Abbas Raza
From: Abbas Raza According to JEDEC Standard No. 84-A441: The card lock/unlock command (CMD42) can only be performed when the card operates in single data rate mode. CMD42 is an illegal command in dual data rate mode. So if the card is in DDR mode, don't perform lock/unlock commands. Othe

[PATCH 1/2] mmc: lock: skip regular block io operations for locked cards

2013-12-19 Thread Abbas Raza
From: Abbas Raza According to SD Physical Layer Specifications: Locked cards respond to (and execute) all commands in the "basic" command class (class 0), ACMD41, CMD16 and "lock card" command class. Thus, the host is allowed to reset, initialize, select, query for stat

[RFC PATCH] mmc: card: Skip regular block io operations for RPMB partitions

2013-12-18 Thread Abbas Raza
From: Abbas Raza Idea behind this patch is to skip all the regular block io operations for RPMB partitions because these are not regular partitions and require a different command sequence for reading and writing. RPMB partitions should only be accessed via ioctl. Without this patch we see

[PATCH] mmc: core: Update ext_csd if touched by ioctl

2013-12-10 Thread Abbas Raza
From: Abbas Raza In case an ioctl changes an EXT_CSD register, update the internal ext_csd data structure, too. Else the driver's internal ext_csd data structure and the EXT_CSD register content doesn't match any more. In this case additional ioctls changing the ext_csd would revert t

Wrong command sequence to access eMMC RPMB area in mmc initialisation code?

2013-11-11 Thread Abbas Raza
d in JEDEC Standard No. 84-A441, is required to access it, then why mmc initialisation code is using the wrong command sequence(CMD6-->CMD23-->CMD18) to access it? Thanks . Abbas Raza -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message

Re: Hynix eMMC RPMB: Access timeouts, broken?

2013-10-31 Thread Abbas Raza
in JEDEC Standard No. 84-A441, is required to access it, then why mmc initialisation code is using the wrong command sequence(CMD6-->CMD23-->CMD18) to access it? Thanks . Abbas Raza -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html