firefly-linux-kernel-4.4.55.git
13 years agotegra sdhci: Enable/disable SDCLK source in set_clock host_op
Todd Poynor [Mon, 11 Oct 2010 22:31:42 +0000 (15:31 -0700)]
tegra sdhci: Enable/disable SDCLK source in set_clock host_op

Now with 100% more LP0 suspend support.  sdhci_resume_host accesses
the SDHCI controller, so enable the sdmmc<n> clock at resume, and
let the MMC card layer tell us (later on) whether SDCLK is needed or
not.

Change-Id: Ia66e54e93f607d03053315fdc3b9a0e9bea29b68
Signed-off-by: Todd Poynor <toddpoynor@google.com>
13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Dima Zavin [Mon, 8 Nov 2010 22:53:44 +0000 (14:53 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agomedia: video: tegra: add ref count for remote clock requests
Dima Zavin [Mon, 8 Nov 2010 21:55:34 +0000 (13:55 -0800)]
media: video: tegra: add ref count for remote clock requests

Change-Id: I824f9a27bfefe86211bc71d5f79ea798052b98b7
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Dima Zavin [Mon, 8 Nov 2010 07:55:59 +0000 (23:55 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agoARM: tegra: make vcp/bsea/vde clocks be owned by the AVP
Dima Zavin [Mon, 1 Nov 2010 21:29:31 +0000 (14:29 -0700)]
ARM: tegra: make vcp/bsea/vde clocks be owned by the AVP

Change-Id: Ic0c3b1dc5cdccf5220d8c6cc8c7ef7883b28a4d1
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoARM: tegra: add avp platform_device
Dima Zavin [Mon, 1 Nov 2010 21:31:05 +0000 (14:31 -0700)]
ARM: tegra: add avp platform_device

Change-Id: I8229873e1a450b75d31e6ea4ec64647b88d16844
Signed-off-by: Dima Zavin <dima@android.com>
13 years agomedia: video: tegra: add support for the AVP media offload engine
Dima Zavin [Mon, 1 Nov 2010 21:24:21 +0000 (14:24 -0700)]
media: video: tegra: add support for the AVP media offload engine

Change-Id: Ia72e022ad1217ffe75915465ca0e886b16d1a64a
Signed-off-by: Dima Zavin <dima@android.com>
13 years agomedia: video: tegra: Add Tegra RPC support for tegra multimedia framework
Dima Zavin [Mon, 1 Nov 2010 21:20:17 +0000 (14:20 -0700)]
media: video: tegra: Add Tegra RPC support for tegra multimedia framework

Change-Id: I9233c5d7c678f6a9ba1c23af686137bf4d6a4291
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoARM: tegra: add avp mailbox address to iomap
Dima Zavin [Wed, 3 Nov 2010 17:26:42 +0000 (10:26 -0700)]
ARM: tegra: add avp mailbox address to iomap

Change-Id: I5472f6b6c2b8dd955843efd07d0b31d0f379fee6
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoARM: tegra: add missing spdif device declaration in header
Dima Zavin [Thu, 4 Nov 2010 02:08:48 +0000 (19:08 -0700)]
ARM: tegra: add missing spdif device declaration in header

Change-Id: If447711b095ec7025f3bbe232e22444839054927
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoARM: tegra: Don't include idle time in irqsoff/preemptoff tracers
Todd Poynor [Sat, 6 Nov 2010 01:22:08 +0000 (18:22 -0700)]
ARM: tegra: Don't include idle time in irqsoff/preemptoff tracers

Surprise bonus change: Rename tegra_enter_idle to more accurately reflect
what it does.

Change-Id: I1237e1271df693c109b9db8b47421f8a4c3043c3
Signed-off-by: Todd Poynor <toddpoynor@google.com>
14 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Iliyan Malchev [Fri, 5 Nov 2010 20:41:17 +0000 (13:41 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

Conflicts:
arch/arm/mach-tegra/tegra_i2s_audio.c
arch/arm/mach-tegra/tegra_spdif_audio.c

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years ago[ARM] tegra_i2s/spdif_audio: move allow_suspend to a work queue
Iliyan Malchev [Fri, 5 Nov 2010 20:03:35 +0000 (13:03 -0700)]
[ARM] tegra_i2s/spdif_audio: move allow_suspend to a work queue

Since pm_qos_update_request() may block, we need to make sure that
allow_suspend is always called in process context.

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Fri, 5 Nov 2010 20:22:32 +0000 (13:22 -0700)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

14 years agoRevert "tegra: video: nvmap: Printk if nvmap alloc fails"
Rebecca Schultz Zavin [Fri, 5 Nov 2010 20:13:50 +0000 (13:13 -0700)]
Revert "tegra: video: nvmap: Printk if nvmap alloc fails"

This reverts commit e3ad53ad739afae7e8a4252c807a195e2311cfa7.

14 years agovideo: tegra: host: Add nvmap client name
Rebecca Schultz Zavin [Thu, 4 Nov 2010 21:39:07 +0000 (14:39 -0700)]
video: tegra: host: Add nvmap client name

Passes a name to nvmap_create_client so it can be tracked
for debugging.

Change-Id: I47c958549c29fb3d5299f6c693e1be79b27a29f3
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
14 years agovideo: tegra: fb: Add nvmap client name
Rebecca Schultz Zavin [Thu, 4 Nov 2010 21:35:57 +0000 (14:35 -0700)]
video: tegra: fb: Add nvmap client name

Passes a name to nvmap_create_client so it can be tracked
for debugging.

Change-Id: Id4aa9804d8cc8c04c44f51602362435fb877d1af
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
14 years agovideo: tegra: nvmap: Add names to nvmap client
Rebecca Schultz Zavin [Thu, 4 Nov 2010 21:12:37 +0000 (14:12 -0700)]
video: tegra: nvmap: Add names to nvmap client

This modifies the api to allow the user to specify a name
for their clients.  This will allow the system to track
allocations from the kernel by name.

Change-Id: I44aad209bc54e72126be3bebfe416b30291d206c
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
14 years agovideo: tegra: nvmap: Move debug info to debugfs
Rebecca Schultz Zavin [Thu, 4 Nov 2010 19:28:13 +0000 (12:28 -0700)]
video: tegra: nvmap: Move debug info to debugfs

Moves the file tracking clients to debugfs
Add a debugfs file to track the list of allocations per client

Change-Id: I2bb683e3ac0599fa05d962c79ef0b7cbd0007d75
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
14 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Fri, 5 Nov 2010 01:17:50 +0000 (18:17 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

14 years agoARM: tegra: common: Reduce sclk to 120 MHz
Colin Cross [Wed, 3 Nov 2010 18:42:20 +0000 (11:42 -0700)]
ARM: tegra: common: Reduce sclk to 120 MHz

Set pll_m_out1, sclk, and hclk to 120 MHz, and pclk to 60 MHz.
Drivers that require a faster bus speed can use a shared bus clock
reference to increase the sclk frequency up to 240 MHz, which will
also increase pll_m_out1, hclk, and pclk.

Change-Id: Ic491da80de1d95e6550cf9351eae185210f55b2a
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoserial: tegra_hsuart: Fix sleeping while atomic
Colin Cross [Fri, 5 Nov 2010 00:10:09 +0000 (17:10 -0700)]
serial: tegra_hsuart: Fix sleeping while atomic

Move the flush_work outside of stop_tx, do it during suspend and
shutdown instead.  Move the tty portion of the tx work into
the dma complete callback, and only handle polling on the fifo and
then requeuing the dma in the work function.

Change-Id: I56db6504d35e5e7019379dc8a4323b4a27c72e59
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoMerge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Thu, 4 Nov 2010 19:18:08 +0000 (12:18 -0700)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36

14 years agoRevert "tegra sdhci: Enable/disable SDCLK source in set_clock host_op"
Colin Cross [Thu, 4 Nov 2010 19:18:02 +0000 (12:18 -0700)]
Revert "tegra sdhci: Enable/disable SDCLK source in set_clock host_op"

This reverts commit e2e64b12d691d1031e8bd343dbc8b5d2714b6f8f.

14 years agopm_qos: Fix reversed min and max
Colin Cross [Thu, 4 Nov 2010 06:15:07 +0000 (23:15 -0700)]
pm_qos: Fix reversed min and max

pm_qos_get_value had min and max reversed, causing all pm_qos
requests to have no effect.  Broken by the plist conversion,
sha 5f279845f9d684661563894d44729a0c706375b4.

Change-Id: I252c764821eac8d94de57eb482c05bf6afcea15b
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: mark gross <markgross@thegnar.org>
Cc: James Bottomley <James.Bottomley@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Colin Cross <ccross@android.com>
14 years agotegra sdhci: Enable/disable SDCLK source in set_clock host_op
Todd Poynor [Mon, 11 Oct 2010 22:31:42 +0000 (15:31 -0700)]
tegra sdhci: Enable/disable SDCLK source in set_clock host_op

Change-Id: I2295a044140f0f388564ea3a63dd52445adff63b
Signed-off-by: Todd Poynor <toddpoynor@google.com>
14 years agoARM: tegra: clock: Add a pass-through set_rate to super clocks
Colin Cross [Wed, 3 Nov 2010 23:32:15 +0000 (16:32 -0700)]
ARM: tegra: clock: Add a pass-through set_rate to super clocks

Change-Id: I55027c93415a59cbf701b1f30e436203316c0d61
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: suspend: use clk_get_rate_all_locked
Colin Cross [Tue, 2 Nov 2010 00:30:33 +0000 (17:30 -0700)]
ARM: tegra: suspend: use clk_get_rate_all_locked

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I2d4bfd8728998903f9cff4a0f1ab41e76bdc02d7

14 years agoARM: tegra: dvfs: Get rid of dvfs_lock and move init later
Colin Cross [Tue, 2 Nov 2010 00:27:29 +0000 (17:27 -0700)]
ARM: tegra: dvfs: Get rid of dvfs_lock and move init later

Get rid of dvfs_lock, replacing it with the cansleep flag on clocks.
Clocks with the cansleep flag set will lock a mutex before calling
into dvfs.

Also does the regulator api calls during late init, after the
regulators have been probed.

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I5b8bd249bd4f3ae495f2076f1e6d2bfb38737f29

14 years agoARM: tegra: clock: Redo clock locking
Colin Cross [Tue, 2 Nov 2010 00:25:30 +0000 (17:25 -0700)]
ARM: tegra: clock: Redo clock locking

Give each clock its own lock, and remove all lock traversals from
parent to child clocks to prevent AB-BA deadlocks.

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I0afb7d1bca956439b1a4f17bbc6748aaec706b49

14 years agoARM: tegra: clock: Drop set_rate on audio clocks
Colin Cross [Tue, 2 Nov 2010 00:24:32 +0000 (17:24 -0700)]
ARM: tegra: clock: Drop set_rate on audio clocks

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: Idabc71386e7a2fba214d243405e70149faf47a8e

14 years agoARM: tegra: dvfs: Disable dvfs on sdmmc
Colin Cross [Tue, 2 Nov 2010 00:17:47 +0000 (17:17 -0700)]
ARM: tegra: dvfs: Disable dvfs on sdmmc

The sdhci core calls clock functions with a spinlock held, which
conflicts with the mutex in dvfs clocks.  Disable dvfs on sdmmc
for now.

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I59c0648ab6718571794e082d1f4828f158d00031

14 years agoMerge remote branch 'common/android-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Thu, 4 Nov 2010 00:05:58 +0000 (17:05 -0700)]
Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36

14 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Thu, 4 Nov 2010 00:05:47 +0000 (17:05 -0700)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

14 years agotegra: video: nvmap: Printk if nvmap alloc fails
Rebecca Schultz Zavin [Wed, 3 Nov 2010 23:42:26 +0000 (16:42 -0700)]
tegra: video: nvmap: Printk if nvmap alloc fails

Prints a log message if the nvmap allocate ioctl fails.

Change-Id: Ia0777bc2fcd665dafff0f8948b01faad3f552d72
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
14 years agonet: wireless: bcm4329: Check for out of bounds in scan results parsing
Dmitry Shmidt [Wed, 3 Nov 2010 23:08:25 +0000 (16:08 -0700)]
net: wireless: bcm4329: Check for out of bounds in scan results parsing

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
14 years agoMerge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Erik Gilling [Wed, 3 Nov 2010 20:52:36 +0000 (13:52 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36

Change-Id: Id52bf11ad517d9ebf5b68db4db15c006b82d75f9

14 years ago[ARM] tegra_i2s_audio: add support for master/slave switching
Chris Fries [Wed, 3 Nov 2010 17:45:26 +0000 (12:45 -0500)]
[ARM] tegra_i2s_audio: add support for master/slave switching

- Remove duplicate code between probe() and resume(), make new function
  i2s_configure()
- When master, pass the sample rate from the board info
- Clean up some checkpatch.pl complaints.

Change-Id: I0169d9a70c02eaf2173b1f1941a545792c01bc6b
Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years ago[ARM] tegra_spdif_audio: add timeout to prevent flush deadlock
Chris Fries [Mon, 25 Oct 2010 03:48:17 +0000 (22:48 -0500)]
[ARM] tegra_spdif_audio: add timeout to prevent flush deadlock

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years ago[ARM] tegra_i2s_audio: add timeout to prevent flush deadlock
Chris Fries [Mon, 25 Oct 2010 03:48:17 +0000 (22:48 -0500)]
[ARM] tegra_i2s_audio: add timeout to prevent flush deadlock

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years ago[ARM] tegra_spdif_audio: add suspend wakelocks
Ravindra Lokhande [Mon, 27 Sep 2010 17:53:41 +0000 (12:53 -0500)]
[ARM] tegra_spdif_audio: add suspend wakelocks

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agonet: wireless: bcm4329: Update to version 4.218.248-11
Greg Goldman [Mon, 1 Nov 2010 23:58:08 +0000 (16:58 -0700)]
net: wireless: bcm4329: Update to version 4.218.248-11

Check for 'driver start' failure, Set keep-alive feature forever

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
14 years agonet: wireless: bcm4329: Fix race conditions for sysioc_thread
Dmitry Shmidt [Tue, 2 Nov 2010 23:35:22 +0000 (16:35 -0700)]
net: wireless: bcm4329: Fix race conditions for sysioc_thread

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
14 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Tue, 2 Nov 2010 23:21:11 +0000 (16:21 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

14 years agoMerge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Tue, 2 Nov 2010 23:21:00 +0000 (16:21 -0700)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36

14 years agomedia: video: tegra: add basic camera/isp support
Rebecca Schultz Zavin [Mon, 1 Nov 2010 22:39:10 +0000 (15:39 -0700)]
media: video: tegra: add basic camera/isp support

The tegra_camera device includes all clock and regulator
functionality needed to support camera on tegra.

Change-Id: I281f1cb5f360276af832309e35dbe17c98b62bb3
Signed-off-by: Dima Zavin <dima@android.com>
14 years ago[ARM] tegra: driver for spdif audio
Ravindra Lokhande [Mon, 27 Sep 2010 17:53:41 +0000 (12:53 -0500)]
[ARM] tegra: driver for spdif audio

Creates /dev/spdif_out and /dev/spdif_out_ctl for playback and control
settings.  Playback is working.

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoARM: configs: update tegra_defconfig to enable regulators
Dima Zavin [Mon, 1 Nov 2010 22:46:57 +0000 (15:46 -0700)]
ARM: configs: update tegra_defconfig to enable regulators

Change-Id: I64e0f2ef1f57d4d2dc86143145f396dfeb4abe46
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoext4: fix kernel oops if the journal superblock has a non-zero j_errno
Theodore Ts'o [Thu, 28 Oct 2010 01:30:13 +0000 (21:30 -0400)]
ext4: fix kernel oops if the journal superblock has a non-zero j_errno

Commit 84061e0 fixed an accounting bug only to introduce the
possibility of a kernel OOPS if the journal has a non-zero j_errno
field indicating that the file system had detected a fs inconsistency.
After the journal replay, if the journal superblock indicates that the
file system has an error, this indication is transfered to the file
system and then ext4_commit_super() is called to write this to the
disk.

But since the percpu counters are now initialized after the journal
replay, the call to ext4_commit_super() will cause a kernel oops since
it needs to use the percpu counters the ext4 superblock structure.

The fix is to skip setting the ext4 free block and free inode fields
if the percpu counter has not been set.

Thanks to Ken Sumrall for reporting and analyzing the root causes of
this bug.

Addresses-Google-Bug: #3054080

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
14 years agoMerge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Erik Gilling [Sat, 30 Oct 2010 01:14:13 +0000 (18:14 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36

Change-Id: I6f5240610c57da5fe73951a1727944b5a4ff32db

14 years agovideo: tegra: set memory priority higher on DC init
Erik Gilling [Sat, 30 Oct 2010 01:01:24 +0000 (18:01 -0700)]
video: tegra: set memory priority higher on DC init

Change-Id: I4196a994b7f83f524fb4bd728e2cb58b8cc078e3
Signed-off-by: Erik Gilling <konkers@android.com>
14 years ago[ARM] tegra: add API to set memory client priority
Erik Gilling [Sat, 30 Oct 2010 00:59:33 +0000 (17:59 -0700)]
[ARM] tegra: add API to set memory client priority

Change-Id: Id9b157004f7364fb1f7aaffa925b710dcfb90e86
Signed-off-by: Erik Gilling <konkers@android.com>
14 years agovideo: tegra: add underflow stats to debug output
Erik Gilling [Fri, 29 Oct 2010 22:05:23 +0000 (15:05 -0700)]
video: tegra: add underflow stats to debug output

Change-Id: Id878f8e7791fa4fa63be1fd39978023ad4f7f93a
Signed-off-by: Erik Gilling <konkers@android.com>
14 years agoRevert "tegra sdhci: Enable/disable SDCLK source in set_clock host_op"
Todd Poynor [Fri, 29 Oct 2010 03:26:32 +0000 (20:26 -0700)]
Revert "tegra sdhci: Enable/disable SDCLK source in set_clock host_op"

This reverts commit 474c80c4fa5c263e9e2bfe3523b8528f7d87684f.

Change-Id: I7a7bd0ea2e353248dd6286bef4cc1914d3edf5bd
Signed-off-by: Todd Poynor <toddpoynor@google.com>
14 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Fri, 29 Oct 2010 01:07:30 +0000 (18:07 -0700)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

Change-Id: I9bdd8188cbbdf3cc9860b54500f080662d90a20a

14 years agovideo: tegra: nvmap: Fix handle ref counting
Rebecca Schultz Zavin [Thu, 28 Oct 2010 03:52:19 +0000 (20:52 -0700)]
video: tegra: nvmap: Fix handle ref counting

In the current implementation handles hold references to a
client and clients hold references to their handles.  As a
result when a process terminates it's handles can't be cleaned
up and we leak memory.  Instead only hold references to handles
from clients.

Change-Id: Iba699e740a043deaf0a78b13b4ea01544675078f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
14 years agovideo: tegra: add hdmi switch_dev for hotplug notifications
Erik Gilling [Mon, 18 Oct 2010 22:38:22 +0000 (15:38 -0700)]
video: tegra: add hdmi switch_dev for hotplug notifications

Change-Id: I0454179633835d35367bc5c28513319e3aa6a069
Signed-off-by: Erik Gilling <konkers@android.com>
14 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Fri, 29 Oct 2010 00:53:30 +0000 (17:53 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

14 years agoMerge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Fri, 29 Oct 2010 00:53:24 +0000 (17:53 -0700)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36

14 years agoserial: tegra_hsuart: Remove suspend log spam
Colin Cross [Wed, 27 Oct 2010 23:17:57 +0000 (16:17 -0700)]
serial: tegra_hsuart: Remove suspend log spam

Change-Id: I22045608426ff317e6dd7e6f4c8b408f40aeb75f
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: suspend: Remove log spam
Colin Cross [Wed, 27 Oct 2010 23:17:40 +0000 (16:17 -0700)]
ARM: tegra: suspend: Remove log spam

Change-Id: I6ad42216d74254351f050d2a895681e5f87f269e
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoRevert "video: tegra: add hdmi switch_dev for hotplug notifications"
Colin Cross [Wed, 27 Oct 2010 23:05:41 +0000 (16:05 -0700)]
Revert "video: tegra: add hdmi switch_dev for hotplug notifications"

This reverts commit 831bbd76da80cf5c7986262e39c872dfc0262a95.

14 years agoARM: tegra: suspend: Disable FIQs in suspend
Colin Cross [Wed, 27 Oct 2010 21:15:19 +0000 (14:15 -0700)]
ARM: tegra: suspend: Disable FIQs in suspend

Change-Id: I9aaba8c0cada6efcdcc0fe8633f643ec5609b198
Signed-off-by: Colin Cross <ccross@android.com>
14 years agovideo: tegra: nvmap: Track carveout clients
Rebecca Schultz Zavin [Tue, 26 Oct 2010 23:41:40 +0000 (16:41 -0700)]
video: tegra: nvmap: Track carveout clients

This patch adds the ability to track the total allocations in a
given carveout heap by client.  It also adds a sys file to print
the list of clients, their pids and their respective carveout sizes

Change-Id: I34fc97c3be574d2bd30d7594320ff05f6e13c476
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
14 years agousb: host: ehci: Add missed memory barrier in the hcd driver
Jay Cheng [Wed, 27 Oct 2010 15:45:19 +0000 (11:45 -0400)]
usb: host: ehci: Add missed memory barrier in the hcd driver

There is one wmb missing in the usb host controller driver after the queue head
update. Due to this data transaction is not happening on the bus after urb
submission by the hcd driver. Register updates/queue heads data in the memory
is not reflected on the AHB bus. After adding the wmb after queue head update
data transaction the USB bus started with out any delay.

originally fixed by Venkat Moganty <vmoganty@nvidia.com>

Change-Id: Ic834df5172ac2f2eb3bced317d38b4a2e7a44801
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
14 years ago[ARM] tegra: Setup regulators for suspend
Greg Meiste [Wed, 8 Sep 2010 18:38:36 +0000 (13:38 -0500)]
[ARM] tegra: Setup regulators for suspend

The regulator framework may need to change certain regulators when
entering suspend.

Change-Id: I584e92b3c32cbd1a63325831822e2704a3dd2774
Signed-off-by: Greg Meiste <w30289@motorola.com>
14 years ago[ARM] tegra: hsuart: use a workqueue in the tx dma callback
Iliyan Malchev [Fri, 20 Aug 2010 17:22:10 +0000 (10:22 -0700)]
[ARM] tegra: hsuart: use a workqueue in the tx dma callback

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years ago[ARM] tegra: dma: switch to nonthreaded interrupts
Iliyan Malchev [Fri, 20 Aug 2010 17:22:10 +0000 (10:22 -0700)]
[ARM] tegra: dma: switch to nonthreaded interrupts

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoMerge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Erik Gilling [Wed, 27 Oct 2010 04:08:37 +0000 (21:08 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36

Change-Id: Ifde4541e78b49ef83ed11d3a488c6580cf89af15

14 years agovideo: tegra: fix dvfs for hdmi
Erik Gilling [Wed, 27 Oct 2010 04:05:43 +0000 (21:05 -0700)]
video: tegra: fix dvfs for hdmi

Change-Id: I4e6eef34a1e794e622bec10c9025b3820cd6ba8d
Signed-off-by: Erik Gilling <konkers@android.com>
14 years agoARM: tegra: dvfs: hdmi can not be an auto dvfs clock
Colin Cross [Wed, 27 Oct 2010 03:33:24 +0000 (20:33 -0700)]
ARM: tegra: dvfs: hdmi can not be an auto dvfs clock

The hdmi block contains a divider that is not visible to the clock
subsystem, prevent auto dvfs on it so that clk_set_rate can set the
input clock higher than 148.5 MHz.

Change-Id: I7f09f4d099e2f24166a65b1b582fe16c1451deba
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoMerge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Erik Gilling [Wed, 27 Oct 2010 01:22:24 +0000 (18:22 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36

Change-Id: I0d4216b0a407e50c029a6c0869d727b188f7da04

14 years agovideo: tegra: flesh out edid support
Erik Gilling [Tue, 26 Oct 2010 22:30:35 +0000 (15:30 -0700)]
video: tegra: flesh out edid support

* read blocks in a single command instead of byte at a time
* allow reading past segment 0 (edid > 256 bytes)
* handle mutiple extention blocks
* add debugfs file for reading edid

Change-Id: Iec8182cdbccdaa2142e4bbc892202d2e8d73c23b
Signed-off-by: Erik Gilling <konkers@android.com>
14 years agovideo: tegra: transmute HDMI modes into supported ones
Erik Gilling [Tue, 26 Oct 2010 22:29:11 +0000 (15:29 -0700)]
video: tegra: transmute HDMI modes into supported ones

Change-Id: I37222e9d1617a0ace062e05740365cfe5c0c2af8
Signed-off-by: Erik Gilling <konkers@android.com>
14 years agovideo: tegra: allow setting output mode without changing fb geometry
Erik Gilling [Tue, 26 Oct 2010 22:21:23 +0000 (15:21 -0700)]
video: tegra: allow setting output mode without changing fb geometry

Change-Id: I0a723b4e68c99d2727e12d2c26f1506b1f634f8a
Signed-off-by: Erik Gilling <konkers@android.com>
14 years agovideo: tegra: add IOCTL for querying modes
Erik Gilling [Tue, 26 Oct 2010 21:25:48 +0000 (14:25 -0700)]
video: tegra: add IOCTL for querying modes

Change-Id: Ic312271b96a8bb8d8b2696448d3ff7fd73a7a851
Signed-off-by: Erik Gilling <konkers@android.com>
14 years agoARM: tegra: clock: Don't restore PLLP registers
Colin Cross [Wed, 27 Oct 2010 00:33:31 +0000 (17:33 -0700)]
ARM: tegra: clock: Don't restore PLLP registers

The PLLP registers are now being restored by the low-level resume code,
and the CPU may be running off PLLP, so don't touch them during clock
resume.

Change-Id: Ida248a929c8b59f2e51f43dbbef1cd792ef68737
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: suspend: Save and restore PLLP in low-level suspend
Colin Cross [Wed, 27 Oct 2010 00:32:13 +0000 (17:32 -0700)]
ARM: tegra: suspend: Save and restore PLLP in low-level suspend

Save and restore the PLLP registers in the platform suspend code, as
the CPU clock may be sourced from the PLLP registers later, before
the clock resume that used to re-enable PLLP has been called.

Change-Id: I0ffc18d8a7f2d62c544328bd44ca7cf62848bc44
Signed-off-by: Colin Cross <ccross@android.com>
14 years ago[ARM] tegra: dma: expose TEGRA_DMA_MAX_TRANSFER_SIZE, fix typo
Iliyan Malchev [Thu, 21 Oct 2010 23:48:37 +0000 (16:48 -0700)]
[ARM] tegra: dma: expose TEGRA_DMA_MAX_TRANSFER_SIZE, fix typo

NV_DMA_MAX_TRASFER_SIZE --> TEGRA_DMA_MAX_TRANSFER_SIZE

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years ago[ARM] tegra: dma: make checkpatch happy
Iliyan Malchev [Wed, 20 Oct 2010 23:48:18 +0000 (16:48 -0700)]
[ARM] tegra: dma: make checkpatch happy

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agotegra sdhci: Enable/disable SDCLK source in set_clock host_op
Todd Poynor [Mon, 11 Oct 2010 22:31:42 +0000 (15:31 -0700)]
tegra sdhci: Enable/disable SDCLK source in set_clock host_op

Change-Id: I08efc82429a2422a6038d7c50399850223fad240
Signed-off-by: Todd Poynor <toddpoynor@google.com>
14 years agosdhci: Always pass clock request value zero to set_clock host op
Todd Poynor [Mon, 11 Oct 2010 23:51:28 +0000 (16:51 -0700)]
sdhci: Always pass clock request value zero to set_clock host op

To allow the set_clock host op to disable the SDCLK source when not
needed, always call the host op when the requested clock speed is
zero.  Do this even if host->clock already equals zero, because
the SDHCI driver may set that value (without calling the host op)
to force an update at the next (non-zero-speed) call.

Change-Id: If99230d76138679b5767f77cb925f15408ae518e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
14 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Tue, 26 Oct 2010 01:48:16 +0000 (18:48 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

14 years agoMerge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Tue, 26 Oct 2010 01:48:09 +0000 (18:48 -0700)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36

14 years agoARM: tegra: clock: Fix warning
Colin Cross [Mon, 25 Oct 2010 23:23:09 +0000 (16:23 -0700)]
ARM: tegra: clock: Fix warning

Change-Id: I2c175f65b7e7db234f7317e7c51aeea65d33d555

14 years agoARM: tegra: Remove debugging from tegra_move_framebuffer
Colin Cross [Sun, 24 Oct 2010 23:10:31 +0000 (16:10 -0700)]
ARM: tegra: Remove debugging from tegra_move_framebuffer

Change-Id: I012b3b565faefe60e7ce581f748905d3baab6da4
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: suspend: Track the amount of time spent in suspend
Colin Cross [Sun, 24 Oct 2010 06:25:52 +0000 (23:25 -0700)]
ARM: tegra: suspend: Track the amount of time spent in suspend

Change-Id: Iee5ec7da45d3405846d8655104d9736eccedb713
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: timer: Fix us timer time after resume from LP1
Colin Cross [Sun, 24 Oct 2010 23:11:03 +0000 (16:11 -0700)]
ARM: tegra: timer: Fix us timer time after resume from LP1

In LP1 suspend, or during a failed LP0 suspend, the core power is
not turned off and the timer register is not reset.  Saving the
timer value during suspend and adding it to the offset after resume
will cause the timer value to double for each suspend cycle.

To fix, when resuming subtract the current value of the timer
register from the offset.  Also, use the rtc registers to add
the time that passed during suspend.

Change-Id: I9f7ee2089b98cf66af45271f8478fbd9eb2ee250
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: timer: Remove 32k clocksource
Colin Cross [Sun, 24 Oct 2010 06:22:53 +0000 (23:22 -0700)]
ARM: tegra: timer: Remove 32k clocksource

The 32k clocksource is never used, because it is always registered
at the same time as the us clocksource, which has a higher rating.
Using the 32k clocksource would cause a race condition with the
tegra_rtc driver on the RTC shadow registers.  Remove the 32k
clocksource, add a replacement tegra_read_rtc_ms function for the
suspend code to track suspend time, and add a comment on
read_persistent_clock that it should never be called while the
tegra_rtc driver is running.  It is currently only called from
timekeeping init, suspend, and resume.

Change-Id: Ic964578e9923b0f0338959f75de1ac170f850337
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: irq: Add debugfs file to show wake irqs
Colin Cross [Sun, 24 Oct 2010 06:22:07 +0000 (23:22 -0700)]
ARM: tegra: irq: Add debugfs file to show wake irqs

Change-Id: I66124275869d5f83024937010e14018b7980bb05
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: cpuidle: Keep statistics on idle wake interrupts
Colin Cross [Sat, 23 Oct 2010 22:55:32 +0000 (15:55 -0700)]
ARM: tegra: cpuidle: Keep statistics on idle wake interrupts

Change-Id: Ieaee455b4e52f232c5b1285756c22bcdc7fdc6b4
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: suspend: Fix compile issues with CONFIG_SMP=n
Colin Cross [Sat, 23 Oct 2010 22:01:35 +0000 (15:01 -0700)]
ARM: tegra: suspend: Fix compile issues with CONFIG_SMP=n

Move suspend pagetable creation to suspend.c
Always compile headsmp-t2.S, it's needed for LP2 resume

Change-Id: I9e23c6bf72fff3e98e0549edf1f85bec823a3a38
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: cpuidle: Fix compile issues with CONFIG_SMP=n
Colin Cross [Sat, 23 Oct 2010 21:56:27 +0000 (14:56 -0700)]
ARM: tegra: cpuidle: Fix compile issues with CONFIG_SMP=n

Change-Id: Id02744bcdfc079a6091be2e8a736bcd3a6cc0ba6
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoARM: tegra: cpufreq: Fix compile issues with CONFIG_SMP=n
Colin Cross [Sat, 23 Oct 2010 21:55:56 +0000 (14:55 -0700)]
ARM: tegra: cpufreq: Fix compile issues with CONFIG_SMP=n

Change-Id: Id678df6299adfc23a4321ddaff10b4c64a4ed895
Signed-off-by: Colin Cross <ccross@android.com>
14 years ago[ARM] fiq_debugger: Print local timer irqs count
Rebecca Schultz Zavin [Fri, 22 Oct 2010 22:55:17 +0000 (15:55 -0700)]
[ARM] fiq_debugger: Print local timer irqs count

Prints the number of local timer irqs on each cpu when
 the irqs command is executed.

Change-Id: Ic70fa9f528d98996fabb2d0cc80e937c5b239c1a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
14 years ago[ARM] tegra: cpuidle define power_specified
James Wylder [Wed, 20 Oct 2010 20:05:09 +0000 (15:05 -0500)]
[ARM] tegra: cpuidle define power_specified

Turn on the cpuidle_device power_specified field
to enable usage of the defined cpuidle_state.power_usage fields
for each state.

Signed-off-by: James Wylder <james.wylder@motorola.com>
Change-Id: Ibca20a937bf4079f61e4b3ae64394d797b4eb287
Signed-off-by: Todd Poynor <toddpoynor@google.com>
14 years agoARM: tegra: clock: Remove dependency between "set" and debugfs
Colin Cross [Mon, 25 Oct 2010 21:15:44 +0000 (14:15 -0700)]
ARM: tegra: clock: Remove dependency between "set" and debugfs

Change-Id: I732f9428096d057e08092120c6f8c2890230a242

14 years agovideo: tegra: dc: Call dvfs functions
Colin Cross [Mon, 18 Oct 2010 03:49:48 +0000 (20:49 -0700)]
video: tegra: dc: Call dvfs functions

Change-Id: If3cca5da2abc5e6c3671c8c23af90cd4e029db5c
Signed-off-by: Colin Cross <ccross@android.com>
14 years ago[ARM] tegra: dvfs: Convert cpu to new dvfs, add core dvfs tables
Colin Cross [Thu, 9 Sep 2010 02:49:54 +0000 (19:49 -0700)]
[ARM] tegra: dvfs: Convert cpu to new dvfs, add core dvfs tables

Change-Id: I4020943ee10026866b29302aac177a5bdc259184
Signed-off-by: Colin Cross <ccross@android.com>
14 years ago[ARM] tegra: clock: Refcount periph clock enables
Colin Cross [Thu, 21 Oct 2010 02:19:58 +0000 (19:19 -0700)]
[ARM] tegra: clock: Refcount periph clock enables

Some peripheral clocks share enable bits.  Refcount the enables so
that calling clk_disable on one clock will not turn off another
clock.

Change-Id: Iefb015bc83cac77b3faef8db86cfc42b25c0b6ae
Signed-off-by: Colin Cross <ccross@android.com>