7 years agocfq-iosched: free cic_index if blkio_alloc_blkg_stats fails
majianpeng [Wed, 30 Nov 2011 14:47:48 +0000]
cfq-iosched: free cic_index if blkio_alloc_blkg_stats fails

commit 2984ff38ccf6cbc02a7a996a36c7d6f69f3c6146 upstream.

If we fail allocating the blkpg stats, we free cfqd and cfgq.
But we need to free the IDA cfqd->cic_index as well.

Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change-Id: Ie0b58526fabbd53e2343f9ee0474f2070d717967
Reviewed-on: http://git-master/r/74161
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agodrm/i915: prevent division by zero when asking for chipset power
Eugeni Dodonov [Thu, 10 Nov 2011 15:55:15 +0000]
drm/i915: prevent division by zero when asking for chipset power

commit 4ed0b577457eb6aeb7cdc7e7316576e63d15abb2 upstream.

This prevents an in-kernel division by zero which happens when we are
asking for i915_chipset_val too quickly, or within a race condition
between the power monitoring thread and userspace accesses via debugfs.

The issue can be reproduced easily via the following command:
while ``; do cat /sys/kernel/debug/dri/0/i915_emon_status; done

This is particularly dangerous because it can be triggered by
a non-privileged user by just reading the debugfs entry.

This issue was also found independently by Konstantin Belousov
<kostikbel@gmail.com>, who proposed a similar patch.

Reported-by: Konstantin Belousov <kostikbel@gmail.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change-Id: Ic86534499300b66168ad29ac08ab1e1f987de909
Reviewed-on: http://git-master/r/74160
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agodrm/i915: set the right SDVO transcoder for CPT
Paulo Zanoni [Fri, 14 Oct 2011 21:16:22 +0000]
drm/i915: set the right SDVO transcoder for CPT

commit 3573c4103f7a486838bb6b5b8353788103f91802 upstream.

v2: add a CPT-specific macro, make code cleaner
v3: fix commit message

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41272
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change-Id: Ibebaa677dcb502f900d3571e7a65eafed3796418
Reviewed-on: http://git-master/r/74159
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoALSA: HDA: Set position fix to LPIB for an Atom/Poulsbo based device
David Henningsson [Mon, 12 Dec 2011 06:01:17 +0000]
ALSA: HDA: Set position fix to LPIB for an Atom/Poulsbo based device

commit 1c89fe3b51a2f8068f2f9faa9c48584151416583 upstream.

For the Asus 1101HA, reporting position by reading the DMA position
buffer map seems unstable and often wrong. The reporter says that
position_fix=LPIB works much better (although not 100%, but this is
probably due to other issues).

The controller chip is an Intel Poulsbo 8086:811b (rev 07) controller,
and complete alsa-info is available here:
https://launchpadlibrarian.net/86691768/alsa-info.txt.1TNwyE5Ea7

BugLink: http://bugs.launchpad.net/bugs/825709
Tested-by: Stefano Lodi
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Change-Id: Ib024489660295b8842215eb8a3cd25feec25e00d
Reviewed-on: http://git-master/r/74605
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agortc: m41t80: Workaround broken alarm functionality
John Stultz [Mon, 12 Dec 2011 21:57:52 +0000]
rtc: m41t80: Workaround broken alarm functionality

commit c3b79770e51ab1fd4201f3b54edf30113b9ce74f upstream.

The m41t80 driver can read and set the alarm, but it doesn't
seem to have a functional alarm irq.

This causes failures when the generic core sees alarm functions,
but then cannot use them properly for things like UIE mode.

Disabling the alarm functions allows proper error reporting,
and possible fallback to emulated modes. Once someone fixes
the alarm irq functionality, this can be restored.

CC: Matt Turner <mattst88@gmail.com>
CC: Nico Macrionitis <acrux@cruxppc.org>
CC: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Reported-by: Matt Turner <mattst88@gmail.com>
Reported-by: Nico Macrionitis <acrux@cruxppc.org>
Tested-by: Nico Macrionitis <acrux@cruxppc.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change-Id: Idbb49a2b153a9da2a281e927f14e4a15a676987d
Reviewed-on: http://git-master/r/74157
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoipip, sit: copy parms.name after register_netdevice
Ted Feng [Thu, 8 Dec 2011 00:46:21 +0000]
ipip, sit: copy parms.name after register_netdevice

commit 72b36015ba43a3cca5303f5534d2c3e1899eae29 upstream.

Same fix as 731abb9cb2 for ipip and sit tunnel.
Commit 1c5cae815d removed an explicit call to dev_alloc_name in
ipip_tunnel_locate and ipip6_tunnel_locate, because register_netdevice
will now create a valid name, however the tunnel keeps a copy of the
name in the private parms structure. Fix this by copying the name back
after register_netdevice has successfully returned.

This shows up if you do a simple tunnel add, followed by a tunnel show:

$ sudo ip tunnel add mode ipip remote 10.2.20.211
$ ip tunnel
tunl0: ip/ip  remote any  local any  ttl inherit  nopmtudisc
tunl%d: ip/ip  remote 10.2.20.211  local any  ttl inherit
$ sudo ip tunnel add mode sit remote 10.2.20.212
$ ip tunnel
sit0: ipv6/ip  remote any  local any  ttl 64  nopmtudisc 6rd-prefix 2002::/16
sit%d: ioctl 89f8 failed: No such device
sit%d: ipv6/ip  remote 10.2.20.212  local any  ttl inherit

Signed-off-by: Ted Feng <artisdom@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change-Id: Id853ba9cde9afd951d9bc8a86c7e90dfed2ad60b
Reviewed-on: http://git-master/r/74156
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: OMAP: rx51: fix USB
Felipe Contreras [Thu, 8 Dec 2011 20:23:00 +0000]
ARM: OMAP: rx51: fix USB

commit e5fe29c7198a1f6616286dfc8602a69da165cb3f upstream.

Commit 10299e2e4e3ed3b16503d4e04edd48b33083f4e2 (ARM: RX-51:
Enable isp1704 power on/off) added power management for isp1704.

However, the transceiver should be powered on by default,
otherwise USB doesn't work at all for networking during
boot.

All kernels after v3.0 are affected.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Reviewed-by: Sebastian Reichel <sre@debian.org>
[tony@atomide.com: updated comments]
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change-Id: I3d121b72126c37320b1485ba98a67f3a132e22cc
Reviewed-on: http://git-master/r/74155
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: enterprise: tegra: Fix typo.
Krishna Reddy [Mon, 9 Jan 2012 18:39:20 +0000]
arm: enterprise: tegra: Fix typo.

Fix typo in the #defines around enterprise_carveouts.

Change-Id: Ia3afe520504a2833c540a669ad54fbcfadff6254
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/74053
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

7 years agoarm: tegra3: config: enable dynamic debug print support
Pritesh Raithatha [Fri, 6 Jan 2012 12:52:09 +0000]
arm: tegra3: config: enable dynamic debug print support

Bug 921207

Change-Id: Id58bb2c144645a3105a3111ef7ed4eb3da528644
Reviewed-on: http://git-master/r/73719
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/73967
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agomedia: video: tegra: change emc clk operation sequence
Puneet Saxena [Wed, 7 Dec 2011 05:38:02 +0000]
media: video: tegra: change emc clk operation sequence

first set emc clock rate and then enable it to take effect of the
operation.

bug 882076

Reviewed-on: http://git-master/r/68611
(cherry picked from commit 57e48fefa323fabd2cfb52093e6b0a600a18e7b0)

Change-Id: I69ad717ccbfd020202ed2f12390ae8b535ff127e
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/73705
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit 8751a59f5cfd2fe4c0ed88b5417ebab7f04a447e)
Reviewed-on: http://git-master/r/73966
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agomedia: video: tegra: set emc clk rate
Prashant Gaikwad [Fri, 18 Nov 2011 08:56:33 +0000]
media: video: tegra: set emc clk rate

Max EMC rate is required only for video. Audio does not
need max EMC rate hence set EMC rate to min if no video.

Bug 869840

Reviewed-on: http://git-master/r/65460
(cherry picked from commit e256178831e5e6786ecd2c816c66dceec3d29b1a)

Change-Id: I185906a02e8afad1ca456747f87a81b38ad9d548
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/73704
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit f38c3c1ce7c81b8045f2789850704c0d764827fa)
Reviewed-on: http://git-master/r/73965
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agomedia: video: tegra: reset sclk rate to min
Prashant Gaikwad [Tue, 11 Oct 2011 08:51:23 +0000]
media: video: tegra: reset sclk rate to min

Some media streams requires maximum sclk rate. sclk rate is
requested from user space. Reset sclk rate to min after
the stream is finished.

Reviewed-on: http://git-master/r/57253
(cherry picked from commit b6215d8d28806003deb3721d9044a9cdfa9fe732)

Change-Id: I3f39d3e1e51abbe98ec78fa7752ac0edba61691c
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/73703
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit 90d3e47202d1468338b0df04333c3b9942454cef)
Reviewed-on: http://git-master/r/73964
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoasoc: tegra: wm8903 machine: Handle card register failure
Manoj Gangwal [Fri, 6 Jan 2012 09:34:49 +0000]
asoc: tegra: wm8903 machine: Handle card register failure

Add the support for handling the wm8903 sound card registration
failure error.

Bug 910788

Change-Id: Ib25f9ca4dd7f5ebd417700421625eb2f3bdc7b5e
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/73694
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 505788de21a98bbc651a536a56f6594fa589252e)
Reviewed-on: http://git-master/r/73963
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoasoc: codecs: Remove suspend/resume for ALC5640
Manoj Gangwal [Thu, 5 Jan 2012 12:32:56 +0000]
asoc: codecs: Remove suspend/resume for ALC5640

Implementation of suspend/resume functionality
is not proper for ALC5640 codec , so remove it
temporarily.

Bug 910788

Change-Id: I243c327602a45a3084befd17a1e722e4d844e502
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/73478
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 3e24bcc4df716bd1e1f3772300aaa9988319f91a)
Reviewed-on: http://git-master/r/73962
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: defconfig: Enable H/W statmon
Prashant Gaikwad [Wed, 4 Jan 2012 09:15:00 +0000]
ARM: tegra: defconfig: Enable H/W statmon

Bug 920989

Change-Id: Ic1239ee799ac4e80e356ca7b9664f7875af91dce
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/73145
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 7160189436da41570ad3a69155f0a7f633bd9ca9)
Reviewed-on: http://git-master/r/73961
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: comms: Resume issue with XMM flashed modem
Seshendra Gadagottu [Mon, 19 Dec 2011 10:28:31 +0000]
arm: tegra: comms: Resume issue with XMM flashed modem

power_onff flag updated correctly for flashed modem.

BUG 905931

Change-Id: I383b1e01e380c04d8fd0179c50c77e4adf6f2a0b
Reviewed-on: http://git-master/r/72894
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit c70dc7a8bc0c0bff5b09b5099d5ac3a1a1b2299d)
Reviewed-on: http://git-master/r/73960
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: Tegra: fuse: Add A04 revision
Prashant Gaikwad [Mon, 2 Jan 2012 11:38:34 +0000]
ARM: Tegra: fuse: Add A04 revision

Change-Id: Ie1facdb47d9eae2438f1bb3928db174690dd2e4d
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/72862
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit da61c8810313729b8c8f451f6cf1586afff2bf12)
Reviewed-on: http://git-master/r/73959
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: ventana: VDD_DDR_RX should NEVER be powered off
Artiste Hsu [Tue, 6 Sep 2011 03:36:01 +0000]
ARM: tegra: ventana: VDD_DDR_RX should NEVER be powered off

bug 871544

VDD_DDR_RX is a reference voltage used by the DDR/LPDDR IO cells.
If this supply is turned off and memory accesses are taking place
then the values read from the Memory may be corrupted.

(cherry picked from commit Id01d051ce02ed1d30484c42297624483f6561314)
Reviewed-on: http://git-master/r/50764

Change-Id: Ib4832f3a856b01411f626d5870ab2fc440eccdd1
Signed-off-by: Artiste Hsu <chhsu@nvidia.com>
Reviewed-on: http://git-master/r/72797
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit c3e189bdefae5d4568b4a67fa48bb1c7b880c22a)
Reviewed-on: http://git-master/r/73958
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: ventana: set eMMC in 8bit mode
Artiste Hsu [Sat, 31 Dec 2011 03:55:30 +0000]
arm: tegra: ventana: set eMMC in 8bit mode

bug 907745

Change-Id: Ib51b125b419e374ac7b9874335ddb34ef30a1aa8
Signed-off-by: Artiste Hsu <chhsu@nvidia.com>
Reviewed-on: http://git-master/r/72795
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit e5d445086995f1180b1c5e0dda01410937709b64)
Reviewed-on: http://git-master/r/73957
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoasoc: tegra: ALC5640 machine: Add ALC5640 audio codec
Manoj Gangwal [Tue, 20 Dec 2011 15:31:20 +0000]
asoc: tegra: ALC5640 machine: Add ALC5640 audio codec

Changes made to add support of ALC5640 codec
for cardhu.

Bug 910788

Change-Id: I134b95a20d1a377eeb534e263fb74c0871e2fd0f
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/71459
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 844ef13a8281fe307b1adddcdc440b7e191d8926)
Reviewed-on: http://git-master/r/73956
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoTegra: Pinmux: Fixed up errors about DTV interface
Adam Jiang [Thu, 17 Nov 2011 04:09:04 +0000]
Tegra: Pinmux: Fixed up errors about DTV interface

Pin configuration on DTV interface could be enabled by this patch.

Fixed Bug 904626
Fixed Bug 881303

Change-Id: I6b5dc12629740bb8275156df9d9a5b4ca9dae352
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/66626
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
(cherry picked from commit c34733e5ea933b322cd5edbceb93f921ffe413de)
Reviewed-on: http://git-master/r/73955
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: power: Fix build errors if PM_SLEEP is not selected
Scott Williams [Thu, 5 Jan 2012 20:12:32 +0000]
arm: tegra: power: Fix build errors if PM_SLEEP is not selected

Change-Id: I2e7fa55c5d02ada3b203ec9627a4d91a5f17ca9b
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/73539
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit e3b0a2205133e5209a9e35c2300c03d384b1ae2a)
Reviewed-on: http://git-master/r/73954
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agotegra: usb_phy: increase delay for stable line values
Rakesh Bodla [Fri, 6 Jan 2012 05:20:09 +0000]
tegra: usb_phy: increase delay for stable line values

Increase the delay before usb detectors for stable
line values.

Bug 882441

Change-Id: I64b0a34f06948f3283188fdc22e6d0075ce044d6
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/73385
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 6de4bf955bf4af7bbd0e9bf5d69b5b425d7cb000)
Reviewed-on: http://git-master/r/73953
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoasoc: tegra: max98088 machine: set default bias level to standby
Chandrakanth Gorantla [Wed, 4 Jan 2012 11:24:21 +0000]
asoc: tegra: max98088 machine: set default bias level to standby

set default bias level to standby

Change-Id: I89f375c88efae48fff43fe57e15659b40602dfac
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/73174
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
(cherry picked from commit d00767b6573367a6827f35c2339e46f68f75cbaf)
Reviewed-on: http://git-master/r/73952
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: REVERT "use unsigned cpuidle latency variables"
Joseph Lehrer [Mon, 2 Jan 2012 16:03:32 +0000]
arm: tegra: REVERT "use unsigned cpuidle latency variables"

Reverting until LP2 hang problem better understood.
bug 896827

Reverts I8c8226433d26efbbc1579372c9a73cbc5897f26c
Signed-off-by: Joseph Lehrer <jlehrer@nvidia.com>

Change-Id: I9ae1f8e75b77049baf26480691b98e6f9cacca4e
(cherry picked from commit c0b30ab66c5f1286a5c1f10777c436a80f8f2fa8)
Reviewed-on: http://git-master/r/72905
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Joseph Lehrer <jlehrer@nvidia.com>
Tested-by: Joseph Lehrer <jlehrer@nvidia.com>
(cherry picked from commit 3d7b52eaf614848e8417c84b819c76faed306503)
Reviewed-on: http://git-master/r/73951
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agovideo: tegra: dc: Fix support for YUV422R
Francis Hart [Mon, 12 Dec 2011 10:33:39 +0000]
video: tegra: dc: Fix support for YUV422R

The tegra display controller supports the YUV422R planar surface format, but
this was not handled by the dc driver.

This change also fixes the YUV422RA planar format variation.

Bug 914375

Change-Id: I73ffd2f7434c71d8353c7e16ada5ac6b13fee86b
Reviewed-on: http://git-master/r/69446
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
(cherry picked from commit a085ef1eeb332116f102d82af25f7a6451eb6329)
Reviewed-on: http://git-master/r/73950
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: baseband: Enable autosuspend for Icera modem
Steve Lin [Tue, 29 Nov 2011 02:23:55 +0000]
arm: tegra: baseband: Enable autosuspend for Icera modem

Bug 854339
Bug 909614

Reviewed-on: http://git-master/r/67043
(cherry picked from commit 8888fb8c193295b77224ff71de45794db01c7c92)

Change-Id: I8a8cca0f8126d2e70710fcadad4c115bc0251e6d
Reviewed-on: http://git-master/r/70976
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Jonathan Roux <jroux@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>
(cherry picked from commit 65b1a3d7f6ad78f92af1825f46b2fbb9306d377d)
Reviewed-on: http://git-master/r/73949
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra3: config: Build SND_HDA_INTEL as a module
Rahool Paliwal [Fri, 6 Jan 2012 13:43:13 +0000]
arm: tegra3: config: Build SND_HDA_INTEL as a module

Build SND_HDA_INTEL as a module. SND_HDA_INTEL is required for
audio on HDMI. Building it with "y" makes it default ALSA device,
which then blocks all multimedia audio use cases.

Bug 921550 922497 922520

Change-Id: I7cf437d10b21d8e99c9e6a783f63399d3b883e75
Signed-Off-By: Rahool Paliwal <rpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/73724
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "dm crypt: scale to multiple cpus"
Kasoju Mallikarjun [Tue, 27 Dec 2011 13:29:04 +0000]
Revert "dm crypt: scale to multiple cpus"

This reverts commit c029772125594e31eb1a5ad9e0913724ed9891f2.

Change-Id: Id9ad9be437cd79db20362e1cc4b81b7380ee7f3d
Reviewed-on: http://git-master/r/72237
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoRevert "dm crypt: use io thread for reads only if mempool exhausted"
Kasoju Mallikarjun [Tue, 27 Dec 2011 13:27:13 +0000]
Revert "dm crypt: use io thread for reads only if mempool exhausted"

This reverts commit 20c82538e4f5ede51bc2b4795bc6e5cae772796d.

Conflicts:

drivers/md/dm-crypt.c

Change-Id: Id6c1f774c735836652c07ee279fb81093e732372
Reviewed-on: http://git-master/r/72236
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoRevert "dm crypt: add post iv call to iv generator"
Kasoju Mallikarjun [Tue, 27 Dec 2011 13:10:51 +0000]
Revert "dm crypt: add post iv call to iv generator"

This reverts commit 2dc5327d3acb3340ab6fa3981401b076b78a51f4.

Change-Id: I58ed3f6e8f9d053cb2ae9cfb0ae57528055a902b
Reviewed-on: http://git-master/r/72235
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoRevert "dm crypt: add multi key capability"
Kasoju Mallikarjun [Tue, 27 Dec 2011 13:07:14 +0000]
Revert "dm crypt: add multi key capability"

This reverts commit d1f9642381847e2b94caa34c3533211cf36ffcf4.

Change-Id: If1879b331c1f0e3dea7433c5de53ac653743d9c2
Reviewed-on: http://git-master/r/72234
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoRevert "dm crypt: add loop aes iv generator"
Kasoju Mallikarjun [Tue, 27 Dec 2011 13:02:33 +0000]
Revert "dm crypt: add loop aes iv generator"

This reverts commit 34745785937a2003c144c0d4802fa637470d87af.

Change-Id: Ic1ee80202b92a5ceb4e04ceb041adfbb40274ca0
Reviewed-on: http://git-master/r/72233
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoRevert "dm crypt: wipe keys string immediately after key is set"
Kasoju Mallikarjun [Tue, 27 Dec 2011 12:59:40 +0000]
Revert "dm crypt: wipe keys string immediately after key is set"

This reverts commit de8be5ac70f50a2340f24fd769a1aafa5a51ae34.

Change-Id: I4d2788550ab382ec248c7a2fa10b4cb4e2766283
Reviewed-on: http://git-master/r/72232
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoARM: tegra: uarte: Enable loopback
Pradeep Goudagunta [Wed, 4 Jan 2012 11:28:03 +0000]
ARM: tegra: uarte: Enable loopback

Enable uarte as loopback interface for Cardhu and Enterprise boards.

Bug 845036
Bug 921090

Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>

Change-Id: Ib27a9dadeefec11fdf5a31ecd887eb2d788350d0
Reviewed-on: http://git-master/r/73178
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>

7 years agotty: serial: tegra: Add HW loopback support
Pradeep Goudagunta [Wed, 4 Jan 2012 11:10:05 +0000]
tty: serial: tegra: Add HW loopback support

Add HW loopback support for testing purpose.

Bug 845036
Bug 921090

Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>

Change-Id: I202781ed0b42c1bed2b9aad9576cf74cb938f9e6
Reviewed-on: http://git-master/r/73149
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: whistler: GME pingroup tristated
Bitan Biswas [Tue, 3 Jan 2012 11:50:35 +0000]
arm: tegra: whistler: GME pingroup tristated

GME pin group is tri-stated on whistler to save VDDIO_NAND power

bug 916292

Change-Id: Id6c049c24d9f59d20f33f105b32c62f79124a6ed
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/73008
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agodrivers: nfc: pn544: Add 1ms delay after I2C read and write
Mohan T [Wed, 4 Jan 2012 09:28:41 +0000]
drivers: nfc: pn544: Add 1ms delay after I2C read and write

pn544 seems to be slow in handling I2C read/write requests.
Even though pn544 acks the read/write but next operation fails.

Bug: 915848
Bug: 914700
Bug: 914691
Bug: 915598

Change-Id: I7851d0d4b7c24810ad27f3e0fbd4542b52dc8a5e
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/72867
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Alok Chauhan <alokc@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agousb: gadget: fsl_udc: fix resume path for power
Suresh Mangipudi [Fri, 30 Dec 2011 08:29:33 +0000]
usb: gadget: fsl_udc: fix resume path for power

USB Device when resuming from LP0 will reset the PowerDown values of
USB, these powerdown have to be reprogrammed when there is no usb cable
when device resumes from LP0.

Bug 919432

Change-Id: I306efc3614cceffbf132db92e0a897693043e3f7
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/72722
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra2: clocks: add fuse and fuse_burn clocks
Varun Wadekar [Mon, 26 Dec 2011 12:30:35 +0000]
arm: tegra2: clocks: add fuse and fuse_burn clocks

These clocks are needed for fuse programming and
was added to the tegra3 code but not to the tegra2
code.

Bug 906200

Change-Id: I3ff13e526c252406a5107c5e9f7dd0af8f31c98b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/72136
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregulator: Enable supply regulator if child rail is enabled.
Laxman Dewangan [Mon, 2 Jan 2012 07:38:45 +0000]
regulator: Enable supply regulator if child rail is enabled.

During regulator_register, the rail is set on the provided
machine constraints and if it is enabled then it is also
require to enable the supply regulator. This will make sure
that:
   1. Proper reference count for supply regulator to be maintain.
   2. Supply regulator should be enable when given rail is enabled.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Cherry-picked from linus' mainline:
b2296bd43e781976743354c668a356b0df98e1da

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: Ibfdcc8e8dc04a109905883239a7f358a1ef9d54d
Reviewed-on: http://git-master/r/73176
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: whistler: enable tegra-aes driver
Varun Wadekar [Wed, 4 Jan 2012 09:56:11 +0000]
arm: tegra: whistler: enable tegra-aes driver

Bug 921655

Change-Id: I43e35ecb87d9792b54ded64690c1bfbc7919a634
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/73161
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

7 years agousb: host: tegra: disable phy clock valid interrupt
Rakesh Bodla [Tue, 3 Jan 2012 11:39:27 +0000]
usb: host: tegra: disable phy clock valid interrupt

Disable phy clock valid interrupt while suspending
the driver.

Bug 912286

Change-Id: I9b09230c80c12ba61f1c3281ffc90ad5eb9c4652
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/72976
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agovideo: tegra: dsi: Fix mipi continuous clk disable
Animesh Kishore [Tue, 3 Jan 2012 09:00:41 +0000]
video: tegra: dsi: Fix mipi continuous clk disable

Fix for stopping mipi high speed continuous clk.

Bug 903878

Change-Id: Id318fabd9c6aef116a60608c6f444846172f4803
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/72968
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: Disable pll_p_out clocks by default
ScottPeterson [Wed, 28 Dec 2011 21:40:20 +0000]
arm: tegra: Disable pll_p_out clocks by default

Disable unused pll_p_out clocks until they are
needed to reduce power.

Change-Id: I60c2a7ca50a957f23ca20ec559dbbb1aa26ca797
Reviewed-on: http://git-master/r/72464
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra: Clean up tsensor includes
Dan Willemsen [Wed, 28 Dec 2011 23:16:02 +0000]
ARM: tegra: Clean up tsensor includes

mach-tegra/tegra3_tsensor.h is used for the parameterized initialization
of the tsensor device. mach-tegra/include/mach/tsensor.h is used for the
tsensor device driver.

Really, mach-tegra/tegra3_tsensor.c should go away - probably becoming a
device driver.

Change-Id: I16edae878f1e97d1654252cfee49cd9dd7f77db7
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/72481
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: cpufreq: add cpu to emc mapping for AP25
Prashant Gaikwad [Fri, 2 Dec 2011 10:54:15 +0000]
ARM: tegra: cpufreq: add cpu to emc mapping for AP25

With current mapping for CPU frequency greater than 816 MHz EMC
frequency will be always 600 MHz. AP25 max EMC frequency is
760MHz. If CPU frequency is greater than 1GHz then set
EMC frequency to 760 MHz.

Change-Id: I617e1637bd14c3c8560ffdfa17769f6554059609
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/67893
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: whistler: use SKU to initialize EMC
Prashant Gaikwad [Fri, 18 Nov 2011 10:23:49 +0000]
ARM: tegra: whistler: use SKU to initialize EMC

EMC chip id is same for different whistler boards. Use SKU to
initialize EMC.

Change-Id: I133711e9cfdf5beb8d26e076069c096ccd98af5c
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/67892
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoRevert "Revert "ARM: tegra: whistler: Add AP25 EMC scaling table""
Prashant Gaikwad [Fri, 18 Nov 2011 09:10:34 +0000]
Revert "Revert "ARM: tegra: whistler: Add AP25 EMC scaling table""

This reverts commit 5f1a3978ce2f00d531d4c831b7b34ed55e960572.

Change-Id: I6650d3e51eb5fcb4048e8ed84bdafebc0307ce5a
Reviewed-on: http://git-master/r/72930
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: dvfs: Update Tegra3 CPU DVFS tables
Alex Frid [Thu, 22 Dec 2011 01:47:20 +0000]
ARM: tegra: dvfs: Update Tegra3 CPU DVFS tables

Bug 817679
Bug 841336

Change-Id: I9a9d9e7a03b64774b1d2ebd8533be85582827515
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/71755
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: Enable HDMI for harmony
Preetham Chandru [Thu, 29 Dec 2011 13:25:34 +0000]
arm: tegra: Enable HDMI for harmony

Enabled HDMI support for harmony.

Bug: 911662

Change-Id: I50d513dc0705fb64fc3946c1518b60b885d6194e
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/72611
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: dvfs: Re-arrange Tegra3 scaling voltages
Alex Frid [Thu, 22 Dec 2011 00:28:34 +0000]
ARM: tegra: dvfs: Re-arrange Tegra3 scaling voltages

Removed 925mV and 950mV steps / added 1.175mV and 1.212mV Tegra3 CPU
voltage scaling steps.

Bug 841336

Change-Id: I51f91df857ab3df7d66fcee4cda21318cd3b23eb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/71738
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoARM: tegra: power: L2 cache sync only for CPU0 LP2
Prashant Gaikwad [Tue, 3 Jan 2012 10:18:45 +0000]
ARM: tegra: power: L2 cache sync only for CPU0 LP2

Bug 922010

Change-Id: I19724ae5d8421b2fccfc604ecb0a867d20fddf75
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/72986
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agommc: host: sdhci: do not force mmc caps by default
Varun Wadekar [Thu, 5 Jan 2012 11:50:18 +0000]
mmc: host: sdhci: do not force mmc caps by default

Host controllers expose their capabilties for MMC.
But the mmc core code used to set MMC_CAP_ERASE
and MMC_CAP_CMD23 by default for all hosts. Ideally,
these capabilities should only be exposed by the hosts
and the core code should not set them by default.

Bug 914934

Change-Id: I82610bd48cdfc4926487ad436855bc84876c7283
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoLinux 3.1.7
Varun Wadekar [Thu, 5 Jan 2012 04:35:34 +0000]
Linux 3.1.7

Change-Id: I99507d7cfdcee064f808856dc2ce99d806fd864f

7 years agommc: sdhci: changing sdhci quirks data type to u64
naveenk [Wed, 4 Jan 2012 10:37:46 +0000]
mmc: sdhci: changing sdhci quirks data type to u64

Kernel 3.1 has more than 32 quirks
changing quirks type to u64

Bug 921653

Change-Id: Id6607347e6e48cfa1534f1260e277f6e2f7a42ee
Signed-off-by: naveenk <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/73167
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoserial: tegra: Wait for tx fifo to be empty on close
Laxman Dewangan [Mon, 2 Jan 2012 11:14:53 +0000]
serial: tegra: Wait for tx fifo to be empty on close

Wait tx fifo to be empty on close for the time it is require
to make fifo empty.

bug 921225

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: I0ea2ec488e975833103218d86e8dc37aec79ef88
Reviewed-on: http://git-master/r/72858
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>

7 years agoi2c: tegra:don't overwrite arb_recovery function pointer
Linqiang Pu [Mon, 17 Oct 2011 09:01:31 +0000]
i2c: tegra:don't overwrite arb_recovery function pointer

put busses array as last struct member to avoid overwritting
arb_recovery function pointer.

Bug:889581
Reviewed-on: http://git-master/r/58347
(cherry picked from commit 223b2794fb0d3e94ccfb28549b74941a492415dd)

Change-Id: I4e8792a0cb42255724c8e45baea4f273181a8e2f
Signed-off-by: Linqiang Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/58942
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agommc: tegra: io dpd support added
Bitan Biswas [Mon, 2 Jan 2012 07:35:11 +0000]
mmc: tegra: io dpd support added

Enabled io dpd when clock is disabled for each SD instance.
Clock enable for the SD instance causes io dpd to be disabled.

bug 919993

Change-Id: I7d58517a7c51ce969a167abf7bb90ea89731d999
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/72027
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: fix for spurious INT on PNP of uart
Ramalingam C [Fri, 30 Dec 2011 12:29:06 +0000]
arm: tegra: fix for spurious INT on PNP of uart

On Harmony during PNP of UART console, spurious interrupts are triggered
continuously. Hence kernel/irq/spurious.c will disable the interrupt.
To avoid the trigger of spurious interrupts, this patch disables the
modem status interrupts.

Bug: 909044
Change-Id: I00529ed16503d2c29f377e558b90f2c379e8b624
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/72751
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: delete the debugfs sys entry for suspend
Vandana Salve [Wed, 28 Dec 2011 15:47:54 +0000]
arm: tegra: delete the debugfs sys entry for suspend

Deleted the tegra debugfs /sys entry. Instead have a unified
/sys/power/suspend/mode sysfs entry to set the suspend state.

Bug 911096

Change-Id: I280eb0ed0f5c8b46c2147d84c27b1cf728078709
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/72419
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: pinmux: Support for setting pin io
Pradeep Goudagunta [Fri, 23 Dec 2011 08:53:02 +0000]
ARM: tegra: pinmux: Support for setting pin io

-Added support for setting a pin io state to INPUT/OUTPUT.
-Exported tegra_pinmux _get_pingroup/_set_io to make them
available to loadable kernel modules.

Bug 845065

Change-Id: I7d9500f590b804d1d222dfd7e42d1dbfc6686611
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/71975
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agotegra3: clock: Support for divisor 15.1
Laxman Dewangan [Wed, 28 Dec 2011 08:51:16 +0000]
tegra3: clock: Support for divisor 15.1

Uart clock source has divisor of 16 bits where
LSB is 0.5.
Adding support for divisor 15.1 and configuring uart
for use the 15.1 type divisor.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: Ifdd77041e7abb43026bbfb273f6e12923d64d607
Reviewed-on: http://git-master/r/70324
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoasoc: tegra: max98088 machine: manage disabling of pll_a clock
Nikesh Oswal [Fri, 30 Dec 2011 10:33:03 +0000]
asoc: tegra: max98088 machine: manage disabling of pll_a clock

during suspend if bias is set to off then disable the pll_a and
related clock only once this would prevent the kernel warnings

Bug: 920911

Change-Id: Id85cba4548894572dfd17e51c8a55707bfba7105
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/72739
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: power: io dpd APIs defined
Bitan Biswas [Fri, 30 Dec 2011 12:40:36 +0000]
arm: tegra: power: io dpd APIs defined

Defined IO deep power down(DPD) APIs for tegra drivers -
    tegra_io_dpd_get - returns dpd handle
    tegra_io_dpd_enable - enable driver dpd
    tegra_io_dpd_disable - disables driver dpd

bug 919993

Change-Id: I45976b41dca0e3e9266ace86393ef4db8b20c97b
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/72737
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agopower: bq27x00: add charging status update delay
Pritesh Raithatha [Wed, 28 Dec 2011 13:51:44 +0000]
power: bq27x00: add charging status update delay

bq27x00 takes 3 to 4 second to update charging/discharging
status so it requires to schedule work after 4 second on
external powersupply change.

Bug 902678

Change-Id: Ic5b42804ee3cd98ffab762c042bad447934eba85
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/72411
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: dc: use highest bandwidth setting
Jon Mayo [Tue, 27 Dec 2011 22:47:15 +0000]
video: tegra: dc: use highest bandwidth setting

Apply the highest bandwidth setting before windows are programmed rather
than waiting for vblank.

Bug 914917

Change-Id: Iaaede9966191fdfc896bbbb19fbbadf9c4598bff
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/72301
Reviewed-by: Michael I Gold <gold@nvidia.com>
Tested-by: Michael I Gold <gold@nvidia.com>

7 years agoARM: tegra3: config: enable R8169
Mursalin Akon [Fri, 16 Dec 2011 20:23:54 +0000]
ARM: tegra3: config: enable R8169

Enable Cardhu dock Ethernet

Change-Id: Icc2f6329938f74816b304ff32dd7b554f645b088
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/70634
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agommc: tegra: Add clock stabilization delay
Pavan Kunapuli [Tue, 27 Dec 2011 13:12:15 +0000]
mmc: tegra: Add clock stabilization delay

After switching the voltage and enabling the
clock, wait for 1 msec for the clock to become
stable.

Bug 918563

Change-Id: I3cda964280daf739e8898dffb6ba3ed22ff54b14
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/72231
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agovideo: tegra: host: Move host1x code into own directory
Terje Bergstrom [Tue, 20 Dec 2011 14:33:45 +0000]
video: tegra: host: Move host1x code into own directory

Move source files related to host1x into an own directory.

Bug 871237

Change-Id: I6fa3ef057f8b788c37dd2ab698271cf7508711c6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/71783
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoDriver: net: r8169: Work around for cardhu dock (HACK)
Mursalin Akon [Fri, 16 Dec 2011 20:04:38 +0000]
Driver: net: r8169: Work around for cardhu dock (HACK)

A work around for Ethernet adapter with EEPROM
that has not been programmed.

Change-Id: I24242d404bda951d740dfb5ebfeae8dd692524ab
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/70633
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agoLinux 3.1.7
Greg Kroah-Hartman [Tue, 3 Jan 2012 18:41:27 +0000]
Linux 3.1.7

7 years agoRevert "clockevents: Set noop handler in clockevents_exchange_device()"
Linus Torvalds [Fri, 30 Dec 2011 21:24:40 +0000]
Revert "clockevents: Set noop handler in clockevents_exchange_device()"

commit 3b87487ac5008072f138953b07505a7e3493327f upstream.

This reverts commit de28f25e8244c7353abed8de0c7792f5f883588c.

It results in resume problems for various people. See for example

  http://thread.gmane.org/gmane.linux.kernel/1233033
  http://thread.gmane.org/gmane.linux.kernel/1233389
  http://thread.gmane.org/gmane.linux.kernel/1233159
  http://thread.gmane.org/gmane.linux.kernel/1227868/focus=1230877

and the fedora and ubuntu bug reports

  https://bugzilla.redhat.com/show_bug.cgi?id=767248
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/904569

which got bisected down to the stable version of this commit.

Reported-by: Jonathan Nieder <jrnieder@gmail.com>
Reported-by: Phil Miller <mille121@illinois.edu>
Reported-by: Philip Langdale <philipl@overt.org>
Reported-by: Tim Gardner <tim.gardner@canonical.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

7 years agoarm: configs: tegra2: Enable mtd and yaffs
Preetham Chandru [Mon, 2 Jan 2012 12:33:28 +0000]
arm: configs: tegra2: Enable mtd and yaffs

Enabled mtd and yaffs support for harmony

Bug: 921742
Change-Id: I9ccadf8bd568f8c1421351378e94f17a92a6d322
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/72870
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: disable auto repeat key events for android platforms
Nitin Kumbhar [Tue, 3 Jan 2012 06:33:31 +0000]
arm: tegra: disable auto repeat key events for android platforms

Repeat key events reported to android causes keys (e.g power key) to be
treated differently. Disable EV_REP on android platforms for now.

BUG 918758

Change-Id: I62a7c495303a906ef72738465ce5101d244e725d
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/72953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoinput: tegra: kbc: add disable_ev_rep for auto repeat event
Nitin Kumbhar [Tue, 3 Jan 2012 06:23:27 +0000]
input: tegra: kbc: add disable_ev_rep for auto repeat event

A flag, disable_ev_rep, is added to enable/disable repeat events
reported from the keyboard driver.

BUG 918758

Change-Id: I65be2f795fd64ebb7d36ad278aa2b24362c1e5ea
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/72952
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: harmony: tps6586x: add rtc data
Preetham Chandru [Mon, 2 Jan 2012 13:10:19 +0000]
arm: tegra: harmony: tps6586x: add rtc data

Add proper epoch and cap selection to rtc_data.

Bug: 921782
Change-Id: Ie408eaaa5239494230a36c1588bff601e176fba1
Reviewed-on: http://git-master/r/69838
Signed-off-by: Jong Kim <jongk@nvidia.com>
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/72880
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agotegra: arm: Enable SMSC LAN95XX for harmony
Preetham Chandru [Fri, 30 Dec 2011 12:40:53 +0000]
tegra: arm: Enable SMSC LAN95XX for harmony

Added support for SMSC LAN95XX based USB 2.0

Change-Id: Ifa29b83fe5aba5a3d9adf66f5de9d59618384a72
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/72750
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Shashank Sharma <shashanks@nvidia.com>

7 years agoarm: tegra3: Enable vbus1 & vbus3 for PM311 & PM305.
Preetham Chandru [Mon, 19 Dec 2011 09:39:27 +0000]
arm: tegra3: Enable vbus1 & vbus3 for PM311 & PM305.

Enabled vbus1 & vbus3 for PM311 & PM305 boards. In PM311 & PM305 the gpios
used to enable vbu1 and vbus3 are TEGRA_GPIO_PCC7 & TEGRA_GPIO_PCC6

Bug: 914114
Change-Id: Id52cf6399526cb135968370478b5ac1bd53fe364
Signed-off-by: Preetham Chandru R
Reviewed-on: http://git-master/r/72409
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years ago usb: tegra: hsic system resume issue
Seshendra Gadagottu [Wed, 28 Dec 2011 13:36:57 +0000]
 usb: tegra: hsic system resume issue

 Fixed system resume issue with hsic phy interface by
 removing "usb_set_device_state(udev, USB_STATE_CONFIGURED)"
 from tegra_usb_resume function. This line was added for old
 kernels and not required for K39.

 BUG 905931

Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

Change-Id: I53e34b4d46de23e88eedc02ca1fb4f380d6c1525
Reviewed-on: http://git-master/r/72403
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoARM: tegra: power: Update Tegra3 auto-hotplug states
Alex Frid [Sat, 17 Dec 2011 03:57:04 +0000]
ARM: tegra: power: Update Tegra3 auto-hotplug states

Updated Tegra3 auto-hotplug state machine:

- no longer enter down state on LP CPU (there is no down path on LP)
- no longer enter idle state on G CPU (since load distribution between
G cores may change without CPU frequency change, continue polling)
- allow only disabled or idle state to be set via auto-hotplug sysfs
node, and synchronize with cpufreq governor in the latter case

Change-Id: Ibb93ddca852bbe1341fc5c52b0c83c16e9963e9d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/71584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoRevert "ASoC: Tegra WM8753 machine: Disable regulator when not in use"
Nikesh Oswal [Wed, 28 Dec 2011 09:37:36 +0000]
Revert "ASoC: Tegra WM8753 machine: Disable regulator when not in use"

We must keep the regulator ON always else spurious interrupts
are generated.
This reverts commit 0bdf658f5cd064e41cbbb12a6d1eff5fc0bd09f9.

Bug: 916893
Bug: 918912

Signed-off-by: Nikesh Oswal <noswal@nvidia.com>

Change-Id: I8effc272b71cf103da6f142b949091db9d953742
Reviewed-on: http://git-master/r/72364
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

7 years agoasoc: tegra: max98088 machine: add support for voice call recording
Nikesh Oswal [Wed, 28 Dec 2011 09:03:22 +0000]
asoc: tegra: max98088 machine: add support for voice call recording

Bug: 912897

Change-Id: I3bdc879d7eecea78eace7452fd9b157f68aeea48
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/72355
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

7 years agoasoc: tegra: handling of i2s capture in voice call recording
Nikesh Oswal [Wed, 28 Dec 2011 08:56:51 +0000]
asoc: tegra: handling of i2s capture in voice call recording

stop the enabling/disabling of i2s capture from i2s dai in
voice call recording usecase because this would be handled
by the voice call management functions and also add parameters
for voice call record usecase in i2s structures.

Bug: 912897

Change-Id: I9df117300121218fe7f258fd8c79092ab3e1f8e1
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/72352
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agortc: ricoh583: Fixing month & year calculations
venu byravarasu [Wed, 28 Dec 2011 11:41:22 +0000]
rtc: ricoh583: Fixing month & year calculations

Changes done:
1. As Ricoh RTC month range is between 1 - 12 instead of
0 - 11, fixing it.
2. Filling only two valid BCD digits in the year fields.
3. Enabling YAL alone, with workaround.
4. Code clean up based on check patch warnings.

bug 902137

Change-Id: I497ac5d04230e87baa776e84f6eafa8a28ae54ea
Signed-off-by: venu byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/72082
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agovideo: tegra: host: Move 3D code into own directory
Terje Bergstrom [Tue, 20 Dec 2011 13:39:34 +0000]
video: tegra: host: Move 3D code into own directory

Move source files related to gr3d into own directory.

Bug 871237

Change-Id: I5118ad792d6ec136d2ec2575eff931e112d5f3b2
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/71782
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoasoc: codecs: Add ALC5640 audio codec.
Manoj Gangwal [Tue, 20 Dec 2011 14:58:46 +0000]
asoc: codecs: Add ALC5640 audio codec.

Changes made to add support of ALC5640 codec
for cardhu and support wm8903 codec also without
need for code recompilation.

Bug 910788

Change-Id: Iace74293a44c38eaae516552f03d8bfa6bfe936f
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/71455
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: host: Move MPE files into own directory
Terje Bergstrom [Tue, 20 Dec 2011 13:20:06 +0000]
video: tegra: host: Move MPE files into own directory

Separate source code related to mpe into an own directory.

Bug 871237

Change-Id: I59251752119660bb1e57e1763626fa289a2b9f5b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/70531
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agovideo: tegra: host: Replace magic numbers with constants
Terje Bergstrom [Fri, 25 Nov 2011 09:24:02 +0000]
video: tegra: host: Replace magic numbers with constants

Replace magic numbers with constants throughout the code base.

Change-Id: If6071f3ee95078d7b631a300b241ebf6522ef68a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/66795
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoarm: tegra: Switch governor for both CPUs
Prashant Gaikwad [Mon, 26 Dec 2011 11:11:29 +0000]
arm: tegra: Switch governor for both CPUs

HOTPLUG_CPU option is enabled for both Tegra20 and Tegra30.
For Tegra20, need to switch governor for both CPUs.
Use TERA_AUTO_HOTPLUG config which is enabled only for Tegra30.

Bug 909096

Change-Id: I683079d834f137bb84ff2d3bdb853dac826038d6
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/72127
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agomedia: video: tegra: nvavp: busy and idle hint for host1x
Sachin Nikam [Tue, 27 Dec 2011 08:31:57 +0000]
media: video: tegra: nvavp: busy and idle hint for host1x

When nvavp driver is opened hint host1x busy and on release hint idle.
When going to suspend hint idle and on resume hint busy.

Bug 904555

Change-Id: I18218190cfd7c9ee9540813a8dcaead4556583dc
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/72187
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Mandar Potdar <mpotdar@nvidia.com>

7 years agomedia: video: tegra: ar0832: fix set_mode sequence
Charlie Huang [Thu, 22 Dec 2011 23:05:24 +0000]
media: video: tegra: ar0832: fix set_mode sequence

Remove seperate set gain/framelength/coarsetime calls in set_mode.
Integrate these functions into the write_table with extra override
register table.

Also remove the color specific gain registers in all mode tables
and replace with the global gain register.

This can fix the low brightness issue in still image capture.

bug 909827

Change-Id: I6a117d286f3e7c3d1a2c9cedad4c66011baf511f
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/71900
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoasoc: tegra: fix compiler error without CONFIG_PM
Ken Chang [Wed, 21 Dec 2011 05:14:47 +0000]
asoc: tegra: fix compiler error without CONFIG_PM

enclose the init fuction for i2s reg cache with CONFIG_PM

Change-Id: I4828059e397c151a5ad853b6a45a553c480ac197
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/71581
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoarm: tegra: enterprise: keep TPS80031_CLOCK32K_G on in LP0
Rakesh Goyal [Tue, 27 Dec 2011 07:49:44 +0000]
arm: tegra: enterprise: keep TPS80031_CLOCK32K_G on in LP0

TPS80031_CLOCK32K_G is used by wifi, BT and GPS. Communication module expect
this clock to be always on.

Bug 914485

Change-Id: I73001ec1ca129d86f881467d22ac020fccf4561c
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/72182
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: use unsigned cpuidle latency variables
Joseph Lehrer [Mon, 26 Dec 2011 18:24:06 +0000]
arm: tegra: use unsigned cpuidle latency variables

Latency calculations were using mixed signed/unsigned variables and assignments
resulting in very large values which interfered with entering LP2.

bug 896827

Change-Id: I8c8226433d26efbbc1579372c9a73cbc5897f26c
Signed-off-by: Joseph Lehrer <jlehrer@nvidia.com>
Reviewed-on: http://git-master/r/72151
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: defconfig: don't build IDT ICS932S401 driver.
Linqiang Pu [Mon, 26 Dec 2011 01:35:05 +0000]
arm: tegra: defconfig: don't build IDT ICS932S401 driver.

IDT ICS932S401 is not used by Tegra3 reference board.

Signed-off-by: Linqiang Pu <dpu@nvidia.com>
Change-Id: I019bad552880aed79d4aaddecca4ebdf2cbb4696
Reviewed-on: http://git-master/r/72080
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: cardhu: correct 'en_ddr' and 'en_3v3_sys' power setting
Haley Teng [Wed, 26 Oct 2011 13:44:40 +0000]
arm: tegra: cardhu: correct 'en_ddr' and 'en_3v3_sys' power setting

'en_ddr' should be 'always on' and enabled when boot.
'en_3v3_sys' should be enabled when boot.

Signed-off-by: Haley Teng <hteng@nvidia.com>
Reviewed-on: http://git-master/r/60426
Reviewed-on: http://git-master/r/66590
(cherry picked from commit 28ed5f661ecd55de42688e565c65ff9c0bd3bdda)

Change-Id: I86edb0d3317b02da964fc89b8d593d1d0d3b75b0
Reviewed-on: http://git-master/r/71963
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Haley Teng <hteng@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agotps6591x: fix tps6591x_gpio_output() cannot drive 'low' issue
Haley Teng [Wed, 26 Oct 2011 13:37:44 +0000]
tps6591x: fix tps6591x_gpio_output() cannot drive 'low' issue

mask the GPIO_SET bit (0x1) before decide set it or not by the input
parameter 'value'

Signed-off-by: Haley Teng <hteng@nvidia.com>
Reviewed-on: http://git-master/r/60425
Reviewed-on: http://git-master/r/66589
(cherry picked from commit d7ac2209e0a3783004fba240eea87a8e569d3745)

Change-Id: I33c69c9aaaf3c9b624fabbcbcab80e75de706d38
Reviewed-on: http://git-master/r/71962
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Haley Teng <hteng@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoserial: tegra: move allocation of RX dma to startup
Pradeep Goudagunta [Mon, 19 Dec 2011 11:31:46 +0000]
serial: tegra: move allocation of RX dma to startup

Move allocation of RX dma buffer to startup to avoid data corruption.

Bug 902813

Change-Id: I3bf751c01543c9d6eca08b2942b4f62bc9115775
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/71937
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoregulator: tps80031: use correct voltage conversion formula
Laxman Dewangan [Fri, 23 Dec 2011 13:43:06 +0000]
regulator: tps80031: use correct voltage conversion formula

The correct voltage conversion formula for the register programming
is
Code=((Vout-0.6077)/0.01266)+1

Changing existing formula to above equation.

bug 915859

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: Id745cc82269282318cc064f25e789837dc0dfa7a
Reviewed-on: http://git-master/r/72017
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>