S5P: mmc: Resolved interrupt error during mmc_init
PATCH 1/1 S5P: mmc: Resolved interrupt error during mmc_init
Blocksize was hardcoded to 512 bytes. But the blocksize varies depeding on various mmc subsystem commands (between 8 and 512). This hardcoding was resulting in interrupt error during data transfer.
It is now calculated based upon the request sent by mmc subsystem.
--- drivers/mmc/s5p_mmc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/s5p_mmc.c +1 -1
@@ -51,7 +51,7 @@ static void mmc_prepare_data(struct mmc_host *host, struct mmc_data *data)writeb (ctrl, &host->reg->hostctl);/* We do not handle DMA boundaries, so set it to max (512 KiB) */ -writew ((7 <<12 ) | (512 <<0 ), &host->reg->blksize); +writew ((7 <<12 ) | (data->blocksize &0xFFF ), &host->reg->blksize);writew (data->blocks, &host->reg->blkcnt); }
Signature · 1 line
1.7.1
PATCH 1/1 S5P: mmc: Resolved interrupt error during mmc_init
Dear Chander Kashyap,
Quoted 25 lines · Chander Kashyap
Blocksize was hardcoded to 512 bytes. But the blocksize varies depeding on various mmc subsystem commands (between 8 and 512). This hardcoding was resulting in interrupt error during data transfer.
It is now calculated based upon the request sent by mmc subsystem.
Signed-off-by Chander Kashyap <[email protected]>---
?drivers/mmc/s5p_mmc.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)drivers/mmc/s5p_mmc.c +0
-0@@ -51,7 +51,7 @@ static void mmc_prepare_data(struct mmc_host *host, struct mmc_data *data) ? ? ? ?writeb(ctrl, &host->reg->hostctl);? ? ? ?/* We do not handle DMA boundaries, so set it to max (512 KiB) */
- ? ? ?writew((7 << 12) | (512 << 0), &host->reg->blksize);
+ ? ? ?writew((7 << 12) | (data->blocksize & 0xFFF), &host->reg->blksize); ? ? ? ?writew(data->blocks,&host->reg->blkcnt);
?}
Quoted 3 lines
--
1.7.1
applied to u-boot-samsung.
Thanks
Minkyu Kang
Signature · 2 lines
from. prom. www.promsoft.net
PATCH 1/1 S5P: mmc: Resolved interrupt error during mmc_init
Hi Minkyu,
Quoted 28 lines · Minkyu Kang
Dear Chander Kashyap,
Quoted 25 lines · Chander Kashyap
Blocksize was hardcoded to 512 bytes. But the blocksize varies depeding on various mmc subsystem commands (between 8 and 512). This hardcoding was resulting in interrupt error during data transfer.
It is now calculated based upon the request sent by mmc subsystem.
Signed-off-by Chander Kashyap <[email protected]>---
?drivers/mmc/s5p_mmc.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)drivers/mmc/s5p_mmc.c +0
-0@@ -51,7 +51,7 @@ static void mmc_prepare_data(struct mmc_host *host, struct mmc_data *data) ? ? ? ?writeb(ctrl, &host->reg->hostctl);? ? ? ?/* We do not handle DMA boundaries, so set it to max (512 KiB) */
- ? ? ?writew((7 << 12) | (512 << 0), &host->reg->blksize);
+ ? ? ?writew((7 << 12) | (data->blocksize & 0xFFF), &host->reg->blksize); ? ? ? ?writew(data->blocks,&host->reg->blkcnt);
?}
Quoted 5 lines
Quoted 3 lines
--
1.7.1applied to u-boot-samsung.
I have sent some patches about mmc and reviewed one, can you please tell me what to do mainline them?
11 mar :
[PATCH 1/3][v3] mmc: checking status after commands with R1b response --> it has one Tested-by
[RFC 2/3][v3] mmc: SEND_OP_COND considers card capabilities (voltage) --> it has one Tested-by
[PATCH 3/3][v3] mmc: trace added --> useful for getting information
23 mar :
[U-Boot] [PATCH] MMC may wrongly regconize 2GB eMMC as high capacity --> I have reviewed and proposed a different, I think better and simpler, way. There is a curious dependency between capacity and high_capacity variables.
Regards,
Raffaele
PATCH 1/1 S5P: mmc: Resolved interrupt error during mmc_init
Dear Raffaele Recalcati,
Quoted 9 lines · Raffaele Recalcati
Hi Minkyu,
I have sent some patches about mmc and reviewed one, can you please tell me what to do mainline them?
11 mar :
[PATCH 1/3][v3] mmc: checking status after commands with R1b response --> it has one Tested-by
Quoted 9 lines
[RFC 2/3][v3] mmc:
SEND_OP_CONDconsiders card capabilities (voltage) --> it has one Tested-by
[PATCH 3/3][v3] mmc: trace added --> useful for getting information23 mar :
[U-Boot] [PATCH] MMC may wrongly regconize 2GB eMMC as high capacity --> I have reviewed and proposed a different, I think better and simpler, way. There is a curious dependency between capacity andhigh_capacityvariables.
I'm not a maintainer of mmc.
Please ask to Andy Fleming.
Andy,
could you please check Raffaele's patches?
Thanks
Minkyu Kang.
Signature · 2 lines
from. prom. www.promsoft.net
PATCH 1/1 S5P: mmc: Resolved interrupt error during mmc_init
Hi Andy,
Quoted 25 lines · Minkyu Kang
Dear Raffaele Recalcati,
Quoted 9 lines · Raffaele Recalcati
Hi Minkyu,
I have sent some patches about mmc and reviewed one, can you please tell me what to do mainline them?
11 mar :
[PATCH 1/3][v3] mmc: checking status after commands with R1b response --> it has one Tested-byQuoted 9 lines
[RFC 2/3][v3] mmc:
SEND_OP_CONDconsiders card capabilities (voltage) --> it has one Tested-by
[PATCH 3/3][v3] mmc: trace added --> useful for getting information23 mar :
[U-Boot] [PATCH] MMC may wrongly regconize 2GB eMMC as high capacity --> I have reviewed and proposed a different, I think better and simpler, way. There is a curious dependency between capacity andhigh_capacityvariables.I'm not a maintainer of mmc.
Please ask to Andy Fleming.
Quoted 9 lines
Andy,
could you please check Raffaele's patches?Thanks
Minkyu Kang.
--
from. prom.
www.promsoft.net
can you please take a look at these patches ?
Regards,
Raffaele