21 Jan, 2011

1 commit

  • There is a move to deprecate bus-specific PM operations and move to
    using dev_pm_ops instead in order to reduce the amount of boilerplate
    code in buses and facilitate updates to the PM core. Do this move for
    the ad7879 SPI driver.

    Signed-off-by: Mark Brown
    Acked-by: Michael Hennerich
    Signed-off-by: Dmitry Torokhov

    Mark Brown
     

19 Oct, 2010

2 commits


18 Oct, 2010

3 commits


08 Jun, 2010

1 commit

  • With no word size given in the users platform data, a generic spi host
    controller driver will assume a default word size of eight bit. This
    causes transmission to be performed bytewise, which will fail on little
    endian machines for sure. Failure on big endian depends on usage
    of slave select to mark word boundaries.

    Anyway, ad7877 is specified to work with 16 bit per word, so
    unconditionally set the word size accordingly. Flag an error where 16
    bit per word is not available.

    Signed-off-by: Oskar Schirmer
    Signed-off-by: Daniel Glöckner
    Signed-off-by: Oliver Schneidewind
    Signed-off-by: Dmitry Torokhov

    Oskar Schirmer
     

13 May, 2010

1 commit

  • With dma based spi transmission, data corruption is observed
    occasionally. With dma buffers located right next to msg and
    xfer fields, cache lines correctly flushed in preparation for
    dma usage may be polluted again when writing to fields in the
    same cache line.

    Make sure cache fields used with dma do not share cache lines
    with fields changed during dma handling. As both fields are part
    of a struct that is allocated via kzalloc, thus cache aligned,
    moving the fields to the 1st position and insert padding for
    alignment does the job.

    Signed-off-by: Oskar Schirmer
    Signed-off-by: Daniel Glöckner
    Signed-off-by: Oliver Schneidewind
    Signed-off-by: Johannes Weiner
    Acked-by: Mike Frysinger
    [dtor@mail.ru - changed to use ___cacheline_aligned as suggested
    by akpm]
    Signed-off-by: Dmitry Torokhov

    Oskar Schirmer
     

10 Mar, 2010

1 commit

  • The time interval between consecutive interrupts depends on a number of
    tunables: first_conversion_delay, acquisition_time, averaging and foremost
    the pen_down_acc_interval.

    Since the mod_timer() action for the PEN UP event happens in the
    spi_async() callback function, latencies incurred by the spi bus drivers
    also need to be taken into account.

    So all in all, give the PEN UP event a bit more wiggle room and increase
    timeout to 100ms.

    Signed-off-by: Michael Hennerich
    Signed-off-by: Mike Frysinger
    Signed-off-by: Dmitry Torokhov

    Michael Hennerich
     

23 Sep, 2009

1 commit

  • This makes it consistent with other buses (platform, i2c, vio, ...). I'm
    not sure why we use the prefixes, but there must be a reason.

    This was easy enough to do it, and I did it.

    Signed-off-by: Anton Vorontsov
    Cc: David Brownell
    Cc: David Woodhouse
    Cc: Grant Likely
    Cc: Jean Delvare
    Cc: Ben Dooks
    Cc: Benjamin Herrenschmidt
    Cc: Dmitry Torokhov
    Cc: Samuel Ortiz
    Cc: "John W. Linville"
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     

15 Apr, 2009

1 commit


10 Mar, 2009

1 commit