lkml.org 
[lkml]   [2013]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 05/11] spi: omap2-mcspi: enhance pinctrl support
    On Fri, May 31, 2013 at 03:43:05PM +0530, Hebbar Gururaja wrote:
    > Amend the spi omap controller to optionally take a pin control
    > handle and set the state of the pins to:
    >
    > - "default" on boot, resume and before performing an spi transfer
    > - "idle" after initial default, after resume default, and after each
    > spi xfer
    > - "sleep" on suspend()

    Looking at this code I can't really see what's OMAP-specific about it -
    exactly the same flow should apply to pretty much any SPI controller,
    especially given that the code will happily ignore missing states.
    We're just setting the idle state when not actively transferring data
    which seems sensible and generic.

    This suggests to me that we should be adding this code into the core,
    probably joined up with the transfer_one_message stuff, so that any
    hardware which has an idle state will be able to get the benefit. Can
    anyone think of a reason why we shouldn't do that?
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2013-06-01 22:21    [W:3.712 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site