Skip to contentSkip to conversation

mmc: Allow sdhci platform drivers to set quirks2 from platform data

PATCH In review Al Cooper 2 participants 2 messages Apr 30, 2013 – May 26, 2013

Subsystems (2)
lore
Share & tools
lore

Al Cooper

author
#0 lore raw

PATCH 1/1 mmc: Allow sdhci platform drivers to set quirks2 from platform data

---
 drivers/mmc/host/sdhci-pltfm.c |    4 +++-
 drivers/mmc/host/sdhci-pltfm.h |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)
drivers/mmc/host/sdhci-pltfm.c +3 -1
index 3145a78..e605509 100644
@@ -149,8 +149,10 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
 		host->ops = pdata->ops;
 	else
 		host->ops = &sdhci_pltfm_ops;
-	if (pdata)
+	if (pdata) {
 		host->quirks = pdata->quirks;
+		host->quirks2 = pdata->quirks2;
+	}
 	host->irq = platform_get_irq(pdev, 0);
 
 	if (!request_mem_region(iomem->start, resource_size(iomem),
drivers/mmc/host/sdhci-pltfm.h +1 -0
index 153b6c5..2940ee3 100644
@@ -18,6 +18,7 @@
 struct sdhci_pltfm_data {
 	struct sdhci_ops *ops;
 	unsigned int quirks;
+	unsigned int quirks2;
 };
 
 struct sdhci_pltfm_host {
Signature · 1 line
1.7.6
#1 lore raw

Hi Al,

Quoted 27 lines · Al Cooper
---
 drivers/mmc/host/sdhci-pltfm.c |    4 +++-
 drivers/mmc/host/sdhci-pltfm.h |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)
drivers/mmc/host/sdhci-pltfm.c +3 -1
index 3145a78..e605509 100644
@@ -149,8 +149,10 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
 		host->ops = pdata->ops;
 	else
 		host->ops = &sdhci_pltfm_ops;
-	if (pdata)
+	if (pdata) {
 		host->quirks = pdata->quirks;
+		host->quirks2 = pdata->quirks2;
+	}
 	host->irq = platform_get_irq(pdev, 0);
 
 	if (!request_mem_region(iomem->start, resource_size(iomem),
drivers/mmc/host/sdhci-pltfm.h +0 -0
index 153b6c5..2940ee3 100644

drivers/mmc/host/sdhci-pltfm.h line 24

Quoted 7 lines
drivers/mmc/host/sdhci-pltfm.h +1 -0
@@ -18,6 +18,7 @@
 struct sdhci_pltfm_data {
 	struct sdhci_ops *ops;
 	unsigned int quirks;
+	unsigned int quirks2;
 };
 
 struct sdhci_pltfm_host {

Thanks, pushed to mmc-next for 3.11.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child