Re: [PATCH] mmc: sdio: reset card during power_restore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,

On Sun, Jun 5, 2011 at 3:38 PM, Daniel Drake <dsd@xxxxxxxxxx> wrote:
> @@ -706,10 +706,25 @@ static int mmc_sdio_power_restore(struct mmc_host *host)
>        BUG_ON(!host->card);
>
>        mmc_claim_host(host);
> +
> +       /*
> +        * Reset the card by performing the same steps that are taken by
> +        * mmc_rescan_try_freq() and mmc_attach_sdio() during a "normal" probe
> +        */
> +       sdio_reset(host);

Sending a reset is necessary only if we are re-initing a powered on
card, but in this case, we know that we just powered the card up, so
this is not needed.

+       ret = mmc_send_io_op_cond(host, 0, NULL);
+       if (ret)
+               goto out;

Can you please add this under a card quirk ?

The spec does not require this for embedded sdio cards, and we would
like to skip this for wl12xx.

Thanks,
Ohad.
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux