| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
|
|
|
|
|
|
|
|
|
|
| |
At the point of this error-handling code, aiptek->urb has been allocated,
and it does not appear to be less necessary to free it here than in the
error-handling code just below.
Change-Id: I1b07d7cd62a3df78759dd5a9a5ad27e58350df01
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The aiptek driver crashes in aiptek_probe() when a specially crafted USB
device without endpoints is detected. This fix adds a check that the device
has proper configuration expected by the driver. Also an error return value
is changed to more matching one in one of the error paths.
Change-Id: I02fa4ffcbe9a71948947ef5baeb72632688d9d07
Reported-by: Ralf Spenneberg <ralf@spenneberg.net>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
|
|
|
|
| |
Fixes the screen blink on espresso10 variants after turning off the screen.
|
|
|
|
|
|
|
|
|
| |
Based on the sources from GT-P3110_JB_Opensource, plus:
* 592912f - input: touchscreen: lower some loglevels to reduce kmsg spam
* 6a23c3e - Remove sec_common
* 5d5b22d - espresso: input: get rid of omap_muxtbl, minor cleanups
* 30e63df - touchscreen: synaptics: remove factory test stuff, minor cleanups
* 3f1a9ca - touchscreen: mms136: remove factory test stuff, minor cleanups
|
|
|
|
|
| |
Based on the sources from: GT-P3110_JB_Opensource, plus:
* f25245b - espresso: sensors: get rid of omap_muxtbl, minor cleanups
|
|
|
|
|
| |
Based on the sources from: GT-P3110_JB_Opensource, plus:
* 0ad65a7 - input: sec_dock_keyboard: only register input device when it's connected
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As noted by Arve and others, since wall time can jump backwards, it is
difficult to use for input because one cannot determine if one event
occurred before another or for how long a key was pressed.
However, the timestamp field is part of the kernel ABI, and cannot be
changed without possibly breaking existing users.
This patch adds a new IOCTL that allows a clockid to be set in the
evdev_client struct that will specify which time base to use for event
timestamps (ie: CLOCK_MONOTONIC instead of CLOCK_REALTIME).
For now we only support CLOCK_MONOTONIC and CLOCK_REALTIME, but
in the future we could support other clockids if appropriate.
The default remains CLOCK_REALTIME, so we don't change the ABI.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Reviewed-by: Daniel Kurtz <djkurtz@google.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Conflicts:
include/linux/input.h
|
|
|
|
| |
This reverts commit 5d61887ea1837592ecbe3f5af7b7e4a741b659c5.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
p-android-omap-3.0-dev-espresso
Conflicts:
Makefile
arch/arm/include/asm/hardware/cache-l2x0.h
arch/arm/kernel/smp.c
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/board-omap4panda.c
arch/arm/mach-omap2/opp.c
arch/ia64/include/asm/futex.h
drivers/bluetooth/ath3k.c
drivers/bluetooth/btusb.c
drivers/firmware/efivars.c
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_irq_kms.c
drivers/hwmon/fam15h_power.c
drivers/mfd/twl6030-irq.c
drivers/mmc/core/sdio.c
drivers/net/tun.c
drivers/net/usb/ipheth.c
drivers/net/usb/usbnet.c
drivers/usb/core/hub.c
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.h
drivers/usb/musb/omap2430.c
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ftdi_sio_ids.h
drivers/usb/serial/option.c
drivers/usb/serial/qcserial.c
drivers/usb/serial/ti_usb_3410_5052.c
drivers/usb/serial/ti_usb_3410_5052.h
drivers/video/omap2/dss/hdmi.c
fs/splice.c
include/asm-generic/pgtable.h
include/net/sch_generic.h
kernel/cgroup.c
kernel/futex.c
kernel/time/timekeeping.c
net/ipv4/route.c
net/ipv4/syncookies.c
net/ipv4/tcp_ipv4.c
net/wireless/util.c
security/commoncap.c
sound/soc/soc-dapm.c
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit a455e2985f57e2a71566bb8850094af38b2c932d upstream.
The driver's timer must be set up before enabling IRQ handler, otherwise
bad things may happen.
Reported-and-tested-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peter Popovec <popovec@fei.tuke.sk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit ad68652412276f68ad4fe3e1ecf5ee6880876783 upstream.
Some MSI laptop BIOSes are broken - INT 15h code uses port 92h to enable A20
line but resume code assumes that KBC was used.
The laptop will not resume from S3 otherwise but powers off after a while
and then powers on again stuck with a blank screen.
Fix it by enabling A20 using KBC in i8042_platform_init for x86.
Fixes https://bugzilla.kernel.org/show_bug.cgi?id=12878
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Link: http://lkml.kernel.org/r/201212112218.06551.linux@rainbow-software.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit 52965cc012f7a3cf35f06485ec275ebf3b3fddae upstream.
Some bcm5974 trackpads have a physical button beneath the physical surface.
This patch sets the property bit so user space applications can detect the
trackpad type and act accordingly.
Signed-off-by: Jussi Pakkanen <jussi.pakkanen@canonical.com>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit 8669cf6793bb38307a30fb6b9565ddc8840ebd3f upstream.
On Toshiba Satellite C850D, the touchpad and the keyboard might randomly
not work at boot. Preventing MUX mode activation solves this issue.
Signed-off-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit 7b125b94ca16b7e618c6241cb02c4c8060cea5e3 upstream.
They all define their chassis type as "Other" and therefore are not
categorized as "laptops" by the driver, which tries to perform AUX IRQ
delivery test which fails and causes touchpad not working.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42620
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit 6dc463511d4a690f01a9248df3b384db717e0b1c upstream.
Bamboo One's with ID of 0x6a and 0x6b were added with correct
indication of 1024 pressure levels but the Graphire packet routine
was only looking at 9 bits. Increased to 10 bits.
This bug caused these devices to roll over to zero pressure at half
way mark.
The other devices using this routine only support 256 or 512 range
and look to fix unused bits at zero.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Reported-by: Tushant Mirchandani <tushantin@gmail.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit e76b8ee25e034ab601b525abb95cea14aa167ed3 upstream.
I couldn't find the vendor ID in any of the online databases, but this
mat has a Pump It Up logo on the top side of the controller compartment,
and a disclaimer stating that Andamiro will not be liable on the bottom.
Signed-off-by: Yuri Khan <yurivkhan@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit 99c90ab31fad855b9da9dee3a5aa6c27f263e9d6 upstream.
ALPS touchpad detection fails if some buttons of ALPS are pressed.
The reason is that the "E6" query response byte is different from
what is expected.
This was tested on a Toshiba Portege R500.
Signed-off-by: Akio Idehara <zbe64533@gmail.com>
Tested-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
suspend mode.
The patch blocks Tablet2WUXGA Cypress Touchscreen panel
interrupts in early suspend mode.
Change-Id: Ia169830ee297bf2d856d74c84096fd5735475358
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Do gpio_request before working with gpio.
This fixes trace on startup:
[ 3.024169] WARNING: at drivers/gpio/gpiolib.c:101 gpio_ensure_requested+0x58/0x114()
[ 3.024169] autorequest GPIO-24
[ 3.034332] Modules linked in:
Change-Id: If13075c81b18c4d10fd1460a6413f5e52845a4b5
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
|
| |
| |
| |
| |
| |
| |
| | |
Kernel version updated to 3.0.31
Change-Id: Ifbd7150801f3beeec9cbaa566f249d8019ef9348
Signed-off-by: Roman Shaposhnikov <x0166637@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The bma180_accel_device_worklogic has to be canceled synchronously
before continue suspending, because of:
- it may sleep while accessing to I2C bus and, as result, WFI may be
reached in the middle of its execution and that may prevent system
from entering to OFF state.
- the accel device suspend handler may switch bm180 to sleep state while
bma180_accel_device_worklogic is still active.
Change-Id: I66d56c895a37cc9391cfbb095f6e9ee45be86e49
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
|
|\ \
| | |
| | |
| | |
| | | |
Change-Id: I695b59aeccd2e5cb5a50c6fc734c5d54795f5615
Signed-off-by: Dima Svetlov <svetlov@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Supports CY8CTMA398 & CY8CTMA884
Change-Id: Ifcdba380e3a8712716054dd6c5d807ebb2c1beb6
Signed-off-by: Peter Nordström <nordstrom@ti.com>
Signed-off-by: Lajos Molnar <lajos@ti.com>
Signed-off-by: Dima Svetlov <svetlov@ti.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
Adding support for CEC key board driver in input device.
UI commands received from CEC are mapped to the key buttons
in the linux kernel.
Change-Id: If4136940f28fb4a0c4b9b730aabb8e0fc7837ccf
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The device is not resumed, in the case if "POWERON" button was
pressed for short time. The algorithm is following:
1. Device is resumed, and system reads the reason of resuming
from TWL status registers. But user releases the "POWERON"
button while system is in resume process. See pic1 and pic2
___
pic1 | |
real button state /|\ \|/
________| |___________
pic2 | |
system receive \|/ \|/
following state _____________|___|______
| |
/|\ \|/
where | is button pressed state | is button released state
2.We are read the cause of resume and get "button released".
3.After that we get second interrupt "Button released", because
button was really released and second interrupt was happened.
See pic2.
In this situation the system sees this, like two pairs
of "pressButton/releaseButton".
The patch removes a second "pressButton/releaseButton".
Change-Id: Ieec7227db19ed43f7964159169eee44386d7d511
Signed-off-by: Eugen Mandrenko <ievgen.mandrenko@ti.com>
Signed-off-by: Sergii Postulga <x0153364@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The below patch gave a workaround to avoid Long Key Press to resume
from suspend
http://review.omapzoom.org/#change,17913
But after reboot if we go to suspend without pressing the power key
i.e. waiting for timeout, then its not resuming normally.
So with this patch, if its first time we provide press/release
event to the upper layer.
Change-Id: If4d44adcc3e95bdaf8a5eec16b3a7561ae8a7b2a
Signed-off-by: Siva Pothireddy <sivakumar.pothireddy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/clock44xx_data.c
arch/arm/mach-omap2/omap_twl.c
drivers/gpu/pvr/ion.c
drivers/gpu/pvr/ion.h
drivers/gpu/pvr/mm.c
drivers/gpu/pvr/omap4/syslocal.h
drivers/gpu/pvr/sgxfeaturedefs.h
drivers/mmc/host/omap_hsmmc.c
drivers/usb/gadget/android.c
drivers/video/hdmi_ti_4xxx_ip.c
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/hdmi.c
fs/proc/base.c
include/video/hdmi_ti_4xxx_ip.h
sound/soc/codecs/twl6040.c
sound/soc/omap/sdp4430.c
Change-Id: Ia1edb1885eff7554aead12780898502df08b7c83
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
arch/arm/mach-omap2/smartreflex.c
drivers/i2c/busses/i2c-omap.c
drivers/usb/host/ehci.h
drivers/usb/musb/musb_core.c
fs/proc/base.c
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit 8521478f67e95ada4e87970c7b41e504c724b2cf upstream.
Synaptics touchpads on several Dell laptops, particularly Vostro V13
systems, may not respond properly to PS/2 commands and queries immediately
after resuming from suspend to RAM. This leads to unresponsive touchpad
after suspend/resume cycle.
Adding a 1-second delay after resetting the device allows touchpad to
finish initializing (calibrating?) and start reacting properly.
Reported-by: Daniel Manrique <daniel.manrique@canonical.com>
Tested-by: Daniel Manrique <daniel.manrique@canonical.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Logic in suspend/resume path is not correct.
Even if proximity sensor is disabled -
resume logic will enable it. This patch fixed this.
Also, patch resolve issue with disabling ALS sensor.
TSL2771's datasheet says that AEN bit should be enable,
even if only proximity sensor is used. This patch
keep AEN-bit if sensors are enabled and clear it
during disabling last of them.
Change-Id: Ib134429d36af2c640ff0b52235d91f7f0cf754ef
Signed-off-by: Sergii Postulga <x0153364@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
TWL PIH interrupt gets enabled earlier than the module level interrupts.
KeyPress has 2 events. Press and Release event for each Key press. There
is only bit in the Register which maintains both the status.
Due to delay in interrupt enabling we are loosing Press event interrupts.
This patch maintains the prev state of keyevent. If current event is
same as prev event we provide press/release event to the upper layer.
Change-Id: I01808c7a52e62c951b8da178b02e1a5f9edb3b03
Signed-off-by: Sivakumar Pothireddy <sivakumar.pothireddy@ti.com>
Signed-off-by: Rajeev Kulkarni <rajeevk@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix the interrupt handling in the BMA180 accelerometer driver
The interrupt handler was not being called properly and the
delayed work would always be called.
Change-Id: Iadd2b9b053d7af053908fca204623d102b107b8d
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
fixes several rate selection issues discovered:
sysfs store parameter validation
HMC5843_USE_WORK_QUEUES selected different sysfs rate scales
one code path didn't unlock mutex
hmc5843_sample_interval array overrun
driver data mutex locking
index register synchronization
Change-Id: I882eb11ea067d9ca2d6b0e9ee4ede099867d2fec
Signed-off-by: David Taylor <x0158378@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Accelerometer work can be scheduled from work itself and from
userspace by enabling it in sysfs. The change in sysfs from
userspace was ignored and work constantly rescheduled,
keeping accelerometer always enabled.
Now mode set from userspace is saved and analyzed in work before
scheduling. If accelerometer is disable, work is not scheduled.
Change-Id: I8eacc45cc974947ef474b5e15c961e04bae611f6
Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* android-omap-3.0: (26 commits)
OMAP3+: Smartreflex: clear ERRCONFIG_VPBOUNDINTST only on a need
OMAP3+: Smartreflex: Fix status masking in ERRCONFIG register
OMAP3+: PM: VP: check only the VPINIDLE status bit
OMAP3+: Smartreflex: Add a shutdown hook
OMAP3+: Smartreflex: prevent dvfs during autocomp enable/disable sequences
OMAP3+: PM: DVFS: remove omap_dvfs_is_scaling
OMAP3+: PM: DVFS: simplify omap_dvfs_is_any_dev_scaling
OMAP4: PM: skip going through the LP sleep sequence if conflict with DVFS
cpufreq: interactive governor: default 20ms timer
cpufreq: interactive governor: go to intermediate hi speed before max
MFD: twl6040: Enable/disable external 32kHz clock
MFD: twl6040: Remove unnecessary pdev local variable
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
ARM: omap4: PM: mask all PPIs when going into low power mode
input: gpio_input: don't print debounce message unless flag is set
ASoC: omap-mcasp: HACK: Prevent C3 power state
ASoC: omap-mcasp: Rename the omap_hw_dit_param function to omap_mcasp_setup
ASoC: omap-mcasp: Do not configure the IDLE mode in the driver
...
Change-Id: I687d9d018b17ce19b99afe5fc52a28e27385373a
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: I29ccb32e795c5c3e4c51c3d3a209f5b55dfd7d94
Signed-off-by: Dima Zavin <dima@android.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Initialize the default polling rate from the board file
Change-Id: I36abf00e843b287e9c8a2ebff56d01d1e37f9dd8
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add a suspend resume handler that will allow a
function pointer to be defined on board files to set or
clear a pad wakup bit.
Change-Id: I2264bc8d48f02f69c24fed528759c13fdbb12c60
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* android-omap-3.0:
Revert "OMAP4: DSS: Enable bufferfilling by default"
Revert "OMAP DSS: FIFO Threshold Optimization"
Revert "OMAP:DSS2: Fix FIFO threshold calculation"
input: evdev: do not block waiting for an event if fd is nonblock
input: evdev: if no events and non-block, return EAGAIN not 0
input: evdev: only allow reading events if a full packet is present
gpu: pvr: Update to DDK 1.8@294981
OMAP: DSS: Assign overlays only to the default display
Change-Id: I78aeb70c624aface1a56f8ebbd2f24b19dd7511b
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: I5f0da721f74e5de111cffc7e7b375b72dd80e530
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Long key press is not needed on android since it
is simulated on user space. Extra interrupts may
leave userspace confused.
Use bitfiled instead of hardcoded values to set
KBD_CTRL, and change PVR divisor to 0x6, which
would allow a debouncing time of ~10ms.
Set mpu irq to level instead of edge, since if mpu
is in low power a edge detection may be lost if
the event is a wkup event.
Change-Id: I2b96abdfa573614a5a669b13eed8c60baf2b07af
Signed-off-by: Andrii Danylov <x0158318@ti.com>
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 8af9b3e0df0623b3ab6197dfac4b7057fbb31ce1.
Change-Id: I2f644974326a9fa428cf2773d37683e3bc039c06
|
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 56716f65ecee225ddc05f0f066bb47a0e5453caa.
Change-Id: I95f9abe8ac5e6cd01ca93471379390a65bd3628d
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There is a race condition where the work logic thread may
schedule another work item after the accelerometer was disabled
Add some intelligence in the work logic to only schedule work
items if the accel is enabled
Change-Id: Ice69bae45d2dea8d9c92406dc3ecde2c2f98564c
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Simplify the suspend and resume routines for the
BMA180 since if the accel was off before suspend there
is no reason to turn it off again. And if the accel
was not on for resume then we should not turn on the
accelerometer.
Change-Id: I3a8ede8d8ffaaaf8c59038e14fdb080d99c55af3
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Update the power management suspend/resume to use
the dev_pm_ops instead of legacy suspend/resume callbacks
Change-Id: Id6d89fdd72049ae1bf21053cab544253ae23437b
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Update the power management suspend/resume to use
the dev_pm_ops instead of legacy suspend/resume callbacks
Change-Id: Iabc4ee9734214b583e4b724dc761ccdc0828c308
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|