Re: [PATCH] mmc/sdio: remember new card RCA when redetecting card

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

 



On Wed, 2 Mar 2011, Chris Ball wrote:

> Hi,
> 
> On Tue, Mar 01 2011, Linus Walleij wrote:
> > From: Stefan Nilsson XK <stefan.xk.nilsson@xxxxxxxxxxxxxx>
> >
> > During redetection of a SDIO card, a request for a new card RCA
> > was submitted to the card, but was then overwritten by the old RCA.
> > This caused the card to be deselected instead of selected when using
> > the incorrect RCA.
> 
> Nico, would you mind taking a look at this, please?  Assigning to a
> member of oldcard because we know it's later going to be copied into
> card seems a little ugly to me (at least without a comment explaining
> that); I'm wondering if you'd suggest something else here.

No, I have nothing better to suggest at the moment.

> And, just to check we're all on the same page, this would be a
> regression introduced back at 2.6.32 when the "oldcard" handling
> was first merged, so it should be sent up with a stable tag.

Depends how you define a regression.  If the "oldcard" handling always 
screwed up the rca, then it simply never was right, hence it is hard to 
claim it worked better before. Probably this just worked so far by luck, 
or those cards tested with this code don't change their rca.

> (I'm not yet sure whether I want to send this to mainline during the
> last week of a release and without any previous testing, given that
> the bug is more than a year old already.  Let's see what Nico says.)

I'd queue this for the next merge window only, and not risk introducing 
a real regression in v2.6.38 at the last moment by making things worse 
somehow.


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