Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270264
b: refs/heads/master
c: 7f7e412
h: refs/heads/master
v: v3
  • Loading branch information
Ulf Hansson authored and Chris Ball committed Oct 26, 2011
1 parent d33a08f commit 05cbb20
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46cbd56ad4a686c52eeab427faf7e28415bbf28f
refs/heads/master: 7f7e4129c23f0419257184dff6fec89d2d5a8964
10 changes: 5 additions & 5 deletions trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ static void mmc_power_up(struct mmc_host *host)
mmc_host_clk_release(host);
}

static void mmc_power_off(struct mmc_host *host)
void mmc_power_off(struct mmc_host *host)
{
mmc_host_clk_hold(host);

Expand Down Expand Up @@ -1289,8 +1289,7 @@ void mmc_attach_bus(struct mmc_host *host, const struct mmc_bus_ops *ops)
}

/*
* Remove the current bus handler from a host. Assumes that there are
* no interesting cards left, so the bus is powered down.
* Remove the current bus handler from a host.
*/
void mmc_detach_bus(struct mmc_host *host)
{
Expand All @@ -1307,8 +1306,6 @@ void mmc_detach_bus(struct mmc_host *host)

spin_unlock_irqrestore(&host->lock, flags);

mmc_power_off(host);

mmc_bus_put(host);
}

Expand Down Expand Up @@ -1893,6 +1890,7 @@ void mmc_stop_host(struct mmc_host *host)

mmc_claim_host(host);
mmc_detach_bus(host);
mmc_power_off(host);
mmc_release_host(host);
mmc_bus_put(host);
return;
Expand Down Expand Up @@ -2022,6 +2020,7 @@ int mmc_suspend_host(struct mmc_host *host)
host->bus_ops->remove(host);
mmc_claim_host(host);
mmc_detach_bus(host);
mmc_power_off(host);
mmc_release_host(host);
host->pm_flags = 0;
err = 0;
Expand Down Expand Up @@ -2109,6 +2108,7 @@ int mmc_pm_notify(struct notifier_block *notify_block,
host->bus_ops->remove(host);

mmc_detach_bus(host);
mmc_power_off(host);
mmc_release_host(host);
host->pm_flags = 0;
break;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mmc/core/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage,
bool cmd11);
void mmc_set_timing(struct mmc_host *host, unsigned int timing);
void mmc_set_driver_type(struct mmc_host *host, unsigned int drv_type);
void mmc_power_off(struct mmc_host *host);

static inline void mmc_delay(unsigned int ms)
{
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mmc/core/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ static void mmc_detect(struct mmc_host *host)

mmc_claim_host(host);
mmc_detach_bus(host);
mmc_power_off(host);
mmc_release_host(host);
}
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mmc/core/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ static void mmc_sd_detect(struct mmc_host *host)

mmc_claim_host(host);
mmc_detach_bus(host);
mmc_power_off(host);
mmc_release_host(host);
}
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mmc/core/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ static void mmc_sdio_detect(struct mmc_host *host)

mmc_claim_host(host);
mmc_detach_bus(host);
mmc_power_off(host);
mmc_release_host(host);
}
}
Expand Down

0 comments on commit 05cbb20

Please sign in to comment.