All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] mmc: refactor RPMB block count handling
@ 2018-11-20 23:08 Wolfram Sang
  2018-11-20 23:08 ` [RFC PATCH 1/3] mmc: core: validate user input for RPMB block count Wolfram Sang
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Wolfram Sang @ 2018-11-20 23:08 UTC (permalink / raw)
  To: linux-mmc; +Cc: linux-renesas-soc, Wolfram Sang

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. I also added some sanity checking while here. Please let me know what
you think.

Tested on a R-Car M3-N. No timeouts showed up anymore. I'll try to improve the
testing, though, to check if I can make the occasional timeouts from before
more reproducible. And then confirm that this patchset improves the situation :)

Wolfram Sang (3):
  mmc: core: validate user input for RPMB block count
  mmc: core: use mrq->sbc when sending CMD23 for RPMB
  mmc: core: remove obsolete mmc_set_blockcount() function

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

-- 
2.11.0

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

end of thread, other threads:[~2018-11-26 20:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20 23:08 [RFC PATCH 0/3] mmc: refactor RPMB block count handling Wolfram Sang
2018-11-20 23:08 ` [RFC PATCH 1/3] mmc: core: validate user input for RPMB block count Wolfram Sang
2018-11-22 12:15   ` Avri Altman
2018-11-22 14:05     ` Wolfram Sang
2018-11-22 15:57       ` Avri Altman
2018-11-22 23:34         ` Wolfram Sang
2018-11-25 22:12   ` Clément Péron
2018-11-20 23:08 ` [RFC PATCH 2/3] mmc: core: use mrq->sbc when sending CMD23 for RPMB Wolfram Sang
2018-11-25 22:13   ` Clément Péron
2018-11-20 23:08 ` [RFC PATCH 3/3] mmc: core: remove obsolete mmc_set_blockcount() function Wolfram Sang
2018-11-25 22:13   ` Clément Péron
2018-11-21  0:31 ` [RFC PATCH 0/3] mmc: refactor RPMB block count handling Ulf Hansson
2018-11-21  2:35   ` Wolfram Sang
2018-11-22 10:35     ` Clément Péron
2018-11-24 14:26       ` Clément Péron
2018-11-24 21:37         ` Wolfram Sang
2018-11-25 22:11           ` Clément Péron
2018-11-26  9:38             ` Wolfram Sang

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.