From: stefan.xk.nilsson@stericsson.com (Stefan Nilsson XK)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] mmc: mmci: Fix incorrect handling of HW flow control for SDIO
Date: Mon, 3 Oct 2011 09:31:14 +0200 [thread overview]
Message-ID: <4E8964C2.5000300@stericsson.com> (raw)
In-Reply-To: <20111001161248.GG11710@n2100.arm.linux.org.uk>
Hi Russel,
On 10/01/2011 06:12 PM, Russell King - ARM Linux wrote:
> Shouldn't this also re-enable the ST hardware flow control for non-SDIO
> cards?
I do not think that is needed. Hardware flow control is turned on per
default for all cards thanks to the .clkreg member of the variant struct:
mmci_set_clkreg():
clk |= variant->clkreg_enable;
where
static struct variant_data variant_ux500v2 = {
.clkreg_enable = MCI_ST_UX500_HWFCEN,
This means that HWFC will be on for all cards. This patch only disables
it for SDIO cards (thanks to the mmc_card_sdio()-check) during
problematic transfers (HW peculiarity), and then re-enables it again for
SDIO cards during "normal" transfers. So the HWFC state for non-SDIO
cards should not be touched I think.
Best Regards
Stefan Nilsson
prev parent reply other threads:[~2011-10-03 7:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 7:46 [PATCH 4/4] mmc: mmci: Fix incorrect handling of HW flow control for SDIO Ulf Hansson
2011-10-01 16:12 ` Russell King - ARM Linux
2011-10-03 7:31 ` Stefan Nilsson XK [this message]
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=4E8964C2.5000300@stericsson.com \
--to=stefan.xk.nilsson@stericsson.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).