mbox series

[0/2] mmc: renesas_sdhi: reset via reset controller

Message ID 20210309092332.30705-1-wsa+renesas@sang-engineering.com (mailing list archive)
Headers show
Series mmc: renesas_sdhi: reset via reset controller | expand

Message

Wolfram Sang March 9, 2021, 9:23 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 RFC v2 (thanks Geert for the review!):

* use devm_reset_control_get_optional_exclusive()
* select RESET_CONTROLLER
* given reason in commit message of patch 2

Tested on a Salvator-XS with a Renesas R-Car M3-N.

Shimoda-san: I think we need to get this series upstream first. On top
of this, I will work on the better irq_mask handling.


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

 drivers/mmc/host/Kconfig             |  1 +
 drivers/mmc/host/renesas_sdhi.h      |  2 ++
 drivers/mmc/host/renesas_sdhi_core.c | 15 ++++++++++++++-
 drivers/mmc/host/tmio_mmc_core.c     |  4 ++--
 4 files changed, 19 insertions(+), 3 deletions(-)

Comments

Wolfram Sang March 9, 2021, 9:28 a.m. UTC | #1
On Tue, Mar 09, 2021 at 10:23:30AM +0100, Wolfram Sang wrote:
> This series enables SDHI to be reset via a reset controller.
> 
> Please let me know about your (and BSP team's) thoughts.
> 
> Changes since RFC v2 (thanks Geert for the review!):
> 
> * use devm_reset_control_get_optional_exclusive()
> * select RESET_CONTROLLER
> * given reason in commit message of patch 2
> 
> Tested on a Salvator-XS with a Renesas R-Car M3-N.

Patches are on top of mmc/next.