Skip to contentSkip to conversation

mmc: sdhci-esdhc-imx: fix mmc ddr mode regression issue

PATCH In review Dong Aisheng 3 participants 6 messages May 9, 2014 – May 27, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sdhci-esdhc-imx: fix mmc ddr mode regression issue

The regression is caused by the following commit ...

commit 79f7ae7c45a6ccf04e2908337461dee615f6afb0

Author: Seungwon Jeon <[email protected]>
Date:   Fri Mar 14 21:11:56 2014 +0900

mmc: clarify DDR timing mode between SD-UHS and eMMC

This change distinguishes DDR timing mode of current mixed usage to clarify device type.

... and the line below.

@@ -1264,7 +1264,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,

goto err;
	}
		mmc_card_set_ddr_mode(card);
-		mmc_set_timing(card->host, MMC_TIMING_UHS_DDR50);
+		mmc_set_timing(card->host, MMC_TIMING_MMC_DDR52);
		mmc_set_bus_width(card->host, bus_width);
	}
}

It's caused by the platform driver was still using MMC_TIMING_UHS_DDR50 for MMC DDR mode which needs update too.

---
 drivers/mmc/host/sdhci-esdhc-imx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mmc/host/sdhci-esdhc-imx.c +1 -0
index b841bb7..16e4219 100644
@@ -858,6 +858,7 @@ static int esdhc_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs)
 		imx_data->uhs_mode = SDHCI_CTRL_UHS_SDR104;
 		break;
 	case MMC_TIMING_UHS_DDR50:
+	case MMC_TIMING_MMC_DDR52:
 		imx_data->uhs_mode = SDHCI_CTRL_UHS_DDR50;
 		writel(readl(host->ioaddr + ESDHC_MIX_CTRL) |
 				ESDHC_MIX_CTRL_DDREN,
Signature · 1 line
1.7.8
#1 lore raw
Quoted 28 lines · Dong Aisheng

The regression is caused by the following commit ...

commit 79f7ae7c45a6ccf04e2908337461dee615f6afb0

Author: Seungwon Jeon <[email protected]>
Date:   Fri Mar 14 21:11:56 2014 +0900

mmc: clarify DDR timing mode between SD-UHS and eMMC

This change distinguishes DDR timing mode of current mixed usage to clarify device type.

... and the line below.

(quoted diff) +1 -1
@@ -1264,7 +1264,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
 goto err;
        }
                mmc_card_set_ddr_mode(card);
-               mmc_set_timing(card->host, MMC_TIMING_UHS_DDR50);
+               mmc_set_timing(card->host, MMC_TIMING_MMC_DDR52);
                mmc_set_bus_width(card->host, bus_width);
        }
 }
Quoted 6 lines

It's caused by the platform driver was still using MMC_TIMING_UHS_DDR50 for MMC DDR mode which needs update too.

Hi Dong,

Thanks for the fix. I will include this in the next PR I send to Chris.

Kind regards
Ulf Hansson

#2 lore raw
Quoted 32 lines · Ulf Hansson
Quoted 31 lines · Dong Aisheng

The regression is caused by the following commit ...

commit 79f7ae7c45a6ccf04e2908337461dee615f6afb0

Author: Seungwon Jeon <[email protected]>
Date:   Fri Mar 14 21:11:56 2014 +0900

mmc: clarify DDR timing mode between SD-UHS and eMMC

This change distinguishes DDR timing mode of current mixed usage to clarify device type.

... and the line below.

(quoted diff) +1 -1
@@ -1264,7 +1264,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
 goto err;
        }
                mmc_card_set_ddr_mode(card);
-               mmc_set_timing(card->host, MMC_TIMING_UHS_DDR50);
+               mmc_set_timing(card->host, MMC_TIMING_MMC_DDR52);
                mmc_set_bus_width(card->host, bus_width);
        }
 }

It's caused by the platform driver was still using MMC_TIMING_UHS_DDR50 for MMC DDR mode which needs update too.

Quoted 8 lines
Quoted 3 lines

Hi Dong,

Thanks for the fix. I will include this in the next PR I send to Chris.

Hi Ulf,

Okay, thanks a lot.

Regards
Dong Aisheng

Quoted 2 lines

Kind regards
Ulf Hansson

reviewer Tested-by on v1 1/1
#5 lore raw
In reply to Dong Aisheng
Quoted 28 lines · Dong Aisheng

The regression is caused by the following commit ...

commit 79f7ae7c45a6ccf04e2908337461dee615f6afb0

Author: Seungwon Jeon <[email protected]>
Date:   Fri Mar 14 21:11:56 2014 +0900

mmc: clarify DDR timing mode between SD-UHS and eMMC

This change distinguishes DDR timing mode of current mixed usage to clarify device type.

... and the line below.

(quoted diff) +1 -1
@@ -1264,7 +1264,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
 goto err;
        }
                mmc_card_set_ddr_mode(card);
-               mmc_set_timing(card->host, MMC_TIMING_UHS_DDR50);
+               mmc_set_timing(card->host, MMC_TIMING_MMC_DDR52);
                mmc_set_bus_width(card->host, bus_width);
        }
 }
Quoted 6 lines

It's caused by the platform driver was still using MMC_TIMING_UHS_DDR50 for MMC DDR mode which needs update too.

reviewer
#3 lore raw
In reply to Ulf Hansson

Hi Ulf,

Quoted 32 lines · Ulf Hansson
Quoted 31 lines · Dong Aisheng

The regression is caused by the following commit ...

commit 79f7ae7c45a6ccf04e2908337461dee615f6afb0

Author: Seungwon Jeon <[email protected]>
Date:   Fri Mar 14 21:11:56 2014 +0900

mmc: clarify DDR timing mode between SD-UHS and eMMC

This change distinguishes DDR timing mode of current mixed usage to clarify device type.

... and the line below.

(quoted diff) +1 -1
@@ -1264,7 +1264,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
 goto err;
        }
                mmc_card_set_ddr_mode(card);
-               mmc_set_timing(card->host, MMC_TIMING_UHS_DDR50);
+               mmc_set_timing(card->host, MMC_TIMING_MMC_DDR52);
                mmc_set_bus_width(card->host, bus_width);
        }
 }

It's caused by the platform driver was still using MMC_TIMING_UHS_DDR50 for MMC DDR mode which needs update too.

Quoted 7 lines
Quoted 3 lines

Hi Dong,

Thanks for the fix. I will include this in the next PR I send to Chris.

It seems this one is still missing in linux-next.

#4 lore raw
Quoted 41 lines · Fabio Estevam

Hi Ulf,

Quoted 38 lines · Ulf Hansson
Quoted 28 lines · Dong Aisheng

The regression is caused by the following commit ...

commit 79f7ae7c45a6ccf04e2908337461dee615f6afb0

Author: Seungwon Jeon <[email protected]>
Date:   Fri Mar 14 21:11:56 2014 +0900

mmc: clarify DDR timing mode between SD-UHS and eMMC

This change distinguishes DDR timing mode of current mixed usage to clarify device type.

... and the line below.

(quoted diff) +1 -1
@@ -1264,7 +1264,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
 goto err;
        }
                mmc_card_set_ddr_mode(card);
-               mmc_set_timing(card->host, MMC_TIMING_UHS_DDR50);
+               mmc_set_timing(card->host, MMC_TIMING_MMC_DDR52);
                mmc_set_bus_width(card->host, bus_width);
        }
 }
Quoted 6 lines

It's caused by the platform driver was still using MMC_TIMING_UHS_DDR50 for MMC DDR mode which needs update too.

Hi Dong,

Quoted 3 lines
Quoted 1 line

Thanks for the fix. I will include this in the next PR I send to Chris.

It seems this one is still missing in linux-next.

The patch is applied to Chris' mmc tree. Currently, Stehpen can't merge the latest version of Chris' tree since we have mange to break it. :-)

I hope Chris will merge the following patch to his tree the next few days, that will solve the problem.
[PATCH] mmc: sdhci-s3c: use mmc_of_parse and remove the card_tasklet

Kind regards
Ulf Hansson