25 May, 2010

2 commits

  • This patch adds an SPI master driver for the Cirrus EP93xx SPI controller found
    in EP93xx chips.

    Signed-off-by: Mika Westerberg
    Signed-off-by: H Hartley Sweeten
    Acked-by: H Hartley Sweeten
    Signed-off-by: Grant Likely

    Mika Westerberg
     
  • Fix this warning:

    Documentation/spi/spidev_fdx.c: In function `do_msg':
    Documentation/spi/spidev_fdx.c:61: warning: cast from pointer to integer of different size
    Documentation/spi/spidev_fdx.c:64: warning: cast from pointer to integer of different size

    buf should be unsigned long to match native arch on 32-bit x86 compile.

    Signed-off-by: Prarit Bhargava
    Signed-off-by: Grant Likely

    Prarit Bhargava
     

30 Apr, 2010

1 commit

  • The sample application spidev_test.c is using SPI_IOC_MESSAGE ioctl to do
    an SPI transfer. This ioctl returns the number of bytes successfully
    transmitted or a negative error code upon erroneous completion. The
    application however is returning an error if the result of the ioclt if
    the return value is 1. This makes the application to fail upon 1-byte
    length transfers.

    Signed-off-by: Hector Palacios
    Signed-off-by: Andrew Morton
    Signed-off-by: Grant Likely

    Hector Palacios
     

04 Dec, 2009

1 commit

  • That is "success", "unknown", "through", "performance", "[re|un]mapping"
    , "access", "default", "reasonable", "[con]currently", "temperature"
    , "channel", "[un]used", "application", "example","hierarchy", "therefore"
    , "[over|under]flow", "contiguous", "threshold", "enough" and others.

    Signed-off-by: André Goddard Rosa
    Signed-off-by: Jiri Kosina

    André Goddard Rosa
     

23 Sep, 2009

2 commits


01 Jul, 2009

1 commit

  • Add two new spi_device.mode bits to accomodate more protocol options, and
    pass them through to usermode drivers:

    * SPI_NO_CS ... a second 3-wire variant, where the chipselect
    line is removed instead of a data line; transfers are still
    full duplex.

    This obviously has STRONG protocol implications since the
    chipselect transitions can't be used to synchronize state
    transitions with the SPI master.

    * SPI_READY ... defines open drain signal that's pulled low
    to pause the clock. This defines a 5-wire variant (normal
    4-wire SPI plus READY) and two 4-wire variants (READY plus
    each of the 3-wire flavors).

    Such hardware flow control can be a big win. There are ADC
    converters and flash chips that expose READY signals, but not
    many host controllers support it today.

    The spi_bitbang code should be changed to use SPI_NO_CS instead of its
    current nonportable hack. That's a mode most hardware can easily support
    (unlike SPI_READY).

    Signed-off-by: David Brownell
    Cc: "Paulraj, Sandeep"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

22 Apr, 2009

1 commit

  • This is a doc-only patch which I hope will reduce the number of
    spi_master controller driver patches starting out with a common
    implementation bug.

    (As in: almost every spi_master driver I see starts out with its
    version of this bug. Sigh.)

    It just re-emphasizes that the setup() method may be called for one
    device while a transfer is active on another ... which means that most
    driver implementations shouldn't touch any registers.

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

07 Jan, 2009

1 commit

  • This fixes a byteswap bug in the LM70 temperature sensor driver,
    which was previously covered up by a converse bug in the driver
    for the LM70EVAL-LLP board (which is also fixed).

    Other fixes: doc updates, remove an annoying msleep(), and improve
    three-wire protocol handling.

    Signed-off-by: Kaiwan N Billimoria
    [ dbrownell@users.sourceforge.net: doc and whitespace tweaks ]
    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    Kaiwan N Billimoria
     

02 Dec, 2008

1 commit


31 Oct, 2008

1 commit


17 Oct, 2008

1 commit

  • Make the chip info structure data optional by providing reasonable
    defaults. Improve corresponding documentation, and highlight the drawback
    of not providing explicit chipselect control.

    DMA can determine appropriate dma_burst_size and thresholds automatically
    so use DMA even if dma_burst_size is not specified.

    Signed-off-by: Vernon Sauder
    Reviewed-by: Ned Forrester
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vernon Sauder
     

13 Aug, 2008

1 commit

  • Currently source files in the Documentation/ sub-dir can easily bit-rot
    since they are not generally buildable, either because they are hidden in
    text files or because there are no Makefile rules for them. This needs to
    be fixed so that the source files remain usable and good examples of code
    instead of bad examples.

    Add the ability to build source files that are in the Documentation/ dir.
    Add to Kconfig as "BUILD_DOCSRC" config symbol.

    Use "CONFIG_BUILD_DOCSRC=1 make ..." to build objects from the
    Documentation/ sources. Or enable BUILD_DOCSRC in the *config system.
    However, this symbol depends on HEADERS_CHECK since the header files need
    to be installed (for userspace builds).

    Built (using cross-tools) for x86-64, i386, alpha, ia64, sparc32,
    sparc64, powerpc, sh, m68k, & mips.

    Signed-off-by: Randy Dunlap
    Reviewed-by: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

07 Aug, 2008

1 commit


28 Apr, 2008

1 commit


09 Apr, 2008

1 commit

  • Update SPI documentation to clarify some areas of recent confusion: clock
    polarity takes effect when chipselect goes active; and zero length buffers are
    OK in certain cases.

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell