* common/android-3.0: (570 commits)
misc: remove kernel debugger core
ARM: common: fiq_debugger: dump sysrq directly to console if enabled
ARM: common: fiq_debugger: add irq context debug functions
net: wireless: bcmdhd: Call init_ioctl() only if was started properly for WEXT
net: wireless: bcmdhd: Call init_ioctl() only if was started properly
net: wireless: bcmdhd: Fix possible memory leak in escan/iscan
cpufreq: interactive governor: default 20ms timer
cpufreq: interactive governor: go to intermediate hi speed before max
cpufreq: interactive governor: scale to max only if at min speed
cpufreq: interactive governor: apply intermediate load on current speed
ARM: idle: update idle ticks before call idle end notifier
input: gpio_input: don't print debounce message unless flag is set
net: wireless: bcm4329: Skip dhd_bus_stop() if bus is already down
net: wireless: bcmdhd: Skip dhd_bus_stop() if bus is already down
net: wireless: bcmdhd: Improve suspend/resume processing
net: wireless: bcmdhd: Check if FW is Ok for internal FW call
tcp: Don't nuke connections for the wrong protocol
ARM: common: fiq_debugger: make uart irq be no_suspend
net: wireless: Skip connect warning for CONFIG_CFG80211_ALLOW_RECONNECT
mm: avoid livelock on !__GFP_FS allocations
...
Conflicts:
arch/arm/mm/cache-l2x0.c
arch/arm/vfp/vfpmodule.c
drivers/mmc/core/host.c
kernel/power/wakelock.c
net/bluetooth/hci_event.c
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
Move the following subdevices to use the pm8xxx interface -
mpp, irq, gpio, keypad, power-key, leds, othc, vibrator,
rtc, batt-alarm, thermal, upl, nfc, pwm, xoadc, regulators,
xo-buffers, charger.
This allows usage of a common driver for modules which are same
across multiple PM8XXX PMICs. It also provides flexibility
to add/remove subdevices for multiple board configurations.
Change-Id: Id9795552fc9f4a2c920c070babfaef1f4cd6ca61
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Fix issues such as comparing an unsigned integer against 0 and
unnecessary NULL checking.
Change-Id: Ib70b083925229ed9ec5b940e0fb0e80e9b83c960
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
Fix out-of-order error handling of several error cases in mxt_probe.
Make sure allocated memory is freed in mxt_initialize when an error
occurs.
Change-Id: I4331a71263b62ff6bdeaafbe6881e591b09d2ffc
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
Sysfs attribute show methods are always passed a buffer of length
PAGE_SIZE. To keep from overwriting this buffer and causing havoc, use
snprintf() to guarantee we never write more than the buffer can hold.
In addition, at least for my touchscreen, the number and size of objects
was far too big to fit in a single 4K page. Therefore, this patch also
trims some redundant framing text to leave more room for actual data.
Change-Id: If771d66940d9948618b419ff7f0e510a07821274
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Acked-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
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>
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>
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>
Enable the interrupt only when no work is to be scheduled.
Change-Id: I006688b73331428850936f0cfea14c10f41fcd52
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
* 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>
The wakelock should only be acquired once in evdev_pass_event().
Change-Id: If0b71d0812511c8a415405280d0679e617b081af
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
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>
If there is a full packet in the buffer, and we overflow that buffer
right after checking for that condition, it would have been possible
for us to block indefinitely (rather, until the next full packet) even if
the file was marked as O_NONBLOCK.
Change-Id: Icd0f59f8cc98392be4c4d13bd45b5cf94317eb5a
Signed-off-by: Dima Zavin <dima@android.com>
Without this, it was possible for the reader to get ahead of packet_head.
If the the input device generated a partial packet *right* after the
reader got ahead, then we can get into a situation where the device is
marked readable but read always returns 0 until the next packet is
finished (i.e a SYN is generated by the input driver).
This situation can also happen if we overflow the buffer while a reader
is trying to read an event out.
Change-Id: If01ab371bc7de1bf1f90c122dcc5a29242b01a09
Signed-off-by: Dima Zavin <dima@android.com>
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>
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>
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>
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>
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>