Re: [PATCH 1/3] mmc: skip detection of nonremovable cards on rescan - card removal detection regression

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

 



On Tue, 2011-03-08 at 18:44 +0200, Ohad Ben-Cohen wrote:
> On Mon, Mar 7, 2011 at 9:01 PM, Dmitry Shmidt <dimitrysh@xxxxxxxxxx> wrote:
> > On Sat, Mar 5, 2011 at 7:03 AM, Ohad Ben-Cohen <ohad@xxxxxxxxxx> wrote:
> >> On Fri, Mar 4, 2011 at 4:22 AM, Maxim Levitsky <maximlevitsky@xxxxxxxxx> wrote:
> >>> This patch breaks the CONFIG_MMC_UNSAFE_RESUME
> >>
> >> Does the below work for you (untested) ?
> >>
> >> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> >> index 6625c05..150b5f3 100644
> >> --- a/drivers/mmc/core/core.c
> >> +++ b/drivers/mmc/core/core.c
> >> @@ -1529,7 +1529,7 @@ void mmc_rescan(struct work_struct *work)
> >>         * still present
> >>         */
> >>        if (host->bus_ops && host->bus_ops->detect && !host->bus_dead
> >> -           && mmc_card_is_removable(host))
> >> +           && !(host->caps & MMC_CAP_NONREMOVABLE))
> >>                host->bus_ops->detect(host);
> >>
> >>        /*
> >>
> > This works for me,
> 
> Thanks.
> 
> Maxim, does this work for you too ?

Yep, just tested.

Best regards,
	Maxim Levitsky

--
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