On Thu, 2 Aug 2007 13:34:49 -0700
David Brownell <[EMAIL PROTECTED]> wrote:

> > Except for omap, 
> > which caused it to break in fun and interesting ways.
> 
> I think the only time I touched that code was to teach it
> how to do SD ... 4wire support, writeprotect sensing, and
> funky block sizes.
> 
> The intended design of an MMC/SD host driver has never
> been all that clear.  It's becoming more clear with your
> recent work ... but it's not there yet, and there aren't
> even test scripts or suites for de-facto requirements
> (and to facilitate regression testing).
> 

I agree. There are still a bunch of corner cases that are fuzzy at
best. Unfortunately, all difficult cases usually involve error
conditions. So I haven't been able to come up with a way to test things
without having a custom card that can fail requests in different exotic
ways.

> 
> Fault handling being orthogonal to that.  And at this time,
> like it or (clearly!) not, the mmc core does virtually no
> fault checking ... it relies on reports from host drivers.
> 
> You're probably on to something with the notion that the
> I/O wrappers should check the status codes.  But that's
> a substantial change from how the stack has worked, ever
> since it was written.
> 

Indeed. The core lacks proper error checking on that level because
those errors are so extremely rare. People are lazy and "good enough"
goes a long way. I'd love to see better error handling, but with these
low odds, other things get prioritized.

> > 
> > I don't see how it would have been easier. The only difference is
> > that I'd get a merge problem when I applied the new stuff. So the
> > difference is really whose lap it would have fallen in.
> 
> Not exactly ... you'd have been developing that new stuff against
> current GIT, which would already have had some of those patches,
> so there wouldn't even *be* a merge problem for that stuff.
> 

I'm afraid my development is far from serial. All code that needs
further testing gets its own branch, as there is still some uncertainty
as to when it will be pushed upstream.

> 
> Patches #1 and #2 were easy fixes; about 2/3 of #3 is rejected,
> and I've not yet looked at the details ... that's all the core
> changes, which haven't previously cared about much more than
> success-or-fault.  #4 should be easy to cope with.
> 

It should just be a matter of replacing MMC_ERR_ codes with -Esomething.

Rgds
-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to