On Sun, Sep 9, 2012 at 11:05 AM, Chris Ball <[email protected]> wrote:
> Signed-off-by: Chris Ball <[email protected]>
> ---
>  drivers/mmc/host/sdhci-pxav3.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
> index a553b18..8a9b367 100644
> --- a/drivers/mmc/host/sdhci-pxav3.c
> +++ b/drivers/mmc/host/sdhci-pxav3.c
> @@ -198,6 +198,12 @@ static struct sdhci_pxa_platdata 
> *pxav3_get_mmc_pdata(struct device *dev)
>         if (clk_delay_cycles > 0)
>                 pdata->clk_delay_cycles = clk_delay_cycles;
>
> +       if (of_find_property(np, "broken-cd", NULL))
> +               pdata->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION;
> +
> +       if (of_find_property(np, "wp-inverted", NULL))
> +               pdata->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT;
> +
>         return pdata;
>  }
>  #else
> --
> Chris Ball   <[email protected]>   <http://printf.net/>
> One Laptop Per Child

Acked-by: Haojian Zhuang <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to