Colin Cross [Mon, 25 Apr 2011 21:18:18 +0000 (14:18 -0700)]
leds: lp8550: Use non-reentrant workqueue
lp8550_brightness_work is not safe to call from multiple threads,
use the non-reentrant workqueue.
Change-Id: Ic7da3122fc6f800e4f2a849d2e2d379bbd8431a4
Signed-off-by: Colin Cross <ccross@android.com>
makarand.karvekar [Thu, 21 Apr 2011 19:35:46 +0000 (14:35 -0500)]
[ARM]: tegra: adjust fail-safe thresholds for cap-prox
Change-Id: I57f4e9672d67f73f2e96b654730f0948c46aa8d2
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
makarand.karvekar [Thu, 21 Apr 2011 19:27:07 +0000 (14:27 -0500)]
misc:cap-prox:remove force-detect after fail-safe check
Change-Id: Ib6410b0909bf9622750d38e7eeed4ecd42f0501f
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Rebecca Schultz Zavin [Fri, 22 Apr 2011 00:37:21 +0000 (17:37 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Fri, 22 Apr 2011 00:36:15 +0000 (17:36 -0700)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Andrei Warkentin [Thu, 21 Apr 2011 16:57:57 +0000 (11:57 -0500)]
video: tegra: dc: Fix several problems
Resolve potential race between resume and reset
Fix wmb after return
Change-Id: I98ad1e713b9781d780bf93561496011bf62b86d1
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Erik Gilling [Tue, 19 Apr 2011 20:38:51 +0000 (13:38 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: I16e5fe9a9976a33ae102187988a240aa5f8a766b
Erik Gilling [Tue, 19 Apr 2011 20:36:37 +0000 (13:36 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Change-Id: I023482f230dc4f413647f47b3c7c36fd4c98b97d
Andrei Warkentin [Tue, 19 Apr 2011 19:20:48 +0000 (14:20 -0500)]
video: tegra: prevent double disable in suspend
Prevents HDMI detect worker from re-disabling DC during
suspend (after tegra_dc_suspend has disabled DC itself)/
Change-Id: I90016fb709934ab8fb5135443980898069f8071f
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Erik Gilling <konkers@android.com>
Peter Zu [Thu, 7 Apr 2011 04:42:33 +0000 (21:42 -0700)]
video: tegra: dc: hdcp: handle the case of DEVICE_COUNT = 0 properly
When HDCP repeater has no device attached, DEVICE_COUNT reports back as 0.
HDCP driver should handle this case as a good case and continue downstream
authentication, other than fail it.
Change-Id: Ied2e46428c0247f14fbd96016cd4fdbf358f6587
Erik Gilling [Fri, 15 Apr 2011 22:58:11 +0000 (15:58 -0700)]
Merge branch android-tegra2.6.36 into android-tegra-moto-2.6.36
Change-Id: Ic0af83f0d35b7381d6a8fa21a9417c9aa6353b24
Erik Gilling [Fri, 15 Apr 2011 22:56:26 +0000 (15:56 -0700)]
Merge branch 'linux-tegra' into android-tegra
Erik Gilling [Fri, 15 Apr 2011 21:49:53 +0000 (14:49 -0700)]
video: tegra: fix more unplug/suspend timeout in nvhdcp
Change-Id: I30dfa03324eb5c4c344c62578eb808a150c80deb
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Wed, 13 Apr 2011 18:09:41 +0000 (11:09 -0700)]
Revert "video: tegra: enable HDCP debug logs."
This reverts commit
cd2ff7070071839c4a3fc830679c5af6e81a1e57.
Erik Gilling [Wed, 13 Apr 2011 15:15:54 +0000 (08:15 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: Ifd8896e66a90ccad029a4f179c691e416ade75c8
Erik Gilling [Wed, 13 Apr 2011 15:12:28 +0000 (08:12 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Change-Id: I016b27ad8ada8ec6214b1ed2b6096c294d2e81b8
Erik Gilling [Wed, 13 Apr 2011 15:03:41 +0000 (08:03 -0700)]
video: tegra: fix unplug/suspend timeout in nvhdcp
If HDCP was turned off (either by unplug or suspend) the work funciton
would wait the full timeout 5 * l.75s before exiting. This
causes suspend to timeout and crash.
Change-Id: I8eb185452ad09e34f4573874e9766c0e1cec15de
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Wed, 13 Apr 2011 15:03:41 +0000 (08:03 -0700)]
video: tegra: fix unplug/suspend timeout in nvhdcp
If HDCP was turned off (either by unplug or suspend) the work funciton
would wait the full timeout 5 * l.75s before exiting. This
causes suspend to timeout and crash.
Change-Id: I8eb185452ad09e34f4573874e9766c0e1cec15de
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Wed, 13 Apr 2011 01:00:19 +0000 (18:00 -0700)]
Merge branch 'android-tegra' into android-tegra-moto
Erik Gilling [Wed, 13 Apr 2011 00:57:10 +0000 (17:57 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Change-Id: I4305576b867fb062db791b0e18a8f0215bbc5705
Erik Gilling [Wed, 13 Apr 2011 00:36:04 +0000 (17:36 -0700)]
video: tegra: zero out var before calling fb_videomode_to_var
Change-Id: I23f01da0a7dcd62594faa828676ffb7a4bc72d9f
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Mon, 11 Apr 2011 22:15:15 +0000 (15:15 -0700)]
video: tegra: add debouncing to hdmi hotplug
Change-Id: Ic998e183e79faabc36d96720dcbae2640e8cf419
Signed-off-by: Erik Gilling <konkers@android.com>
Eric Laurent [Mon, 11 Apr 2011 19:18:01 +0000 (12:18 -0700)]
video: tegra: enable HDCP debug logs.
Signed-off-by: Eric Laurent <elaurent@google.com>
Jon Mayo [Thu, 7 Apr 2011 22:40:45 +0000 (15:40 -0700)]
HACK: ARM: tegra: pinmux: drive strength just for DDC
When programming DDC pingroup, use 20 for the pull up drive strength
offset instead of 12 (offset for pull down drive strength.)
Change-Id: I7e5c2d8c998556513f8b16d6510d6596763bcc87
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Thu, 7 Apr 2011 23:56:56 +0000 (16:56 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: I2fa2ffc7b946ae58b94b75415f64f4f735bd5ee9
Erik Gilling [Thu, 7 Apr 2011 23:54:01 +0000 (16:54 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Change-Id: I0dea4f256442d7391808de8456fe35d3879682fe
Jon Mayo [Wed, 6 Apr 2011 20:20:15 +0000 (13:20 -0700)]
video: tegra: reset hdcp failure count on hotplug
use tegra_nvhdcp_on/tegra_nvhdcp_off in hotplug handler to clean up
state machine.
Change-Id: I62fe503f0628ad4b49d5d7d66fe1702122179877
Signed-off-by: Erik Gilling <konkers@android.com>
Andrei Warkentin [Wed, 6 Apr 2011 21:30:00 +0000 (16:30 -0500)]
MMC: Fix erase/trim for certain SanDisk cards.
CMD38 argument is passed through EXT_CSD[113].
Change-Id: I47e9d5e2cf44d9274a65a3b1955026185cb8f2b8
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Andrei Warkentin [Wed, 6 Apr 2011 21:33:44 +0000 (16:33 -0500)]
MMC: Expose mmc_switch to higher drivers.
Needed for Sandisk workaround (manipulate EXT_CSD).
Change-Id: I7bfe50a1503ac73ae072db718b60c27526521e41
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Andrei Warkentin [Wed, 9 Mar 2011 21:35:04 +0000 (15:35 -0600)]
MMC: Support for block quirks.
Block quirks implemented using core/quirks.c support.
Change-Id: I81d9ad57a7ae95c60ee8026f090c8df7c75fd069
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Andrei Warkentin [Sun, 13 Mar 2011 13:48:37 +0000 (08:48 -0500)]
MMC: Extends card quicks with MMC/SD quirks matching the CID.
The current mechanism is SDIO-only. This allows us to create
function-specific quirks, without creating messy Kconfig dependencies,
or polluting core/ with function-specific code.
Change-Id: If31a151c20a8a1fddb0774674821e9fdc4aa61a0
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Pierre Tardy [Sun, 6 Feb 2011 18:03:46 +0000 (19:03 +0100)]
mmc: add per device quirk placeholder
Some cards have quirks valid for every platforms using current
platform quirk hooks leads to a lot of code and debug duplication.
So we inspire a bit from what exists in PCI subsystem and do our own
per vendorid/deviceid quirk. We still drop the complexity of the pci
quirk system (with special section tables, and so on).
That can be added later if needed.
Change-Id: Ib67a3e97486023267f5ea3e7c6ef8fc99b13a704
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Erik Gilling [Thu, 7 Apr 2011 21:37:03 +0000 (14:37 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: I190487c0932d67872e1c29c0d2296f24a515851c
Erik Gilling [Thu, 7 Apr 2011 21:33:20 +0000 (14:33 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Change-Id: If54be4c2e106e24beb0ae3063156a0659fcbb943
Jon Mayo [Wed, 6 Apr 2011 20:15:20 +0000 (13:15 -0700)]
video: tegra: use longer retries for hdcp
use 3 seconds for i2c/ddc failures on hdcp (15 attempts at 250mS each)
Change-Id: Ia755c9b42d5a0d8467b68c9d334638bcb015eabd
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Thu, 7 Apr 2011 17:33:55 +0000 (10:33 -0700)]
video: tegra: attempt HDCP on DVI
Change-Id: If9efc63de3427f263b121e102cd0168883a236a3
Signed-off-by: Erik Gilling <konkers@android.com>
James Wylder [Tue, 5 Apr 2011 18:00:29 +0000 (13:00 -0500)]
net: usb: cdc_ether: use oob_wake for wrigley modem on tegra
Change-Id: Ic00782db2ff8a1a791d3324db16dc21a8016e2ca
Signed-off-by: James Wylder <james.wylder@motorola.com>
James Wylder [Mon, 14 Mar 2011 23:45:26 +0000 (18:45 -0500)]
usb: misc: out-of-band wake for usb devices
Allow interrupts to wake usb bus for devices/hosts
that don't support remote wakeup.
Change-Id: I4c520264c8a9b456f9cfe0e49d1bb9a6a9496b5a
Signed-off-by: James Wylder <james.wylder@motorola.com>
srinivas gowrishetty [Wed, 6 Apr 2011 19:13:36 +0000 (12:13 -0700)]
net: usb: qcusbnet: Enable Error message printing
All the messages in QMI USBNET driver are disabled by default. Added a new
macro to enable printing of all error messages by default.
Change-Id: I6aad73fcf8d94dfbd495d36c4491c74a2095f5d3
Signed-off-by: Srinivas Gowrishetty <srinivas.gowrishetty@motorola.com>
Colin Cross [Fri, 1 Apr 2011 00:42:30 +0000 (17:42 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Colin Cross [Fri, 1 Apr 2011 00:42:16 +0000 (17:42 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Erik Gilling [Thu, 31 Mar 2011 23:26:59 +0000 (16:26 -0700)]
video: tegra: reset hdcp failure count on hotplug
Change-Id: Iba5041f8428b13791004c96e6e8c2ed4dbcc37b8
Signed-off-by: Erik Gilling <konkers@android.com>
Venkata (Muni) Anda [Tue, 29 Mar 2011 06:15:40 +0000 (23:15 -0700)]
usb: host: ehci-tegra: Wait for SOF before resume
Wait for Start Of Frame interrupt, then wait 20 us, before starting
port resume. Workaround for hardware issue that can cause the SOF to
be sent out at the same time as the phy speed change.
Change-Id: I91ccbd2902448e87aa3cdf1970305de22efa1c10
Signed-off-by: Colin Cross <ccross@android.com>
Benoit Goby [Tue, 28 Dec 2010 23:32:45 +0000 (15:32 -0800)]
usb: otg: cpcap: Allow suspend in host mode
Change-Id: Ibc5080ac52646f78cae1eafde91bf6fd582747a5
Signed-off-by: Benoit Goby <benoit@android.com>
Venkata (Muni) Anda [Tue, 29 Mar 2011 06:15:40 +0000 (23:15 -0700)]
usb: host: ehci-tegra: Wait for SOF before resume
Wait for Start Of Frame interrupt, then wait 20 us, before starting
port resume. Workaround for hardware issue that can cause the SOF to
be sent out at the same time as the phy speed change.
Change-Id: I91ccbd2902448e87aa3cdf1970305de22efa1c10
Signed-off-by: Colin Cross <ccross@android.com>
Mike Lockwood [Tue, 22 Mar 2011 13:08:09 +0000 (09:08 -0400)]
ARM: tegra: stingray: Board file support for external SD card
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Sun, 27 Mar 2011 15:00:19 +0000 (08:00 -0700)]
USB: gadget: f_accessory: Set bNumEndpoints to correct value of 2
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Fri, 25 Mar 2011 19:22:22 +0000 (12:22 -0700)]
USB: gadget: f_mtp: Don't block waiting for online state in read()
Return -ENODEV instead if USB is not connected.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Colin Cross [Thu, 24 Mar 2011 21:26:33 +0000 (14:26 -0700)]
Revert "usb: otg: cpcap: Allow suspend in host mode"
This reverts commit
a45f27a0089f4d6b4936f87a6f5f14649c2c46fe.
Jaikumar Ganesh [Tue, 22 Mar 2011 19:27:11 +0000 (12:27 -0700)]
Use BT POWER force_active parameter for rx data.
We were going to active mode during rx processing which
defeats the purpose of force_active parameter for HID devices.
Based on a report and discussion with Leijun Tao <L.J.Tao@motorola.com>
Change-Id: Ia43682c12795cf2cbd97df2a97e6b3e6cc6dfb34
Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
Colin Cross [Tue, 22 Mar 2011 18:43:45 +0000 (11:43 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Conflicts:
drivers/serial/tegra_hsuart.c
Change-Id: I535bef9c6645e5ec86f374a8f4d1fb3569274e53
Colin Cross [Tue, 22 Mar 2011 18:42:14 +0000 (11:42 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Andrei Warkentin [Tue, 22 Mar 2011 18:37:47 +0000 (11:37 -0700)]
serial: tegra_hsuart: Make sure current byte rx complete in suspend
Make sure that the last byte has been received by the uart during
suspend after RTS is deasserted.
Change-Id: I3517ec058fdca912ff5ad8770d2b1c5015385385
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Colin Cross <ccross@android.com>
Chris Johnson [Tue, 22 Mar 2011 01:20:51 +0000 (18:20 -0700)]
video: tegra: add HOST1_SYNC regs to nvhost_debug_show dump
Change-Id: I48cccf5b0df768b9cfc774803f3945f4806a62ac
Colin Cross [Wed, 16 Mar 2011 23:56:23 +0000 (16:56 -0700)]
serial: tegra_hsuart: Call complete callbacks when cancelling reqs
Updates the tegra_hsuart driver to match the changes in the Tegra
dma engine.
Change-Id: Iaaf8770166156c1a6d889a6a11bae517626781ee
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Wed, 16 Mar 2011 23:53:24 +0000 (16:53 -0700)]
ARM: tegra: dma: Do not call complete callback on canceled requests
Calling the complete callback when a request is cancelled leads to
locking problems in the callback, which could be called from an IRQ
with no locks held, or from whatever context called
tegra_dma_dequeue_req. Instead, expect the caller to handle the
now-cancelled request as needed.
Also removes tegra_dma_dequeue, since all users can be trivially
converted to tegra_dma_dequeue_req.
Change-Id: If699239c09c78d1cd3afa0eaad46535b1d401a24
Signed-off-by: Colin Cross <ccross@android.com>
Rebecca Schultz Zavin [Tue, 22 Mar 2011 18:05:59 +0000 (11:05 -0700)]
Revert "ARM: Cortex-A9: Enable dynamic clock gating"
This reverts commit
91406b03fa4add49db13e55c3220911be55d9883.
Rebecca Schultz Zavin [Mon, 21 Mar 2011 21:15:10 +0000 (14:15 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Mon, 21 Mar 2011 21:14:12 +0000 (14:14 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Mon, 21 Mar 2011 21:09:44 +0000 (14:09 -0700)]
Revert "[ARM] tegra: Enable pl310 data prefetching and prefetch offset"
This reverts commit
6c77fdda35688ae3c9d9029a9824f7cf941f348d.
Conflicts:
arch/arm/mach-tegra/common.c
Change-Id: I35858f63da5cfd00885dd765da45db39be16b8b7
James Wylder [Tue, 15 Mar 2011 23:00:34 +0000 (18:00 -0500)]
ARM: board: stingray: remove wrigley host_wake gpio
Change-Id: If9363474b5e963b4b8eec59877f10b727185d99c
Signed-off-by: James Wylder <james.wylder@motorola.com>
James Wylder [Tue, 15 Mar 2011 22:40:36 +0000 (17:40 -0500)]
radio_ctrl: remove host_wake from wrigley driver
Change-Id: I14f17eea39a4ee208b5be7b268187efe3197f619
Signed-off-by: James Wylder <james.wylder@motorola.com>
Rebecca Schultz Zavin [Mon, 21 Mar 2011 20:53:33 +0000 (13:53 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Mon, 21 Mar 2011 20:52:56 +0000 (13:52 -0700)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Chris Johnson [Wed, 16 Mar 2011 21:25:22 +0000 (14:25 -0700)]
video: tegra: cleanup debug syncpt output
In debug prints for stuck WAITs differentiate WAIT_SYNCPT
vs. WAIT_SYNCPT_BASE and fix some build warnings.
Change-Id: Ia47375614c676a9f93216fbfaaf6856c3df42e2e
Signed-off-by: Chris Johnson <cwj@nvidia.com>
Jeff Brown [Thu, 17 Mar 2011 06:17:05 +0000 (23:17 -0700)]
input: Set default events per packet for MT devices.
Use the number of ABS_MT_SLOTs or ABS_MT_TRACKING_IDs to choose a
default number of events per packet.
Signed-off-by: jeffbrown@android.com
James Wylder [Thu, 17 Mar 2011 20:14:45 +0000 (15:14 -0500)]
[ARM] tegra: stingray add LTE product id to boardfile
Change-Id: I1b746852524f50b8da8ddfa4c29ed69199a03b5b
Signed-off-by: James Wylder <james.wylder@motorola.com>
James Wylder [Thu, 17 Mar 2011 19:28:54 +0000 (14:28 -0500)]
misc: radio_ctrl: wrigley: add reset command
Change-Id: Ib0f45c1e9bf584338427e4eb7b1f23334e5c4c8e
Signed-off-by: James Wylder <james.wylder@motorola.com>
James Wylder [Fri, 11 Mar 2011 23:00:50 +0000 (17:00 -0600)]
[ARM] tegra: stingray: Samsung memory updates
Update the Samsung dvfs tables based on new measurements
from nVidia (Samsung_1GB_K4P4G154EC-FGC0_DVFS_table_K36).
Change-Id: I8659339a2c4d1306a1b9708e16617d0062dc8c40
Signed-off-by: James Wylder <james.wylder@motorola.com>
Praveen Bharathi [Tue, 15 Mar 2011 08:07:18 +0000 (03:07 -0500)]
audio: tegra: Disable SPDIF GPIO
Leaving the SPDIF GPIO unset is causing interference/audio loss
when stingray is mounted on dock connected to HMDI Monitor.
Turning off the SPDIF GPIO (which is unused in the current h/w)
gets rid of the audio pops and eventual audio loss.
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
Colin Cross [Wed, 16 Mar 2011 00:37:39 +0000 (17:37 -0700)]
misc: l3g4200d: Make enable powerup delay asynchronous
Moves enable_irq in l3g4200d_enable into a delayed work function
to avoid blocking the enable ioctl for the powerup delay.
Change-Id: Ic93a3526a452a5945e75364fe06200f5626c1eef
Signed-off-by: Colin Cross <ccross@android.com>
Rebecca Schultz Zavin [Tue, 15 Mar 2011 23:59:51 +0000 (16:59 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Tue, 15 Mar 2011 23:51:19 +0000 (16:51 -0700)]
Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36
Benoit Goby [Mon, 14 Mar 2011 22:25:15 +0000 (15:25 -0700)]
net: ppp: Reduce GFP_ATOMIC memory usage
100% of the time on stingray, only 1 skb is allocated in the
ppp_async_input loop. Pre-allocate this skb out of atomic context.
Change-Id: Iee2dd42087ea932ced589273f0cd4796711725c7
Signed-off-by: Benoit Goby <benoit@android.com>
Mike Lockwood [Mon, 14 Mar 2011 22:28:55 +0000 (18:28 -0400)]
USB: gadget: f_accessory: Add string for accessory's unique serial number
Signed-off-by: Mike Lockwood <lockwood@android.com>
James Wylder [Fri, 11 Mar 2011 20:42:56 +0000 (14:42 -0600)]
[ARM] tegra: stingray: change display EMC clock rate
With the nVidia recommended clock rates of 300, 150,
and 50, the current value (
400000000 internal rate or
200 MHz external clock rate) will round up to full speed
rather than use the intended middle rate(
300000000 or
150 MHz external memory).
This saves 10 mA at the battery, when the display is
on but during low work loads.
Change-Id: I291d758166a0e3747163c1831933da01fadb8e69
Signed-off-by: James Wylder <james.wylder@motorola.com>
Mike Lockwood [Sun, 13 Mar 2011 02:35:28 +0000 (21:35 -0500)]
USB: gadget: f_accessory: Clear disconnected flag when driver file is opened
Fixes a race condition that can occur when entering accessory mode.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Sun, 13 Mar 2011 00:59:12 +0000 (19:59 -0500)]
USB: gadget: f_accessory: Clear previous strings on ACCESSORY_GET_PROTOCOL
Clearing strings on disconnect does not work since we may receive
a disconnect on some devices when transitioning into accessory mode.
We require an accessory to send ACCESSORY_GET_PROTOCOL before
sending any strings, so any strings from a previous session will be cleared.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Thu, 10 Mar 2011 21:12:49 +0000 (16:12 -0500)]
USB: gadget: f_accessory: Clear accessory strings when USB is disconnected
Signed-off-by: Mike Lockwood <lockwood@android.com>
Dmitry Shmidt [Thu, 10 Mar 2011 18:18:39 +0000 (10:18 -0800)]
net: wireless: bcm4329: Allocate skb with GFP_KERNEL flag if possible
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Mike Lockwood [Thu, 10 Mar 2011 02:48:20 +0000 (21:48 -0500)]
USB: gadget: f_accessory: Misc improvements and cleanup:
- Add URI string
- Replace type string with a description string
- Add a control call to retrieve accessory protocol version (currently 1)
- Driver read() and write() calls now fail after USB disconnect until
driver file is closed and reopened.
- Misc cleanup work
Signed-off-by: Mike Lockwood <lockwood@android.com>
Dmitry Shmidt [Thu, 10 Mar 2011 00:52:08 +0000 (16:52 -0800)]
net: wireless: bcm4329: Disable wake irq at driver stop
Previously at driver stop interrupts were not disabled and
might cause never-ending waking up
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
makarand.karvekar [Fri, 4 Mar 2011 20:19:01 +0000 (14:19 -0600)]
[ARM]: tegra: enable gyro interrupts
initial ODR set at 100Hz
enable DRDY (data ready) interrupt in gyro
enable Block Data Update (BDU)
Change-Id: I5cd5762644aeb90db4fe66259fe0edb8324d941b
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
makarand.karvekar [Sat, 5 Mar 2011 21:47:30 +0000 (15:47 -0600)]
misc: gyro: interrupt based gyro data read and report
gyro ODR set at 100/200/400/800 Hz
closest to requested delay.
gyro data read and reported at every interrupt.
Reported rate matches the gyro ODR rate
Change-Id: I754ea31054d73863b0512607abe81f1f1dcea367
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Benoit Goby [Wed, 9 Mar 2011 20:46:18 +0000 (12:46 -0800)]
net: usb: qcusbnet: Radio not supports SetControlLineState
Change-Id: I68a751798236be0e7f7ddd54509eeac1005d953e
Signed-off-by: Srinivas Gowrishetty <srinivas.gowrishetty@motorola.com>
Jeff Brown [Fri, 4 Mar 2011 21:42:02 +0000 (13:42 -0800)]
ARM: tegra: stingray: Add CONFIG_JOYSTICK_XPAD
Rebecca Schultz Zavin [Tue, 8 Mar 2011 20:26:45 +0000 (12:26 -0800)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Tue, 8 Mar 2011 20:22:31 +0000 (12:22 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Tue, 8 Mar 2011 20:15:30 +0000 (12:15 -0800)]
Revert "Revert "tegra: host: move stale wait checking into the kernel""
This reverts commit
b3cc1d84d0b962fe80fc297d2e2417c3157508b6.
Benoit Goby [Fri, 4 Mar 2011 22:01:56 +0000 (14:01 -0800)]
mdm6600: Fix possible use after free
If a disconnect happens while the ril runs a tiocmset ioctl, the usb
interface will get freed. Then before returning, autopm_put_interface
will access the interface struct after it has been freed. Get an
interface reference to prevent it from being freed before the tty
has been released.
Change-Id: Ia009995c3fcdfa2e590b36e0c413433ea5f97b59
Signed-off-by: Benoit Goby <benoit@android.com>
Kazuhiro Ondo [Thu, 3 Mar 2011 23:33:56 +0000 (17:33 -0600)]
ARM: tegra: stingray: usbnet: sysfs attribute to identify BLAN
This is to help user spece modules to identify Motorola BLAN
networking device. Work around the issue of getting semi-random
interface number depending on the boot-up configuration.
Change-Id: Ib2b16699239a16da960c33ef98bbee84bde71dec
Signed-off-by: Kazuhiro Ondo <kazuhiro.ondo@motorola.com>
makarand.karvekar [Fri, 4 Mar 2011 16:10:13 +0000 (10:10 -0600)]
[ARM]: tegra: stingray: set backlight scaling factor
set backlight scaling factor based on display panel.
AUO scaling at 726 makes it bit more brighter
Change-Id: I568ff158f00260894d95c00ac1e96632e2636d58
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
makarand.karvekar [Fri, 4 Mar 2011 16:01:37 +0000 (10:01 -0600)]
leds: lp8550: get backlight scaling factor from platform data
backlight scaling factor varies with display panel
Change-Id: I45ea0d76526d4297412d177481acded082ce7104
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Benoit Goby [Thu, 3 Mar 2011 23:02:40 +0000 (15:02 -0800)]
net: usb: qcusbnet: Fix kernel panic on probe/disconnect
Use list_for_each_safe since the loop kfree the current list entry.
If qc_register fails, probe calls qc_deregister. qc_deregister accesses
the cdev struct, so make sure it has been initialized before returning
from qc_register.
Fix missing spin_unlock_irqrestore
Change-Id: I56db6ffaa0c7b258d383d0a6211f63318fa9c08f
Signed-off-by: Benoit Goby <benoit@android.com>
James Wylder [Thu, 3 Mar 2011 18:25:52 +0000 (12:25 -0600)]
ARM: tegra: stingray: Update Memory tables
Change all rates to integer multipliers, and
Add table for 40nm Elpida
Change-Id: Ie3a4e47948f541326da664537604e2c3061e3a92
Signed-off-by: James Wylder <james.wylder@motorola.com>
James Wylder [Wed, 2 Mar 2011 18:39:50 +0000 (12:39 -0600)]
ARM: tegra: stingray: use generic memory vendor matching
Initialize arrays to utilize new signature of tegra_init_emc.
Memory types are matched internally and command line
option is no longer needed.
Change-Id: Icc7d44e4a82031638c78eeac3b172b713e0ca97b
Signed-off-by: James Wylder <james.wylder@motorola.com>
Colin Cross [Fri, 4 Mar 2011 02:55:51 +0000 (18:55 -0800)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Colin Cross [Fri, 4 Mar 2011 02:55:38 +0000 (18:55 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
James Wylder [Tue, 1 Mar 2011 15:25:06 +0000 (09:25 -0600)]
ARM: tegra: add generic memory vendor matching
Update tegra_init_emc to provide generic memory
vendor matching. Read values from EMC_MRR_0, to
uniquely identify memory types and compare them
to table of memory passed in.
Change-Id: Ie116fa6f497076149c87ff6c0ae0621309bac65f
Signed-off-by: James Wylder <james.wylder@motorola.com>
Colin Cross [Wed, 2 Mar 2011 20:34:38 +0000 (12:34 -0800)]
ARM: tegra: Use readl/writel_relaxed for reset
tegra_assert_system_reset is called after the cache is disabled.
Calling writel will cause the PL310 store buffers to be drained,
which requires taking a spinlock. Taking a spinlock is not safe
after the caches are disabled. Convert to readl_relaxed and
writel_relaxed.
Change-Id: I6850179b931ca865580c0fd3fe003b46bdfa43ae
Signed-off-by: Colin Cross <ccross@android.com>