linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/3] mmc: dw_mmc: Make the use of the hold reg generic
@ 2013-12-07  3:20 dinguyen
  2013-12-07  3:20 ` [PATCHv2 1/3] mmc: dw_mmc: Enable the hold reg for certain speed modes dinguyen
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: dinguyen @ 2013-12-07  3:20 UTC (permalink / raw)
  To: dinh.linux, arnd, cjb, jh80.chung, tgih.jun, heiko, dianders,
	alim.akhtar, bzhao
  Cc: linux-mmc, Dinh Nguyen

From: Dinh Nguyen <dinguyen@altera.com>

Hi,

This is v2 of the patch series that makes the setting of the SDMMC_CMD_USE_HOLD_REG
bit generic.

v2 differences:

* Another part of the spec on dw_mmc states, "Never set CMD.use_hold_reg = 1 and
  cclk_in_drv phase shift to 0 at the same time. This would add an extra one-cycle
  delay on the output path, resulting in incorrect behavior." The cclk_in_drv phase
  shift is the 2nd parameter in the "samsung,dw-mshc-sdr-timing" and
  "samsung,dw-mshc-ddr-timing" bindings. V2 checks for the cclk_in_drv phase shift
  value. If cclk_in_drv = 0, then we cannot set the SDMMC_CMD_USE_HOLD_REG bit.

* Removes the Exynos' platform specific prepare_command's function that sets the
  SDMMC_CMD_USE_HOLD_REG based on the cclk_in_drv phase shift value.

Thanks,

Dinh Nguyen (3):
  mmc: dw_mmc: Enable the hold reg for certain speed modes
  mmc: dw_mmc-pltm: Remove Rockchip's custom dw_mmc driver structure
  mmc: dw_mmc-exynos: Remove Exynos' custom prepare_command function

 drivers/mmc/host/dw_mmc-exynos.c |   14 ------------
 drivers/mmc/host/dw_mmc-pltfm.c  |   12 +----------
 drivers/mmc/host/dw_mmc.c        |   44 ++++++++++++++++++++++++++++++++++++++
 include/linux/mmc/dw_mmc.h       |    3 +++
 4 files changed, 48 insertions(+), 25 deletions(-)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-12-09  3:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-07  3:20 [PATCHv2 0/3] mmc: dw_mmc: Make the use of the hold reg generic dinguyen
2013-12-07  3:20 ` [PATCHv2 1/3] mmc: dw_mmc: Enable the hold reg for certain speed modes dinguyen
2013-12-07 12:50   ` Heiko Stübner
2013-12-09  1:24   ` Jaehoon Chung
2013-12-09  3:26     ` Dinh Nguyen
2013-12-07  3:20 ` [PATCHv2 2/3] mmc: dw_mmc-pltm: Remove Rockchip's custom dw_mmc driver structure dinguyen
2013-12-07 12:51   ` Heiko Stübner
2013-12-07  3:20 ` [PATCHv2 3/3] mmc: dw_mmc-exynos: Remove Exynos' custom prepare_command function dinguyen
2013-12-07  4:12   ` Arnd Bergmann
2013-12-09  3:25     ` Dinh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).