6 years agoWAR: gr3d: limit 3d clock when camera is on
Jihoon Bang [Tue, 19 Jun 2012 23:12:00 +0000]
WAR: gr3d: limit 3d clock when camera is on

As WAR, limit 3d clock frequency and emc clock frequency
when camera is on and chip is AP37. 3d clock is set to
361MHz and 437MHz is requested for emc clock with this
change. This change allows 3d to request 1.1V in Core
instead of 1.3V in AP37.

Bug 1001262
Bug 1019309

Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Change-Id: I1dbab3469a31ef603f7665fc5a6cb5c1999f89b6
Reviewed-on: http://git-master/r/120480
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agokernel/arch: Cardhu: Decrease sensitivity of touch
Xiaohui Tao [Thu, 2 Aug 2012 00:28:31 +0000]
kernel/arch: Cardhu: Decrease sensitivity of touch

Decrease the sensitivity threshold of touch. It might still cause
false touches. May decrease the performance.

BUG 1025873

Change-Id: I9c287a07b470878b05e2e5684a296fbfb5f22aad
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/120454
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Jung <djung@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agomisc: tegra-throughput: prevent race on init
Ilan Aelion [Sun, 5 Aug 2012 12:56:40 +0000]
misc: tegra-throughput: prevent race on init

prevent a race condition on initialization which could result in
multiple notifier registrations.

Bug 1027664

Change-Id: I2e7dcad159f631a7e244d43019169fdaf195bc34
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/121140
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: cardhu: update memory timings
Ray Poudrier [Tue, 3 Jul 2012 18:43:05 +0000]
ARM: tegra: cardhu: update memory timings

Extend tick length to 60ns

Also add missed Cardhu SKU 1000 table

Bug 1001229
Bug 970610

Change-Id: I224158a88d02595d5b911f59b6920b9ed99481ab
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113315
(cherry picked from commit 492193079047d9c5a4fff617a14191438f356e42)
Reviewed-on: http://git-master/r/120967
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoARM: tegra: enterprise: update memory timings
Ray Poudrier [Tue, 3 Jul 2012 03:17:42 +0000]
ARM: tegra: enterprise: update memory timings

Extend to 60ns tick

Bug 1001229

Change-Id: Id2b01218a7c5cb1566d0e8c175defb12c79e6497
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113122
(cherry picked from commit 176fd3fbaede0d38281fe4bad721856e7fef0833)
Reviewed-on: http://git-master/r/120966
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoARM: tegra: kai: update memory timings
Ray Poudrier [Mon, 2 Jul 2012 23:41:32 +0000]
ARM: tegra: kai: update memory timings

Extend tick length to 60ns

Bug 1001229

Change-Id: I8a96dd08b6d11a196c9b82bec403ab2e4676e2f4
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113081
(cherry picked from commit 487622aa43568d3f6f9a9f5fc98176e5ffdd6246)
Reviewed-on: http://git-master/r/120965
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoARM: tegra: la: scale latency allowance based on ticks
Ray Poudrier [Fri, 22 Jun 2012 05:03:54 +0000]
ARM: tegra: la: scale latency allowance based on ticks

With new memory tables, the tick length will be longer.
This will check the tick length of the memory table,
and if needed, update the latency allowance.

Bug 955082

Change-Id: Idba0071c1452db95e3e430db3bea29947e1def6c
Reviewed-on: http://git-master/r/111040
(cherry picked from commit b7627149bd4678e58dfe95db04f5312232715afd)
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/120964
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agomedia: video: tegra: fix sh532u buffer overflows
Frank Chen [Wed, 1 Aug 2012 23:17:44 +0000]
media: video: tegra: fix sh532u buffer overflows

We need to validate the buffer size before we
copy buffers from/to user space.

Bug 1027334

Change-Id: I0717e9ff1d2e5eb3e8a863555457f4bcfdbb2cb9
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/120407
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Anton Kondratenko <akondratenko@nvidia.com>
Reviewed-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-by: Wei Chen <wechen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoasoc: codecs: max98088: fix no audio after reset
Sayak Ghosh Choudhury [Sun, 5 Aug 2012 08:40:17 +0000]
asoc: codecs: max98088: fix no audio after reset

98088 codec register value is altered to fix no audio issue after
reset. Previously after reset the register value was getting wiped
out.

Bug 1017782

Change-Id: I4c6d164067465e15571d1403375eb944a4989f59
Reviewed-on: http://git-master/r/121138
Tested-by: Sayak Choudhury <sayakc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Tue, 31 Jul 2012 22:53:09 +0000]
security: tf_driver: integrate latest TL release

Tegra 3 version: TF_TEGRA3_AB01.14.36781

1)Kernel boot addr in TF boot args, branch prediction activated early,
fix in system driver mapping.
2)Several improvments in boot and L2CC operations
3)Fix to support Neon

Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>

Change-Id: I6ba85c593331d32e0268e7d6a2d65fdeb8e1214e
Reviewed-on: http://git-master/r/119790
Reviewed-on: http://git-master/r/120960
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: James Zhao <jamesz@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: optimize L2 enable/disable paths for secureos
Hyung Taek Ryoo [Tue, 31 Jul 2012 22:43:34 +0000]
arm: tegra: optimize L2 enable/disable paths for secureos

For the CONFIG_TRUSTED_FOUNDATION code paths, differentiate L2
enable vs. reenable, which are different SMCs (won't trigger an
invalidate in the case of a reenable).

On an L2 disable SMC, optionally pass a 0 for the L2 ways arg,
which skips the full clean/invalidate (and simply just disabled
the L2).

In order to safely skip flushing the L2 on the disable, we have
to be careful what we dirty from the type we flush the L1 and
disable the L2.

Bug 939415
Signed-off-by: Chris Johnson <cwj@nvidia.com>

Change-Id: Ie83703e8a1620dcd4a913e43bb0775ce3f1709b5
Reviewed-on: http://git-master/r/119786
Reviewed-on: http://git-master/r/120956
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: James Zhao <jamesz@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 2 Aug 2012 12:19:17 +0000]
ARM: tegra: cardhu: report height/width for cardhu

For accurate Dots-per-inch computation we need to report height/width for
all cardhu based panels.

Bug 1003707.

Change-Id: I06c5ee077aa82a9ffd958e1cc7c536b445523da3
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/120350
(cherry picked from commit 5647ca7f3fe44781a3b9a49f3215d8c629d78f49)
Reviewed-on: http://git-master/r/120625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 26 Jul 2012 21:30:05 +0000]
ARM: tegra: cardhu: report height/width for cardhu

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

Bug 1003707.

Change-Id: I9a3413d06d97bed532ffc501000ca9bc2360e842
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118777
(cherry picked from commit bf475b5c3f084af205957fa2be68ef9f3cf57c3b)
Reviewed-on: http://git-master/r/120624
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: cardhu: provide suspend aggr for E1506
Rakesh Iyer [Thu, 26 Jul 2012 19:18:05 +0000]
ARM: tegra: cardhu: provide suspend aggr for E1506

DSI clock gating requires a valid value for aggressive suspend.

Change-Id: I6847fb94e2db899ff251e16f045fa76b8ad2e737
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118733
(cherry picked from commit a9d87f3b8f9ec811d6f8e0feb10bfb5151cc659c)
Reviewed-on: http://git-master/r/120404
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agovideo: tegra: hdmi: cleanup error handling in init
Gaurav Batra [Wed, 1 Aug 2012 19:28:51 +0000]
video: tegra: hdmi: cleanup error handling in init

In case tegra_dc_init fails, this change will prevent unbalanced call
to dc->out_ops->disable().

Also mark tegra_dc_io_end in case tegra_dc_controller_enable
fails, this is required to not stop device from going into suspend mode.

Bug 1003874

Change-Id: I5af6b46fc50e1ae8e54f9f4eb8540d751364fed7
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/120108
(cherry picked from commit 7f72709c2f23c05f65ff4ca8bfecde0db1448a65)
Reviewed-on: http://git-master/r/120959
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: usb: Clear pmc wake alarm
Krishna Yarlagadda [Tue, 31 Jul 2012 10:48:50 +0000]
ARM: tegra: usb: Clear pmc wake alarm

After a pmc wake, walk pointer and wake alarm should be cleared.
Currently wake alarm is cleared only in case of remote wakeup.
Clearing wake alarm for all cases of pmc wake.

Bug 1024496

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

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

6 years agoARM: Tegra: Added support to run at two frequency modes
Xiao Bo Zhao [Fri, 29 Jun 2012 19:46:11 +0000]
ARM: Tegra: Added support to run at two frequency modes

CPU clock is now capped at an normal frequency that is below
its maximum and allowed to run at a high frequency
only once within a period of time. By default the delay is set to
5*DOWN_DELAY, allowing a maximum of 20% high frequency time.

Sysfs knobs were also added that allows userspace tuning

Bug 1003531

Change-Id: Ic9be46cdae099771950f14e8a6ca79eeab7adbba
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
(cherry picked from commit 779a488fb850eb452a7b43788b87edb4186b69b9)
Reviewed-on: http://git-master/r/121042
Reviewed-by: Ryan Wong <ryanw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: hdcp: Fix Locking Issue
Matt Wagner [Thu, 2 Aug 2012 22:49:50 +0000]
video: tegra: hdcp: Fix Locking Issue

Locking in nvhdcp was set up in such a way that we couldn't
change the state of the HDMI plug while negotiating the HDCP connection.

Another lock was added that is only taken when the state of the plug or
hdcp session are changed.  This enables correct failure if the plug is removed
during negotiation.

Bug 1024031

Change-Id: Ia9e49fcd7b996d2ce5338a72ce4e66c1ab40e1bb
Reviewed-on: http://git-master/r/120546
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agomisc: tegra-throughput: prevent division by 0
Ilan Aelion [Thu, 2 Aug 2012 17:01:02 +0000]
misc: tegra-throughput: prevent division by 0

Prevent division by 0 on subsequent flip notifications at an interval
shorter than 1 micro-second.

Bug 1027664

Change-Id: I6e2f886721216fc2479adc1a24504b707c7ebe45
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/120397
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: configs: tegra3: Enable boost cpu frequency
Rakesh Bodla [Thu, 2 Aug 2012 12:33:57 +0000]
arm: configs: tegra3: Enable boost cpu frequency

Enabling boost CPU frequency for tegra gadget
to improve USB performance.

Bug 1020850

Change-Id: I3ef7cbc4e023ffe1443fc2e662550963f34d1daf
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120353
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rama Kandhala <rkandhala@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoUSB: gadget: f_accessory: change prototype of create_bluk_endpoints
Rakesh Bodla [Thu, 2 Aug 2012 08:54:39 +0000]
USB: gadget: f_accessory: change prototype of create_bluk_endpoints

Changing prototype of create_bluk_endpoints since
function can called during runtime.

Bug 1026235

Change-Id: Ic80eaeb374fb3863cd16be3234653eda80c5eff2
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120308
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: usb_phy: use devm_kfree to free memory
Rakesh Bodla [Thu, 2 Aug 2012 06:10:48 +0000]
arm: tegra: usb_phy: use devm_kfree to free memory

devm_kfree() should be used to free memory allocated by devm_kzalloc()
Memory allocated with devm_kzalloc is automatically freed on driver
detach. Kernel crash will be observed if it is freed with kfree().

Bug 1027472

Change-Id: I48533d520b5c2669ca473c700eec689e2ddcbb90
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120273
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoRevert "Modified the hot-plug governor down_delay to be 500ms instead of 2s"
naveenk [Thu, 26 Jul 2012 08:56:55 +0000]
Revert "Modified the hot-plug governor down_delay to be 500ms instead of 2s"

This is required as it is causing performance regression for SD, eMMC and USB

Bug 1006055
Bug 1021754

This reverts commit 2f5a59bbeee465fb33d012b8dc714fa0c1637209.

Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
(cherry picked from commit 6ba0905d5dbd55d2604f0db2c597826d4354d20a)
Change-Id: I09203754db840428dc9df2b9eff9b5d9b88a7ffb
Reviewed-on: http://git-master/r/120261
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agomedia: tegra: ov9726: add group hold ioctl
Charlie Huang [Wed, 1 Aug 2012 01:41:38 +0000]
media: tegra: ov9726: add group hold ioctl

To make AE transition smoother, the group hold enable/disable actions
should be added before and after set gain/frame length/coarse time.

bug 1025995

Change-Id: I578b33167e50f59d0d9a88a0e16fac0c5425b6b6
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/120406
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

6 years agomedia: video: tegra: Focuser range tuning support
Sudhir Vyas [Thu, 26 Jul 2012 05:42:33 +0000]
media: video: tegra: Focuser range tuning support

* Add support for focuser range tuning.
* Fix focuser position move programming.
* Optimize focuser read/write.
* Optimize focuser power consumption.
* Fix foucser sound issue while capture.
* Improve overall focuser performance.

Bug 1013062
Bug 1018136
Bug 978541

Change-Id: I57fc0566a3a43468ce9a07319014cf3c038ed1e1
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/120307
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoRevert "regulator: tps80031: rename regulator-name enums"
Simone Willett [Tue, 31 Jul 2012 23:30:10 +0000]
Revert "regulator: tps80031: rename regulator-name enums"

This reverts commit 5bc340e408aa3f009651735c71f3c97676fbe79f

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

6 years agoARM: tegra: aruba: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:54:53 +0000]
ARM: tegra: aruba: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

6 years agoARM: tegra: harmony: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:52:40 +0000]
ARM: tegra: harmony: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

6 years agomedia: tegra: ov5650: update 320x240 mode
Wei Chen [Mon, 30 Jul 2012 23:53:14 +0000]
media: tegra: ov5650: update 320x240 mode

Add default values for coarse time and gain
settings.

Bug 990513

Change-Id: I7f6bae50de911f26d10991e1094de211c8f05632
Signed-off-by: Wei Chen <wechen@nvidia.com>

6 years agovideo: tegra: dc: suppress underflow warning
Jay Cheng [Mon, 30 Jul 2012 23:30:14 +0000]
video: tegra: dc: suppress underflow warning

change printk to trace_printk

Bug 995270

Change-Id: I71caadb76f6101f377e44ad3f3dc24ede0a099d5
Signed-off-by: Jay Cheng <jacheng@nvidia.com>

6 years agoARM: tegra: cardhu: WAKE19 disable
Bitan Biswas [Mon, 30 Jul 2012 16:02:05 +0000]
ARM: tegra: cardhu: WAKE19 disable

We see repeated WAKE19 (VBUS) resumes when USB device cable is connected
for E1186/E1187 cardhu boards. Hence, this change disables the WAKE19 to
prevent the problem

bug 1025421

Change-Id: If7ebf68ebf257a9bea58652042d77f0c19f40366
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agousb: otg: tegra: correct improper register update
Rakesh Bodla [Mon, 30 Jul 2012 14:58:36 +0000]
usb: otg: tegra: correct improper register update

Value of WAKEUP register is not updated
properly. Correcting it to take appropriate
value.

Bug 1008660

Change-Id: Ic1dcfed6639c8e8c686bc6931216fd268e4521ed
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>

6 years agoARM: configs: tegra: enable ISO9660 fs
Vishal Singh [Thu, 19 Jul 2012 13:50:49 +0000]
ARM: configs: tegra: enable ISO9660 fs

Enabling ISO9660 file system (and its JOLIET extension) support in
kernel.

Bug 1018276.

Change-Id: I1acaf5dc3a571b75a81860485d3c668ea82d822c
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/117372
Tested-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit c35638147c3fa9d56f124b4d6c0435aadad53d97)

6 years agoarm: tegra: p1852: Add USB_G_ANDROID support
Amlan Kundu [Mon, 16 Jul 2012 09:35:23 +0000]
arm: tegra: p1852: Add USB_G_ANDROID support

+ require for android adb

bug 1005255

Change-Id: If2c8d197f987ddd43a9b6a6cc602ac1e2f4ae2f8
Signed-off-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/114562
(cherry-picked from 6640721b05059f03325abadfebe2f08026a41a88)

6 years agovideo: tegra: nvmap: Fix two integer overflows.
Tuomas Tynkkynen [Mon, 30 Jul 2012 09:40:45 +0000]
video: tegra: nvmap: Fix two integer overflows.

nvmap_ioctl_pinop kmalloc's a temporary buffer, whose length is directly
given by ioctl parameter from usermode. The total size of the buffer
is not checked for overflow, which will cause a kernel panic with some
inputs.

Also, a sizeof() is applied to wrong type when calculating the amount
of bytes to copy from userspace.

nvmap_map_into_caller_ptr attempts to validate that the memory range
to be mapped is correct, but integer overflow can cause the check to
fail. This will lead to mapping wrong pages from the allocated
handle later on, when the page fault handler gets called.

Bug 1025502

Change-Id: I71a09c40c209dba9c5b37c3912e92a81e6f87e80
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>

6 years agoarm: tegra: p1852: Add android defconfig for p1852
Amlan Kundu [Mon, 30 Jul 2012 07:05:17 +0000]
arm: tegra: p1852: Add android defconfig for p1852

bug 1025348

Change-Id: I0206c273af45b51fdd67e94c80f915a33950a929
Signed-off-by: Amlan Kundu <akundu@nvidia.com>

6 years agousb: cdc_ether: Add rmnet device info to ZM5250
BH Hsieh [Mon, 30 Jul 2012 07:16:04 +0000]
usb: cdc_ether: Add rmnet device info to ZM5250

Modified device info element for ZM5250 to
sync with framework.

Change-Id: I855678edccef50c549960ee209e500ec6d692e36
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>

6 years agoregulator: tps80031: rename regulator-name enums
Laxman Dewangan [Wed, 25 Jul 2012 07:57:22 +0000]
regulator: tps80031: rename regulator-name enums

Renaming the regulator name from TPS80031_ID_* to
TPS80031_REGULATOR_* for better readability.

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

6 years agoARM: tegra: enterprise:all configuration through regulator init data
Laxman Dewangan [Thu, 26 Jul 2012 11:39:56 +0000]
ARM: tegra: enterprise:all configuration through regulator init data

In place of using the separate platform data for configuring
regualtor's init states, pass all information through
regulator init data only.

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

6 years agoarm: tegra: usb_phy: Separate the consumer supply
Penny Chiu [Wed, 25 Jul 2012 07:35:25 +0000]
arm: tegra: usb_phy: Separate the consumer supply

Add usb host controller device names for avdd_usb
consumer supply. This change will make all usb
host controller devices have separate regulator
debugfs.

Bug 946361

Change-Id: I8f2a49bffc4623eac2e3f71333b602fb7a6caf7d
Signed-off-by: Penny Chiu <pchiu@nvidia.com>

6 years agoi2c: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:56:39 +0000]
i2c: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: If40890724e2ba6b9c8356c9b031216eb526a5fd8
Signed-off-by: schowdary <schowdary@nvidia.com>

6 years agohwmon/tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 13:30:27 +0000]
hwmon/tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: I1106e3d7d13e0c6305a8709ddfdf85e7652f26a1
Signed-off-by: schowdary <schowdary@nvidia.com>

6 years agortc/tegra: treat compilation warning as error
schowdary [Wed, 25 Jul 2012 07:00:01 +0000]
rtc/tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ic52b13519b817ab3861bd56692ec6b6da60edc48
Signed-off-by: schowdary <schowdary@nvidia.com>

6 years agogpio: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 08:02:02 +0000]
gpio: tegra: treat warnings as errors

add compilation flag to treat warnings as errors

bug 949219

Change-Id: Icc202aabd0a43a7c48a32e40fdf7bffe0142c2ff
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>

6 years agoarm: tegra: usb_phy: add close operation for hsic
Vinayak Pane [Sat, 21 Jul 2012 02:02:29 +0000]
arm: tegra: usb_phy: add close operation for hsic

hsic phy_power_off keeps hsic bus in suspend state
through PMC interface. The bus should go in reset
state at phy_close otherwise the connected device
will not enumerate after ehci-remove.

Bug 1003141

Change-Id: Ifa91d06a3c10221e74de67c68ea1f930d843d19f
Signed-off-by: Vinayak Pane <vpane@nvidia.com>

6 years agokthread: disable preemption during complete()
Peter Boonstoppel [Thu, 19 Jul 2012 21:58:10 +0000]
kthread: disable preemption during complete()

After a kthread is created it signals the requester using complete()
and enters TASK_UNINTERRUPTIBLE. However, since complete() wakes up
the requesting thread this can cause a preemption. The preemption will
not remove the task from the runqueue (for that schedule() has to be
invoked directly).

This is a problem if directly after kthread creation you try to do a
kthread_bind(), which will block in HZ steps until the thread is off
the runqueue.

This patch disables preemption during complete(), since we call
schedule() directly afterwards, so it will correctly enter
TASK_UNINTERRUPTIBLE. This speeds up kthread creation/binding during
cpu hotplug significantly.

Change-Id: I856ddd4e01ebdb198ba90f343b4a0c5933fd2b23
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>

6 years agoRevert "mmc: host: Disable SDIO card clock when idle"
Pavan Kunapuli [Mon, 25 Jun 2012 10:12:55 +0000]
Revert "mmc: host: Disable SDIO card clock when idle"

Without card clock, inband interrupt is not working on
some wifi chips.

Bug 981683

This reverts commit b31946b34507209f26c6d709e23fd1c0cedd25f8.

Change-Id: I2dd86edb2445bd6db7917adf509b7a018d31aaed
Reviewed-on: http://git-master/r/110839

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Change-Id: I6f2266ac5b6bd9585272958b4b8a89af1b3cdffb
Reviewed-on: http://git-master/r/119009
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

6 years agoARM: tegra: wifi dpd control for reset
Bitan Biswas [Fri, 27 Jul 2012 10:39:39 +0000]
ARM: tegra: wifi dpd control for reset

Wifi On/Off needs to toggle GPIO pins under SDMMC that could be
in IO DPD mode.

bug 1021526

Change-Id: If514059372d2242c6f6512b30534536cbff455dd
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/118940
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>

6 years agoregulator: tps65090: align driver with mainline
Laxman Dewangan [Mon, 30 Jul 2012 12:59:25 +0000]
regulator: tps65090: align driver with mainline

Align driver with mainline.
This is based on mainline change
452534e50780697a7e1d3cf87cdfdd2b5a0d3c6b
------------------
regulator: Add TPS65090 regulator driver

Add TPS65090 regulator driver

TPS65090 PMIC from TI consists of 3 step down converters,
2 always on LDOs and 7 current limited load switches. The
output voltages are ON/OFF controllable and are meant to
supply power to the components on target board.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-----------------

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

6 years agoARM: tegra: usb: keep usb vdd regulator on
Rakesh Bodla [Mon, 30 Jul 2012 09:46:18 +0000]
ARM: tegra: usb: keep usb vdd regulator on

Adding the conditions during which USB vdd
regulator should be kept ON.

Bug 1024425
Bug 1012078
Bug 1018538

Change-Id: I3319c91ecc02891ea4467f73be2b84a3817dab36
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/119279
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra: usb: free allocated resources in error
Rakesh Bodla [Fri, 27 Jul 2012 18:38:08 +0000]
ARM: tegra: usb: free allocated resources in error

Free allocated resources at approriate error
conditions.

Change-Id: I548f6ac7ad65eae93f9f49b0a5fa7ffff9685241
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/119039
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agomfd: tps80031: add subdevs through mfd_add_devices()
Laxman Dewangan [Thu, 26 Jul 2012 11:06:17 +0000]
mfd: tps80031: add subdevs through mfd_add_devices()

Add provision to register sub devices through mfd sub
devices. This will help to move all sub devices as
mfd subdevices.

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

6 years agomfd: tps80031: rewrite exit path in probe failure
Laxman Dewangan [Thu, 26 Jul 2012 11:00:58 +0000]
mfd: tps80031: rewrite exit path in probe failure

Rewrite exit path in case of failure in registration in
probe.

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

6 years agommc: core: Fix PowerOff Notify suspend/resume
Pavan Kunapuli [Fri, 27 Jul 2012 09:48:02 +0000]
mmc: core: Fix PowerOff Notify suspend/resume

Modified the mmc_poweroff to resume before sending the poweroff
notification command. In sleep mode only AWAKE and RESET commands are
allowed, so before sending the poweroff notification command resume from
sleep mode and then send the notification command.

PowerOff Notify is tested on a Synopsis Designware Host Controller
(eMMC 4.5). The suspend to RAM and resume works fine.

Change-Id: Ib4642a29e423aee6041a92cc72a388d677674ae3
Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
Tested-by: Girish K S <girish.shivananjappa@linaro.org>
Reviewed-by: Saugata Das <saugata.das@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

Bug 1007644
Bug 936069

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Change-Id: I2e3d421c82eb765cb640876691ffe4818d7e146b
Reviewed-on: http://git-master/r/118918
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agommc: core: Add option to prevent eMMC sleep command
Ulf Hansson [Mon, 19 Dec 2011 15:24:19 +0000]
mmc: core: Add option to prevent eMMC sleep command

Host may now use MMC_CAP2_NO_SLEEP_CMD to disable the use
of eMMC sleep/awake command.

This option can be used when your platform has a buggy
kernel crash dump software, which is supposed to store
the dump on the eMMC, but is not able to wake up the eMMC
from sleep state.

In particular, failures have been seen with u-boot; even if
it is fixed there, platforms will be slow to update their
bootloader binaries.

Change-Id: I403f4b2a231dde087095a660189dc2f4e79edfd5
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-by: Hanumath Prasad <hanumath.prasad@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Acked-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

Bug 1007644
Bug 936069

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Change-Id: I8b2834e154e338a97bd6d82f177809d47d318ff0
Reviewed-on: http://git-master/r/118914
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agommc: sdhci: Avoid power on/off during sleep
Pavan Kunapuli [Tue, 10 Jul 2012 13:27:25 +0000]
mmc: sdhci: Avoid power on/off during sleep

If eMMC sleep support is enabled, set MMC_PM_KEEP_POWER
to avoid host power off and power on. Instead, restore
the host context in resume.

Bug 1007644
Bug 936069

Change-Id: I74578bb1f9e297b3af6bd79b9215364334984836
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/118913
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: usb_phy: Fix remotewakeup resume code
Vinod Atyam [Thu, 26 Jul 2012 09:21:33 +0000]
ARM: tegra: usb_phy: Fix remotewakeup resume code

1) After remote wakeup resume code is not waiting until
RESUME and SUSPEND bit cleared.  Instead it is waiting
for RESUME bit to get set. This is updated properly now.
2) During resume, no need to depend on port speed to
take HSIC in high speed.

Bug 1019619

Change-Id: I3d06255da65045bdf5c6a4deb10a3c6f96aef661
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: http://git-master/r/118582
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoarm: tegra: p1852: Fixes for I2S master mode
Nitin Pai [Tue, 10 Jul 2012 13:31:34 +0000]
arm: tegra: p1852: Fixes for I2S master mode

Change the Drive strength of DAP1 for I2S to operate in both
master and slave mode.
Changed the Pull Up/Down mechanism for I2S4 to operate in master/slave
mode.

Bug 1009249

Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/114587
(cherry picked from commit 29ec5dfb81b823880f393bece5daf5396ef77629)
Change-Id: I24a252370b993150a553c9f81fb44e6d8f86589a
Reviewed-on: http://git-master/r/118251
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agommc: tegra: Don't set MMC_PM_KEEP_POWER by default
Pavan Kunapuli [Fri, 27 Jul 2012 10:58:00 +0000]
mmc: tegra: Don't set MMC_PM_KEEP_POWER by default

For SDIO devices, MMC_PM_KEEP_POWER would be set
by wifi driver during suspend. It need not be set
by default.

Bug 1011349

Change-Id: I779a438b45afed2cc0fd7283d89c24e9049cfe39
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/118954
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: dvfs: enable regulator before using it
Laxman Dewangan [Thu, 26 Jul 2012 09:51:09 +0000]
ARM: tegra: dvfs: enable regulator before using it

The dvfs system require the regulator for regulating
the voltage. The regulator should be enable before
using it to make sure the reference count enabling rail
of that rail should be properly counted.

Change-Id: Ib8b673ecb7939ac80f46bdf90ffec27b8f62df6b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/118598
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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>