All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] mmc: dw_mmc: host controller reset support
@ 2016-08-10  8:03 ` Guodong Xu
  0 siblings, 0 replies; 19+ messages in thread
From: Guodong Xu @ 2016-08-10  8:03 UTC (permalink / raw)
  To: heiko, shawn.lin, jh80.chung, robh+dt, mark.rutland, ulf.hansson,
	guodong.xu
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mmc

mmc host controller registers may in abnormal state if mmc is used in
bootloader, eg. to load kernel from eMMC. Some controllers cann't
clear their registers when clk is set. They use dedicated reset
logics to do this.

In this patch, a 'resets' property is added into dw_mmc dts
node. When driver does parse_dt and probe, it calls reset API to
triiger 'reset' of dwmmc host controller. When probe error or
remove, it calls reset API to assert it.

Chip vendor's actual reset logics is implemented in reset driver, not
in dw_mmc code.

Please also refer to Documentation/devicetree/bindings/reset/reset.txt

Changelog:
v4:
 * add reset_control_assert() and usleep() before calling _deassert().

Guodong Xu (2):
  Documentation: synopsys-dw-mshc: add binding for resets
  mmc: dw_mmc: add reset support to dwmmc host controller

 .../devicetree/bindings/mmc/synopsys-dw-mshc.txt   |  4 ++++
 drivers/mmc/host/dw_mmc.c                          | 23 +++++++++++++++++++++-
 include/linux/mmc/dw_mmc.h                         |  2 ++
 3 files changed, 28 insertions(+), 1 deletion(-)

-- 
1.9.1

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

end of thread, other threads:[~2016-08-12  8:53 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-10  8:03 [PATCH v4 0/2] mmc: dw_mmc: host controller reset support Guodong Xu
2016-08-10  8:03 ` Guodong Xu
2016-08-10  8:03 ` Guodong Xu
2016-08-10  8:03 ` [PATCH v4 1/2] Documentation: synopsys-dw-mshc: add binding for resets Guodong Xu
2016-08-10  8:03   ` Guodong Xu
2016-08-10  8:03   ` Guodong Xu
2016-08-11  2:18   ` Shawn Lin
2016-08-11  2:18     ` Shawn Lin
2016-08-11  2:18     ` Shawn Lin
2016-08-10  8:03 ` [PATCH v4 2/2] mmc: dw_mmc: add reset support to dwmmc host controller Guodong Xu
2016-08-10  8:03   ` Guodong Xu
2016-08-10  8:03   ` Guodong Xu
2016-08-11  2:23   ` Shawn Lin
2016-08-11  2:23     ` Shawn Lin
2016-08-11  2:23     ` Shawn Lin
2016-08-11 10:30     ` Jaehoon Chung
2016-08-11 10:30       ` Jaehoon Chung
2016-08-12  8:53       ` Guodong Xu
2016-08-12  8:53         ` Guodong Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.