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
19 Oct, 2010
2 commits
-
Instead of using asynchronous SPI API and then spinning waiting for SPI
transfer to complete when disabling the device, let's use threaded IRQ
model and spi_sync().Acked-by: Michael Hennerich
Tested-by: Michael Hennerich
Signed-off-by: Dmitry Torokhov -
Instead of manually creating one set of attributes or another set up
is_visible method in attribute group structure to control whether
aux3 or gpio3 attribute is presented to userspace.Acked-by: Michael Hennerich
Signed-off-by: Dmitry Torokhov
18 Oct, 2010
3 commits
-
Suppress events where pressure > pressure_max.
These events come typically along with inaccurate X and Y samples.Signed-off-by: Michael Hennerich
Signed-off-by: Dmitry Torokhov -
Some input users such as Android or X require BTN_TOUCH events.
Implement EV_KEY:BTN_TOUCH and make sure that the release event
is not erroneous scheduled without a preceding valid touch.Signed-off-by: Michael Hennerich
Signed-off-by: Dmitry Torokhov -
According to the AD7877 datasheet:
Each transfer operation is 16-bit. If multiple read/write operations are
to be performed, CS must be taken high after the end of each read/write
operation before another read/write operation can be performed by
taking CS low again.Make sure CS toggles after each transfer in the message.
Signed-off-by: Michael Hennerich
Signed-off-by: Dmitry Torokhov
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
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
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
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
15 Apr, 2009
1 commit
-
This patch removes depreciated IRQF_SAMPLE_RANDOM flags from
ad7877 and ad7879 touchscreen drivers.Signed-off-by: Michael Hennerich
Signed-off-by: Dmitry Torokhov
10 Mar, 2009
1 commit
-
[dtor@mail.ru: locking and other fixups]
Signed-off-by: Michael Hennerich
Signed-off-by: Bryan Wu
Signed-off-by: Andrew Morton
Signed-off-by: Dmitry Torokhov