All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oded Gabbay <ogabbay@advaoptical.com>
To: <gregkh@linuxfoundation.org>, <cjb@laptop.org>,
	<dirk.behme@de.bosch.com>
Cc: <linux-mmc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<ogabbay@advaoptical.com>
Subject: [PATCH] MMC: FSL SDHC: Add support for non-removable card. Kernel version 3.4.48
Date: Mon, 10 Jun 2013 20:15:40 +0300	[thread overview]
Message-ID: <1370884540-25238-1-git-send-email-ogabbay@advaoptical.com> (raw)

This patch adds support of recognizing non-removable cards
to Freescale's SDHC host driver. This is done by detecting the
attribute "non-removable" in the probe function

This patch depends on patch[2/3] from 6-jun-2013:
https://patchwork.kernel.org/patch/2649381/

This patch is instead of patch[3/3] from 6-jun-2013:
https://patchwork.kernel.org/patch/2649231/

Signed-off-by: Oded Gabbay <ogabbay@advaoptical.com>
---
 drivers/mmc/host/sdhci-of-esdhc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c
index e70f22f..a6e068c 100644
--- a/drivers/mmc/host/sdhci-of-esdhc.c
+++ b/drivers/mmc/host/sdhci-of-esdhc.c
@@ -222,6 +222,10 @@ static int __devinit sdhci_esdhc_probe(struct platform_device *pdev)
 		host->quirks2 |= SDHCI_QUIRK2_BROKEN_HOST_CONTROL;
 	}
 
+	/* Check if card is non-removable */
+	if (of_find_property(np, "non-removable", NULL))
+		host->caps |= MMC_CAP_NONREMOVABLE;
+
 	ret = sdhci_add_host(host);
 	if (ret)
 		sdhci_pltfm_free(pdev);
-- 
1.8.3


WARNING: multiple messages have this Message-ID (diff)
From: Oded Gabbay <ogabbay@advaoptical.com>
To: gregkh@linuxfoundation.org, cjb@laptop.org, dirk.behme@de.bosch.com
Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
	ogabbay@advaoptical.com
Subject: [PATCH] MMC: FSL SDHC: Add support for non-removable card. Kernel version 3.4.48
Date: Mon, 10 Jun 2013 20:15:40 +0300	[thread overview]
Message-ID: <1370884540-25238-1-git-send-email-ogabbay@advaoptical.com> (raw)

This patch adds support of recognizing non-removable cards
to Freescale's SDHC host driver. This is done by detecting the
attribute "non-removable" in the probe function

This patch depends on patch[2/3] from 6-jun-2013:
https://patchwork.kernel.org/patch/2649381/

This patch is instead of patch[3/3] from 6-jun-2013:
https://patchwork.kernel.org/patch/2649231/

Signed-off-by: Oded Gabbay <ogabbay@advaoptical.com>
---
 drivers/mmc/host/sdhci-of-esdhc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c
index e70f22f..a6e068c 100644
--- a/drivers/mmc/host/sdhci-of-esdhc.c
+++ b/drivers/mmc/host/sdhci-of-esdhc.c
@@ -222,6 +222,10 @@ static int __devinit sdhci_esdhc_probe(struct platform_device *pdev)
 		host->quirks2 |= SDHCI_QUIRK2_BROKEN_HOST_CONTROL;
 	}
 
+	/* Check if card is non-removable */
+	if (of_find_property(np, "non-removable", NULL))
+		host->caps |= MMC_CAP_NONREMOVABLE;
+
 	ret = sdhci_add_host(host);
 	if (ret)
 		sdhci_pltfm_free(pdev);
-- 
1.8.3


             reply	other threads:[~2013-06-10 17:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-10 17:15 Oded Gabbay [this message]
2013-06-10 17:15 ` [PATCH] MMC: FSL SDHC: Add support for non-removable card. Kernel version 3.4.48 Oded Gabbay

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=1370884540-25238-1-git-send-email-ogabbay@advaoptical.com \
    --to=ogabbay@advaoptical.com \
    --cc=cjb@laptop.org \
    --cc=dirk.behme@de.bosch.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.