mbox series

[0/2] mmc: refactor RPMB block count handling

Message ID 20181126133814.1185-1-wsa+renesas@sang-engineering.com (mailing list archive)
Headers show
Series mmc: refactor RPMB block count handling | expand

Message

Wolfram Sang Nov. 26, 2018, 1:38 p.m. UTC
On Renesas R-Car SDHI hardware, we sometimes had timeouts accessing the RPMB.
This is because AutoCMD23/12 features needs a properly filled sbc to work
correctly. But RPMB sends an individual CMD23. I could have fixed the driver
but after some research concluded that fixing the core seems the proper thing
to do. Tested on a R-Car M3-N. No timeouts showed up anymore.

Changes since RFC:

* dropped sanity checks on block count size
* added comment why we don't do sanity checks
* rebased to current mmc/next
* added Tested-tags from Clément, thanks!

Wolfram Sang (2):
  mmc: core: use mrq->sbc when sending CMD23 for RPMB
  mmc: core: remove obsolete mmc_set_blockcount() function

 drivers/mmc/core/block.c | 15 ++++++++++-----
 drivers/mmc/core/core.c  | 14 --------------
 drivers/mmc/core/core.h  |  2 --
 3 files changed, 10 insertions(+), 21 deletions(-)