All of lore.kernel.org
 help / color / mirror / Atom feed
* fix device in programming state after ioctl()
@ 2019-09-04  7:54 ` Chaotian Jing
  0 siblings, 0 replies; 18+ messages in thread
From: Chaotian Jing @ 2019-09-04  7:54 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Matthias Brugger, Jens Axboe, Hannes Reinecke, Chaotian Jing,
	Avri Altman, YueHaibing, Wolfram Sang, Ming Lei, Chris Boot,
	Zachary Hays, linux-mmc, linux-kernel, linux-arm-kernel,
	linux-mediatek, srv_heupstream

the user space program may access eMMC by ioctl(), after the ioctl() was
completed, it should ensure that eMMC is in transfer state, or it will
cause other thread which access eMMC got timeout error, as it assume that
card was in transfer state.

this patch add CMD13 polling for R1B command to avoid this issue.

Chaotian Jing (2):
  mmc: block: make the card_busy_detect() more generic
  mmc: block: add CMD13 polling for ioctl() cmd with R1B response

 drivers/mmc/core/block.c | 111 ++++++++++++++++++++-------------------
 1 file changed, 57 insertions(+), 54 deletions(-)

-- 
2.18.0



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

end of thread, other threads:[~2019-09-05  6:21 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04  7:54 fix device in programming state after ioctl() Chaotian Jing
2019-09-04  7:54 ` Chaotian Jing
2019-09-04  7:54 ` Chaotian Jing
2019-09-04  7:54 ` [PATCH 1/2] mmc: block: make the card_busy_detect() more generic Chaotian Jing
2019-09-04  7:54   ` Chaotian Jing
2019-09-04  7:54   ` Chaotian Jing
2019-09-04  7:54 ` [PATCH 2/2] mmc: block: add CMD13 polling for ioctl() cmd with R1B response Chaotian Jing
2019-09-04  7:54   ` Chaotian Jing
2019-09-04  7:54   ` Chaotian Jing
2019-09-04 14:11   ` Avri Altman
2019-09-04 14:11     ` Avri Altman
2019-09-04 14:11     ` Avri Altman
2019-09-05  2:55     ` Chaotian Jing
2019-09-05  2:55       ` Chaotian Jing
2019-09-05  2:55       ` Chaotian Jing
2019-09-05  6:21       ` Avri Altman
2019-09-05  6:21         ` Avri Altman
2019-09-05  6:21         ` Avri Altman

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.