mbox series

[RFC,v2,0/2] mmc: renesas_sdhi: reset via reset controller

Message ID 20210222113955.7779-1-wsa+renesas@sang-engineering.com
Headers show
Series mmc: renesas_sdhi: reset via reset controller | expand

Message

Wolfram Sang Feb. 22, 2021, 11:39 a.m. UTC
This series enables SDHI to be reset via a reset controller.

Please let me know about your (and BSP team's) thoughts.


Changes since (internal) RFC v1:

* moved from probe() to the reset() callback so we use it for every
  reset, not only when initializing
* patch 1 is new to make sure aborting DMA will work
* added a comment about (unexpected) polling for the reset status
* don't use atomic version for polling; reset is not a hot path

Wolfram Sang (2):
  mmc: tmio: abort DMA before reset
  mmc: renesas_sdhi: do hard reset if possible

 drivers/mmc/host/renesas_sdhi.h      |  2 ++
 drivers/mmc/host/renesas_sdhi_core.c | 13 ++++++++++++-
 drivers/mmc/host/tmio_mmc_core.c     |  4 ++--
 3 files changed, 16 insertions(+), 3 deletions(-)