--- On Wed, 9/1/10, Feng Tang <[email protected]> wrote:
> > > > What's the case where platform code could > > know "better" than the driver? > > Grant also asked me the same question. I saw him ask a different question (which I quoted) ... Yes, driver itself > know the bits_per_word info best in most case, but there > is > some device (Option GTM501L spi modem) which supports > multiple > bits_per_mode option, and here platform code is the good place to set it. Not unless it knows which mode the driver uses... a kind of layering violation. > > So if we can set it before > registering board info, then the second spi_setup can be > removed for many drivers. that doesn't seem to me like it'd be a startup cost that's easily observed; hard for me to worry about it, but I can see what you mean. ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
