From: Chris Ball <cjb@laptop.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: Philip Rakity <prakity@marvell.com>,
Aries Lee <arieslee@jmicron.com>,
zhangfei gao <zhangfei.gao@gmail.com>,
wuqm@marvell.com, linux-mmc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mmc: Test bus-width for old MMC devices (v2)
Date: Thu, 16 Dec 2010 23:40:32 +0000 [thread overview]
Message-ID: <20101216234032.GA17239@void.printf.net> (raw)
In-Reply-To: <s5hfwtzbj8v.wl%tiwai@suse.de>
Hi Takashi,
On Wed, Dec 15, 2010 at 08:14:24AM +0100, Takashi Iwai wrote:
> From: Aries Lee <arieslee@jmicron.com>
>
> Some old MMC devices fail with the 4/8 bits the driver tries to use
> exclusively. This patch adds a test for the given bus setup and falls
> back to the lower bit mode (until 1-bit mode) when the test fails.
>
> [Major rework and refactoring by tiwai]
> [Quirk addition and many fixes by prakity]
>
> v1->v2:
> - Rebased to the code with DDR support, set DDR bit properly
> - Return always error when bus-switching fallback failed
> - Define MMC_BUS_TEST_{R|W} in linux/mmc/mmc.h
> - Add quirk MMC_CAP_BUS_WIDTH_TEST -- default not used for compatibility
> - Ignore errors on BUS_TEST_W -- improves chances test will work
>
> Signed-off-by: Aries Lee <arieslee@jmicron.com>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> Signed-off-by: Philip Rakity <prakity@marvell.com>
> Tested-by: Philip Rakity <prakity@marvell.com>
This looks good, but adds a warning:
drivers/mmc/core/mmc.c: In function ‘mmc_init_card’:
drivers/mmc/core/mmc.c:547: warning: ‘bus_width’ may be used uninitialized in this function
Thanks,
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next prev parent reply other threads:[~2010-12-16 23:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 7:14 [PATCH] mmc: Test bus-width for old MMC devices (v2) Takashi Iwai
2010-12-15 13:17 ` [PATCH] mmc: Enable bus-width tests on SDHCI host Takashi Iwai
2010-12-15 19:40 ` Takashi Iwai
2010-12-16 16:54 ` [PATCH] mmc/sdhci: Enable bus-width test for JMicron controllers Takashi Iwai
2010-12-17 3:58 ` Chris Ball
2010-12-16 23:40 ` Chris Ball [this message]
2010-12-17 2:33 ` [PATCH] mmc: Test bus-width for old MMC devices (v2) Philip Rakity
2010-12-17 3:43 ` Chris Ball
2010-12-17 8:11 ` Takashi Iwai
2010-12-21 10:59 ` zhangfei gao
2010-12-21 16:36 ` Philip Rakity
2010-12-21 19:35 ` Philip Rakity
2010-12-22 3:56 ` zhangfei gao
2010-12-22 8:59 ` Takashi Iwai
2010-12-28 8:27 ` zhangfei gao
2011-01-02 19:52 ` Chris Ball
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=20101216234032.GA17239@void.printf.net \
--to=cjb@laptop.org \
--cc=arieslee@jmicron.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=prakity@marvell.com \
--cc=tiwai@suse.de \
--cc=wuqm@marvell.com \
--cc=zhangfei.gao@gmail.com \
/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