Re: [PATCH v9] mmc: support BKOPS feature for eMMC

2012-07-06 Thread Chris Ball
Hi, On Fri, Jun 08 2012, Jaehoon Chung wrote: > Enable eMMC background operations (BKOPS) feature. > > If URGENT_BKOPS is set after a response, note that BKOPS > are required. After all I/O requests are finished, run > BKOPS if required. Should read/write operations be requested > during BKOPS, fi

Re: [PATCH] sdhci: poll for card even when card is logically unremovable

2012-07-06 Thread Daniel Drake
On Fri, Jul 6, 2012 at 2:23 AM, Jaehoon Chung wrote: > Hi Daniel, > > When enabled MMC_UNSAFE_RESUME, it assumed that card didn't remove > during suspend/resume. > If you need to remove the card during suspend/resume, > why enable MMC_UNSAFE_RESUME? We don't want to remove the card during suspend

[PATCH v2] Fix for checking block numbers in disable emulation mode

2012-07-06 Thread Saugata Das
From: Saugata Das In 512B disable emulation patch, a check is done to ensure that size of the data is multiple of 4KB within mmc_blk_issue_rw_rq. However, the check is done with brq->data.blocks, which is not initialized at the point of check. This is now changed to blk_rq_sectors. In addition,

[PATCH] mmc: atmel-mci: fix incorrect setting of host->data to NULL

2012-07-06 Thread Nicolas Ferre
Setting host->data to NULL is incorrect sequence in STATE_SENDING_STOP state of FSM: This early setting leads to the skip of dma_unmap_sg() in atmci_dma_cleanup() which is a bug. Idea taken form dw_mmc by Seungwon Jeon. Signed-off-by: Nicolas Ferre Cc: Seungwon Jeon --- drivers/mmc/host/atmel-

[PATCH] mmc: atmel-mci: modify CLKDIV displaying in debugfs

2012-07-06 Thread Nicolas Ferre
Modify clock division displaying in debugfs for matching the new CLKDIV,CLKODD user interface arrangement. Is using the has_odd_clk_div property to choose the proper format. Signed-off-by: Nicolas Ferre --- drivers/mmc/host/atmel-mci.c | 12 +--- 1 files changed, 9 insertions(+), 3 del

[PATCH v1 5/5] mmc: card: Add RPMB support in IOCTL interface

2012-07-06 Thread Loic Pallardy
RPMB partition is accessing though /dev/block/mmcXrpmb device User callers can read and write entire data frame(s) as defined by JEDEC Standard JESD84-A441, using standard IOCTL interface. Signed-off-by: Alex Macro Signed-off-by: Loic Pallardy --- drivers/mmc/card/block.c | 64 +

[PATCH v1 3/5] mmc: core: Extend sysfs to ext_csd parameters for RPMB support

2012-07-06 Thread Loic Pallardy
Extend current sysfs access to ext_csd rpmb parameters (RPMB partition size) and rel_sector information. Signed-off-by: Loic Pallardy --- Documentation/mmc/mmc-dev-attrs.txt | 7 +++ drivers/mmc/core/mmc.c | 4 2 files changed, 11 insertions(+) diff --git a/Documentation/m

[PATCH v1 0/5] mmc: Add access to RPMB partition

2012-07-06 Thread Loic Pallardy
The goal of this patchserie is to offer access to MMC RPMB (Replay Protected Memory Block) partition. The RPMB partition is used in general to store some secure data. It is accessible through a trusted mechanism described in JEDEC standard JESD84-A441. This patchserie proposes following modifica

[PATCH v1 4/5] mmc: core: Add mmc_set_blockcount feature

2012-07-06 Thread Loic Pallardy
Provide support for automatically sending Set Block Count (CMD23) messages. Used at least for RPMB support. Signed-off-by: Alex Macro Signed-off-by: Loic Pallardy --- drivers/mmc/core/core.c | 14 ++ include/linux/mmc/core.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/

[PATCH v1 1/5] mmc: core: Expose access to RPMB partition

2012-07-06 Thread Loic Pallardy
Following JEDEC standard, if the mmc support RPMB partition, a new interface is created and exposed via /dev/block. Users will be able to access RPMB partition using standard mmc IOCTL command. Signed-off-by: Alex Macro Signed-off-by: Loic Pallardy --- drivers/mmc/core/mmc.c | 11 +++

[PATCH v1 2/5] mmc: card: Do not scan RPMB partitions

2012-07-06 Thread Loic Pallardy
Do not scan rpmb partitions for "soft" partitions, since the rpmb partition contains protected data. Silences the following message during boot: mmcblkXRPMB: unknown partition table Signed-off-by: Johan Rudholm --- drivers/mmc/card/block.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a

Re: [PATCH] sdhci: poll for card even when card is logically unremovable

2012-07-06 Thread Jaehoon Chung
Hi Daniel, When enabled MMC_UNSAFE_RESUME, it assumed that card didn't remove during suspend/resume. If you need to remove the card during suspend/resume, why enable MMC_UNSAFE_RESUME? Best Regards, Jaehoon Chung On 07/06/2012 06:06 AM, Daniel Drake wrote: > The Marvell CaFe is now marked as ha