7 years agovideo: tegra: dsi: Fix host HS transmission
Animesh Kishore [Wed, 25 Jul 2012 11:55:39 +0000]
video: tegra: dsi: Fix host HS transmission

Fixing host transmission with HS enabled.

Bug 999141

Change-Id: I9dcc5282971830865dacf16dbbbebf4096aeb00e
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/118315
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: tegra: i2s: Fixes for audio_clock_2x rate
Nitin Pai [Mon, 2 Jul 2012 08:32:31 +0000]
asoc: tegra: i2s: Fixes for audio_clock_2x rate

audio_clock_2x parent needs to be set first before
changing the rate, else it will not work.

Bug 1019017

Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/116682
(cherry picked from commit fdc4da6d96e7be4aa2accf098de48543e745cf11)
Change-Id: I93aeb1afed8732e8a1b1cff4ab03b9a9f654804f
Reviewed-on: http://git-master/r/118250
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agospi: tegra: enable warning as error flag
Deepak Nibade [Wed, 25 Jul 2012 05:12:21 +0000]
spi: tegra: enable warning as error flag

-enable warnings as errors compilation flag
-handle error of uninitialised variable

bug 949219

Change-Id: I9e754b1cbf086f99433d47aef793a8635185a25e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118239
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Tested-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: Add profile that disables runnable threads
Xiao Bo Zhao [Wed, 25 Jul 2012 02:21:08 +0000]
ARM: tegra: Add profile that disables runnable threads

Add profile [0, 0, 0] which effectively disables runnable threads

Bug 1003531

Change-Id: Ia45e533d5a6531b06c44c6d95f2f7cfd93cf976e
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/118219
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoarm: tegra: Added sysfs knobs for RT thresholds
Xiao Bo Zhao [Mon, 9 Jul 2012 21:53:18 +0000]
arm: tegra: Added sysfs knobs for RT thresholds

Added different bias levels to RT and added the option to
modify the bias level through sysfs knobs

Bug 1003531

Reviewed-on: http://git-master/r/114271
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 654bc674034f384d8826806fb443d4e9c67b9b3b)

Change-Id: I2e647a65fb89926dd9f0b2ac3edc3dca8eb659a1
Reviewed-on: http://git-master/r/118201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agonet: wireless: bcmdhd: power off card when not in use
Om Prakash Singh [Tue, 24 Jul 2012 16:27:06 +0000]
net: wireless: bcmdhd: power off card when not in use

Power off the card when wifi is off and power up only when wifi
is turned on

Bug 1011349

Change-Id: I26a8188d932516c0490dec858acd9e8ea2c5adf8
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/118097
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: Added sysfs knob that checks app profile support
Xiao Bo Zhao [Fri, 20 Jul 2012 02:56:28 +0000]
ARM: tegra: Added sysfs knob that checks app profile support

Currently app profile is only supported for AP37
hence added sysfs knob that uses cpu_speedo_id in
order to check app profile support

Bug 1003531

Change-Id: I12b9bc1700b3c925a1f1d51bb00584e7e5d6f0a3
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/117852
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoARM: tegra: dvfs: Adjust VDD_CPU to offset aging
Anshul Jain [Mon, 23 Jul 2012 21:59:32 +0000]
ARM: tegra: dvfs: Adjust VDD_CPU to offset aging

Add silicon aging for VDD_CPU, this recovers some of millivolts based on
the age of the chip.

BUG 1006420

Change-Id: Idddb5861ab039e7ece262dec3697a69c3534ccf2
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/116911
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoARM: tegra3: clock: Put graphic clks to safe range
Jong Kim [Sat, 21 Jul 2012 00:15:57 +0000]
ARM: tegra3: clock: Put graphic clks to safe range

Initialize graphic and video input clocks in to safe frequency ranges.

bug 966041

Change-Id: I48a035b42bad5a6d36f56e2b0610baf0703c3bcd
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/117484
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agovideo: tegra: host: use fps in 3dfs by default
Ilan Aelion [Tue, 17 Jul 2012 16:19:04 +0000]
video: tegra: host: use fps in 3dfs by default

enable using frame rate information in 3d frequency scaling by default

Bug 991589

Change-Id: I410c86e3a56ddf00610133333dd518b4f46aa9ec
Reviewed-on: http://git-master/r/116867
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agovideo: tegra: host: adding throughput hint in 3dfs
Ilan Aelion [Mon, 16 Jul 2012 23:31:57 +0000]
video: tegra: host: adding throughput hint in 3dfs

adding support for using a throughput hint given by the tegra-gfx misc
device in the 3d scaling code. If throughput hint usage is enabled and
the latest throughput hint is recent enough (less than 1 second old),
the throughput hint is used to control 3d frequency scaling. Otherwise
the existing idle time percentage estimate is used.

Bug 991589

Change-Id: I68893e5ce7ef922b95ce5f5b3664eb8e1fdd4027
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116866
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agoARM: tegra: cardhu: report height/width for E1506
Rakesh Iyer [Wed, 25 Jul 2012 21:10:35 +0000]
ARM: tegra: cardhu: report height/width for E1506

For accurate Dots-per-inch computation we need to report height/width for
the E1506 panel.

Bug 1014380.

Change-Id: Ic78b6843f65f44d6162e3c4313aae37bd0e96ba1
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118438
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agoALSA: usb-audio: register switch device
Ravindra Lokhande [Fri, 27 Jul 2012 17:06:29 +0000]
ALSA: usb-audio: register switch device

regsiter android switch device which is used to convey device plug-in
 and plug-out to userspace.

Bugs 1009921, 1019877

Change-Id: I8e3c2fce420cc0ce094a6d8f2cf00abb630fcf2f
Reviewed-on: http://git-master/r/119033
Tested-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Vijay Mali <vmali@nvidia.com>

7 years agogpio: tegra: configure pins during irq_set_type
Stephen Warren [Mon, 19 Mar 2012 16:31:58 +0000]
gpio: tegra: configure pins during irq_set_type

When a Tegra GPIO is used as an IRQ, it should be enabled as a GPIO (so
the pinmux module isn't driving it as an output) and configured as a GPIO
input (so the GPIO module isn't driving it as an output). Set this up
automatically whenever an IRQ is requested, so that users of IRQs don't
need to do this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>

Change-Id: I5159fe099e483145977ecdba63a2bc4302105932
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/118658
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agospi: tegra: create workqueue before register spi master
Laxman Dewangan [Wed, 25 Jul 2012 08:22:03 +0000]
spi: tegra: create workqueue before register spi master

Create all resource require for spi transfer before registering
spi master as the spi communication is possible during the
registration.

bug 1023003

Change-Id: I1f77385866f358effeffb89c6af53a6a2f1c8738
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/118267

7 years agoarm: tegra: Add HSIC to list of wake up sources
Venu Byravarasu [Fri, 20 Jul 2012 09:48:27 +0000]
arm: tegra: Add HSIC to list of wake up sources

bug 1010916

Change-Id: I6d01e8d19be1583b7454cc731f8f30ec58eec672
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/117338
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra3: usb_phy: Add support for HSIC wakeup
Venu Byravarasu [Tue, 24 Jul 2012 12:42:22 +0000]
arm: tegra3: usb_phy: Add support for HSIC wakeup

As part of this patch following changes are made:
1. HSIC regulator enable/disable is added
2. HSIC phy close is added.

bug 1010916

Change-Id: I4607a3ac13417a201b62708c6fef5d1117dfdcc5
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/116984
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra: la: hack latency allowance formula
Michael Frydrych [Wed, 11 Jul 2012 08:43:42 +0000]
arm: tegra: la: hack latency allowance formula

Remove the ad-hoc scale factor of final latency allowance.
Scale the fifo size to pretend that our FIFO is only as deep
as the lowest fullness we expect to see.

Bug 995270

Change-Id: I78ed2246d2031a2303f81a19fe05c95572a692b0
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/118816
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Graziano Misuraca <gmisuraca@nvidia.com>
Tested-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoARM: tegra: clock: increase Tegra3 pll post-lock delay
Sang-Hun Lee [Fri, 27 Jul 2012 16:57:54 +0000]
ARM: tegra: clock: increase Tegra3 pll post-lock delay

Bug 1022877

Change-Id: I9200d3345a933ab0ccb31f833184ee4a621228f0
Reviewed-on: http://git-master/r/118774
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>

7 years agomisc: tegra-throughput: adding throughput dev node
Ilan Aelion [Thu, 28 Jun 2012 00:58:11 +0000]
misc: tegra-throughput: adding throughput dev node

Creates a miscdev at /dev/tegra-throughput which gl will use to set a
target frame rate. In addition it receives notifications from dc on
flip events. On each notification the percentage ratio of the actual
frame time to the target frame time is calculated. In subsequent
changes this ratio will be reported to other modules as a throughput
hint.

Bug 991589

Change-Id: Ieaa2b2755b63d2d071de31e3ef819d4c3b51a956
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agomedia: video: nvavp: Add bsea/vcp clocks for Audio
Vandana Salve [Fri, 25 May 2012 13:34:06 +0000]
media: video: nvavp: Add bsea/vcp clocks for Audio

1) Enable bsea/vcp clocks for Audio support by ioctl
2) Send kernel event NVE276_OS_INTERRUPT_APP_NOTIFY
to user space
3) Suspend Resume support

bug 964514

Change-Id: I72fb790baa093b4bcd99a128c886dc049fa0fbb6
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/108493
cherry picked from commit 4432c5fa5e9072ff019d994f3bc8239bd34ddad1
Reviewed-on: http://git-master/r/114589
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: nvmap: Set PAGELIST_VMALLOC_MIN size correct
Krishna Reddy [Wed, 18 Jul 2012 21:59:51 +0000]
video: tegra: nvmap: Set PAGELIST_VMALLOC_MIN size correct

page list array size greater than PAGE_SIZE should use vmalloc.

Change-Id: Ic03668ba7ff716bfb3cc08aaef5f86214ee0a9df
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/116875
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit ddacaacd2a9fff10187e026eaa0d898694eeb95f)
Reviewed-on: http://git-master/r/118194

7 years agomm: failslab: Add support to force slab alloc failures based on size.
Krishna Reddy [Wed, 18 Jul 2012 21:06:50 +0000]
mm: failslab: Add support to force slab alloc failures based on size.

Any alloc request, with  size greater than PAGE_SIZE, to
slab allocator is not guarnateed to succeed, even though
enough memory is available, as memory can get fully fragmented
over the time.
This allows finding the slab allocator requests with size
greater than PAGE_SIZE early and avoid finding issues much late
in product life cyle.

Change-Id: Ibf13e626a671d41569415a56e775ac5e96b90ba3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/116855
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 604a65f8e3c9472886b48b1a287f78f11235d1ce)
Reviewed-on: http://git-master/r/118193
Reviewed-by: Alex Waterman <alexw@nvidia.com>

7 years agoarm: configs: tegra3: Enable fault injection for slab alloctor.
Krishna Reddy [Wed, 18 Jul 2012 20:51:10 +0000]
arm: configs: tegra3: Enable fault injection for slab alloctor.

Even though config option is enabled, the fault injection is not
enabled by default. It need to be enabled through debugfs interface
during test.

Change-Id: Iaba52d27a97bc4ecdc04e79e29ab25e03438bbc0
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/116851
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 892f0239562de8cd5a6a93deeaec826e45b368b0)
Reviewed-on: http://git-master/r/118192

7 years agousb: ehci: tegra: Update RUN bit properly.
Suresh Mangipudi [Tue, 24 Jul 2012 07:22:00 +0000]
usb: ehci: tegra: Update RUN bit properly.

Read the RUN bit and update it properly.
Remove unused variable.

Change-Id: I1df5dc99ce40e2ca15f0ade28d156a7262467519
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/117958
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: Tegra: p1852: defconfig: disabled TEGRA_SE_ON_CBUS and set CONFIG_TEGRA_CBUS_CLO...
Mohit Kataria [Thu, 19 Jul 2012 13:44:31 +0000]
ARM: Tegra: p1852: defconfig: disabled TEGRA_SE_ON_CBUS and set CONFIG_TEGRA_CBUS_CLOCK_DIVIDER=1

* Disabled  CONFIG_TEGRA_SE_ON_CBUS
So that se clock can be derived from clocks
other than which are driving cbus.

* Changed CONFIG_TEGRA_CBUS_CLOCK_DIVIDER=1
So that pllc can run at same frequency as
cbus is running at.

Bug 978870

Change-Id: I66898e3f16adad3625efb1a484b438c168419a68
Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/117995
(cherry picked from commit b5d42b0432119ddebcc38f6f40761e3dea3d9f6d)
Reviewed-on: http://git-master/r/117312
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agosecurity: tf_driver: integrate latest TL release
Karan Jhavar [Sat, 21 Jul 2012 02:42:55 +0000]
security: tf_driver: integrate latest TL release

Tegra 3 version: TF_TEGRA3_AB01.11.35578, TF_TEGRA3_AB01.11p1.35578
                 TF_TEGRA3_AB01.11p2.36386, TF_TEGRA3_AB01.11p3.36518
         TF_TEGRA3_AB01.11p4.36577, TF_TEGRA3_AB01.11p5.36677

1)Add memory profiling tool to debug secure services's stack and heap
2)Add support to enable dynamic clock gating feature in PL310 register
3)TEE client API at kernel level
4)Stable FIQ debugging (SDK ver 1.09)
5)clrex stability change
6)GIC controller stability settings
7)Fix LP1
8)Fix floating pt support

Bug 1021831

Change-Id: I5c2a693a27dc591b62863aa0fe4ff65163e67aba
Signed-off-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-on: http://git-master/r/117515
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agousb: ehci: DMA buffer sync for qh/qtd descriptors
JC Kuo [Tue, 17 Jul 2012 09:57:44 +0000]
usb: ehci: DMA buffer sync for qh/qtd descriptors

When EHCI host controller driver examines qh/qtd descriptors, driver
might see stale data in cache on some ARM CPU. This patch introduces
two helper functions, ehci_sync_qh() and ehci_sync_qtd(), to
invalidate cached descriptors so that driver can always read
up-to-date descriptors from memory.

Bug 1005403

Change-Id: I2345bda7dfe29c5fe7f9550066b518cd6624d263
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/116406
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
Reviewed-by: Joy Wang <joyw@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agomedia: video: tegra: ar0832: reduce permissions
schowdary [Thu, 26 Jul 2012 13:42:17 +0000]
media: video: tegra: ar0832: reduce permissions

CTS test fails if there are write permissions for user.
Hence reduce permissions for test_pattern.

bug 1001925

Change-Id: I769ff501671182965a8b699d7bbd580400ccd1c1
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118871
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoasoc: tegra: integration of slave mode support.
Ankit Gupta [Wed, 11 Jul 2012 15:20:01 +0000]
asoc: tegra: integration of slave mode support.

Add master/slave configurability support interface for
all codecs. Currently, complete slave mode functionality
is added only for MAX98088 and WM8903 codec only. By
default, board parameters will set i2s master mode for
all codecs.

asoc: tegra: utils: add support for i2s master/slave mode.
Support for i2s in master or slave mode is made generic by
obtaining information from platform data.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: Ided0fcefb6cdb124b78aab423bfd8c7dccd4bf6e
Reviewed-on: http://git-master/r/111553
(cherry picked from commit bb1ad7222f9c75424a45976d16de418bc927dc04)

asoc: tegra: wm8903 machine: add support for i2s in slave mode.
Add support for i2s as slave for playback and capture use cases.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: I1f6b73a0a1b690ecd311b0ff4107aadbb1f037d8
Reviewed-on: http://git-master/r/111472
(cherry picked from commit 0434f8ba74adefe60597d95d30a455b9b2ece9b8)

asoc: tegra: wm8753 machine: add support for i2s in slave mode.
Add support for i2s as slave for playback and capture use cases.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: Ib0596955cd0c6ac5ec57b0f3c6ecc9e4ed41268c
Reviewed-on: http://git-master/r/113208
(cherry picked from commit 0fc6b5e3a98d9f8866f73d7914b0c590334ce862)

asoc: tegra: aic326x machine: add support for i2s in slave mode.
Support for i2s in slave mode is added for playabck and capture
use cases.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: I41f6459765f075703ad7f5f8dc9d4628dd853820
Reviewed-on: http://git-master/r/112874
(cherry picked from commit 9a89ede36a1dca6f53250444e819443fb6f28d09)

asoc: tegra: rt5640 machine: add support for i2s in slave mode.
Add support for i2s as slave for playback and capture use cases.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: I850ec62149b8a8d244445b70658b632dbce06558
Reviewed-on: http://git-master/r/112878
(cherry picked from commit 1d51561c8edf47d8557a825450a48ee8743a185b)

asoc: tegra: max98088 machine: add support for codec i2s as slave.
Add support for codec i2s as slave during voice Call.
(Bug 998682)
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: I8fc54d367e9acd5417d270869cb5a9398b3b527f
Reviewed-on: http://git-master/r/110559
(cherry picked from commit 78a490867e131b1cc892094ddd844c2b892cafb6)

asoc: tegra: max98095 machine: add support for i2s in slave mode.
Add support for i2s as slave for playback and capture use cases.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: I80944d403be94c55ad2ce31aea921d80ea7c088a
Reviewed-on: http://git-master/r/112875
Reviewed-on: http://git-master/r/118080
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

7 years agoARM: tegra: integration of slave mode support.
Ankit Gupta [Fri, 13 Jul 2012 09:28:18 +0000]
ARM: tegra: integration of slave mode support.

Add configurability support for i2s parameters accross all board.

ARM: tegra: board: add i2s params
Add configurability support for i2s parameters accross all board
files.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: If58788b5126280b7e1dc8c66e9c96d0e71229b5e
Reviewed-on: http://git-master/r/111476
(cherry-picked from commit cac52867b0a0cad3b3c5bf46f08b0b94d0be2e02)

ARM: tegra: include: add configurability support for i2s params.
Add several variables for i2s configuration in platform data
structure.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Change-Id: Iea3930f308954471f170513234c2c02a8559ef98
Reviewed-on: http://git-master/r/111473
(cherry picked from commit 35e749770f6046fc82860f1152db2f5f579b9508)
Reviewed-on: http://git-master/r/118071
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoUSB: gadget: tegra: SW WAR for dTD issue
Krishna Yarlagadda [Mon, 18 Jun 2012 15:09:34 +0000]
USB: gadget: tegra: SW WAR for dTD issue

SW WAR implementation for h/w issue observed on all tegra platforms
Adding a dTD to a Primed Endpoint May Not Get Recognized

TD freeing will be delayed until next TD is completed

Bug 1002166

Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/109562
(cherry picked from commit 8603480606af20444ed91e3010a22cc02edacb78)

Change-Id: I875d06eb2db78a18858590645df631478f3201bb
Reviewed-on: http://git-master/r/116972
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoARM: tegra: move secondary start kernel message
Jake Park [Tue, 24 Jul 2012 04:59:45 +0000]
ARM: tegra: move secondary start kernel message

Using printk before CPU online can make hang or kernel panic.

Bug 1017539
Bug 1019700

Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/117924
(cherry picked from commit 9d7426fdc7e8c70079d37f529517932370355ac6)

Change-Id: Ib55ee06dcaf92af63f8d72ee74939c72dda4296c
Reviewed-on: http://git-master/r/118141
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>

7 years agoarm: tegra: enterprise: Turn LCD_RESET low in display off
Karthik Ramakrishnan [Fri, 15 Jun 2012 00:57:27 +0000]
arm: tegra: enterprise: Turn LCD_RESET low in display off

During early suspend, LCD_RESET output needs to be
turned low. 3mW power savings during display Off and
1mW on lp0.
Bug 969716
Bug 990845

Change-Id: Ia773f0411452fad3eddccb5f293d7f32c4a46a56
signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
(cherry picked from commit 87322ed7e125ae1ac8d05b623c66f6ab7ea40881)
Reviewed-on: http://git-master/r/114057
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: cpuquiet: Fix cpuquiet notifiers
Sai Charan Gurrappadi [Wed, 25 Jul 2012 18:16:08 +0000]
ARM: tegra: cpuquiet: Fix cpuquiet notifiers

The notifiers now properly fire on every cluster switch

Change-Id: I381301cf62f25b49532326cc7759696c7f6797b7
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/118376
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agousb: cdc-acm: fix packet loss issue
Steve Lin [Thu, 19 Jul 2012 19:36:18 +0000]
usb: cdc-acm: fix packet loss issue

There is race between acm_suspend and acm_read_bulk_callback. Host may
receive bulk transfer right before suspend. The packet will be discarded
if this urb is killed in acm_suspend. This patch checks the actual length
of urb and processes it in this case.

Bug 996268

Signed-off-by: Steve Lin <stlin@nvidia.com>

Change-Id: Ief2b42708160b67903f976ec60da825d46c4720b
Reviewed-on: http://git-master/r/117135
(cherry picked from commit af3e96c987fbae8a135d1ff18872b9c32e09b67f)
Reviewed-on: http://git-master/r/118105
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoarm: tegra: cardhu: Change governor type
Prem Sasidharan [Thu, 28 Jun 2012 01:58:45 +0000]
arm: tegra: cardhu: Change governor type

Power improvement for OS IDLE DISPLAY OFF, audio use cases.
Governor is changed to conservative governor when panel is
suspended. Default governor (interactive governor) is restored
when the panel resumes (when user presses the power button).

Seeing a power improvement of 22mW (42mW/64mW) for os idle
display off and 30mW (57mW/87mW) for audio playback use cases

Bug 1002294
Signed-off-by: Prem Sasidharan <psasidharan@nvidia.com>
Change-Id: I06d2bca654bc8ff96fdf18d81a98c6e4ec838235
(cherry picked from commit 7002c3fe264163b6be38cf9e24bdf137f44ed69f)
Reviewed-on: http://git-master/r/118196
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agop1852: Adding defconfig file for p1852 mods
Sanjay Sancheti [Mon, 9 Jul 2012 05:45:56 +0000]
p1852: Adding defconfig file for p1852 mods

This is a copy of p1852 defconfig with usb support disabled

Bug 989824

Change-Id: I40089049a35c18782b2e211b63d20fafe8fb9ee8
Reviewed-on: http://git-master/r/114138
Tested-by: Sanjay Sancheti <sasancheti@nvidia.com>
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
(cherry picked from commit a147ad51d486d4aea9a73a11d4c14a13ad2121bb)
Reviewed-on: http://git-master/r/118011
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: pci: Organize pcie initialization code
Jay Agarwal [Sat, 21 Jul 2012 18:17:33 +0000]
arm: tegra: pci: Organize pcie initialization code

1. Initialize PCIe on every resume whether device
   is dock/undocked.
2. Poweroff PCIe if Poweron failed at any stage.
3. Make PCIe initialization robust so that it is
   successful anytime dock is connected i.e while
   in LP0 or after it's exit or else.

Bug 1020949

Change-Id: I79cd75f2bf7164a9b5c8906a370364dba5183ac8
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/117532
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agortc: tps6591x: Prevent wrong date setting
Preetham Chandru [Fri, 20 Jul 2012 05:31:26 +0000]
rtc: tps6591x: Prevent wrong date setting

This CL handles the following:

1. Prevents setting of wrong date in tps6591x_rtc_set_time().

For example the following case was not handled in rtc driver:
if hwclock command wanted to set 31/Dec/1999 then our RTC driver was
setting the date to 31/Dec/2099 and later on when hwclock read the
date back it was getting a invalid date.
Also, the hwclock command can only handle date upto the year 2038.

2. Sets STOP_RTC bit to one when the driver is initialized

Bug 1012914
Bug 1017647
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: If8abfebe3ee6da05498deb38d7247ab265729c0c
Reviewed-on: http://git-master/r/117298
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agochar: agp: treat compile warning as error
schowdary [Tue, 24 Jul 2012 12:04:46 +0000]
char: agp: treat compile warning as error

-enable warnings as errors compilation flag

bug 949219

Change-Id: I47e2df835985f341ebccdad95f53b4e6f7763e39
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118017
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: xmm: flash modem reset functionality
Vinayak Pane [Fri, 13 Jul 2012 00:13:07 +0000]
arm: tegra: xmm: flash modem reset functionality

Flash version modem need to do reset with gpio
and start enumeration on falling edge of ap wake.

Remove unused variable enum_delay_ms.

Bug 1003141

Change-Id: Ie43c693c3fead5c89b30c1b97cf1f3e4c05e5588
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/116886
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Chang <kenc@nvidia.com>
Tested-by: Ken Chang <kenc@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoARM: tegra: thermal: fix inform edp governor bug
Daniel Fu [Fri, 20 Jul 2012 03:27:27 +0000]
ARM: tegra: thermal: fix inform edp governor bug

Fixed bug using Tj temp to update thermal zone,
It should use EDP temp to update it.

bug 1007726

Change-Id: Ibcf2520a4bad7dc977add0b5c855681d2667a7c2
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/117250
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joshua Primero <jprimero@nvidia.com>
Tested-by: Joshua Primero <jprimero@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agommc: core: SDXC speed class support
Pavan Kunapuli [Mon, 16 Jul 2012 09:27:35 +0000]
mmc: core: SDXC speed class support

Unlike SDSC and SDHC, for SDXC cards CMD20 needs to be
issued to meet the class performance for speed class
recording. Adding mmc_speed_class_control() which should
be used by an AV recording app/utility before starting
recording on an SDXC card.

Bug 969360
Reviewed-on: http://git-master/r/39394
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/115685
(cherry picked from commit 04b8d1287a95e1882d956cdf7997015350408a3c)
Change-Id: Id567effb476ee580de3d49b70201ebae5a13360a
Reviewed-on: http://git-master/r/118038
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agop1852: clocks: remove duplicate host1x clock limit
Nirav Patel [Tue, 5 Jun 2012 23:00:34 +0000]
p1852: clocks: remove duplicate host1x clock limit

host1x clock limit is already imposed by tegra3_dvfs.c and need not
to be explicitly set for p1852 SKU. Hence, removing the clock limit
duplication.

Bug 925358

Change-Id: I5e936f46ad64b0335561e321d61c4e8b13d7f765
Reviewed-on: http://git-master/r/106637
(cherry picked from commit ccaa3515121b637ce3870bf73f2402846670b63c)
Signed-off-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-on: http://git-master/r/118130
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: clock: Add Tegra3 cbus profiling sysfs nodes
Alex Frid [Wed, 18 Jul 2012 20:49:28 +0000]
ARM: tegra: clock: Add Tegra3 cbus profiling sysfs nodes

Added:

/sys/kernel/tegra_cap/cbus_cap_level
/sys/kernel/tegra_cap/cbus_cap_state

Change-Id: I06a32ea4001f1f644da4f230870f39523f9b6df3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/116874
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agoARM: tegra: clock: Add Tegra3 cbus profile cap
Alex Frid [Wed, 18 Jul 2012 19:52:06 +0000]
ARM: tegra: clock: Add Tegra3 cbus profile cap

Change-Id: I4d15ef7a9089bf3519155d9ccf5192bf3dcf0bd6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/116873
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agoARM: tegra: cpuquiet: Notify the cpuquiet governor when the driver is busy
Sai Charan Gurrappadi [Wed, 11 Jul 2012 00:33:58 +0000]
ARM: tegra: cpuquiet: Notify the cpuquiet governor when the driver is busy

Added generic busy/free notifiers that the driver can invoke to let the
governor know that it cannot process further core online/offline
requests (invoked in our case whenever we switch to the LP cluster).

Change-Id: I5e3f7f28f38806a7f87050e8d0c8d2f2cf7521aa
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/114807
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agovideo: tegra: nvmap: Fix breakage for T20
Hiroshi DOYU [Tue, 24 Jul 2012 09:48:50 +0000]
video: tegra: nvmap: Fix breakage for T20

NVMAP_CONVERT_CARVEOUT_TO_IOVMM is only available for IOMMU less SoCs.

This was introduced by:
  commit b8b0b4c42fc77d94b8deadaa46f795784f3bbb5e
  video: tegra: nvmap: Make IOMMU/IOVMM selectable in Kconfig

Bug 1017112

Change-Id: I2a6f101b15085ece600f77690bc77adc042eb29f
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/117976
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Meghana Kankarej <mkankarej@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agovideo: tegra: dc: synchronize dsi clock-gating
Rakesh Iyer [Thu, 19 Jul 2012 19:44:08 +0000]
video: tegra: dc: synchronize dsi clock-gating

The one shot thread will clock gate the modules periodically. This will ensure
relevant paths in dc driver have an active dc clock and dsi host.

Bug 1013172

Change-Id: Ibb505e35044f31405c06cb9fa0d6fdf78aafd4a6
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/117137
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agousb: ehci: tegra: HSIC remote wakeup support
Vinod Atyam [Tue, 26 Jun 2012 09:08:48 +0000]
usb: ehci: tegra: HSIC remote wakeup support

1) Returning in irq after remote wakeup resume handled
   in ehci irq function.
2) Removed the unused variables.

Bug 889618

Change-Id: I9a1fd25c753a53462bf7742065fa618caae501ab
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: http://git-master/r/111192
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: usb: Fix First SOF corruption.
Suresh Mangipudi [Tue, 24 Jul 2012 07:16:47 +0000]
arm: tegra: usb: Fix First SOF corruption.

In ULPI phy first SOF after Reset may be corrupt. Fixing this issue.

Bug 1012500

Change-Id: I45ee1b4c8e0a29298c94813030d22291b79e417b
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/117635
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: dvfs: update AP37 dvfs entry
Rakesh Iyer [Thu, 12 Jul 2012 21:56:12 +0000]
arm: tegra: dvfs: update AP37 dvfs entry

Update Tegra3 AP37 dvfs table entries.

Bug 841336

Reviewed-on: http://git-master/r/115509
(cherry picked from commit fda92ca92eb421b554fcb50117c92ec59b4b515a)

Change-Id: Ib15ba4731f0770a8af2272c51a90c7dc0fd8f6b9
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/117926
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agopower: tps80031: charger: enable max current limit to 2.25A
Xin Xie [Wed, 11 Jul 2012 00:33:43 +0000]
power: tps80031: charger: enable max current limit to 2.25A

Current max USB bus current limit is 1.5A, add up to 2.25A support based
on TPS8003x register documentation.

BUG 1014876

Change-Id: Iae23e2473d9a7b52dac2d92029af03729e1e8a11
Reviewed-on: http://git-master/r/114801
(cherry picked from commit 04638c07f0b5a4ecea405ed914e144004b60877d)
Reviewed-on: http://git-master/r/116115
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: host: fix memory leak in ctx save
Mayuresh Kulkarni [Tue, 17 Jul 2012 10:33:21 +0000]
video: tegra: host: fix memory leak in ctx save

- host1x_save_context() explicitly updated the ref count on context
- with the re-factoring of nvhost_job code, nvhost_job_alloc()
takes a ref count on context
- this caused the explicit ref count in host1x_save_context()
redundant and lead to memory leak. hence remove it

Bug 1015924

Change-Id: Id18c74412e8659b60288700972690d1b895de4c1
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/116409
(cherry picked from commit c98d0cfbbdacdda8e540b5d9e0d513e279b3b2f5)
Reviewed-on: http://git-master/r/117326
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: usb: Turn off built in host on otg
Krishna Yarlagadda [Fri, 20 Jul 2012 06:20:47 +0000]
ARM: tegra: usb: Turn off built in host on otg

Disable built in host support on OTG port
for Whistler and Enterprise boards.

Bug 1012273
Bug 947300

Change-Id: I88574c37795ee204e0cc67ed71f424443950494f
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/117307
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: usb: regulator on during lp0 on T20
Krishna Yarlagadda [Wed, 18 Jul 2012 11:34:33 +0000]
ARM: tegra: usb: regulator on during lp0 on T20

Tegra 2 requires regulator to be on during lp0

Bug 1012273

Change-Id: I750892fd391be327e617c70b7da4c984019a32fa
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/116743
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoandroid: logger: Allow a UID to read it's own log entries
Nick Kralevich [Thu, 23 Feb 2012 18:09:06 +0000]
android: logger: Allow a UID to read it's own log entries

Modify the kernel logger to record the UID associated with
the log entries. Always allow the same UID which generated a
log message to read the log message.

Allow anyone in the logs group, or anyone with CAP_SYSLOG, to
read all log entries.

In addition, allow the client to upgrade log formats, so they
can get additional information from the kernel.

(cherry picked from android common tree commit
 d993be54c164ea473816f04745ae4f0504dbccfb)

NV Bug 1019928

Change-Id: Ie48fb614b43c9302a07ad2673b78dd8749b492b6
Signed-off-by: Nick Kralevich <nnk@google.com>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/117175
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: clock: Set SCLK floor for CPU mode switch
Alex Frid [Thu, 1 Mar 2012 23:20:40 +0000]
ARM: tegra: clock: Set SCLK floor for CPU mode switch

Set SCLK floor to 80MHz for Tegra3 CPU mode switch.

Bug 933984

Change-Id: Ibbb0a24cd763c11b3cead60efe26096bae3e6ddd
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/106035
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Tested-by: Jay Cheng <jacheng@nvidia.com>
(cherry picked from commit 842f7ddb7a188e36a2ff153dc0d8ed38b5e28319)
Reviewed-on: http://git-master/r/113981
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: enable REGULATOR_TPS51632
Laxman Dewangan [Mon, 23 Jul 2012 08:00:28 +0000]
ARM: tegra: enable REGULATOR_TPS51632

Enable regualtor REGULATOR_TPS51632 which is used
for cpu regulator.

Change-Id: I5ba78608e6c5480e8b0d8d54ee59c9bba0b58428
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/117602
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: enterprise: increase drive strength for sdmmc1
Rakesh Goyal [Fri, 20 Jul 2012 09:19:57 +0000]
arm: tegra: enterprise: increase drive strength for sdmmc1

Bug 987713

Change-Id: I4e6fb47007e337ec992d5ee58510c664957b448d
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/117592
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agovideo: tegra: 2d: reset 2d clock to minimum
Bharat Nihalani [Mon, 23 Jul 2012 05:28:47 +0000]
video: tegra: 2d: reset 2d clock to minimum

This was accidently reverted to be set to max with commit 9774bbe31a.
With 2d clock at max, there is a hit on video power numbers.

Change-Id: Iaf73c6f7800d56229d35fb6a2b00f61d460e986d
Reviewed-on: http://git-master/r/117589
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Donghan Ryu <dryu@nvidia.com>

7 years agoregulator: tps51632: add regulator driver for TI tps51632
Laxman Dewangan [Mon, 23 Jul 2012 07:57:17 +0000]
regulator: tps51632: add regulator driver for TI tps51632

This driver supports voltage regulator driver for TI TPS51632
voltage regulator chip. The TPS52632 is 3-2-1 Phase D-Cap+ Step
Down Driverless Controller with Serial VID control and DVFS.
This device has only one voltage output.

bug 978821

Change-Id: I73f3fd696bab5267e76e788fb4b5bf8d9f10b5b5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/117381

7 years agoarm: tegra: E1506 Tristate and pull down LCD pins
Prem Sasidharan [Tue, 26 Jun 2012 23:27:42 +0000]
arm: tegra: E1506 Tristate and pull down LCD pins

Tristating and pulling down LCD_PCLK,LCD_WR_N,LCD_HSYNC,LCD_VSYNC
LCD_SCK,LCD_SDOUT and LCD_SCIN for E1506 DSI panel.

Bug 999702
Signed-off-by: Prem Sasidharan <psasidharan@nvidia.com>

Reviewed-on: http://git-master/r/111390
(cherry picked from commit 822a1c8ce2a50ff7b53cdd811c3ae1e47568d69d)

Change-Id: Icba97ddcbc4e7bd0b8c4744703e85bf8bc94ba69
Reviewed-on: http://git-master/r/117308
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agousb: ehci: tegra: prevent illegal register access
Rakesh Bodla [Tue, 17 Jul 2012 05:55:51 +0000]
usb: ehci: tegra: prevent illegal register access

Make sure phy is turned ON before reading USB
registers.

Bug 993380
Bug 1006579

Reviewed-on: http://git-master/r/116045
(cherry picked from commit a1a6db7dc88880fb3d4bca0036ce421e4032adae)
Change-Id: If94e691bf9b5b46dd8f8562f27cf86e59a4d6353
Reviewed-on: http://git-master/r/117257
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoARM: tegra: phy: avoid illegal access to registers
Rakesh Bodla [Fri, 20 Jul 2012 06:11:09 +0000]
ARM: tegra: phy: avoid illegal access to registers

Adding the conditions to prevent illegal register access.

Bug 993380
Bug 1006579

Reviewed-on: http://git-master/r/113138
(cherry picked from commit a3c026a229bbce614d7f40319bada1d7bf42942d)

Change-Id: I0d8e6c20aab04aa43ae484dc8ceb6fcb2c27d151
Reviewed-on: http://git-master/r/117256
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: config: tegra3: Enable IrDA support
Ramalingam C [Thu, 19 Jul 2012 09:24:30 +0000]
arm: config: tegra3: Enable IrDA support

Enables the IrDA support on E1198 and E1186 platforms.
This will enable the access to the IrDA transceiver through
(/dev/ttyHS1) UARTB of verbier (E1240).

Bug 999895

Change-Id: Ib2b8391facddf12b3b48d319e11f548d9f963712
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/114952
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: cardhu: IrDA support on UARTB
Ramalingam C [Wed, 11 Jul 2012 09:17:48 +0000]
arm: tegra: cardhu: IrDA support on UARTB

Adds the IrDA support functions to the platform_data of UARTB on Verbier
boards(E1198 and E1186). And also adds a config variable CONFIG_TEGRA_IRDA
to control the IrDA support on Tegra.

Bug 999895

Change-Id: Iab77c419004292190421d55fd02e249ff98c728e
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/114930
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agotty: serial: tegra: IrDA support with tegra_hsuart
Ramalingam C [Wed, 11 Jul 2012 07:00:44 +0000]
tty: serial: tegra: IrDA support with tegra_hsuart

Adds the IrDA transceiver handling support to tegra_hsuart driver based on
the platform data.

Bug 999895

Change-Id: Ia475639d97c540d014c7128ef392fa394a5b26ad
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/114927
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: Tegra3: clocks: Configurable cbus divider
Mohit Kataria [Wed, 20 Jun 2012 05:35:39 +0000]
ARM: Tegra3: clocks: Configurable cbus divider

Added config option to set cbus divider.

Bug 978870

Change-Id: I49c57064ce695dd703ad97a50b8c0d373f5a05d0
Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/114197
(cherry picked from commit 3f2b0e2b973a106d62e1f4bfb75bb40bd1a96b9b)
Reviewed-on: http://git-master/r/109962
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomfd: tps80031: use regmap for register access
Laxman Dewangan [Thu, 19 Jul 2012 14:47:14 +0000]
mfd: tps80031: use regmap for register access

Use regmap for register access of device in place of
direct i2c calls.
This helps to have the debug FS support through regmap and
also help to caching register with minimum configuration.

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

7 years agomfd: tps80031: use devm managed resources
Laxman Dewangan [Thu, 19 Jul 2012 08:35:52 +0000]
mfd: tps80031: use devm managed resources

Allocate memory for device state using devm_kzalloc()
to simplify accounting and letting the kernel do the
garbage-collection.

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

7 years agomfd: tps80031: Use struct dev_pm_ops for power management
Laxman Dewangan [Wed, 18 Jul 2012 13:21:55 +0000]
mfd: tps80031: Use struct dev_pm_ops for power management

Make the tps80031 driver define its PM callbacks through a
struct dev_pm_ops object rather than by using legacy PM hooks
in struct i2c_driver

Change-Id: I3963426c26eb7609794c6fe761d69f31ee630cb2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/117330
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agomfd: tps80031: fix compilation warning
Laxman Dewangan [Thu, 19 Jul 2012 10:13:58 +0000]
mfd: tps80031: fix compilation warning

Fixing compilation warning:

kernel/drivers/mfd/tps80031.c: In function 'tps80031_init_ext_control.isra.4':
kernel/drivers/mfd/tps80031.c:594:6: warning: 'ret' is used uninitialized in this
function [-Wuninitialized]

Change-Id: I7d9cfab7b03ffe085ef4db7c9b08b0f2cb4e6fec
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/117329
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoscripts/Kbuild.include: Fix portability problem of "echo -e"
Bernhard Walle [Sun, 26 Feb 2012 17:35:18 +0000]
scripts/Kbuild.include: Fix portability problem of "echo -e"

"echo -e" is a GNU extension. When cross-compiling the kernel on a
BSD-like operating system (Mac OS X in my case), this doesn't work.

One could install a GNU version of echo, put that in the $PATH before
the system echo and use "/usr/bin/env echo", but the solution with
printf is simpler.

Since it is no disadvantage on Linux, I hope that gets accepted even if
cross-compiling the Linux kernel on another Unix operating system is
quite a rare use case.

(Cherry-picked from upstream v3.4 commit
875de98623fa2b29f0cb19915fe3292ab6daa1cb)

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Andreas Bieƃ\237mann <andreas@biessmann.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Nuno Subtil <nsubtil@nvidia.com>

Change-Id: Iddfeae6611a82e76a5d7cecbc1af25d4fdc71ecc
Reviewed-on: http://git-master/r/116918
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Tested-by: Nuno Subtil <nsubtil@nvidia.com>

7 years agoCHROMIUM: config: enable DM_CRYPT target
Kees Cook [Thu, 9 Feb 2012 00:53:31 +0000]
CHROMIUM: config: enable DM_CRYPT target

The dm "crypt" target is needed for encrypted /var support.
Additionally, since the expected hash alg will be sha256, built it in,
and ready future support for sha512 as a module.

BUG=chromium-os:22172
TEST=build, boot amd64-generic, verify target listed in "dmsetup targets"

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/15548
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Kees Cook <keescook@chromium.org>
Commit-Ready: Kees Cook <keescook@chromium.org>
(cherry-picked from commit 50180f134a6e23be3ce763524b6b5193d848c0f7)

Modified to use:
chromeos/config/config.common.chromeos

instead of:
chromeos/config/base.config

Change-Id: Iac31f59f340f52a7017948fd5add3d316d38a123
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-on: http://git-master/r/117151
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agodrivers: net: raw-ip: Add IPv6 support.
Michael Hsu [Wed, 28 Mar 2012 21:57:53 +0000]
drivers: net: raw-ip: Add IPv6 support.

Upon receiving IPv6 packet, set ethernet header's ether type
to 0x86dd.  For transmission of IPv6, nothing extra required,
as the 14 byte ethernet header (containing the 0x86dd ether
type) is already stripped off as part of the raw-ip protocol.

Bug 1010735

Change-Id: Id574a7feeefbde0504ad0ea449dff28340e9356a
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/113761
(cherry picked from commit 8bdfd06cae7eede4856ef825ea26b69c9ea065ef)
Reviewed-on: http://git-master/r/117148
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoARM: tegra: clock: Reduce Tegra3 pll post-lock delay
Alex Frid [Sun, 15 Jul 2012 03:11:04 +0000]
ARM: tegra: clock: Reduce Tegra3 pll post-lock delay

Reduced pll post-lock delay from 50us to 2us.

Rearranged wait for lock loop to delay first check of lock bit
by 2us after pll is enabled.

Added read fence for PLLM lock via PMC (in this case enable bit is
in APB bus register, but lock detect bit is in PPSB bus register).

Bug 1017271

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

7 years agoARM: tegra: power: Enforce CPU rate range in secondary boot
Alex Frid [Fri, 18 May 2012 05:11:55 +0000]
ARM: tegra: power: Enforce CPU rate range in secondary boot

On Tegra3 make sure cpu rate is within G-mode range before LP to G
mode switch triggered by secondary cpu boot directly from LP mode.

Bug 988544

Change-Id: I0d86fbf0727a6bbf6069159e7c532947a9d0af73
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/115930
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Greg Lo <glo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra: clock: relax memory efficiency if 3d clock is off
Peter Zu [Thu, 5 Jul 2012 01:56:48 +0000]
ARM: tegra: clock: relax memory efficiency if 3d clock is off

Bug 1003509

Change-Id: I8fb2c0cff7106671f8470b836ea26c09350d6206
Signed-off-by: Peter Zu <pzu@nvidia.com>
(cherry picked from commit df2dda0438c2aed3a961d197dce7319fefdf5b30)
Reviewed-on: http://git-master/r/115468
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: dvfs: add back 916mV & 1007mV entries
Peter Zu [Fri, 6 Jul 2012 00:01:12 +0000]
ARM: tegra: dvfs: add back 916mV & 1007mV entries

Bug 841336

Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/113751
(cherry picked from commit 833f9d47a350358000e9201f77a3c9fd655d2900)

Change-Id: I679093d9d2577625bff3e02e25ffe90d396ea5a6
Reviewed-on: http://git-master/r/116134
Tested-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: dvfs: update Tegra3 single-core dvfs table
Peter Zu [Fri, 22 Jun 2012 18:11:49 +0000]
ARM: tegra: dvfs: update Tegra3 single-core dvfs table

Bug 841336

Signed-off-by: Peter Zu <pzu@nvidia.com>
Reviewed-on: http://git-master/r/110587
(cherry picked from commit c0e7904245168cafc426219948ab132a4d832376)

Change-Id: I370f4af1d4ce888ebc71351519c1018b82d91913
Reviewed-on: http://git-master/r/116132
Tested-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: pci: unmap/map memory while pwroff/on
Jay Agarwal [Mon, 16 Jul 2012 11:14:15 +0000]
arm: tegra: pci: unmap/map memory while pwroff/on

Rearranged the code to release all memory and res-
ources whenever poweroff is called and re-allocate
them whenever power on is called.

Bug 963969

Change-Id: I31d9cd1e8603e638714bba765aadfdd4eed78d93
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/116048
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: reset io dpd mode
Bitan Biswas [Thu, 12 Jul 2012 13:03:37 +0000]
ARM: tegra: reset io dpd mode

Bootloader io dpd settings are cleared during kernel initialization

bug 758856

Change-Id: Ic6d5250a5ae127bb45ab37b9200ca06c8d1f11a2
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/115395
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agortc: set alarm logging enable
Bitan Biswas [Wed, 18 Jul 2012 12:58:20 +0000]
rtc: set alarm logging enable

Set alarm logs enabled to help understand suspend stress failures

Change-Id: I60644ff0e3fea813ae1140be1b71fc2694d95709
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/115361
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agocpufreq: interactive: clean up sysfs declarations
Ilan Aelion [Mon, 2 Jul 2012 18:27:45 +0000]
cpufreq: interactive: clean up sysfs declarations

Cosmetics: introducing a macro to define unsigned long sysfs nodes.

Change-Id: I594a527dc977437405167237e8d5ac6d3a3167d2
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/113020
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoi2c: tegra: enable/disable clock unconditionally during xfer
Laxman Dewangan [Tue, 17 Jul 2012 14:28:16 +0000]
i2c: tegra: enable/disable clock unconditionally during xfer

Do the clock control for enable/disable during each transfer
regardless of whether clock is always on or not.

If clock is always on then in probe the reference count of the
clock incremented and doing again enable will just increment
reference and disable will decrement the reference count
and so there is no harm on calling enable/disable always
during transfer.

Change-Id: Ibf67413fb84f826f04e890fe3dd2a20cd0469922
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116473
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoi2c: tegra: remove unused member variable
Laxman Dewangan [Tue, 10 Jul 2012 11:40:21 +0000]
i2c: tegra: remove unused member variable

Remove unused member variable "iomem" of the
i2c device structure.

This variable becomes unused when converted all allocation
to devm_* in following change:
    i2c: tegra: make all resource allocation through devm_*

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cherry-picked from mainline
57c0dc3e69439a2ddf239226c318d676da773492

Change-Id: I8a3db21524a20ee4cbd1b87dff82bac80a2763de
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116472
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoi2c: tegra: i2c slave initialization for non-dvc i2c
Laxman Dewangan [Tue, 17 Jul 2012 14:01:04 +0000]
i2c: tegra: i2c slave initialization for non-dvc i2c

The slave configuration is required for non-dvc i2c.
This can be done by checking the i2c type "is_dvc"
in place of having another variable.

Change-Id: Ia80ba0f7a68e2dfaa13b5da94896b87f2877e047
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116471
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoRevert "i2c: tegra: Fix i2c unknown interrupt issue"
Laxman Dewangan [Tue, 17 Jul 2012 13:24:24 +0000]
Revert "i2c: tegra: Fix i2c unknown interrupt issue"

This reverts commit 021d8866c80fab07cb4cd2753ed67d0c1b49c174.

The reason for revert the change:
The readback is done at the time of i2c_writel() and hence
it is not require to have this in scattered manner.
This is towards the aligning driver with mainline.

Change-Id: I74184683301d7a3c26550d97fb1ce3596273a0bb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116470
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoi2c: tegra: make sure register writes completes
Laxman Dewangan [Wed, 13 Jun 2012 10:12:36 +0000]
i2c: tegra: make sure register writes completes

The Tegra PPSB (an peripheral bus) queues writes transactions.
In order to guarantee that writes have completed before a
certain time, a read transaction to a register on the same
bus must be executed.
This is necessary in situations such as when clearing an
interrupt status or enable, so that when returning from an
interrupt handler, the HW has already de-asserted its
interrupt status output, which will avoid spurious interrupts.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cherry-picked from mainline
ec7aaca2f64f509f45d463d784b41d0b3d2be083

Change-Id: I4f064c38993031303bfeef794015efd5517561cc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116469
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoi2c: tegra: make all resource allocation through devm_*
Laxman Dewangan [Wed, 13 Jun 2012 10:12:39 +0000]
i2c: tegra: make all resource allocation through devm_*

Use the devm_* for the memory region allocation, interrupt request,
clock handler request.
By doing this, it does not require to explicitly free it and hence
saving some code.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cherry-picked from mainline
9cbb6b2b92d0fdade0fe00cc00e3658b44c86676

Change-Id: I0bc86dbd2bd4e460c75f6d425131f9e27bdace71
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116468
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoi2c: tegra: Add devexit_p() for remove
Shubhrajyoti Datta [Tue, 20 Dec 2011 06:15:08 +0000]
i2c: tegra: Add devexit_p() for remove

It was originally missed in the __devinit/__devexit annotations.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Olof Johansson <olof@lixom.net>

Cherry-picked from mainline
218d06d79468ca2e6abf3679eea12d7d93d251ef

Change-Id: I66db3d8b54ad6635819e5bda677bc789f9f90588
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116467
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoi2c: tegra: Add __devinit/exit to probe/remove
Stephen Warren [Sun, 18 Dec 2011 06:29:29 +0000]
i2c: tegra: Add __devinit/exit to probe/remove

This fixes some section mismatch build warnings.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
This is based on mainline
92891da11a3f913b50a685c3facff6a5891a45ba

Change-Id: I40547607818dbc42e5a428bfd98edcf472a7e35e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116466
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoi2c: tegra: rename dev_pm_ops variables/macro
Laxman Dewangan [Tue, 17 Jul 2012 12:51:54 +0000]
i2c: tegra: rename dev_pm_ops variables/macro

To align the downstream to mainline, renaming the
variable/macro of dev_pm_ops as per mainline.

The original change on mainline is:
commit 6a7b3c3c465cef29d92dfc3fbbff0d958aa8be04
Author: Rafael J. Wysocki <rjw@sisk.pl>
    i2c-tegra: Use struct dev_pm_ops for power management

Change-Id: Ica427ee339390a76ac8004bef96b4c12ef4ecae4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116465
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoi2c: tegra: use of_match_ptr() for match_table initialization
Laxman Dewangan [Tue, 10 Jul 2012 11:20:42 +0000]
i2c: tegra: use of_match_ptr() for match_table initialization

In place of defining match_table for non-DT based as NULL,
use of_match_ptr() for initialzing the of_match_table.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

Cherry-picked from mainline
02d8bf8dc6b09cb810599c64d47da3bdf4f85882
Fixed conflicts.

Change-Id: I71994c49813396ad6b3dfa3fd616d9585203adba
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116464
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agoarm: tegra3: usb_phy: HSIC rail consumes 4mA in suspend
srinivas [Mon, 16 Jul 2012 10:39:12 +0000]
arm: tegra3: usb_phy: HSIC rail consumes 4mA in suspend

In auto-suspend, removed power downs for HSIC from
 PADS_CFG1 register.

Bug 1011912

Change-Id: I646c196ef9b822ae8d9e12a0f918507fcdd16f0b
Signed-off-by: srinivas <sthaduvai@nvidia.com>
Reviewed-on: http://git-master/r/116044
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: tegra2 wakeups header cleanup
Bitan Biswas [Thu, 28 Jun 2012 07:28:41 +0000]
ARM: tegra: tegra2 wakeups header cleanup

Removed the unnecessary function prototypes in Tegra2 wakeups header

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

7 years agoarm: config: tegra3: enable alsa usb audio
Ravindra Lokhande [Thu, 19 Jul 2012 14:22:54 +0000]
arm: config: tegra3: enable alsa usb audio

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

7 years agoARM: mm: cache-l2x0: Implement outer_clean_all()
Kirill Artamonov [Mon, 16 Jul 2012 14:24:00 +0000]
ARM: mm: cache-l2x0: Implement outer_clean_all()

There is already implemented full outer clean routine in
arch/arm/mm/cache-l2x0.c.

Make it possible to use it through outer_cache interface,
like other outer maintenance functions.

bug 983964

Change-Id: I47f1fad536c151c255e6a42d6517114c334ddfef
Reviewed-on: http://git-master/r/116074
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Justin Paver <jpaver@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>