Commit Graph

2431 Commits

Author SHA1 Message Date
Linux Build Service Account
dd346d2474 Merge changes Ibb7afffd,Ie00815ed into msm-3.0
* changes:
  msm: board-qrd7627a: Add support for synaptics touchscreen
  input: touchscreen: Add support for synaptics clearpad3000
2011-10-24 17:10:20 -07:00
Taniya Das
6f0884bf86 input: touchscreen: Add support for synaptics clearpad3000
Change-Id: Ie00815ed507d81c6934ac0d4b1dfa745215ff01a
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2011-10-24 12:12:17 +05:30
Axel Lin
44d805b30a Input: pmic8xxx-keypad - fix a leak of the IRQ during init failure
Make sure we are passing the same cookie in all calls to
request_any_context_irq() and free_irq().

CRs-Fixed: 313755
Change-Id: Ic5a035dc8fc12705968b44fe75b5e10f01ad748f
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-24 09:59:52 +05:30
Jing Lin
bace50b68c input: atmel_mxt_ts: Move regulators to LPM/HPM in suspend/resume
Change-Id: I75900b242a628a3ab024e8489273c4cad185c52b
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
2011-10-21 11:46:20 -07:00
Jing Lin
36aee816a0 input: atmel_mxt_ts: Add retry mechanism for I2C read/write
Try up to 3 times for each I2C read/write with 25ms delay between retries.
This is especially needed when writing to T7 to wake up the controller
from deep sleep mode.
Read/write T7 object in block, instead of one byte at a time.

Change-Id: Ibca9cdbf38c5726af5ff4ee9f0ce9ea6f0d183ee
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
2011-10-21 11:46:20 -07:00
Jing Lin
2f863174f9 input: atmel_mxt_ts: Clean up pdata and update config array
Remove blen, tchthr, x_line, y_line, orient and voltage from platform
data to not to overwrite the config data with these values. Update
config array to have the proper values.
Turn on i2c_pull_up in platform data.

Change-Id: Ic926e96886f52cea3dad29e9a44559b26c717259
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
2011-10-21 11:46:20 -07:00
Amy Maloche
2b59bab63c input: atmel_mxt_ts: remove mt protocol b capability
Change-Id: I3bbb94ff1b2380c85bc960ec79d6c7fcc791cf1f
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-18 15:05:39 -06:00
Amy Maloche
f0d7b8d83b Input: atmel_mxt_ts: increase delay required for power stabilization
Logging removed which threw previous delay off

Change-Id: I476f584755f676bb80be5b278a60e20f0a4cbb8a
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-17 14:20:29 -07:00
Anirudh Ghayal
61d88f754d input: atmel-maxtouch: Fix enabling of IRQ in worker thread
Enable the interrupt only when no work is to be scheduled.

Change-Id: I006688b73331428850936f0cfea14c10f41fcd52
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-17 11:46:38 +05:30
Bryan Huntsman
4e7305f5d1 Merge AU_LINUX_ANDROID_GINGERBREAD.02.03.05.00.132 into msm-3.0
* AU_LINUX_ANDROID_GINGERBREAD.02.03.05.00.132:
  usb: Add delay before checking request status
  msm: sdio: Fixing race condition in LPM test.
  msm_fb: display: avoid staging up two pipes at same mixer_stage
  gpu: ion: Add cache flushing APIs
  msm: vidc: Increase the decoder input buffer size.
  devices: 8660: route GSBI12 interrupts to DSPS when enabled
  msm-camera: unregister sd_vpe sub-device in close.
  msm: audio: qdsp6v2: Modify dspcrashd to use new memory addresses
  msm_fb: display: received writeback offset from board file
  msm: bam_dmux: manipulate skb->truesize per packet
  vidc: vdec: Buffer optimization for smooth streaming.
  genirq: fix handle_nested_irq for lazy disable
  msm: sdio: Add validation tests for streaming channels.
  input: cyttsp-i2c: Remove deprecated function strlen
  leds-pm8xxx: Pass LED flags from board file
  msm: platsmp: Remove extraneous boot_secondary delay
  arm: Implement ticket spin-locks
  Revert "spi_qsd: GPIO configuration changes for SPI chip-select line"
  msm: clock-9615: Add RPM-controlled clock support
  Bluetooth: Complete LE Auth failure notification
  ASoC: msm: qdsp6: Print message only when string is not NULL
  msm_fb: display: Fix display driver init calls for auto-detection
  msm: 8960: Enable Multi-tiering support on 8960
  msm: timer: make first_boot flag per-cpu
  msm: board-9615: Add support for cpuidle and pm
  msm: msm9615_defconfig: Enable CONFIG_PM and CONFIG_CPU_IDLE
  msm: Makefile: Compile pm-8x60.c and cpuidle for 9x15
  vidc: venc: Return the correct error code for IOCTL.
  arm: cache-l2x0: Restore the data latency ctrl register after suspend.
  msm: sdio: expose SDIO_CIQ channel for test application
  msm: msm_bus: Correctly validate the pointer to fabrics
  msm: enable CONFIG_ARCH_POPULATES_NODE_MAP on 8960
  msm: smd: Fix Modem-FW subsystem restart support
  msm: clock-8960: Add support for 8064 multimedia clocks
  msm: audio: qdsp6v2: Set tx and rx flags based on current device
  msm_fb: display: vg pipe shared by both rgb and yuv format
  gpu: ion: Add IS_CACHED macro
  defconfig: Enable KS8851 SPI Ethernet as a module
  mfd: pmic: Fix memory leak in debug probe
  mfd: pm8xxx: Free the mutex before probe exit
  spi_qsd: GPIO configuration changes for SPI chip-select line
  msm_charger: Fix race condition with battery supply
  msm: defconfig: Enable Oprofile and cpaccess by default for 7x27a.
  msm: devices-9615: Initialize SPM registers for 9615
  input: atmel_mxt_ts: put device in LPM from T7 and T9
  Bluetooth: Guarantee BR-EDR device will be registered as hci0
  msm: camera: Fix register offsets and add toggle bank selects
  defconfig: msm8660: Enable LCDC_MIPI_DETECT config
  msm_fb: display: Add boot param LCDC/MIPI panel detection support
  msm_fb: display: 7x27a support for panel auto detection.
  board: msm8x60: Add LCDC and MIPI panel detection support
  board: msm8960: Add MIPI panel detection support
  msm: acpuclock-8960: Temporarily disable secondary clock gating
  msm: kgsl: Debugfs knob to configure wait timeout of adreno device

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-11 23:44:12 -07:00
Matt Wagantall
4608830e7a input: evdev: Fix bad merge resolution for wakelock acquisition
The wakelock should only be acquired once in evdev_pass_event().

Change-Id: If0b71d0812511c8a415405280d0679e617b081af
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-11 14:38:19 -07:00
Mohan Pallaka
04b7f7980c input: cyttsp-i2c: Remove deprecated function strlen
Replace deprecated function strlen with it's safer
counter part strnlen. Return error code from probe
when cyttsp_initialize() fails.

Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-11 09:59:29 -07:00
Amy Maloche
5226221101 input: atmel_mxt_ts: put device in LPM from T7 and T9
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-11 09:59:24 -07:00
Mohan Pallaka
9c050f1f6f input: cyttsp-i2c: Remove deprecated functions
Replace deprecated functions sprintf/strncpy with their safer
counter parts, snprintf/strlcpy.

Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-05 10:35:46 -07:00
Mohan Pallaka
ab51f2ba25 input: atmel_mxt_ts: Remove deprecated functions
Replace deprecated function sprintf with its safer
counter part, snprintf.

Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-05 10:27:13 -07:00
Anirudh Ghayal
e961eb231d input: pm8xxx-pwrkey: Move from threaded irq to any-context irq
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-04 17:14:26 -07:00
Anirudh Ghayal
9ffded25fd input: atmel-maxtouch: Modify the work handling in IRQ context
The cancel-work construct is not needed as the new IRQ is
generated only after the old work has completed execution.

Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:20:51 -07:00
Amy Maloche
7e447434cc input: atmel_mxt_ts: Update proper reset time for mxt1386
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-03 16:19:47 -07:00
Iiro Valkonen
4ac053cdb9 Input: atmel_mxt_ts - Make wait-after-reset peroid compatible with all chips
The delay before the chip can be accessed after reset varies between different
chips in maXTouch family. Waiting for 200ms and then monitoring the CHG (chip
is ready when the line is low) is guaranteed to work with all chips.

v4: Adjust delay depending on the family ID of the chip. Also add a readback
    of command register after backup is issued, to make sure we are not
proceeding
    too fast there.
v3: Add a check for NULL read_chg() function, and add the read_chg() to platform
    files using this driver (currently only mach-goni.c)
v2: At Dmitry's suggestion, add a timeout so we are not stuck looping
    endlessly in case the CHG is not going low.

Signed-off-by: Iiro Valkonen <iiro.valkonen@atmel.com>
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-03 16:19:35 -07:00
Anirudh Ghayal
ba3bc7acf2 input: atmel-mxt-ts: Make digitizer object(43) readable/writeable
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:18:39 -07:00
Anirudh Ghayal
909dcfdd04 input: cyttsp-i2c: Move resume call under CONFIG_PM
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:18:24 -07:00
Anirudh Ghayal
84e511925f input: cyttsp-i2c: Fix the EARLYSUSPEND and PM defines
This change prevents the resume handler being called in the
regular resume callback. It should get called only during late
resume. This can cause the device to wake up earlier than expected.

Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:18:02 -07:00
Praveena Pachipulusu
8b621e4279 input: cyttsp-i2c: Change the permission of firmware sysfs entries
CRs-fixed: 302911
Signed-off-by: Praveena Pachipulusu <pveena@codeaurora.org>
2011-10-03 16:17:00 -07:00
Amy Maloche
13dcf554d9 input: cyttsp-i2c: Reduce time needed to resume from sleep
Reduce the number to attempts to move out of bootloader
mode.

Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-03 16:16:20 -07:00
Anirudh Ghayal
ab2754e472 input: cyttsp-i2c: Improve error handling in bootloader mode
Attempt multiple I2C writes (in case of failures) to get the
device out of bootloader mode.

Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:16:19 -07:00
Zhang Chang Ken
f5a4bbe4a0 input: cy8c_ts: Add support for TMA340 TS controller
This controller uses the same packet format as TMA300

Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org>
2011-10-03 16:16:01 -07:00
Mohan Pallaka
727225f609 input: cyttsp-i2c: Add support for disabling ghost touch detection
Add support to treat ghost touches as normal touches incase firmware
reports all touches as ghost touches.

Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-03 16:15:53 -07:00
Anirudh Ghayal
f1071c0d57 input: atmel-mxt-ts: Make USERDATA as writable object
The USERDATA object can be used to store user specific
data such as version info.

Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:15:25 -07:00
Anirudh Ghayal
253ce1292f input: atmel-mxt-ts: Add earlysuspend support
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:15:24 -07:00
Anirudh Ghayal
a498e4d825 input: atmel-mxt-ts: Add regulator support and init. callbacks
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:15:24 -07:00
Mohan Pallaka
df53bc38e9 input: cy8c_ts: Clear status register in resume
To avoid firmware getting lock up after suspend
clear the status register in resume.

CRs-fixed: 300494
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-03 16:14:10 -07:00
Mohan Pallaka
1cef4a0f37 input: cyttsp-i2c: Verify checksum before firmware upgrade
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-03 10:27:46 -07:00
Amy Maloche
edd5fd79fb input: cyttsp-i2c: choose firmware start address
Firmware start address changes from GEN3 to GEN2 devices.
Select proper firmware start address based on chip generation.

Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-03 10:26:42 -07:00
Bryan Huntsman
3f2bc4d6eb Initial Contribution
msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-03 09:57:10 -07:00
Bryan Huntsman
66589de55e Merge remote-tracking branch 'linux-audio/sgc/topic/omap_3.0'
* linux-audio/sgc/topic/omap_3.0: (106 commits)
  ASoC: twl6040: Configure init gain to minimal value
  ASoC: ABE: Protect playback/capture triggers against removal
  ASoC: DSP: Connect FE->BE links if FE is active
  ASoC: McPDM: Update channel management (for squash)
  ASoC: OMAP4 - Port Manager: Fix up DEBUG_FS compilation error
  ASoC: ABE DSP: Fixes for firmware equalizer parsing
  ASoC: ABE DSP: Use same firmware strategy for built-in and modules
  ASoC: ABE HAL: Allow flexible firmware loading
  ASoC: ABE DSP: Fix compilation warnings
  ASoC: OMAP ABE: update Firmware version 09.45
  ASoC: pcm - fix locking for dsp ops
  ASoC: OMAP ABE: Update for PM.
  ASoC: McPDM: Update channels management to link UL and DL
  ASoC: ABE DAI: Call modem trigger in bespoke_trigger()
  ASoC: ABE DAI: support 2 channels for MODEM DAI
  OMAP4: SDP4430: Fix merge issue with new MFD driver
  ASoC: OMAP: SDP4430 fix merge issue.
  ASoC: dapm: Fix long_name pointer for DAPM muxes
  ASoC: mcpdm: Enable watchdog during audio activity
  ASoC: SDP4430: Fix DMICs stream name
  ...
2011-09-23 11:00:20 -07:00
Misael Lopez Cruz
95ed04e15e input: Add initial support for TWL6040 vibrator
Add twl6040_vibra as a child of MFD device twl6040_codec. This
implementation covers the PCM-to-PWM mode of TWL6040 vibrator
module.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
CC: Tejun Heo <tj@kernel.org>
2011-07-24 21:31:54 +02:00
Peter Ujfalusi
be206b3963 MFD: twl4030-audio: Rename platform data
Allign the platform data names for twl4030 audio submodule:
twl4030_audio_data: for the core MFD driver
twl4030_codec_data: for ASoC codec driver
twl4030_vibra_data: for the input/ForceFeedback driver

To avoid breakage, change all depending drivers, files
to use the new types.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2011-07-24 21:31:53 +02:00
Peter Ujfalusi
d189dd57aa MFD: twl4030-codec -> twl4030-audio: Rename the driver
Rename the driver, and header file from twl4030-codec to
twl4030-audio.
To avoid breakage change depending drivers at the same time.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
CC: Misael Lopez Cruz <misael.lopez@ti.com>
2011-07-24 21:31:53 +02:00
Colin Cross
75c56a8111 Merge commit 'v3.0-rc7' into android-3.0 2011-07-12 20:10:37 -07:00
Samuel Ortiz
63ef1124f1 input: pmic8xxx-pwrkey: Do not use mfd_get_data()
mfd_get_data() has been removed from the MFD API.

Cc: Anirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2011-07-05 10:38:43 +02:00
Samuel Ortiz
1d08382a0e input: pmic8xxx-keypad: Do not use mfd_get_data()
mfd_get_data() has been removed from the MFD API.

Cc: Anirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2011-07-05 10:38:43 +02:00
Colin Cross
e55d4fa967 Merge commit 'v3.0-rc5' into android-3.0 2011-06-29 13:54:42 -07:00
Linus Torvalds
c01ad40819 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Input: sh_keysc - 8x8 MODE_6 fix
  Input: omap-keypad - add missing input_sync()
  Input: evdev - try to wake up readers only if we have full packet
  Input: properly assign return value of clamp() macro.
2011-06-20 08:59:46 -07:00
Magnus Damm
cca23d0b53 Input: sh_keysc - 8x8 MODE_6 fix
According to the data sheet for G4, AP4 and AG5 KEYSC MODE_6 is 8x8 keys.
Bump up MAXKEYS to 64 too.

Signed-off-by: Magnus Damm <damm@opensource.se>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2011-06-18 02:55:01 -07:00
Janusz Krzysztofik
b27af563be Input: omap-keypad - add missing input_sync()
Otherwise the updated evdev driver (commit cdda911c34,
"Input: evdev - only signal polls on full packets") no longer works on
top of omap-keypad.

Tested on Amstrad Delta.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2011-06-18 02:54:42 -07:00
Dmitry Torokhov
da40b0b6b4 Input: evdev - try to wake up readers only if we have full packet
We should only wake waiters on the event device when we actually post
an EV_SYN/SYN_REPORT to the queue. Otherwise we end up making waiting
threads runnable only to go right back to sleep because the device
still isn't readable.

Reported-by: Jeffrey Brown <jeffbrown@android.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2011-06-18 02:54:02 -07:00
Jeff Brown
4700c54b66 input: gpio_input: send input_sync after reporting keys
Signed-off-by: jeffbrown@android.com
Change-Id: Ie170960df3c8ab4833ed686135dc8575cb9f2d48
2011-06-14 09:11:54 -07:00
Jeff Brown
be4cb21cb0 input: gpio_matrix: send input_sync after reporting keys
Signed-off-by: jeffbrown@android.com
Change-Id: I9bd2437503b48bf37f4d93505ccd2806e4aab977
2011-06-14 09:11:47 -07:00
Colin Cross
6e89051692 input: misc: gpio_matrix: Fix irq call for 2.6.39
Change-Id: Ib8dd0ab6554e6b0e3798bf75d41f77ea0b20b8de
Signed-off-by: Colin Cross <ccross@android.com>
2011-06-14 09:09:57 -07:00
Colin Cross
f780a1f78f input: keyreset: Only print message for default handler
Change-Id: I68e5451fef2e6f08bf1035077ea999e34a619f87
Signed-off-by: Colin Cross <ccross@android.com>
2011-06-14 09:09:50 -07:00