24 Nov, 2009

2 commits


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
     

11 Jun, 2009

1 commit

  • Some SoCs support only pin change interrupts on GPIO pins used as irq
    lines.

    The ads7846 core is not affected from the additional irqs on the rising
    edge because the code accounts touch bounce anyway by kicking in a timer
    and disabling the irq after the first request and reenabling the irq after
    a timeout when there is no longer pen down detected.

    Signed-off-by: Michael Roth
    Signed-off-by: Andrew Morton
    Signed-off-by: Dmitry Torokhov

    Michael Roth
     

20 May, 2009

2 commits


16 Apr, 2009

2 commits

  • Dmitry Torokhov
     
  • The use of disable_irq inside the handler for the interrupt being
    disabled has always been dangerous. disable_irq should wait for that
    handler to complete before returning -> deadlock.

    For some reason this wasn't actually the case until 3aa551c9b was merged
    but since this time, the ads7846 driver has deadlocked the system on
    first interrupt.

    Convert the driver to use the handler-safe _nosync variant.

    Signed-off-by: Ben Nizette
    Signed-off-by: Dmitry Torokhov

    Ben Nizette
     

12 Apr, 2009

1 commit


30 Mar, 2009

1 commit


07 Jan, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (29 commits)
    Input: i8042 - add Dell Vostro 1510 to nomux list
    Input: gtco - use USB endpoint API
    Input: add support for Maple controller as a joystick
    Input: atkbd - broaden the Dell DMI signatures
    Input: HIL drivers - add MODULE_ALIAS()
    Input: map_to_7segment.h - convert to __inline__ for userspace
    Input: add support for enhanced rotary controller on pxa930 and pxa935
    Input: add support for trackball on pxa930 and pxa935
    Input: add da9034 touchscreen support
    Input: ads7846 - strict_strtoul takes unsigned long
    Input: make some variables and functions static
    Input: add tsc2007 based touchscreen driver
    Input: psmouse - add module parameters to control OLPC touchpad delays
    Input: i8042 - add Gigabyte M912 netbook to noloop exception table
    Input: atkbd - Samsung NC10 key repeat fix
    Input: atkbd - add keyboard quirk for HP Pavilion ZV6100 laptop
    Input: libps2 - handle 0xfc responses from devices
    Input: add support for Wacom W8001 penabled serial touchscreen
    Input: synaptics - report multi-taps only if supported by the device
    Input: add joystick driver for Walkera WK-0701 RC transmitter
    ...

    Linus Torvalds
     

23 Dec, 2008

1 commit


25 Nov, 2008

1 commit

  • Impact: cleanup, move all hrtimer processing into hardirq context

    This is an attempt at removing some of the hrtimer complexity by
    reducing the number of callback modes to 1.

    This means that all hrtimer callback functions will be ran from HARD-irq
    context.

    I went through all the 30 odd hrtimer callback functions in the kernel
    and saw only one that I'm not quite sure of, which is the one in
    net/can/bcm.c - hence I'm CC-ing the folks responsible for that code.

    Furthermore, the hrtimer core now calls callbacks directly with IRQs
    disabled in case you try to enqueue an expired timer. If this timer is a
    periodic timer (which should use hrtimer_forward() to advance its time)
    then it might be possible to end up in an inf. recursive loop due to the
    fact that hrtimer_forward() doesn't round up to the next timer
    granularity, and therefore keeps on calling the callback - obviously
    this needs a fix.

    Aside from that, this seems to compile and actually boot on my dual core
    test box - although I'm sure there are some bugs in, me not hitting any
    makes me certain :-)

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     

30 Oct, 2008

1 commit


09 Oct, 2008

1 commit

  • We had a report a while back that the ads7846 driver had some issues
    when used with DMA-based SPI controllers (like atmel_spi) on systems
    where main memory is not DMA-coherent (most non-x86 boards). Allocate
    memory potentially used for DMA separately to avoid cache line issues.

    Reported-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     

11 Sep, 2008

2 commits


24 Jul, 2008

2 commits


26 Apr, 2008

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (40 commits)
    Input: wacom - add support for Cintiq 20WSX
    Input: ucb1400_ts - IRQ probe fix
    Input: at32psif - update MODULE_AUTHOR with new email
    Input: mac_hid - add lockdep annotation to emumousebtn
    Input: i8042 - fix incorrect usage of strncpy and strncat
    Input: bf54x-keys - add infrastructure for keypad wakeups
    Input: add MODULE_ALIAS() to hotpluggable platform modules
    Input: drivers/char/keyboard.c - use time_after
    Input: fix ordering in joystick Makefile
    Input: wm97xx-core - support use as a wakeup source
    Input: wm97xx-core - use IRQF_SAMPLE_RANDOM
    Input: wm97xx-core - only schedule interrupt handler if not already scheduled
    Input: add Zhen Hua driver
    Input: aiptek - add support for Genius G-PEN 560 tablet
    Input: wacom - implement suspend and autosuspend
    Input: xpad - set proper buffer length for outgoing requests
    Input: omap-keypad - fix build warning
    Input: gpio_keys - irq handling cleanup
    Input: add PS/2 serio driver for AVR32 devices
    Input: put ledstate in the keyboard notifier
    ...

    Linus Torvalds
     

15 Apr, 2008

1 commit

  • Start cleaning up GPIO handling for OMAP5912 OSK board:

    - Initialize GPIOs using the cross-platform calls, not the old
    OMAP-private ones.

    - Move touchscreen setup out of ads7846 code into board-specfic
    setup code, where it belongs.

    This doesn't depend on the patches to update OMAP to use the
    gpiolib implementation framework.

    Signed-off-by: David Brownell
    Signed-off-by: Tony Lindgren

    David Brownell
     

02 Apr, 2008

1 commit


14 Mar, 2008

1 commit


08 Feb, 2008

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (34 commits)
    Input: i8042 - non-x86 build fix
    Input: pxa27x_keypad - also enable on PXA3xx
    Input: pxa27x_keypad - add debounce_interval to the keypad platform data
    Input: pxa27x_keypad - use device resources for I/O memory mapping and IRQ
    Input: pxa27x_keypad - enable rotary encoders and direct keys
    Input: pxa27x_keypad - introduce pxa27x_keypad_config()
    Input: pxa27x_keypad - introduce driver structure and use KEY() to define matrix keys
    Input: pxa27x_keypad - remove pin configuration from the driver
    Input: pxa27x_keypad - rename the driver (was pxa27x_keyboard)
    Input: constify function pointer tables (seq_operations)
    Input: i8042 - add Fujitsu-Siemens Amilo Pro 2010 to nomux list
    Input: i8042 - enable DMI quirks on x86-64
    Input: i8042 - add Dritek quirk for Acer Aspire 9110
    Input: add input event to APM event bridge
    Input: mousedev - use BIT_MASK instead of BIT
    Input: remove duplicate includes
    Input: remove cdev from input_dev structure
    Input: remove duplicated headers in drivers/char/keyboard.c
    Input: i8042 - add Dritek keyboard extension quirk
    Input: add Tosa keyboard driver
    ...

    Linus Torvalds
     

21 Jan, 2008

1 commit


06 Dec, 2007

1 commit

  • Given the patch which simplifies the spi_sync calling convention, this one
    updates the callers of that routine which tried using it according to the
    previous specification. (Most didn't.)

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

    Marc Pignat
     

20 Oct, 2007

1 commit

  • get rid of input BIT* duplicate defines

    use newly global defined macros for input layer. Also remove includes of
    input.h from non-input sources only for BIT macro definiton. Define the
    macro temporarily in local manner, all those local definitons will be
    removed further in this patchset (to not break bisecting).
    BIT macro will be globally defined (1<
    Cc:
    Acked-by: Jiri Kosina
    Cc:
    Acked-by: Marcel Holtmann
    Cc:
    Acked-by: Mauro Carvalho Chehab
    Cc:
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     

10 Oct, 2007

1 commit


18 Jul, 2007

2 commits

  • Pendown status from the PENIRQ pin is currently read only at the beginning
    of a sample set. If the pen is lifted just after sampling has began then
    sampled values become wrong.

    This patch adds an optional platform penirq_recheck_delay attribute. If
    non-zero, samples are only reported to the input subsystem if PENIRQ is
    still active that long after the samples taken.

    Signed-off-by: Semih Hazar
    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Semih Hazar
     
  • The ads7846 driver has support for filtering, but when the chip gets
    deselected between samples this causes noise. This patch adds support
    for an optional settling delay time, so that two consecutive samples
    will be taken with the specified delay time apart. This ensures that
    the chip won't be deselected, so the noise won't appear.

    Filtering can still be done, but will have less work to do since each
    time a new sample is taken the same delay applies.

    Signed-off-by: Semih Hazar
    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Semih Hazar
     

23 May, 2007

2 commits

  • In commit [1] the SPI mode is set to 1, but it should be 0. As stated
    in the commit, ads784x samples the data on the rising edge. SPI mode 1
    samples on the falling edge [2] though.

    The root cause of this is a bug in the omap_uwire code, which treats
    CPHA=1 incorrectly; so these two bugs cancel each other out on one
    of the main regression test platforms for this driver.

    [1] kernel.org GIT 7937e86a70235e1584486654687dc9908a11e00a
    [2] http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Semih Hazar
     
  • The TSC2046 is an updated version of the ADS7846 ... mention that in
    the Kconfig helptext and driver source.

    Signed-off-by: David Brownell
    Acked-by: Kevin Hilman
    Signed-off-by: Dmitry Torokhov

    David Brownell
     

12 Apr, 2007

1 commit


01 Mar, 2007

1 commit


17 Feb, 2007

1 commit

  • - hrtimers did not use the hrtimer_restart enum and relied on the implict
    int representation. Fix the prototypes and the functions using the enums.
    - Use seperate name spaces for the enumerations
    - Convert hrtimer_restart macro to inline function
    - Add comments

    No functional changes.

    [akpm@osdl.org: fix input driver]
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Cc: john stultz
    Cc: Roman Zippel
    Cc: Dmitry Torokhov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     

18 Jan, 2007

5 commits

  • - Hook up to hwmon
    * show sensor attributes only if hwmon is present
    * ... and the board's reference voltage is known
    * otherwise be just a touchscreen
    - Report voltages per hwmon convention
    * measure in millivolts
    * voltages are named in[0-8]_input (ugh)
    * for 7846 chips, properly range-adjust vBATT/in1_input

    Battery measurements help during recharge monitoring. On OSK/Mistral,
    the measured voltage agreed with a multimeter to several decimal places.

    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    David Brownell
     
  • We can't depend on the pressure value to determine when the pen was
    lifted, so use the GPIO line state instead. This also helps with
    chips (like ads7843) that don't have pressure sensors.

    Signed-off-by: Imre Deak
    Signed-off-by: Juha Yrjola
    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Imre Deak
     
  • Talk to ADS7846 chip using SPI mode 1, which is what the chip
    supports: writes on falling clock edge, reads on rising.

    Signed-off-by: Imre Deak
    Signed-off-by: Tony Lindgren
    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Imre Deak
     
  • Use hrtimer instead of the normal timer, since it provides better
    sampling resolution. This will:

    - avoid a problem where we have a 1 jiffy poll period and
    dynamic tick on
    - utilize high resolution HW clocks when they are added to
    the hrtimer framework

    Signed-off-by: Imre Deak
    Signed-off-by: Juha Yrjola
    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Imre Deak
     
  • On some LCDs leaving the Vref on provides much better readings.

    Signed-off-by: Jarkko Oikarinen
    Signed-off-by: Imre Deak
    Signed-off-by: Juha Yrjola
    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Imre Deak