Skip to content

Commit

Permalink
CHROMIUM: mmc: sdio: Disable retuning in sdio_reset_comm()
Browse files Browse the repository at this point in the history
Since sdio_reset_comm() re-initializes the SDIO card, disable retuning
before idling and shutting down the card.  Tuning will be re-enabled (if
necessary) in mmc_sdio_init_card().

BUG=chrome-os-partner:46444
TEST=With CL:311815, toggle WiFi on/off on Smaug and observe that the
WiFi card comes back up and is able to tune successfully.

Change-Id: Ib4a5cfd4d75fc9e3ed7bb3f1e2ffd30de16c5d28
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/311797
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
  • Loading branch information
Andrew Bresticker authored and chrome-bot committed Nov 11, 2015
1 parent 7f27bc9 commit db00ae7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mmc/core/sdio.c
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@

#include "core.h"
#include "bus.h"
#include "host.h"
#include "sd.h"
#include "sdio_bus.h"
#include "mmc_ops.h"
@@ -1225,6 +1226,8 @@ int sdio_reset_comm(struct mmc_card *card)
printk("%s():\n", __func__);
mmc_claim_host(host);

mmc_retune_disable(host);

mmc_go_idle(host);

mmc_set_clock(host, host->f_min);

0 comments on commit db00ae7

Please sign in to comment.