Skip to content

mmc: rtsx: add check before sending request

[email protected] linux-mmc lkml 1 version Applied

Status from this message: Thanks! Applied for next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2mmc: rtsx: finish request if no card existdrivers/mmc/host/rtsx_pci_sdmmc.c+7 -20 replies
2/2mmc: rtsx: check sg_count before long data xferdrivers/mmc/host/rtsx_pci_sdmmc.c+9 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mmc: rtsx: add check before sending request

From: Micky Ching <[email protected]>

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(-)
Signature · 1 line
1.9.1