Re: [OLPC] sdhci: add quirk for the Marvell CaFe's vdd/powerupissue

From: Pierre Ossman
Date: Fri Jun 27 2008 - 12:30:08 EST


On Sat, 21 Jun 2008 21:15:16 -0400
Andres Salomon <dilinger@xxxxxxxxxx> wrote:

> This has been sitting around unloved for way too long..
>
> The Marvell CaFe chip's SD implementation chokes during card insertion
> if one attempts to set the voltage and power up in the same
> SDHCI_POWER_CONTROL register write. This adds a quirk that does
> that particular dance in two steps.
>
> It also adds an entry to pci_ids.h for the CaFe chip's SD device.
>
> Signed-off-by: Andres Salomon <dilinger@xxxxxxxxxx>
> ---

Looks ok, but please try to diff against my -next branch. The sdhci
driver has been split up into a core and PCI part.

> @@ -774,6 +784,14 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned short power)
> BUG();
> }
>
> + /*
> + * At least the CaFe chip gets confused if we set the voltage
> + * and set turn on power at the same time, so set the voltage first.
> + */

This comment should probably say "Marvell controller" or something like
that. Few know of the CaFE name.

--
-- Pierre Ossman

WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.

Attachment: signature.asc
Description: PGP signature