public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mmc: rtsx: add check before sending request
@ 2015-01-14  3:09 micky_ching
  2015-01-14  3:09 ` [PATCH 1/2] mmc: rtsx: finish request if no card exist micky_ching
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: micky_ching @ 2015-01-14  3:09 UTC (permalink / raw)
  To: chris, ulf.hansson, sameo
  Cc: gregkh, dan.carpenter, devel, linux-kernel, linux-mmc, rogerable,
	wei_wang, Micky Ching

From: Micky Ching <micky_ching@realsil.com.cn>

Add check before sending request can make request return faster.
- finish request if no card exist
  This can make request finish faster, especial for some sdio card,
  when card removed, there still a lot of command pending,
  if we check card exist and stop request, the card will disappear
  faster in user space.

- check sg_count before long data xfer
  modify sg_count type unsigned -> int, because dma_map_sg() return
  int, and this value can be negative to indicate some error occurs.

Micky Ching (2):
  mmc: rtsx: finish request if no card exist
  mmc: rtsx: check sg_count before long data xfer

 drivers/mmc/host/rtsx_pci_sdmmc.c | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

-- 
1.9.1


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

end of thread, other threads:[~2015-01-21 12:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14  3:09 [PATCH 0/2] mmc: rtsx: add check before sending request micky_ching
2015-01-14  3:09 ` [PATCH 1/2] mmc: rtsx: finish request if no card exist micky_ching
2015-01-14  3:09 ` [PATCH 2/2] mmc: rtsx: check sg_count before long data xfer micky_ching
2015-01-21 12:59 ` [PATCH 0/2] mmc: rtsx: add check before sending request Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox