firefly-linux-kernel-4.4.55.git
13 years agoRevert "usb: core: Temporary workaround for usb auto-suspend issue"
Paul Eastham [Sun, 12 Dec 2010 17:23:27 +0000 (09:23 -0800)]
Revert "usb: core: Temporary workaround for usb auto-suspend issue"

This reverts commit 463100c1cedd5684188c8d5ece84c4af6dd42090.

Signed-off-by: Paul Eastham <eastham@google.com>
13 years ago[ARM] configs: Turn on SHA256 hashing.
Ken Sumrall [Sat, 11 Dec 2010 00:48:33 +0000 (16:48 -0800)]
[ARM] configs: Turn on SHA256 hashing.

Encrypting /data requires the SHA256 hash.

Signed-off-by: Ken Sumrall <ksumrall@android.com>
13 years ago[ARM] configs: Change stingray_defconfig to a proper minimal defconfig
Ken Sumrall [Sat, 11 Dec 2010 00:38:30 +0000 (16:38 -0800)]
[ARM] configs: Change stingray_defconfig to a proper minimal defconfig

This defconfig was made like this:
  make mrproper; make stingray_defconfig; make savedefconfig

Change-Id: Iaef4f82a37fd9a9c91ea8aea7ab10e868b00b8d2
Signed-off-by: Ken Sumrall <ksumrall@android.com>
13 years agoARM: tegra: stingray: fix defconfig warning
Dima Zavin [Thu, 9 Dec 2010 00:33:46 +0000 (16:33 -0800)]
ARM: tegra: stingray: fix defconfig warning

Change-Id: I33648de6d29ad5f00c14835b92cb9c050fccd710
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoARM: tegra: stingray: add newlines to gps log msgs
Dima Zavin [Thu, 9 Dec 2010 00:24:31 +0000 (16:24 -0800)]
ARM: tegra: stingray: add newlines to gps log msgs

Change-Id: I45348ae5f1046427b2458fd60dfbfc195db3fe45
Signed-off-by: Dima Zavin <dima@android.com>
13 years ago[ARM] mfd: cpcap: Reduce audio dock pops
Chris Fries [Tue, 7 Dec 2010 18:26:32 +0000 (12:26 -0600)]
[ARM] mfd: cpcap:  Reduce audio dock pops

Manage the audio dock and CPCAP Audio state tightly, to
avoid pops on the (amplified) docks.

Change-Id: Ie687b8fc19892eb1ea56f8aed2be78d2a4dcb334
Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agoMerge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Colin Cross [Thu, 9 Dec 2010 03:55:07 +0000 (19:55 -0800)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36

13 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Thu, 9 Dec 2010 03:54:37 +0000 (19:54 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agoMerge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Thu, 9 Dec 2010 03:54:28 +0000 (19:54 -0800)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36

13 years agomedia: video: tegra: avp_svc: Force memory bus to full when avp is enabled
Colin Cross [Wed, 8 Dec 2010 02:47:38 +0000 (18:47 -0800)]
media: video: tegra: avp_svc: Force memory bus to full when avp is enabled

Change-Id: I51382f58f296df939f99d60926ba97f0b4e04aed
Signed-off-by: Colin Cross <ccross@android.com>
13 years agovideo: tegra: dc: Force memory bus to full when display is enabled
Colin Cross [Tue, 23 Nov 2010 02:54:53 +0000 (18:54 -0800)]
video: tegra: dc: Force memory bus to full when display is enabled

Change-Id: Ia9dfef275561fdb3b6f0a37ae0535684a60cb63e
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: cpufreq: Adjust memory frequency with cpu frequency
Colin Cross [Tue, 23 Nov 2010 02:54:36 +0000 (18:54 -0800)]
ARM: tegra: cpufreq: Adjust memory frequency with cpu frequency

Change-Id: I08c64f64a12bcb11e7c0e466fa77fe971e4b2cba
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: dvfs: Add emc clock to dvfs table
Colin Cross [Sun, 5 Dec 2010 04:33:49 +0000 (20:33 -0800)]
ARM: tegra: dvfs: Add emc clock to dvfs table

Change-Id: Id93dcd0f4cac3164ab776bc4e68d836724b59bee
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: clocks: Add emc scaling
Colin Cross [Tue, 23 Nov 2010 02:37:54 +0000 (18:37 -0800)]
ARM: tegra: clocks: Add emc scaling

Change-Id: Ica5ee704dd35b5fbf02d8c030a8578d5e8694839
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: Add external memory controller driver
Colin Cross [Fri, 3 Dec 2010 23:29:52 +0000 (15:29 -0800)]
ARM: tegra: Add external memory controller driver

Change-Id: Idcef38723b504719a09537612f2f94ad163844f5
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: clock: Round rate before dvfs
Colin Cross [Wed, 8 Dec 2010 02:24:55 +0000 (18:24 -0800)]
ARM: tegra: clock: Round rate before dvfs

Call the clock's round_rate op, if it exists, before setting
dvfs rate.  Ensures dvfs is set to the rate the clock will
be at after the later call to set_rate.

Change-Id: I4c8e85991238492adc3c37aed57c7269f3b41a2c
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoRevert "futex: Restore one of the fast paths eliminated by 38d47c1b7075bd7ec3881141bb...
Dima Zavin [Tue, 7 Dec 2010 00:31:53 +0000 (16:31 -0800)]
Revert "futex: Restore one of the fast paths eliminated by 38d47c1b7075bd7ec3881141bb3629da58f88dab"

This reverts commit cb93471ed5d924b6efdfe5d0215668a9b4b91c21.

Change-Id: I7f0b45c29b3b91ba5282c51eb6b315d70ac6c813
Signed-off-by: Dima Zavin <dima@android.com>
13 years ago[ARM] tegra: stingray: Add callback to indicate rx is done.
Jaikumar Ganesh [Wed, 8 Dec 2010 01:00:04 +0000 (17:00 -0800)]
[ARM] tegra: stingray: Add callback to indicate rx is done.

Change-Id: I2052e6bdd8d29371a63445695dc56aef505f000d
Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
13 years agomedia: video: tegra: ov5650: adding group hold
Chien-Yu Chen [Fri, 3 Dec 2010 03:34:36 +0000 (19:34 -0800)]
media: video: tegra: ov5650: adding group hold

Adding group hold registers when setting the frame length to
make sure all frame length settings are applied at the same
time.

Change-Id: I52b30bce90c049490b59f3e48d9925523b18b10c

13 years agoMerge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Tue, 7 Dec 2010 20:05:41 +0000 (12:05 -0800)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36

13 years agoMerge remote branch 'common/android-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Tue, 7 Dec 2010 20:01:42 +0000 (12:01 -0800)]
Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36

13 years agonet: wireless: bcm4329: Add CONFIG_FIRST_SCAN option
Greg Goldman [Tue, 7 Dec 2010 18:06:32 +0000 (10:06 -0800)]
net: wireless: bcm4329: Add CONFIG_FIRST_SCAN option

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agoMerge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Tue, 7 Dec 2010 03:37:29 +0000 (19:37 -0800)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36

13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Tue, 7 Dec 2010 03:35:21 +0000 (19:35 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agovideo: tegra: nvmap: Clear handle->owner on release
Robert Morell [Tue, 7 Dec 2010 01:32:01 +0000 (17:32 -0800)]
video: tegra: nvmap: Clear handle->owner on release

A struct nvmap_handle may be shared by multiple clients.  If the
original client (the handle "owner") is destroyed, but the handle is
still referenced by other clients, h->owner points to freed memory.  To
prevent this, clear h->owner when the owner frees its reference to that
struct nvmap_handle.

Change-Id: I54722091568ce2058f5988e5f6e00e68605a8100
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
13 years agovideo: tegra: nvmap: Fix per client accounting
Rebecca Schultz Zavin [Tue, 16 Nov 2010 01:02:16 +0000 (17:02 -0800)]
video: tegra: nvmap: Fix per client accounting

Fix the way the total number of carveout allocations is
managed per client.

Change-Id: I3e12e2a98a74cafc1f4c51a48e3c3c549e930160
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
13 years agoMerge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Iliyan Malchev [Tue, 7 Dec 2010 02:31:10 +0000 (18:31 -0800)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36

13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Iliyan Malchev [Tue, 7 Dec 2010 02:23:21 +0000 (18:23 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agoMerge remote branch 'common/android-2.6.36' into android-tegra-2.6.36
Iliyan Malchev [Tue, 7 Dec 2010 02:22:59 +0000 (18:22 -0800)]
Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36

13 years ago[ARM] tegra: spdif/i2s audio: fixes
Chris Fries [Sun, 5 Dec 2010 03:49:46 +0000 (21:49 -0600)]
[ARM] tegra: spdif/i2s audio: fixes

-- release can take a long time

Releasing the out file handles can take a long time, because
we wait for a stop completion that may never arrive.

-- fix possible dma list corruption

If things have gone wrong and a "wait_till_stopped()" times
out, prevent list corrption in the DMA by dequeing any
queued requests.

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra: stingray: Add optional low power mode callbacks.
Jaikumar Ganesh [Mon, 6 Dec 2010 21:52:44 +0000 (13:52 -0800)]
[ARM] tegra: stingray: Add optional low power mode callbacks.

Change-Id: Ia9821142252f6df8d81ec6356c6b2126f5d8d508
Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
13 years ago[ARM] tegra: enable led pwm mode for p3+ stingray
Sergey Kudakov [Wed, 1 Dec 2010 00:13:17 +0000 (18:13 -0600)]
[ARM] tegra: enable led pwm mode for p3+ stingray

Change-Id: Iecf2b040acef4670df61889da30d0b3256ba2d0a
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
13 years agomisc: kxtf9: Return success in resume if no enable necessary.
Andrei Warkentin [Mon, 6 Dec 2010 22:12:05 +0000 (16:12 -0600)]
misc: kxtf9: Return success in resume if no enable necessary.

Resume handler would return -1 if no enabling was necessary.

Change-Id: Ia4d21df8f630386b621181935743bb4d7a0f6380
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
13 years agomdm6600: Workqueue worker missing synchronization
Andrei Warkentin [Sat, 4 Dec 2010 02:11:21 +0000 (20:11 -0600)]
mdm6600: Workqueue worker missing synchronization

Didn't take into account concurrent execution on mutliple
cores, since global queue is not WQ_NON_REENTRANT. Use
non-reentrant system queue instead now.

Change-Id: Id5b31f7ba344f6e0f0ba63364171d16fd55b90ef
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
13 years agotegra: video: host: remove cancelled actions at power down
Varun Wadekar [Tue, 23 Nov 2010 14:13:43 +0000 (19:43 +0530)]
tegra: video: host: remove cancelled actions at power down

Change-Id: I2a82ecadafacec53990db25cb456809dbffd999b
Author: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years agotegra: video: host: reset syncpoints on host initialization
Varun Wadekar [Wed, 24 Nov 2010 08:42:30 +0000 (14:12 +0530)]
tegra: video: host: reset syncpoints on host initialization

Added syncpoints reset to host initialization, to synchronize h/w state
with shadow variables.

Change-Id: Ia0a3a644dc5b30ef98158906bcc96954d1c613ff
Author: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years agovideo: tegra: host: Added nvhost resume.
Varun Wadekar [Tue, 23 Nov 2010 11:55:32 +0000 (17:25 +0530)]
video: tegra: host: Added nvhost resume.

Added nvhost device resume function, and moved syncpoints restoration
here from run-time power_host() control. Respectively added syncpoints
saving to nvhost suspend procedure. This change is required, since
power_host() has no way to account for display advancing syncpoints
after they have been already saved.

Change-Id: I2b5452dd4512c7ea16532d28a2d2894ab88929ca
Author: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years agovideo: tegra: nvmap: Fix per client accounting
Rebecca Schultz Zavin [Tue, 16 Nov 2010 01:02:16 +0000 (17:02 -0800)]
video: tegra: nvmap: Fix per client accounting

Fix the way the total number of carveout allocations is
managed per client.

Change-Id: I3e12e2a98a74cafc1f4c51a48e3c3c549e930160
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
13 years ago[ARM] tegra: ventana: fix gpio key for menu options
Varun Wadekar [Mon, 6 Dec 2010 09:44:21 +0000 (15:14 +0530)]
[ARM] tegra: ventana: fix gpio key for menu options

Change-Id: Ia6e5f92fa6f965832546dde95e10b00419396386
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years agoregulator: tps6586x: Handle both enable reg/bits being the same
Danny Huang [Wed, 1 Dec 2010 20:37:30 +0000 (13:37 -0700)]
regulator: tps6586x: Handle both enable reg/bits being the same

Change-Id: I40400bb65eab496bb1becd26b37a9653b99d4f41
Signed-off-by: Danny Huang <dahuang@nvidia.com>
Signed-off-by: Olof Johansson <olofj@chromium.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  (Split into separate patches)
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
13 years agoregulator: tps6586x: correct register table
Danny Huang [Wed, 1 Dec 2010 20:37:31 +0000 (13:37 -0700)]
regulator: tps6586x: correct register table

Correct the register table for SM2, LDO8, RTC

Change-Id: I45348cec5ffbb7da9bd7523764fb611b537236b8
Signed-off-by: Danny Huang <dahuang@nvidia.com>
Signed-off-by: Olof Johansson <olofj@chromium.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
13 years agoregulator: tps6586x: Add missing bit mask generation
Danny Huang [Wed, 1 Dec 2010 20:37:28 +0000 (13:37 -0700)]
regulator: tps6586x: Add missing bit mask generation

Change-Id: I76eaceb31b56264f6978af15db1e6fc7e2e01b5a
Signed-off-by: Danny Huang <dahuang@nvidia.com>
Signed-off-by: Olof Johansson <olofj@chromium.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  (Split into separate patches)
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
13 years agoregulator: tps6586x: Fix TPS6586X_DVM to store goreg/bit
Danny Huang [Wed, 1 Dec 2010 20:37:29 +0000 (13:37 -0700)]
regulator: tps6586x: Fix TPS6586X_DVM to store goreg/bit

Change-Id: Idacf5e1e51dbbbcd5ea93f310a4e907977e7359e
Signed-off-by: Danny Huang <dahuang@nvidia.com>
Signed-off-by: Olof Johansson <olofj@chromium.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  (Split into separate patches)
  (Minor formatting fixes)
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
13 years agoImprove front camera low light performance IKXEVEREST-1755
John Kramer [Sat, 4 Dec 2010 15:30:00 +0000 (09:30 -0600)]
Improve front camera low light performance IKXEVEREST-1755

Change-Id: Iaaf4c626fbaa338ead54ca070d96f09883a397ca
Signed-off-by: John Kramer <john.kramer@motorola.com>
13 years agoRevert "usb: host: tegra: Remove programing PTC bits based on bus speed."
Benoit Goby [Fri, 3 Dec 2010 22:59:55 +0000 (14:59 -0800)]
Revert "usb: host: tegra: Remove programing PTC bits based on bus speed."

This reverts commit 91e80b79243c1b6341c1a8d6e8e5e872b837bfea.

This is needed to resume usb from lp0

13 years ago[ARM] tegra: cpufreq: Support for tegra cpu throttling
Dmitriy Gruzman [Mon, 29 Nov 2010 21:06:26 +0000 (15:06 -0600)]
[ARM] tegra: cpufreq: Support for tegra cpu throttling

Change-Id: I28d69d22437b6ba2d22e4ce12746630786006071
Signed-off-by: Dmitriy Gruzman <dmitriy.gruzman@motorola.com>
13 years agousb: gadget: Multiple ACM gadget instances
John Michelau [Tue, 9 Nov 2010 00:05:37 +0000 (18:05 -0600)]
usb: gadget: Multiple ACM gadget instances

- Added multiple ACM instance support in Android gadget
- Fixed multiple instance naming issue in ACM function
- Increased max instances from 4 to 8

Change-Id: I65f1b0be94da859bab7ec0ad7cd804b896c7c4c5
Signed-off-by: John Michelau <john.michelau@motorola.com>
13 years agousb: gadget: Fixed Android gadget function discovery & product matching
John Michelau [Tue, 30 Nov 2010 21:36:29 +0000 (15:36 -0600)]
usb: gadget: Fixed Android gadget function discovery & product matching

- Don't bind until all required functions have registered
- Consider multi-instance functions when matching products

Change-Id: I6fa10567db71d49cd81968c01d75e326ff9a17c8
Signed-off-by: John Michelau <john.michelau@motorola.com>
13 years agoMerge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Sat, 4 Dec 2010 00:09:08 +0000 (16:09 -0800)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36

13 years agoMerge remote branch 'common/android-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Sat, 4 Dec 2010 00:00:06 +0000 (16:00 -0800)]
Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36

13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Fri, 3 Dec 2010 23:59:54 +0000 (15:59 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agonet: wireless: bcm4329: Fix memory leak in case of dhd_bus_init() failure
Dmitry Shmidt [Fri, 3 Dec 2010 22:52:13 +0000 (14:52 -0800)]
net: wireless: bcm4329: Fix memory leak in case of dhd_bus_init() failure

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agousb: gadget: fsl_udc: Fix a race between ep_disable and ep_queue
Benoit Goby [Fri, 3 Dec 2010 00:11:15 +0000 (16:11 -0800)]
usb: gadget: fsl_udc: Fix a race between ep_disable and ep_queue

Fixed a possible null pointer exception when an endpoint gets
disabled while a request is being enqueued in parallel.

Unmap the request buffer if we fail to enqueue the request.

Change-Id: If94cc278c2e6ab58adcf170511e676348365f3f9
Signed-off-by: Benoit Goby <benoit@android.com>
13 years agoinput: touchscreen: qtouch: Recalibrate on resume
Mike Corrigan [Fri, 3 Dec 2010 19:33:35 +0000 (13:33 -0600)]
input: touchscreen: qtouch: Recalibrate on resume

Added a forced calibration on resume.

Change-Id: I74512e088452a9fc9c3dabcf385c4e6151280868
Signed-off-by: Mike Corrigan <michael.corrigan@motorola.com>
13 years ago[ARM]: tegra: stingray: touch screen
Mike Corrigan [Fri, 3 Dec 2010 19:36:36 +0000 (13:36 -0600)]
[ARM]: tegra: stingray: touch screen

Noise suppression tuning:
 T8 = GEN ACQUIRE CONFIG OBJECT
 TCHAUTOCAL = 0x4B
 ATCHCALFRCRATIO = 0x10

Change-Id: I17004272e15d7f4a833b4d346f8c44b204d90b40
Signed-off-by: Mike Corrigan <michael.corrigan@motorola.com>
13 years agomisc: cap_prox: Remove log spam
Rebecca Schultz Zavin [Fri, 3 Dec 2010 20:48:05 +0000 (12:48 -0800)]
misc: cap_prox: Remove log spam

Make messages print only if the debug flag is enabled

Change-Id: I998c69249a07d33189c95c553da55f85c47e59e7
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
13 years agocpufreq interactive governor save/restore IRQs around cpumask spinlocks
Todd Poynor [Fri, 3 Dec 2010 19:20:09 +0000 (11:20 -0800)]
cpufreq interactive governor save/restore IRQs around cpumask spinlocks

Need to use irqsave/restore spin locking for cpumasks since these
are accessed in timers and in thread context.

Change-Id: I4a53eaf0ced7e73b445feddba90ec11482de9126
Signed-off-by: Todd Poynor <toddpoynor@google.com>
13 years agomisc: kxtf9: If enabled before suspend, reenable
Kazuhiro Ondo [Tue, 30 Nov 2010 04:03:00 +0000 (22:03 -0600)]
misc: kxtf9: If enabled before suspend, reenable

If the sensor were enabled on suspend, reenable it on resume.
Without this change the sensor stops sending data if it were kept
open across suspend and resume.

Commit for Ken Hu <jian-wu.hu@motorola.com>

Change-Id: Ifea2c8ed30d350a5e41d73a530faa89c1e4b5f2b
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
13 years agostingray: Set AP to QCOM BP status pins for BP USB HW Bypass
John Michelau [Mon, 29 Nov 2010 23:21:51 +0000 (17:21 -0600)]
stingray: Set AP to QCOM BP status pins for BP USB HW Bypass

The AP status pins must be set properly to tell the BP that
we've booted into BP USB HW Bypass mode. They were previously
set incorrectly, which was preventing the BP from going
online automatically as it should.

Change-Id: Ic60bea141f6d5be270cdabb83fd4f38c7bdf8de7
Signed-off-by: John Michelau <john.michelau@motorola.com>
13 years agoARM: Stingray: Make interactive cpufreq governor available
Todd Poynor [Fri, 3 Dec 2010 01:47:22 +0000 (17:47 -0800)]
ARM: Stingray: Make interactive cpufreq governor available

Not enabled by default in kernel and not enabled by
Android userspace.

Change-Id: I3372bf9e482c86f91a0da6d02f8c65fc6c1842b1
Signed-off-by: Todd Poynor <toddpoynor@google.com>
13 years agonet: wireless: bcm4329: Fix driver 'start' retry ability
Dmitry Shmidt [Fri, 3 Dec 2010 00:33:41 +0000 (16:33 -0800)]
net: wireless: bcm4329: Fix driver 'start' retry ability

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agoRevert "ARM: tegra: stingray: Enable core dvfs in defconfig"
Colin Cross [Fri, 3 Dec 2010 00:45:16 +0000 (16:45 -0800)]
Revert "ARM: tegra: stingray: Enable core dvfs in defconfig"

This reverts commit 9a56852af08b1ac8a84db5b65c495ed5d2f7bcf9.

13 years agonet: wireless: bcm4329: Fix watchdog syncronization during start/stop
Dmitry Shmidt [Wed, 1 Dec 2010 22:22:52 +0000 (14:22 -0800)]
net: wireless: bcm4329: Fix watchdog syncronization during start/stop

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agovideo: tegra: fix DC_CMD_STATE_CONTROL_UPDATE register values
Michael I. Gold [Thu, 2 Dec 2010 08:55:13 +0000 (00:55 -0800)]
video: tegra: fix DC_CMD_STATE_CONTROL_UPDATE register values

Change-Id: I4a3e009244b7894e02f9fa440ea8e65578e451f0
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agoARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=n
Andrei Warkentin [Fri, 19 Nov 2010 22:10:08 +0000 (16:10 -0600)]
ARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=n

Change-Id: I85c3a98d0c9f61153969649bb9de20a9158e9ee4
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
13 years ago[ARM] tegra_i2s_audio: don't turn off hardware during over/underflow
Chris Fries [Thu, 2 Dec 2010 20:37:47 +0000 (14:37 -0600)]
[ARM] tegra_i2s_audio: don't turn off hardware during over/underflow

-- Leave I2S running during underflow, for a couple of reasons.
   First, the I2S buffers a few samples, and if we get a new write
   before those samples are flushed, we will keep continuous audio
   Second, we burn CPU time stopping and restarting the HW
   frequently.

-- Fix TEGRA_AUDIO_IN/OUT_GET/SET_NUM_BUFS, was causing DMA to
   read/write to null HW address.

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] mfd: cpcap-audio: Remove log spam
Chris Fries [Thu, 2 Dec 2010 20:35:42 +0000 (14:35 -0600)]
[ARM] mfd: cpcap-audio: Remove log spam

Remove logs about turning audio paths on/off, they are normally
not interesting.

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra: dma: Remove spam log
Chris Fries [Thu, 2 Dec 2010 20:22:02 +0000 (14:22 -0600)]
[ARM] tegra: dma: Remove spam log

"Interrupt during enqueue" happens periodically when the
DMA is almost starving.  This happens under certain not-
uncommon scenarios.

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra: board-stingray: rearrange audio-clock sources
Iliyan Malchev [Mon, 29 Nov 2010 22:57:42 +0000 (14:57 -0800)]
[ARM] tegra: board-stingray: rearrange audio-clock sources

-- Setting pll_a to 11.2896MHz breaks S/PDIF audio.  Setting it to
   56.448MHz fixes the problem.  This was working before because the
   pll_a settings were broken and attempting to set pll_a to
   11.2896MHz actually set it implcitly to 56.448MHz instead.
-- Reparent i2s.1 and i2s.2 to pll_p so that we can set them to 24MHz
   and 2MHz respectively.  This allows i2s.2 to talk to the Bluetooth
   controller at 8kHz glitch-free.
-- Remove initialization entries for clocks "audio" and "audio_2x";
   these clocks are not used by the audio driver any more.

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] mfd: cpcap: Tune the STDAC enable time
Chris Fries [Mon, 29 Nov 2010 21:45:05 +0000 (15:45 -0600)]
[ARM] mfd: cpcap: Tune the STDAC enable time

Some sounds (Camcorder start, Audible Selections) are quiet
when the hardware is being turned on from an off state.
These sounds have most of their energy in the first 100
msec and it takes this long for STDAC to warm up.  Add a
short delay to the Stereo DAC enable for ST Micro devices.

Also, fix a checkpatch complaint.

Change-Id: I71fc9c8be3a6378e4b90613e0f4a3d03941116d1
Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra: add cap-prox platform data config settings
makarand.karvekar [Mon, 18 Oct 2010 22:54:33 +0000 (17:54 -0500)]
[ARM] tegra: add cap-prox platform data config settings

Change-Id: Ifac36a5eaff5d9c853c89bf0af6adf084e4e25e7
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
13 years ago[ARM] tegra: stingray: Enable cap-prox calibration driver
makarand.karvekar [Mon, 18 Oct 2010 22:56:47 +0000 (17:56 -0500)]
[ARM] tegra: stingray: Enable cap-prox calibration driver

Change-Id: I88952498560e4f1e919d86caf824f020ec6dc605
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
13 years agomisc: add capacitive proximity calibration driver
makarand.karvekar [Thu, 21 Oct 2010 20:23:23 +0000 (15:23 -0500)]
misc: add capacitive proximity calibration driver

capacitive proximity(cap-prox) calibration scheme to rule out
proximity detection due to some light conductive surfaces as device
covers and table-top.

Change-Id: I64d566a168befb82a610de6094044eeca294c6c4
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
13 years agoleds: cpcap: Add "blink" device file to control LED blinking
Mike Lockwood [Wed, 1 Dec 2010 16:16:05 +0000 (11:16 -0500)]
leds: cpcap: Add "blink" device file to control LED blinking

To avoid permission problems using the LED class trigger files

Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoRevert "leds: cpcap: HACK: turn off led for brightness of 0 and 1."
Colin Cross [Thu, 2 Dec 2010 02:34:00 +0000 (18:34 -0800)]
Revert "leds: cpcap: HACK: turn off led for brightness of 0 and 1."

This reverts commit d791b66f35e963d6b50d9f6809198d94ddd5bb1c.

13 years agoARM: tegra: stingray: Enable core dvfs in defconfig
Colin Cross [Wed, 1 Dec 2010 00:56:35 +0000 (16:56 -0800)]
ARM: tegra: stingray: Enable core dvfs in defconfig

Change-Id: Icacb9082a63169a7262347a379c4f183ea774e58
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: stingray: Disable core dvfs on P1 hardware
Colin Cross [Wed, 1 Dec 2010 23:59:27 +0000 (15:59 -0800)]
ARM: tegra: stingray: Disable core dvfs on P1 hardware

Change-Id: I719d2be38d33ee6ed53fc6975f06b0b8bef5bd48
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: stingray: Remove suspend voltage on vdd_cpu
Colin Cross [Wed, 1 Dec 2010 02:15:23 +0000 (18:15 -0800)]
ARM: tegra: stingray: Remove suspend voltage on vdd_cpu

Change-Id: I64de81d0ebb29fbe5f48389e4d343f359dfd3ccb
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: stingray: Add vdd_aon regulator
Colin Cross [Fri, 19 Nov 2010 23:30:22 +0000 (15:30 -0800)]
ARM: tegra: stingray: Add vdd_aon regulator

Change-Id: I511bc28da3b82f5a1503c75047c326fdc1f6f7cf
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoMerge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Colin Cross [Thu, 2 Dec 2010 02:27:33 +0000 (18:27 -0800)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36

13 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Thu, 2 Dec 2010 02:27:24 +0000 (18:27 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agoMerge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Thu, 2 Dec 2010 02:27:19 +0000 (18:27 -0800)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36

13 years agoARM: tegra: dvfs: Allow boot or run time disabling of dvfs rails
Colin Cross [Wed, 1 Dec 2010 23:45:30 +0000 (15:45 -0800)]
ARM: tegra: dvfs: Allow boot or run time disabling of dvfs rails

Change-Id: Ie56cbf4ade1bbdb5835851f3c09668c1e0941a2c
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: Add dvfs rails
Colin Cross [Fri, 19 Nov 2010 23:38:32 +0000 (15:38 -0800)]
ARM: tegra: Add dvfs rails

The previous version of dvfs handled requirements between two
different voltage rails by using two sets of dvfs tables, one
for each rail.  That method fails for vdd_aon, which must be
within 170 mV of vdd_core.

Instead, have each dvfs clock only set the voltage rail that
it directly depends on, and add a relationship system to the
voltage rails.  When the voltage changes on one rail, it calls
update on all the rails that depend on it.  The dependent rails
compare the new voltage of the original rail to their own
voltage, and update their own voltage as necessary.

Change-Id: I17b30a61c7c0c01e44702ab486238789abd47330
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoRevert "ARM: tegra: dvfs: Fix locking on external dvfs calls"
Colin Cross [Wed, 10 Nov 2010 03:44:20 +0000 (19:44 -0800)]
Revert "ARM: tegra: dvfs: Fix locking on external dvfs calls"

This reverts commit f58886c359db3c5056fea2d1a41d297f19e9f585.

Change-Id: Ie88d8f79db9bf958fc3b9f261d74d031785161d0

13 years agovideo: tegra: fix vblank detection
Erik Gilling [Thu, 2 Dec 2010 01:55:06 +0000 (17:55 -0800)]
video: tegra: fix vblank detection

Change-Id: Ib74cbbb0d703c782f64f93930cd234359107021c
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agoext4: initialize the percpu counters before replaying the journal
Theodore Ts'o [Wed, 3 Nov 2010 16:03:21 +0000 (12:03 -0400)]
ext4: initialize the percpu counters before replaying the journal

We now initialize the percpu counters before replaying the journal,
but after the journal, we recalculate the global counters, to deal
with the possibility of the per-blockgroup counts getting updated by
the journal replay.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
13 years agofuse: fix attributes after open(O_TRUNC)
Ken Sumrall [Wed, 24 Nov 2010 20:57:00 +0000 (12:57 -0800)]
fuse: fix attributes after open(O_TRUNC)

The attribute cache for a file was not being cleared when a file is opened
with O_TRUNC.

If the filesystem's open operation truncates the file ("atomic_o_trunc"
feature flag is set) then the kernel should invalidate the cached st_mtime
and st_ctime attributes.

Also i_size should be explicitly be set to zero as it is used sometimes
without refreshing the cache.

Signed-off-by: Ken Sumrall <ksumrall@android.com>
Cc: Anfei <anfei.zhou@gmail.com>
Cc: "Anand V. Avati" <avati@gluster.com>
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 years agomisc: ts27010: Propogate Error to Userspace on USB disconnect
Amol Bhatkar--NJ05 [Wed, 24 Nov 2010 01:31:13 +0000 (17:31 -0800)]
misc: ts27010: Propogate Error to Userspace on USB disconnect

- Propogate error to userspace on ttyUSB disconnect
- Set Mux open/disconnect retry to 1 to reduce recovery time.

Change-Id: I2b381299d36660480cfc60faffeb710685ccaaf8
Signed-off-by: Amol Bhatkar <amolbhatkar@motorola.com>
13 years agoARM: tegra: clock: Allow any clock to be a shared clock
Colin Cross [Tue, 23 Nov 2010 02:32:39 +0000 (18:32 -0800)]
ARM: tegra: clock: Allow any clock to be a shared clock

Change-Id: I7e6be30c7870e8b00a165f99655cd95b917fc6db
Signed-off-by: Colin Cross <ccross@android.com>
13 years agocpufreq: interactive: New 'interactive' governor
Mike Chan [Tue, 22 Jun 2010 18:26:45 +0000 (11:26 -0700)]
cpufreq: interactive: New 'interactive' governor

This governor is designed for latency-sensitive workloads, such as
interactive user interfaces.  The interactive governor aims to be
significantly more responsive to ramp CPU quickly up when CPU-intensive
activity begins.

Existing governors sample CPU load at a particular rate, typically
every X ms.  This can lead to under-powering UI threads for the period of
time during which the user begins interacting with a previously-idle system
until the next sample period happens.

The 'interactive' governor uses a different approach. Instead of sampling
the CPU at a specified rate, the governor will check whether to scale the
CPU frequency up soon after coming out of idle.  When the CPU comes out of
idle, a timer is configured to fire within 1-2 ticks.  If the CPU is very
busy from exiting idle to when the timer fires then we assume the CPU is
underpowered and ramp to MAX speed.

If the CPU was not sufficiently busy to immediately ramp to MAX speed, then
the governor evaluates the CPU load since the last speed adjustment,
choosing the highest value between that longer-term load or the short-term
load since idle exit to determine the CPU speed to ramp to.

A realtime thread is used for scaling up, giving the remaining tasks the
CPU performance benefit, unlike existing governors which are more likely to
schedule rampup work to occur after your performance starved tasks have
completed.

The tuneables for this governor are:
/sys/devices/system/cpu/cpufreq/interactive/min_sample_time:
The minimum amount of time to spend at the current frequency before
ramping down. This is to ensure that the governor has seen enough
historic CPU load data to determine the appropriate workload.
Default is 80000 uS.
/sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
The CPU load at which to ramp to max speed.  Default is 85.

Change-Id: Ib2b362607c62f7c56d35f44a9ef3280f98c17585
Signed-off-by: Mike Chan <mike@android.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Bug: 3152864

13 years agoMerge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Erik Gilling [Wed, 1 Dec 2010 21:47:08 +0000 (13:47 -0800)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36

Change-Id: I89b84ed867e185ad25c5955f3de946fcbc254b75

13 years agoMerge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Erik Gilling [Wed, 1 Dec 2010 21:45:02 +0000 (13:45 -0800)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36

Change-Id: I27504990282eccc4dd6edd16768ae32ad3e4380c

13 years agovideo: tegra: set up high priority on all overlays
Erik Gilling [Wed, 1 Dec 2010 21:31:36 +0000 (13:31 -0800)]
video: tegra: set up high priority on all overlays

this drastically reduces display controller underruns

Change-Id: I7d57c53cf61db4aac5d1baeb0e31b3a5d6fe9e67
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agoARM: tegra: enable emc clock updates after lp0
James Wylder [Sat, 20 Nov 2010 00:12:00 +0000 (18:12 -0600)]
ARM: tegra: enable emc clock updates after lp0

Write a dummy value to EMC_MRW_0 to allow
clock frequency changes after lp0.

Change-Id: I2218967eaf9698eef6dcfe2e3edd89fbce2ebf1a
Signed-off-by: James Wylder <james.wylder@motorola.com>
13 years ago[ARM] tegra: ventana: fix volume up gpio
Varun Wadekar [Thu, 25 Nov 2010 11:26:16 +0000 (16:56 +0530)]
[ARM] tegra: ventana: fix volume up gpio

Change-Id: Ie0e25ee8074f4625feb7473f4d5ce759597ed035
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years ago[ARM] tegra2_clocks: remove incorrectly-defined frequencies
Iliyan Malchev [Mon, 29 Nov 2010 21:38:19 +0000 (13:38 -0800)]
[ARM] tegra2_clocks: remove incorrectly-defined frequencies

Definitions for 11.2896MHz and 12.288MHz were incorrect.  These
frequencies can be still requested through pll_a_out0.

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra_i2s_audio: remove unnecessary clocks
Iliyan Malchev [Wed, 1 Dec 2010 00:27:17 +0000 (16:27 -0800)]
[ARM] tegra_i2s_audio: remove unnecessary clocks

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agomfd: cpcap-3mm5: Fix for missing key event on resume
Greg Meiste [Mon, 29 Nov 2010 21:52:46 +0000 (15:52 -0600)]
mfd: cpcap-3mm5: Fix for missing key event on resume

The key_handler was checking the sense bits to see whether a press
or release occurred.  The problem with this is it takes so long to
resume from LP0/LP1, that the key state could have changed again
before the handler has even ran.  The driver would see the key was
currently released, which was the same state it last reported, and
not send a new event.

This patch changes the handler so it does not check the sense bits.
It simply sends a press when the MB2 interrupt occurs and a release
when the MACRO_5 interrupt occurs.

This fixes the kernel portion of bug 3225781.

Change-Id: I38a89417a0053315c93dc6c696a34a8974252d2a
Signed-off-by: Greg Meiste <w30289@motorola.com>
13 years ago[ARM] tegra: stingray: Improve ALS reporting accuracy
Praveen Bharathi [Wed, 24 Nov 2010 03:49:45 +0000 (21:49 -0600)]
[ARM] tegra: stingray: Improve ALS reporting accuracy

Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>