makarand.karvekar [Tue, 2 Nov 2010 16:37:47 +0000 (11:37 -0500)]
[ARM]:tegra: add touch uC suspend function to toggle wake-line
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
makarand.karvekar [Tue, 2 Nov 2010 16:18:19 +0000 (11:18 -0500)]
qtouch: suspend/resume touch uC via wake-line
wake-line gpio high puts touch uC in low-power mode.
fixed inconsistent irq disable in suspend when irq_enable
is skipped due to i2c failure.
Change-Id: I6a9fe011abdffad599da0b2897f3a976db10fff5
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Iliyan Malchev [Fri, 5 Nov 2010 21:02:38 +0000 (14:02 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-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>
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>
Rebecca Schultz Zavin [Thu, 4 Nov 2010 21:40:06 +0000 (14:40 -0700)]
[ARM] tegra: nv: Adds name to nvmap client
Change-Id: Ibc407df4fdf11701ab1e6def586abbb3ffc2c14d
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Rebecca Schultz Zavin [Fri, 5 Nov 2010 20:24:13 +0000 (13:24 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-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
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.
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>
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>
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>
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>
Iliyan Malchev [Thu, 4 Nov 2010 22:20:48 +0000 (15:20 -0700)]
[ARM] board-stingray: fix warnings
Signed-off-by: Iliyan Malchev <malchev@google.com>
makarand.karvekar [Fri, 5 Nov 2010 03:59:55 +0000 (22:59 -0500)]
qtouch: process open call once during firmware upgrade
atomic flag process_open to process open call once.
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
makarand.karvekar [Tue, 2 Nov 2010 16:45:27 +0000 (11:45 -0500)]
[ARM] tegra: stingray: lock gen_i2c for AUO display
AUO display is holding i2c lines at lower voltage for
few milliseconds.
Change-Id: I432e5f70d4158a393b9b19336aab3d2a3f9b4cb8
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Nathan Connell [Tue, 2 Nov 2010 12:47:30 +0000 (07:47 -0500)]
ARM: tegra: stingray: Run the WLAN SDIO at 48MHz off PLLM
Run the WLAN SDIO interface at 48MHZ to avoid
EMI with all other supported RF cards in the
device. The SDIO clock must be generated from the
spectrally clean PLLM.
Change-Id: Ie974a1acab22b0cc2fa7f0098244d2700ed8e83c
Signed-off-by: Nathan Connell <w14185@motorola.com>
Dima Zavin [Thu, 28 Oct 2010 21:24:02 +0000 (14:24 -0700)]
ARM: tegra: nvrm: enable/disable avp.sclk on remote clock requests
Change-Id: Ib87fa7dd57b3742926f6d631de01ea99f57d0ce0
Signed-off-by: Dima Zavin <dima@android.com>
Colin Cross [Fri, 5 Nov 2010 01:18:03 +0000 (18:18 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-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
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>
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>
Benoit Goby [Wed, 3 Nov 2010 20:54:31 +0000 (13:54 -0700)]
mdm6600: Use usb_get_from_anchor
It is safe to remove a urb from the read pending anchor
before processing it.
This fixes the "dropped
4294965808 of 0 bytes" issue.
Change-Id: I15c25c6eb876d4b5bb09ac54f9acd691ff60992e
Signed-off-by: Benoit Goby <benoit@android.com>
Colin Cross [Thu, 4 Nov 2010 19:18:22 +0000 (12:18 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-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
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.
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>
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>
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>
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
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
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
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
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
Benoit Goby [Wed, 3 Nov 2010 22:55:45 +0000 (15:55 -0700)]
mdm6600: Add missing "static"
Change-Id: I0524dba421a5c5052d04b51ded43fada3bce9bfd
Signed-off-by: Benoit Goby <benoit@android.com>
Rebecca Schultz Zavin [Thu, 4 Nov 2010 00:08:09 +0000 (17:08 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-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
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
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>
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>
Chris Fries [Wed, 3 Nov 2010 17:41:04 +0000 (12:41 -0500)]
[ARM] board-stingray: switch second i2s to master for Bluetooth
Change Bluetooth (I2S2->DAP4) to be bus master to avoid deadlocks when SCO
disappears during reads/writes.
Signed-off-by: Iliyan Malchev <malchev@google.com>
Praveen Bharathi [Thu, 14 Oct 2010 17:38:36 +0000 (12:38 -0500)]
[ARM] mfd: cpcap-audio: add support for basic analog dock
The audio will now be routed to dock accesory when an accesory connected to
dock is detected.
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Iliyan Malchev [Mon, 1 Nov 2010 21:58:10 +0000 (14:58 -0700)]
[ARM] tegra: board-stingray: add defitions for s/pdif device
Signed-off-by: Iliyan Malchev <malchev@google.com>
Erik Gilling [Wed, 3 Nov 2010 21:05:13 +0000 (14:05 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: I6cfe301799ce71f94780b814280e15b1180bad37
Rebecca Schultz Zavin [Wed, 3 Nov 2010 20:54:19 +0000 (13:54 -0700)]
[ARM] tegra: Add DEBUG_LIST to stingray defconfig
Change-Id: I281df77f556f23892221e26a903e0587ad16c44c
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
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
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>
Greg Meiste [Wed, 3 Nov 2010 14:19:56 +0000 (09:19 -0500)]
power: ds2781: Fix for ACR 100% reset
Only do the reset if the percentage is valid. This fixes the scenario
where the reset is incorrectly attempted on power up.
Change-Id: If62de88bf10f363389127328d0f5448821e7beea
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Dima Zavin <dima@android.com>
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>
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>
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>
Colin Cross [Wed, 3 Nov 2010 00:44:38 +0000 (17:44 -0700)]
Revert "ARM: tegra: stingray: Run the WLAN SDIO at 48MHz off PLLM"
This reverts commit
88e07fa197155a46f3dd669c4ac94e6bef0dcea1.
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>
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>
Dima Zavin [Tue, 2 Nov 2010 23:25:53 +0000 (16:25 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Conflicts:
drivers/media/video/tegra/Kconfig
drivers/media/video/tegra/Makefile
Dima Zavin [Mon, 1 Nov 2010 22:57:00 +0000 (15:57 -0700)]
media: video: tegra: remove camera in tegra-moto since it moved to linux-tegra
Change-Id: Ifd25caa7ccd9a09eb7eaedc14786953eae78dce9
Signed-off-by: Dima Zavin <dima@android.com>
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
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
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>
Greg Meiste [Tue, 2 Nov 2010 16:04:05 +0000 (11:04 -0500)]
power: ds2781: Reset ACR if not 100% when charge complete
If the charge IC reaches charge complete, it obviously will stop
charging. If the DS2781 has not reached 100%, it never will. So
reset the ACR register to the 100% value.
The DS2781 is supposed to reset itself to 100% if charge complete
is reached, but it is not doing so reliably. Maxim has suggested
this as a workaround.
Change-Id: I97e532570694019227af4af4280ef06e9d67c6b2
Signed-off-by: Greg Meiste <w30289@motorola.com>
Greg Meiste [Thu, 28 Oct 2010 14:21:56 +0000 (09:21 -0500)]
power: ds2781: Perform sanity check on capacity
When the factory is installing the batteries, it is inadvertently causing
some batteries to reset their fuel gauge to 0%. Add a sanity check to
reset the capacity to a reasonable value if this condition is detected.
Change-Id: I4bc2d4e778763fd36be66ba9adb2efd371b2c7e1
Signed-off-by: Greg Meiste <w30289@motorola.com>
Greg Meiste [Mon, 1 Nov 2010 18:27:40 +0000 (13:27 -0500)]
power: ds2781: Allow system to suspend while charging
Change-Id: I18ce88ab7979f536f5441a9960961be039b01cda
Signed-off-by: Greg Meiste <w30289@motorola.com>
Greg Meiste [Tue, 2 Nov 2010 14:10:13 +0000 (09:10 -0500)]
power: ds2781: Make workqueue freezeable
In addition to being single threaded, the ds2781 workqueue must also be
freezeable. This will prevent the driver from trying to read the
battery status before the tegra_w1 driver has resumed from suspend.
Change-Id: I114c7c50ff79f2e5c7aab47bbc8b3e6b641a46a1
Signed-off-by: Greg Meiste <w30289@motorola.com>
Nathan Connell [Tue, 2 Nov 2010 12:47:30 +0000 (07:47 -0500)]
ARM: tegra: stingray: Run the WLAN SDIO at 48MHz off PLLM
Run the WLAN SDIO interface at 48MHZ to avoid
EMI with all other supported RF cards in the
device. The SDIO clock must be generated from the
spectrally clean PLLM.
Signed-off-by: Nathan Connell <w14185@motorola.com>
Change-Id: Ic8580b11a8392aa17f5947f03bbb09605db84ec5
vcdt34 [Thu, 28 Oct 2010 04:23:01 +0000 (23:23 -0500)]
ARM: tegra: stingray: add /proc/bootinfo
Add /proc/bootinfo pseudo-file to make the power-up reason
available to user-mode applications.
Removed macros and superfluous code. Revised
to pass checkpatch.pl gauntlet.
Revised leading comments for accuracy.
Remove trailing whitespaces. Recheck with checkpatch.pl
Converted to seq_file interface.
Change-Id: I5098a4aef645f5e346d4bdd60ced1b2beb3f68db
Signed-off-by: vcdt34 <john.poplett@motorola.com>
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>
makarand.karvekar [Mon, 25 Oct 2010 23:52:06 +0000 (18:52 -0500)]
leds: backlight: add PWM and Bright modes
lp8550 has PWM and Bright modes to control backlight.
remove redundant writes to device ctrl config.
Change-Id: Ida6f405fd174a87965f9d2daabbdc6b236f30245
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
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>
makarand.karvekar [Mon, 25 Oct 2010 23:56:18 +0000 (18:56 -0500)]
[ARM] tegra: stingray: adjust backlight settings for current and boost freq
Change-Id: Ie475a5e9a874e828ca602a9f9ee60f83703c63f0
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
James Wilson [Wed, 27 Oct 2010 20:33:47 +0000 (15:33 -0500)]
[ARM] tegra: stingray: Do not enumerate as usbnet
during recovery mode, even if using factory cable.
Signed-off-by: James Wilson <james.wilson@motorola.com>
Greg Meiste [Mon, 1 Nov 2010 16:27:24 +0000 (11:27 -0500)]
w1: slaves: ds2781: Return error when reset fails
The DS2781 one wire driver was returning success, even though the reset
had failed. This covered up the issue where the DS2781 battery driver
was not reporting up up-to-date information.
Change-Id: Ie0c775ab900ed44ce12e798d62484b145c81d244
Signed-off-by: Greg Meiste <w30289@motorola.com>
makarand.karvekar [Sun, 31 Oct 2010 23:59:20 +0000 (18:59 -0500)]
misc: l3g4200d: fix power down issue
only clean PD bit in CTRL_REG1 when power off
and restore it when power on
Author: Ken Hu <jian-wu.hu@motorola.com>
Change-Id: I50c6ba1a77d8a347c63ffb7518182c7ac1a1d738
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
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>
Erik Gilling [Sat, 30 Oct 2010 01:16:19 +0000 (18:16 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: I6da740f6846d5212ff331bf4473a1e7faa96e21e
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
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>
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>
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>
Colin Cross [Fri, 29 Oct 2010 04:03:22 +0000 (21:03 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Conflicts:
drivers/mmc/host/sdhci-tegra.c
Change-Id: I9716a3c3a89d9a442d662cc402e1e4fdde1c3be4
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>
Rebecca Schultz Zavin [Fri, 29 Oct 2010 01:10:10 +0000 (18:10 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-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
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>
Colin Cross [Fri, 29 Oct 2010 00:55:06 +0000 (17:55 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
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>
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
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
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>
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>
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.
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>
Dmitry Shmidt [Fri, 29 Oct 2010 00:26:13 +0000 (17:26 -0700)]
[ARM] tegra: stingray: Set default path to wlan firmware in stingray_defconfig
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
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>
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>
makarand.karvekar [Wed, 27 Oct 2010 20:06:35 +0000 (15:06 -0500)]
[ARM] tegra: edge and multi-touch tuning for stingray
improved touch reporting at edges.
improved multi-touch touch reports(for keypad).
increased number of touches to 10.
Change-Id: I866de3bf45ba96d23ab0d975131a0f0a5055815f
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Sergey Kudakov [Wed, 20 Oct 2010 20:38:32 +0000 (15:38 -0500)]
input: touchscreen: qtouch: resume touch after display
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
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>
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>
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>
Erik Gilling [Wed, 27 Oct 2010 04:09:54 +0000 (21:09 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: I9d242079e228853e884997e8bb6cb4d913f0c34d