Commit 4a92fe80 authored by Sahitya Tummala's avatar Sahitya Tummala Committed by Chris Ball

msm: mmc: Remove "pio_irq" resource

On some targets, MCI_IRQ_MASK1 is not routed to the MSM in which
case only "cmd_irq" must be used even for PIO. With this change,
all the targets will use only "cmd_irq" for both CMD and PIO.
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 514d9eda
...@@ -175,12 +175,6 @@ static struct resource resources_sdc1[] = { ...@@ -175,12 +175,6 @@ static struct resource resources_sdc1[] = {
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
.name = "cmd_irq", .name = "cmd_irq",
}, },
{
.start = INT_SDC1_1,
.end = INT_SDC1_1,
.flags = IORESOURCE_IRQ,
.name = "pio_irq",
},
{ {
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED, .flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
.name = "status_irq" .name = "status_irq"
...@@ -203,12 +197,6 @@ static struct resource resources_sdc2[] = { ...@@ -203,12 +197,6 @@ static struct resource resources_sdc2[] = {
.end = INT_SDC2_0, .end = INT_SDC2_0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
.name = "cmd_irq", .name = "cmd_irq",
},
{
.start = INT_SDC2_1,
.end = INT_SDC2_1,
.flags = IORESOURCE_IRQ,
.name = "pio_irq",
}, },
{ {
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED, .flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
...@@ -232,12 +220,6 @@ static struct resource resources_sdc3[] = { ...@@ -232,12 +220,6 @@ static struct resource resources_sdc3[] = {
.end = INT_SDC3_0, .end = INT_SDC3_0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
.name = "cmd_irq", .name = "cmd_irq",
},
{
.start = INT_SDC3_1,
.end = INT_SDC3_1,
.flags = IORESOURCE_IRQ,
.name = "pio_irq",
}, },
{ {
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED, .flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
...@@ -261,12 +243,6 @@ static struct resource resources_sdc4[] = { ...@@ -261,12 +243,6 @@ static struct resource resources_sdc4[] = {
.end = INT_SDC4_0, .end = INT_SDC4_0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
.name = "cmd_irq", .name = "cmd_irq",
},
{
.start = INT_SDC4_1,
.end = INT_SDC4_1,
.flags = IORESOURCE_IRQ,
.name = "pio_irq",
}, },
{ {
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED, .flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
......
...@@ -139,12 +139,6 @@ static struct resource resources_sdc1[] = { ...@@ -139,12 +139,6 @@ static struct resource resources_sdc1[] = {
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
.name = "cmd_irq", .name = "cmd_irq",
}, },
{
.start = INT_SDC1_1,
.end = INT_SDC1_1,
.flags = IORESOURCE_IRQ,
.name = "pio_irq",
},
{ {
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED, .flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
.name = "status_irq" .name = "status_irq"
...@@ -167,12 +161,6 @@ static struct resource resources_sdc2[] = { ...@@ -167,12 +161,6 @@ static struct resource resources_sdc2[] = {
.end = INT_SDC2_0, .end = INT_SDC2_0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
.name = "cmd_irq", .name = "cmd_irq",
},
{
.start = INT_SDC2_1,
.end = INT_SDC2_1,
.flags = IORESOURCE_IRQ,
.name = "pio_irq",
}, },
{ {
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED, .flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
...@@ -196,12 +184,6 @@ static struct resource resources_sdc3[] = { ...@@ -196,12 +184,6 @@ static struct resource resources_sdc3[] = {
.end = INT_SDC3_0, .end = INT_SDC3_0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
.name = "cmd_irq", .name = "cmd_irq",
},
{
.start = INT_SDC3_1,
.end = INT_SDC3_1,
.flags = IORESOURCE_IRQ,
.name = "pio_irq",
}, },
{ {
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED, .flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
...@@ -225,12 +207,6 @@ static struct resource resources_sdc4[] = { ...@@ -225,12 +207,6 @@ static struct resource resources_sdc4[] = {
.end = INT_SDC4_0, .end = INT_SDC4_0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
.name = "cmd_irq", .name = "cmd_irq",
},
{
.start = INT_SDC4_1,
.end = INT_SDC4_1,
.flags = IORESOURCE_IRQ,
.name = "pio_irq",
}, },
{ {
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED, .flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
......
...@@ -1159,7 +1159,6 @@ msmsdcc_probe(struct platform_device *pdev) ...@@ -1159,7 +1159,6 @@ msmsdcc_probe(struct platform_device *pdev)
struct msmsdcc_host *host; struct msmsdcc_host *host;
struct mmc_host *mmc; struct mmc_host *mmc;
struct resource *cmd_irqres = NULL; struct resource *cmd_irqres = NULL;
struct resource *pio_irqres = NULL;
struct resource *stat_irqres = NULL; struct resource *stat_irqres = NULL;
struct resource *memres = NULL; struct resource *memres = NULL;
struct resource *dmares = NULL; struct resource *dmares = NULL;
...@@ -1184,12 +1183,10 @@ msmsdcc_probe(struct platform_device *pdev) ...@@ -1184,12 +1183,10 @@ msmsdcc_probe(struct platform_device *pdev)
dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0); dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0);
cmd_irqres = platform_get_resource_byname(pdev, IORESOURCE_IRQ, cmd_irqres = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
"cmd_irq"); "cmd_irq");
pio_irqres = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
"pio_irq");
stat_irqres = platform_get_resource_byname(pdev, IORESOURCE_IRQ, stat_irqres = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
"status_irq"); "status_irq");
if (!cmd_irqres || !pio_irqres || !memres) { if (!cmd_irqres || !memres) {
pr_err("%s: Invalid resource\n", __func__); pr_err("%s: Invalid resource\n", __func__);
return -ENXIO; return -ENXIO;
} }
...@@ -1219,7 +1216,6 @@ msmsdcc_probe(struct platform_device *pdev) ...@@ -1219,7 +1216,6 @@ msmsdcc_probe(struct platform_device *pdev)
} }
host->cmd_irqres = cmd_irqres; host->cmd_irqres = cmd_irqres;
host->pio_irqres = pio_irqres;
host->memres = memres; host->memres = memres;
host->dmares = dmares; host->dmares = dmares;
spin_lock_init(&host->lock); spin_lock_init(&host->lock);
...@@ -1336,7 +1332,7 @@ msmsdcc_probe(struct platform_device *pdev) ...@@ -1336,7 +1332,7 @@ msmsdcc_probe(struct platform_device *pdev)
if (ret) if (ret)
goto stat_irq_free; goto stat_irq_free;
ret = request_irq(pio_irqres->start, msmsdcc_pio_irq, IRQF_SHARED, ret = request_irq(cmd_irqres->start, msmsdcc_pio_irq, IRQF_SHARED,
DRIVER_NAME " (pio)", host); DRIVER_NAME " (pio)", host);
if (ret) if (ret)
goto cmd_irq_free; goto cmd_irq_free;
......
...@@ -202,7 +202,6 @@ struct msmsdcc_stats { ...@@ -202,7 +202,6 @@ struct msmsdcc_stats {
struct msmsdcc_host { struct msmsdcc_host {
struct resource *cmd_irqres; struct resource *cmd_irqres;
struct resource *pio_irqres;
struct resource *memres; struct resource *memres;
struct resource *dmares; struct resource *dmares;
void __iomem *base; void __iomem *base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment