From patchwork Mon Feb 14 07:00:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Rakity X-Patchwork-Id: 554121 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1E73UAE011132 for ; Mon, 14 Feb 2011 07:03:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751650Ab1BNHDu (ORCPT ); Mon, 14 Feb 2011 02:03:50 -0500 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:46560 "EHLO na3sys009aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751594Ab1BNHDu convert rfc822-to-8bit (ORCPT ); Mon, 14 Feb 2011 02:03:50 -0500 Received: from source ([65.219.4.129]) (using TLSv1) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKTVjT1QT9V388QrZ9MfzqQTRmUgQscp8c@postini.com; Sun, 13 Feb 2011 23:03:50 PST Received: from SC-vEXCH3.marvell.com ([10.93.76.133]) by SC-OWA01.marvell.com ([10.93.76.21]) with mapi; Sun, 13 Feb 2011 22:59:03 -0800 From: Philip Rakity To: "linux-mmc@vger.kernel.org" CC: Mark Brown Date: Sun, 13 Feb 2011 23:00:01 -0800 Subject: [PATCH 3/5] sdhci: sdhci-pxa.c enable CAP support for cards marked permanent Thread-Topic: [PATCH 3/5] sdhci: sdhci-pxa.c enable CAP support for cards marked permanent Thread-Index: AcvMFM1/g0JhaDlITN2dCfFjbNF6FA== Message-ID: <661A4182-B064-4C75-A590-16FED7ACE220@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 14 Feb 2011 07:04:09 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci-pxa.c b/drivers/mmc/host/sdhci-pxa.c index 8c60d5c..c42d326 100644 --- a/drivers/mmc/host/sdhci-pxa.c +++ b/drivers/mmc/host/sdhci-pxa.c @@ -128,6 +128,11 @@ static int __devinit sdhci_pxa_probe(struct platform_device *pdev) if (pdata->flags & PXA_FLAG_SD_8_BIT_CAPABLE_SLOT) host->mmc->caps |= MMC_CAP_8_BIT_DATA; + if (pdata->flags & PXA_FLAG_CARD_PERMANENT) { + host->mmc->caps |= MMC_CAP_NONREMOVABLE; + host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; + } + /* do not rely on u-boot to enable the clocks */ enable_clock(host);