From: <micky_ching@realsil.com.cn>
To: <chris@printf.net>, <ulf.hansson@linaro.org>, <sameo@linux.intel.com>
Cc: <gregkh@linuxfoundation.org>, <dan.carpenter@oracle.com>,
<devel@linuxdriverproject.org>, <linux-kernel@vger.kernel.org>,
<linux-mmc@vger.kernel.org>, <rogerable@realtek.com>,
<wei_wang@realsil.com.cn>,
Micky Ching <micky_ching@realsil.com.cn>
Subject: [PATCH 0/2] mmc: rtsx: add check before sending request
Date: Wed, 14 Jan 2015 11:09:10 +0800 [thread overview]
Message-ID: <cover.1421204431.git.micky_ching@realsil.com.cn> (raw)
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
next reply other threads:[~2015-01-14 3:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 3:09 micky_ching [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1421204431.git.micky_ching@realsil.com.cn \
--to=micky_ching@realsil.com.cn \
--cc=chris@printf.net \
--cc=dan.carpenter@oracle.com \
--cc=devel@linuxdriverproject.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=rogerable@realtek.com \
--cc=sameo@linux.intel.com \
--cc=ulf.hansson@linaro.org \
--cc=wei_wang@realsil.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox