5 years agomisc: ti-st: Adding IORESOURCE_IRQ_OPTIONAL case
Harry Hong [Mon, 26 Aug 2013 05:53:01 +0000]
misc: ti-st: Adding IORESOURCE_IRQ_OPTIONAL case

if flag is IORESOURCE_IRQ_OPTIONAL, don't request irq
because this irq need to be registered in another driver.

bug 1347948

Change-Id: I3178aca5b09421b5f6c53d28b6327f530d405e9c
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/265925
(cherry picked from commit a69c29fc91cf581fdd678fa05a6b33568ef9ccc7)
Reviewed-on: http://git-master/r/288819
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agotty: serial: enable irq_wake
Harry Hong [Mon, 5 Aug 2013 04:35:51 +0000]
tty: serial: enable irq_wake

enable irq_wake for uart interrupt if wakeup from lp0
is required.
ex) BT host-wake pin is connected to uart3_cts.
so, making uart interrupt as wake irq.

bug 1328470

Change-Id: I11f7ea8a627a84972c5d734d256a253cad2bc0af
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/257237
(cherry picked from commit 3c99642533c4d0279c79ef7df502e65623ff7a71)
Reviewed-on: http://git-master/r/288816
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agoARM: tegra: config: tegratab: Enable CONFIG_HIDRAW
Harry Hong [Mon, 8 Jul 2013 06:33:24 +0000]
ARM: tegra: config: tegratab: Enable CONFIG_HIDRAW

Enable CONFIG_HIDRAW to support some of the
usb numpads which are getting detected as HIDRAW.

Bug 1267142

Change-Id: I804f1c78b9931279db667d4a40b84af74cf143ef
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/245987
(cherry picked from commit 3b610623648601bf7fc43f40328cc505de569bcc)
Reviewed-on: http://git-master/r/288793
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agoARM: tegra: tegratab: P1640 A02 support
Harry Hong [Thu, 11 Jul 2013 07:14:18 +0000]
ARM: tegra: tegratab: P1640 A02 support

use pmic 32k clk as wifi 32 clk source if board revision
is beyond P1640 A00.

bug 13237718

Change-Id: I44581be980c89aa5bcc8080e7473418c3a64ad01
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/247684
(cherry picked from commit 051e83a2f01b803183de316d3d5536e6127c6904)
Reviewed-on: http://git-master/r/288791
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agoarch: arm: tegratab: Set poweron_lpk to restart.
Harry Hong [Tue, 18 Jun 2013 07:27:27 +0000]
arch: arm: tegratab: Set poweron_lpk to restart.

By long press key, the system need to be restarted
instead of power off.

bug 1308187

Change-Id: Ib570f2c6f51eb8fe40990e0022e788e90f84e889
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/239622
(cherry picked from commit 996d8c3e9a2889f86f701c48775b27fce69a7389)
Reviewed-on: http://git-master/r/288789
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agoarm: tegra: tegratab: set INT_UARTC as st_host_wakup
Harry Hong [Mon, 26 Aug 2013 05:45:17 +0000]
arm: tegra: tegratab: set INT_UARTC as st_host_wakup

- add IORESOURCE_IRQ_OPTIONAL in st host wakeup irq resource.
if it's set, don't request irq.
INT_UARTC need to be requested in hsuard driver.
So, don't request it in st host wake drvier. only doing
enable/disable irq in that driver.
- set INT_UARTC as st_host_wakeup irq

bug 1347948

Change-Id: Id6ee39b7307dcbbdc812e531ae743a9e14be03b1
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/265923
(cherry picked from commit 2d6b66dda6650ba55ebc6cb8bed55891be41c29e)
Reviewed-on: http://git-master/r/288818
Reviewed-by: Peter Kim <pekim@nvidia.com>

5 years agoarch: arm: tegratab: Set ocr_mask to 2.8V.
Harry Hong [Tue, 20 Aug 2013 22:57:46 +0000]
arch: arm: tegratab: Set ocr_mask to 2.8V.

bug 1351377

Change-Id: I73fb063219907e11c07166516731cc19d4145fbf
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/264098
(cherry picked from commit 0db751c2fb918edfe383131a63cbecdc8b329a28)
Reviewed-on: http://git-master/r/288817
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Kim <pekim@nvidia.com>

5 years agoARM: tegra: enable uart3_cts irq as wakeup source
Harry Hong [Fri, 2 Aug 2013 05:24:10 +0000]
ARM: tegra: enable uart3_cts irq as wakeup source

bug 1328470

Change-Id: I4290bf99942efc2e78a494e25a123de01c73ca91
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/257236
(cherry picked from commit f0fc356449c817a77cdb2f6343ae008ae9c3b696)

5 years agoARM: tegra: config: tegratab: Enable CONFIG_HIDRAW
Harry Hong [Mon, 8 Jul 2013 06:33:24 +0000]
ARM: tegra: config: tegratab: Enable CONFIG_HIDRAW

Enable CONFIG_HIDRAW to support some of the
usb numpads which are getting detected as HIDRAW.

Bug 1267142

Change-Id: I804f1c78b9931279db667d4a40b84af74cf143ef
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/245987
(cherry picked from commit 3b610623648601bf7fc43f40328cc505de569bcc)

5 years agoARM: tegra: tegratab: P1640 A02 support
Harry Hong [Thu, 11 Jul 2013 07:14:18 +0000]
ARM: tegra: tegratab: P1640 A02 support

use pmic 32k clk as wifi 32 clk source if board revision
is beyond P1640 A00.

bug 13237718

Change-Id: I44581be980c89aa5bcc8080e7473418c3a64ad01
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/247684
(cherry picked from commit 051e83a2f01b803183de316d3d5536e6127c6904)

5 years agoarch: arm: tegratab: Set poweron_lpk to restart.
Harry Hong [Tue, 18 Jun 2013 07:27:27 +0000]
arch: arm: tegratab: Set poweron_lpk to restart.

By long press key, the system need to be restarted
instead of power off.

bug 1308187

Change-Id: Ib570f2c6f51eb8fe40990e0022e788e90f84e889
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/239622
(cherry picked from commit 996d8c3e9a2889f86f701c48775b27fce69a7389)

5 years agonvhdcp: avoid i2c transfer retry on suspend
David Yu [Thu, 29 Aug 2013 05:51:01 +0000]
nvhdcp: avoid i2c transfer retry on suspend

Bug 1346938

Change-Id: I95d8806a6cd4fbb6060f0b6e5bcebc27f1c846fc
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/267718
(cherry picked from commit edf22c31968ec0658e1315f9c6d468f3961c9e1e)
Reviewed-on: http://git-master/r/282193
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agostaging: android: lowmemorykiller: Add config option to support oom_adj values
Arve Hjønnevåg [Wed, 26 Sep 2012 00:37:14 +0000]
staging: android: lowmemorykiller: Add config option to support oom_adj values

The conversion to use oom_score_adj instead of the deprecated oom_adj
values breaks existing user-space code. Add a config option to convert
oom_adj values written to oom_score_adj values if they appear to be
valid oom_adj values.

Change-Id: I68308125059b802ee2991feefb07e9703bc48549
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/261325
(cherry picked from commit 8a38dd632283585d882be5973a461b5c4c4de502)
Reviewed-on: http://git-master/r/282183
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agostaging: iio: cm3217: send every value
David Yu [Wed, 21 Aug 2013 09:01:13 +0000]
staging: iio: cm3217: send every value

Bug 1352802

Change-Id: Ia4929456b5d595d435db623a103592b5cc2071ad
Signed-off-by: David Yu <davyu@nvidia.com>
(cherry picked from commit 9d15c8b15cfcaa2a5d558a259c7ffcf30396c2b4)
Reviewed-on: http://git-master/r/281705
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: misc: mpu: remove unnecessary close()
David Yu [Thu, 25 Jul 2013 05:48:06 +0000]
input: misc: mpu: remove unnecessary close()

Bug 1322187

Change-Id: I9adb3d260ed7e62052b7fc37f98547e2b792dd4d
Signed-off-by: David Yu <davyu@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/253226
(cherry picked from commit b76356a5c3277e84b4710c7b8c6a7ef6cad7ac1a)
Reviewed-on: http://git-master/r/281085
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoasoc: rt5639: Set Speaker OVCD to default
Simon Je [Fri, 4 Oct 2013 04:54:03 +0000]
asoc: rt5639: Set Speaker OVCD to default

Set the speaker over-voltage protection value
to the power on reset value.

Set OVCD to low value when audio is not playing.

Make sure codec mclk is enabled when writing the
codec registers.

Change-Id: Ib673d667af54f3b4fd7bf3183cbde1759838ae4a
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/274022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>
(cherry picked from commit 2e0cd932ce9c116b5a0e07a3ce5ad865a63121b3)
Reviewed-on: http://git-master/r/281662

5 years agoasoc: rt5639: Test mode initialization
Scott Peterson [Mon, 9 Sep 2013 22:52:19 +0000]
asoc: rt5639: Test mode initialization

Make sure that test mode is not left enabled when
powering up the codec.

Change-Id: Ie3643220c81764f4f26903c7e88812150f2fc223

Signed-off-by: Scott Peterson <speterson@nvidia.com>
Change-Id: I1e3b216f84f87f36d05c9693f9a97d0444b68718
Reviewed-on: http://git-master/r/273276
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
(cherry picked from commit fdaf1ff6e1d21bf00a53ee76b33cd08c3dc9106e)
Reviewed-on: http://git-master/r/281661
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoasoc: codecs: rt5639: switch codec system clock
Simon Je [Fri, 2 Aug 2013 00:59:57 +0000]
asoc: codecs: rt5639: switch codec system clock

We need to switch the codec system clock to
internal clock only when bias level is OFF
when plugggin earjack.

Bug 1340840

Change-Id: I01ad0ccff952c1f811d24cb22fde70192753d77e
Signed-off-by: Simon Je <sje@nvidia.com>
(cherry picked from commit a438685c653c1cd79d1edb057a678276f2dc7cfe)
Reviewed-on: http://git-master/r/281660
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agostaging: iio: light: cm3217: report valid events
Sri Krishna chowdary [Fri, 16 Aug 2013 13:02:28 +0000]
staging: iio: light: cm3217: report valid events

1. polling delay set by user should be greater than
minimum time that an ADC conversion of luminance happens.
Else sensor will simply report zero.

2. After enabling the sensor, wait for one polling delay
before start reading the luminance values.

Bug 1350036

Change-Id: I64facd1a6ee7ef1870ce1ef90942e444b9744a3a
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
(cherry picked from commit bfa4af9fb1499f04fc56b45d31e31b4db17f2f86)
Reviewed-on: http://git-master/r/281704
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Tested-by: David Yu (Engrg-SW) <davyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: misc: akm8975: fix kernel panic on shutdown
David Yu [Wed, 11 Sep 2013 11:46:51 +0000]
input: misc: akm8975: fix kernel panic on shutdown

When device is full flashed then reboots, sometimes akm_probe() and
akm_shutdown() races. akm_shutdown() release all the resources thus kernel
panic can occur in akm_probe().

Change-Id: I4ba2d3fc36dd919306637ec550a098e3f174f159
Signed-off-by: David Yu <davyu@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/273088
(cherry picked from commit a1f0baffc0350c3a94e39f5aece9da97d7baf657)
Reviewed-on: http://git-master/r/280965
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: misc: mpu: fix nvi_pwr_mgmt_1_war
David Yu [Sun, 8 Sep 2013 03:20:36 +0000]
input: misc: mpu: fix nvi_pwr_mgmt_1_war

Interrupt is not generated after nvi_accl_enable intermittently.
Not reading i2c after i2c write failure fixes the issue.

Bug 1362994

Change-Id: Icf97b39e740f14d8d76519116e73a38c7f08eed0
Signed-off-by: David Yu <davyu@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/271849
(cherry picked from commit 7fe774334a1a255fbc37710a89b6f2656a3881d2)
Reviewed-on: http://git-master/r/280964
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoarm: tegra: add FIQ WAR for t11x non-secure
Xin Xie [Wed, 25 Sep 2013 01:04:29 +0000]
arm: tegra: add FIQ WAR for t11x non-secure

On Tegra T11x WDT FIQ is not routed to the GIC, so we cannot use Tegra
WDT for soft-hang debugging.

This WAR is to configure GIC group0 to generate the FIQ to CPU, and only
let WDT routed to GIC group0. All other normal IRQs will use GIC group1.
This WAR is only applicable to non-secure OS build; secure OS build will
treat FIQ as secure interrupt for enterring monitor.

This patch is based on previous work of Lucas Dai and Bo Yan.

bug 1277869
bug 1357562

Change-Id: Ie9a05f9f2974d2b9fb2d09f7847639e553917cb7
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/268797
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: add support for GIC FIQ WAR
Xin Xie [Wed, 25 Sep 2013 00:51:20 +0000]
arm: add support for GIC FIQ WAR

The FIQ WAR requires all the IRQs using the GIC group1, and let the FIQ
use GIC group0 only. This patch will set all the normal IRQs to group1
if GIC WAR is enabled.

bug 1277869
bug 1357562

Change-Id: I8993445850d2221f93b59d18e45d77d81903a616
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/278583
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agomisc: cec: defer suspend if init is in progress
Deepak Nibade [Tue, 24 Sep 2013 10:13:11 +0000]
misc: cec: defer suspend if init is in progress

- there is below race condition in cec driver :
  -tegra_cec_init() is in progress which is setting many registers
  -suspend is called at the same time
  -tegra_cec_suspend() disables clock before tegra_cec_init() completes
- above race condition hangs the system with trying to write cec
  register while clock is off
- fix this race condition by deferring suspend if init is still in
  progress

Bug 1360341

Change-Id: I0450db565e864f289d1ce5af13b43ee8ad4f0ee6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/278381
(cherry picked from commit 58effacbdd01c2b6e71023cae828b2eaddbbb4bf)
Reviewed-on: http://git-master/r/278324
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: Tegra: clock: Clock set latency tracing
Antti P Miettinen [Mon, 15 Apr 2013 12:46:56 +0000]
ARM: Tegra: clock: Clock set latency tracing

Add traces for clock set latency measurements.

Change-Id: I5bdd00145f32da59ed294c8414d44fba8f3a81ca
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/219386
(cherry picked from commit 44d36b249a3e7d21d044a5742e870da85605ea33)
Reviewed-on: http://git-master/r/277485
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agommc: tegra: Handle retune request case in tuning
R Raj Kumar [Thu, 19 Sep 2013 09:17:28 +0000]
mmc: tegra: Handle retune request case in tuning

Need to handle retune request case also in the tuning procedure.
We set retune flag if we remove (un-plug) SD card.
So, tuning should be done next time when SD card is inserted.

Bug 1371498

Reviewed-on: http://git-master/r/276608
(cherry picked from commit 81b476aa49803ef7373432c9a00f905c69354c4d)
Change-Id: I1c1232313aefe835f9c71dac10a2fe2034853d2a

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: I88edf3b74f419a0f09d2167d24b8bab8e68b11f1
Reviewed-on: http://git-master/r/278366
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agommc: tegra: full win should be 50% of partial win
R Raj Kumar [Wed, 17 Jul 2013 11:50:07 +0000]
mmc: tegra: full win should be 50% of partial win

Continue tuning procedure for full window calculation,
for the full window size is greater or equal to 50% of
partial window size, else choose partial window.

Bug 1368929

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/252339
(cherry picked from commit 9aec071afaa966a94c01f937ae67e0c4a54d455e)

Change-Id: Iaf3fc1dad0a1ee9928ab8c8eae795db048048a8e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/278239
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoArm: tegra: Update MCCPU actmon parameters
Puneet Saxena [Tue, 24 Sep 2013 06:36:51 +0000]
Arm: tegra: Update MCCPU actmon parameters

With existing MCCPU parameters Emc scales up
always from emc MAX value. This is not needed as
static cpu-emc ratio boosts emc immediately.

The change sets mccpu parameters as to scale emc freq
aggressively from a lower base value.

Bug 1352917

Change-Id: I784166833d0387c734c8e13fa633d96f2e345998
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/278197
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: Handle down interrupt of actmon
Karthik Ramakrishnan [Tue, 24 Sep 2013 04:47:26 +0000]
arm: tegra: Handle down interrupt of actmon

When the cpu load starts going down, the down interrupt is
disabled. This stops further interrupts and if missed, the emc
frequency is locked to high.

The change re-enables down watermark interrupts if gets disabled
due to emc lock.

Bug 1352917

Change-Id: I838eb05b313f9ddc287226c25f23e115fe117599
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/278131
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: tegra: power: keep ldousb enable during lp0
Rick Song [Sat, 21 Sep 2013 03:23:30 +0000]
arm: tegra: power: keep ldousb enable during lp0

Need keep ldousb enable during lp0, otherwise the bus
state can't keep at suspend state, and will cause bus
reset from host during resume.

Bug 1361789

Change-Id: I7010bb0cfa564bac04add85bd9d99507c7fb547f
Signed-off-by: Rick Song <ricks@nvidia.com>
Reviewed-on: http://git-master/r/277462
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

5 years agovideo: tegra: Include mutex to protect Kfuse reads
sharath [Fri, 2 Aug 2013 02:02:29 +0000]
video: tegra: Include mutex to protect Kfuse reads

Included a mutex to protect the simultaneous kfuse
reads by nvhost driver and nvhdcp driver.

bug 1179007

Change-Id: I780ead40352b081c5ffe533db9ea09f12d14c3e1
Signed-off-by: sharath <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/257206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agothermal: Add palmas thermal support
Pradeep Goudagunta [Thu, 29 Aug 2013 10:55:42 +0000]
thermal: Add palmas thermal support

Palmas series pmic chip supports hot die interrupt configurable for
four different critical temperature thresholds.

Bug 1355680
Bug 1167941

Change-Id: I0167d5faf5be596018ec34d67911dd631d2cc71f
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/267913
(cherry picked from commit c102e29ad47ef3dfcdd12d49b58cf1dfeff26652)
Reviewed-on: http://git-master/r/276605
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomfd: palmas: Add palmas_thermal init
Pradeep Goudagunta [Mon, 2 Sep 2013 05:49:09 +0000]
mfd: palmas: Add palmas_thermal init

Initialize palmas_thermal driver, add palmas_thermal as mfd_cell
and irq resources.

Bug 1355680

Change-Id: Ia874afc435791bb905ea79b963b6e3412c343fc6
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/267914
(cherry picked from commit 856815055eb7b9864668ce6172fc26a3c86dc2aa)
Reviewed-on: http://git-master/r/276604
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Thu, 12 Sep 2013 17:30:36 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.08p5.40671

This version fixes the corruption of secure os(TF) stack which is caused by
unexpected hardware cache activities at the time of core #0 wakes up from
per-core power gating.
Caches ON while go to sleep and L1 cache is all cleaned before the sleep,
while L2 cache is selectively cleaned because it's preserved during
the sleep of the cores so L2 cache has some dirty lines from the secure world.
When core #0 wakes up, it turns on i-, d-caches but MMU is still off at this
moment. During this time the wake up process starts synching (flushing) cache
to SDRAM. Until MMU is ON, core #0 uses stacks data from SDRAM, not from the
data cache. It is enough to flush the old line of stack to SDRAM in order to
corrupt call-return linkage if it accidently happens during such stack usage.
To fix this issue, TF cleans the cache lines related to secure os stack
after they have been used last time just before returning to normal OS.

Bug 1330053
Bug 1356121

Change-Id: I1b8ba453f9e4e0f21e65667b54ed5ce4bcee8ff1
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/276089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agocpufreq: interactive: Add consecutive I/O
Jinyoung Park [Wed, 21 Aug 2013 14:33:46 +0000]
cpufreq: interactive: Add consecutive I/O

Treat I/O wait as CPU busy if I/O processing is occurred on
the consecutive samples.

Bug 1332115
Bug 1351808

Change-Id: Ie47737a10b4896c8bef09181cca644f888ab2ac4
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/264419
(cherry picked from commit 5e0968a40df300cd2d43fcad80a0c1eff5025a0b)
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/272660
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: Dalmore: Enable pike gpios and irq
Ankita Garg [Thu, 19 Sep 2013 17:59:01 +0000]
ARM: tegra11: Dalmore: Enable pike gpios and irq

This patch enables the GPIOs and IRQ for the Pike module on
Dalmore. If the pike module is detected, it is enabled instead
of the camera and the motion sensors.

Bug 1312065

Change-Id: I4bb2878291af3d8ecffa1e36c20bbf5b39db06d1
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/256545
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: common: Add cmdline to detect Pike
Ankita Garg [Thu, 19 Sep 2013 17:55:24 +0000]
ARM: tegra11: common: Add cmdline to detect Pike

Add the kernel commandline parameter "pike" to detect
the presence of the Pike module

Bug 1312065

Change-Id: I66a1d8ad8a17eb71ef63cd627e56dee3ea5b479b
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/276778
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agonfc: return if NFC is in shutdown state
Rakesh Goyal [Tue, 17 Sep 2013 20:50:46 +0000]
nfc: return if NFC is in shutdown state

Bug 1362875
Change-Id: Ic5cac6b2e5899fb6eb63d873e567ee77bc8bc390
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/275969
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomedia: video: tegra: ov9726 bad pixel cancellation
Hu He [Tue, 10 Sep 2013 21:24:43 +0000]
media: video: tegra: ov9726 bad pixel cancellation

Change a register setting for OV9726 to enable
sensor's black and white pixel cancellation.

Bug 1357956

Change-Id: I6ec49a90c7fda25d229e99bd5235fea4cb1bc17f
Signed-off-by: Hu He <hhe@nvidia.com>
Reviewed-on: http://git-master/r/272729
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: xhci: tegra: refine shutdown path
Ajay Gupta [Mon, 1 Jul 2013 22:33:46 +0000]
usb: xhci: tegra: refine shutdown path

Ignore calling xhci_shutdown when in ELPG as we are on shutdown. Just
make sure PMC wake detect is disabled.

Issue 9629922@https://login.corp.google.com/

Change-Id: Idfc6c55c37c722af6c36275dd387c8fc26ad2577
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/245651
Reviewed-on: http://git-master/r/272752
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: dvfs: Fix predict millivolts interface
Alex Frid [Wed, 18 Sep 2013 05:09:36 +0000]
ARM: tegra: dvfs: Fix predict millivolts interface

Predict millivolts interface selected pll or dfll mode tables based
on target rate and dynamic dvfs state: rail mode, and current dvfs
clock rate. Since interface clients may not be serialized with run
time rate/voltage scaling (e.g., edp client) it opens possibility for
races. On the other hand there is no need to use current dynamically
changes state to select scaling table - comparing target rate, with
initialized once dfll rate range is sufficient. This commit updated
predict millivolts interface accordingly.

Bug 1370030

Change-Id: I89167607d346ed5f2dfe1eedc27aabacd87e7303
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/276139
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agousb: xhci: set tracking data using pmc api
Krishna Yarlagadda [Thu, 5 Sep 2013 17:28:19 +0000]
usb: xhci: set tracking data using pmc api

set tracking data using pmc api for snps when there is
atleast one snps port in use.

Bug 1334159

Change-Id: Id15f31ba487d8ad07485509002392821b99bf8f8
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/272751
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agousb: snps: move tracking data to pmc
Krishna Yarlagadda [Thu, 5 Sep 2013 17:25:34 +0000]
usb: snps: move tracking data to pmc

move tracking data api to pmc code and update
using thsi api

Bug 1334159

Change-Id: Iaf9172545749c558716e94c49fb1e57587a0d25b
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/272750
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agousb: pmc: set utmip tracking data with snps
Krishna Yarlagadda [Thu, 5 Sep 2013 17:18:53 +0000]
usb: pmc: set utmip tracking data with snps

provide api to read tracking data from snps register space

Bug 1334159

Change-Id: Ieb46f178226678295ce5ec03701209b11422bf43
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/270908
Reviewed-on: http://git-master/r/272749
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joy Wang <joyw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>

5 years agousb: xhci: tegra: fix tctrl/rctrl logic
Ajay Gupta [Tue, 10 Sep 2013 17:08:22 +0000]
usb: xhci: tegra: fix tctrl/rctrl logic

TCTRL/RCTRL values can be calculated either using xusb PADCTL registers
or using SNPS registers. As per latest discussion with HW team, we must
use SNPS registers when any of UTMIP port is owned by SNPS controller and
use XUSB PADCTL registers only when all UTMIP ports are owned by XUSB.

TCTRL/RCTRL is alwasy needed to be programmed on T114 due to a HW bug but
on T124 it needs to be programmed only during ELPG entry when PMC is being
ARMed. Refer table below on this.

                        T114    T124
1) Init                 Yes     No
2) ELPG entry           Yes     Yes
3) LP0 exit             Yes     No

rel-17 branch doesn't have T124 related changes so only T114 relevant changes
are added here.

Bug 1334159

Change-Id: I0e70ad88ff317c248243039069dbc08b97d8900e
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/272748
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joy Wang <joyw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>

5 years agoarm: tegra: pluto: update dw9718 focuser cap
David Wang [Tue, 30 Jul 2013 22:52:17 +0000]
arm: tegra: pluto: update dw9718 focuser cap

Modified dw9718 cap to match dalmore board file's
more upto date macro, infinity, and hyper values.

bug 1279119

Change-Id: I7d7f1334d64844b4f7860aa74a825ddc6ed1f490
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/255777
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael Stewart <mstewart@nvidia.com>
Reviewed-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoinput: touch: raydium: v60.6 code drop
Xiaohui Tao [Tue, 17 Sep 2013 17:10:54 +0000]
input: touch: raydium: v60.6 code drop

a. Checkpatch done (Bug ID 1368132)
b. Fix 3.3V control issue (Bug ID 1354253, 1348628) as the attached pictures. The 3.3V is turned off in LP0 mode.
c. Refine suspend/resume timing issue (Bug ID 1359713, 1288233, 1283537)

Bug 1368132
Bug 1354253
Bug 1348628
Bug 1359713
Bug 1288233
Bug 1283537

Change-Id: I468bf04e9eb63ba6b4bb1e646baa73b1fbb55969
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/275861
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agomedia: video: tegra: IMX135: change mode settings
Bhushan Rayrikar [Mon, 16 Sep 2013 19:01:30 +0000]
media: video: tegra: IMX135: change mode settings

Change 3896X2192 mode to 3840X2160 to save power.

Bug 1358534

Change-Id: I2207a87b06228cd7d957a2175d252d1a0680c567
Signed-off-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-on: http://git-master/r/275249
(cherry picked from commit ac1717085a84eb95f69554304728b747f44b6b4a)
Reviewed-on: http://git-master/r/275487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoinput: touch: maxim: Do not rely on previous state of reset
Xiaohui Tao [Thu, 5 Sep 2013 22:34:35 +0000]
input: touch: maxim: Do not rely on previous state of reset

Currently the driver does a reset in their resume function
(1) rely on previous state of the reset pin
(2) rely on touch_fusion daemon to issue a reset signal

Both of them are not reliable since
(1) The reset pin is possibly not low when the system resumes
due to some racing communication between the daemon/driver/chip
or some communication between the daemon/driver/chip that is
aborted during rapid resume/suspend. This can result in the reset
signal in resume not issued to the chip and it can cause touch
not working.
(1) The chip/daemon may enter some wired state that cannot
recover so that the daemon cannot issue the reset signal correctly.

The solution is to issue a low signal to the chip in resume
function so that it can guarantee that a true reset signal is issued
to the chip.

Bug 1353325

Change-Id: I2ede0dbb8987457cde344cdba12889b708fd95e7
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/268630
(cherry picked from commit 107001b0b70d39a489fe7d708af01a475ff2cc56)
Reviewed-on: http://git-master/r/271078
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agousb: gadget: Tegra: Disable parameters for PM QoS
Antti P Miettinen [Tue, 21 Aug 2012 07:56:38 +0000]
usb: gadget: Tegra: Disable parameters for PM QoS

For testing purposes it is useful to be able to disable
CPU frequency boost.

Bug 1359445

Change-Id: Iab4363b23372055819adaf66265762fb9d1a0a3a
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/273043
(cherry picked from commit b929aee920208da005e4aefe51dd4fe9b5b3978a)
Reviewed-on: http://git-master/r/273591
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agousb: ehci: Tegra: Disable parameters for PM QoS
Antti P Miettinen [Tue, 21 Aug 2012 07:56:38 +0000]
usb: ehci: Tegra: Disable parameters for PM QoS

For testing purposes it is useful to be able to disable
CPU frequency boost.

Bug 1359445

Change-Id: I33a0369205a1df5cfe97915442e33511941686a8
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/273042
(cherry picked from commit 92f065702bfd07ea07b0fcd87edb4af0a3530868)
Reviewed-on: http://git-master/r/273586
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agousb: ehci: Tegra: Fix indents
Antti P Miettinen [Thu, 12 Sep 2013 08:16:44 +0000]
usb: ehci: Tegra: Fix indents

Fix indents for avoiding patch conflicts.

Change-Id: I8889b939673b3cafa76c58e844ffaa7330aaca12
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/273585
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoacm:tty: prevent rx data discarded on throttled.
glei [Thu, 1 Aug 2013 04:18:54 +0000]
acm:tty: prevent rx data discarded on throttled.

Bug 1357628

Change-Id: Ic51f72190e4a2dd9a24d3e39e18d17564134f79a
Signed-off-by: glei <glei@nvidia.com>
Reviewed-on: http://git-master/r/256626
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Neil Patel <neilp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Wed, 14 Aug 2013 18:54:12 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.08p3.40665

This version supports FIQ debugging.

Bug 1295289
Bug 1321825

Change-Id: I8f8826a2237dbd36cc2f3b6b5e5e0cebbf62d145
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/261678
(cherry picked from commit 7849fa4d90a85b89fcb3d4ff8aa9a8aa70758fab)
Reviewed-on: http://git-master/r/274415
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoinput: sensor: compass: Add sec-salve-id for compass
Xiaohui Tao [Wed, 11 Sep 2013 00:49:42 +0000]
input: sensor: compass: Add sec-salve-id for compass

Bug 1356943

Change-Id: If34b39b849e350fd9312b9a73130db13c3571b4c
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/272840
(cherry picked from commit 9f42dfc3cda19db08aec5a01ed124789240c4970)
Reviewed-on: http://git-master/r/273830
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: dalmore: fix display blank during boot
Emma Yan [Wed, 11 Sep 2013 08:52:35 +0000]
arm: tegra: dalmore: fix display blank during boot

Please enable TEGRA_DC_OUT_INITIALIZED_MODE for
smooth transition from bootloader to kernel.

Bug 1342524
Bug 1277900

Change-Id: Ib37a5e4221b642f40ee6aa070945fc35774d9608
Signed-off-by: Emma Yan <eyan@nvidia.com>
Signed-off-by: Benjamin Lu <benjaminl@nvidia.com>
Reviewed-on: http://git-master/r/273002
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoEDP: tegra: export VSYS_MIN debugfs attr
Sivaram Nair [Tue, 10 Sep 2013 10:23:48 +0000]
EDP: tegra: export VSYS_MIN debugfs attr

Adding a new debugfs attr for vsys_min psy depletion platform data for
tuning.

Bug 1306298

Change-Id: Id9b7a6affae2216e7bafde55eea2f8eacbe24572
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/272489
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vandana Bansal <vandanab@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoinput: touch: maxim: Refine power control
Xiaohui Tao [Thu, 29 Aug 2013 00:18:01 +0000]
input: touch: maxim: Refine power control

(1) Move regulator control from threaded func to probe func since
the current machanism will kill the direct touch daemon and restart
it when it is not responding. Keeping the regulator code there will
make ref count go up, which will keep the power rail always on.

(2) Do not call suspend/resume in display off case for touch. Touch
suspend/resume should be consistent with display off/on. There is no
need to turn touch on/off in display off case.

Bug 1353325
Bug 1350928

Change-Id: Id9719f04398be0032faf2c9f685400b292458b06
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/267625
(cherry picked from commit 9700803ce3d59714dbc50d425f77d9c0b986c9c9)
Reviewed-on: http://git-master/r/271075
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agomedia: video: tegra: Fix kernel warning for DW9718
Frank Chen [Tue, 11 Jun 2013 19:33:13 +0000]
media: video: tegra: Fix kernel warning for DW9718

Fix unbalanced reference count for power regulator to
prevent kernel from generating warning messages.

bug 1342770

Change-Id: Ie2505ea399ecd7865b69c00f7f51752fdc03c4f7
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/258905
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomedia: video: tegra: Fix kernel warning for AD5816
Frank Chen [Tue, 11 Jun 2013 19:22:45 +0000]
media: video: tegra: Fix kernel warning for AD5816

Fix unbalanced reference count for power regulator to
prevent kernel from generating warning messages.

bug 1342770

Change-Id: I2e165a205ba58b0478c5f4db3c4b3bb74fa69e07
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/258900
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "ARM: tegra: pm: turn off VDEC partition in LP1"
Deepak Nibade [Fri, 13 Sep 2013 06:57:41 +0000]
Revert "ARM: tegra: pm: turn off VDEC partition in LP1"

- This essentially disables power gating of VDE partition
  during LP1

- Power gating VDE partition during LP1 was causing below warning
  with CONFIG_DEBUG_ATOMIC_SLEEP enabled
BUG: sleeping function called from invalid context at
/kernel/include/linux/clk.h:164

- fix this warning by reverting commit

Bug 1355279

This reverts commit 8825199f91361961eadf95a977294bf6611310cc.

Change-Id: Ibe997c2e33c3807dbad3e9a38771ff8342b20144
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/274153
Reviewed-by: Rick Song <ricks@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agotegra11: config: enable selinux to permissive mode
James Zhao [Thu, 12 Sep 2013 23:31:56 +0000]
tegra11: config: enable selinux to permissive mode

- Enable SELinux for JB MR2
- Set config option AUDIT, SECURITY, SECURITY_NETWORK,
  SECURITY_SELINUX, EXT4_FS_SECURITY
- All other defconfig changes are side effect of using
  menuconfig

bug 1365452

Change-Id: Icb02b594dc82246c61a0e2d981d794e42b61838e
Signed-off-by: James Zhao <jamesz@nvidia.com>
Reviewed-on: http://git-master/r/274007
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoARM: tegra: fix warning during LP0
Deepak Nibade [Wed, 11 Sep 2013 09:38:17 +0000]
ARM: tegra: fix warning during LP0

- with CONFIG_DEBUG_ATOMIC_SLEEP enabled, below warning was seen
BUG: sleeping function called from invalid context at
/kernel/kernel/mutex.c:85

- function 'tegra_get_clock_by_name()' was being called from
  atomic context in 'tegra_lp0_cpu_mode()'

- move function tegra_get_clock_by_name("cclk_lp")
  to separate init function and call it through subsys_initcall()
  to avoid this warning during LP0

Bug 1355279

Change-Id: I42df042051938d75366884946e7f660522f3c26c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/273034
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: usb: Set TXFILLTUNING after CMD_RESET
Suresh Mangipudi [Tue, 10 Sep 2013 06:06:49 +0000]
ARM: tegra: usb: Set TXFILLTUNING after CMD_RESET

Program the TXFILLTUNING value after CMD_RESET. CMD_RESET clears
the value of TXFILLTUNING, this needs to be reprogrammed again.

Bug 1318125

Change-Id: I34dcad888ad11f8471cfcfa72dbe20f17527f695
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/272332
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: ardbeg: Fix sharp 25x16 panel timings
Animesh Kishore [Fri, 6 Sep 2013 08:59:32 +0000]
arm: tegra: ardbeg: Fix sharp 25x16 panel timings

Bug 1357180

Change-Id: If21ef99eb89e34b76ad8d22bd6c1bfb0003bc5e4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/271397
(cherry picked from commit 9032a7524fb4f4fc54583be0ec15acab3e494f89)
Reviewed-on: http://git-master/r/273018
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agovideo: tegra: dsi: Make phy warning verbose
Animesh Kishore [Fri, 6 Sep 2013 09:00:17 +0000]
video: tegra: dsi: Make phy warning verbose

Increase verboseness of phy timing warnings.

Bug 1357180

Change-Id: I58577cf4cbab765f23a9edae793e031fbec38a55
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/271398
(cherry picked from commit 661a4a1e1966e79616c89ad18845eef5245c41bb)
Reviewed-on: http://git-master/r/273017
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonetfilter: xt_qtaguid: Allow tracking loopback
JP Abgrall [Thu, 7 Feb 2013 01:40:07 +0000]
netfilter: xt_qtaguid: Allow tracking loopback

In the past it would always ignore interfaces with loopback addresses.
Now we just treat them like any other.
This also helps with writing tests that check for the presence
of the qtaguid module.

Bug 1343922

Change-Id: I55d31277056d24172d22d32ad26c47dc8c55250a
Signed-off-by: JP Abgrall <jpa@google.com>
Reviewed-on: http://git-master/r/270087
(cherry picked from commit 5d927cc305aa8d0c2e6af9fedda9f5b10d378e16)
Reviewed-on: http://git-master/r/272968
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>

5 years agopower: max17048: fix OCV property unit
Hyongbin Kim [Tue, 10 Sep 2013 12:25:30 +0000]
power: max17048: fix OCV property unit

max17048_get_ocv() return unit is already uV.
Remove duplicate multiply.

Bug 1355391

Change-Id: I99adacf9af7f3c043ca043b2a00ce3713b4d40e1
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/272569
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoi2c: tegra: Add debug prints for i2c timed out case
Chaitanya Bandi [Mon, 26 Aug 2013 11:22:28 +0000]
i2c: tegra: Add debug prints for i2c timed out case

Added debug prints for i2c timed out case to
help debug.

Change-Id: Ib0696b8237b90cd511ac224a476dede8fae60ceb
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/266050
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomedia: video: tegra: IMX135: 640x480 120fps mode
Frank Chen [Fri, 30 Aug 2013 17:52:27 +0000]
media: video: tegra: IMX135: 640x480 120fps mode

Add 640x480 120fps slow motion mode for IMX135

bug 1302356

Change-Id: Ia5a4006e66ddb93e1c4fda76ee246594604ea35c
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/268632
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Tested-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agopower: max17048: correct voltage unit to uV
Hyongbin Kim [Mon, 26 Aug 2013 10:50:37 +0000]
power: max17048: correct voltage unit to uV

In framework, voltage unit is uV.

Bug 1355391

Change-Id: I8a8af62850365b298857289c5a6f0d89bf45d47b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/266048
(cherry picked from commit b5e18de3eebebf8a66bcdaa44b842ac9b1935b45)
Reviewed-on: http://git-master/r/271359
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: max17048: fix bug in version check func
Hyongbin Kim [Wed, 24 Jul 2013 12:03:43 +0000]
power: max17048: fix bug in version check func

1. Add 0x12 version value in max17048_check_battery().
2. remove duplicate call swab16 in max17048_get_version().
3. call max17048_get_version() in probe fuction instead of
max17048_check_battery().

max17048_check_battery() doesn't return version.
using max17048_get_version() is right.

Change-Id: Ie039e1bcffd5b2fb8080f6b3f25bbfc51d52990e
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/252892
(cherry picked from commit 4d914a5bee3f2327fac46db7d49e23e56d9e1991)
Reviewed-on: http://git-master/r/271358
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agommc: tegra: Set timeouts for all wait conditions
Pavan Kunapuli [Wed, 4 Sep 2013 11:52:00 +0000]
mmc: tegra: Set timeouts for all wait conditions

Setting timeout conditions for all waits on mutexes or HW status updates.

Bug 1354967

Change-Id: I769ee2ad2e4e9f7b17d78a72c58525b6e39ea1dc
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/270088
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agovideo: fbmon: added HDMI_Video_Format condition checking
Emma Yan [Tue, 3 Sep 2013 11:38:59 +0000]
video: fbmon: added HDMI_Video_Format condition checking

Bug 1357380

Change-Id: I4b10c31b1c5124539b648764cfae8b17b5764f0a
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/269512
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agommc: tegra: Handle retuning if host is powered off
Pavan Kunapuli [Mon, 2 Sep 2013 08:51:20 +0000]
mmc: tegra: Handle retuning if host is powered off

If the host is powered off, cancel any pending tuning timers and clear
any previously set override voltage requests.

Bug 1353926

Change-Id: I389a6c9a76cd6b0544f773cae0e4709131f54962
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/267313
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agommc: sdhci: Platform hooks for handling power off
Pavan Kunapuli [Mon, 2 Sep 2013 08:49:30 +0000]
mmc: sdhci: Platform hooks for handling power off

Added platform specific callback to allow for any special handling of
MMC_POWER_OFF.
Bug 1353926

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

5 years agoARM: tegra: dvfs: Restrict vdd core override
Alex Frid [Sun, 21 Jul 2013 03:06:24 +0000]
ARM: tegra: dvfs: Restrict vdd core override

Restricted vdd core override to clocks with dvfs override property.

Bug 1307369

Change-Id: Idaf20ac8ab6016b0ca306190ac7e1327354f99b3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251664
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra11: dvfs: Set override property for sdmmc
Alex Frid [Sun, 21 Jul 2013 05:09:18 +0000]
ARM: tegra11: dvfs: Set override property for sdmmc

Bug 1307369

Change-Id: I622ce0e85e6eb100a834241be5e03565a223b3f3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251663
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: dvfs: Add override property
Alex Frid [Sun, 21 Jul 2013 02:07:32 +0000]
ARM: tegra: dvfs: Add override property

Bug 1307369

Added "can override" property to dvfs structure. Skipped dvfs tables
with this property when evaluating available rail override range.

Change-Id: Iced4b7917c3d3edc1f7a5ce77009a854bc50a335
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251662
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Update sdmmc dvfs tables
Alex Frid [Mon, 1 Jul 2013 21:43:14 +0000]
ARM: tegra11: dvfs: Update sdmmc dvfs tables

Splitted sdmmc dvfs tables between different Tegra11 skus/bins. Allowed
sdmmc maximum rates at the appropriate nominal voltage for each bin.

Bug 1161126
Bug 1307369

Change-Id: Ida3145ab10feb3ef0e2a170e69c4ef5f4c5a84ed
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/244014
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: Improve LP1 Low voltage core
Karthik Ramakrishnan [Tue, 20 Aug 2013 22:39:47 +0000]
arm: tegra: Improve LP1 Low voltage core

Enables the Core voltage to be lowered during voice call(LP1)
state. Rearranges code so that the variables are accessible
to code in IRAM. Move the voltage decrease after lp cpu clock
decrease & mselect clock source swith.

Bug 1344148

Change-Id: Ia0c72c83a80f970ec58f5fa754ab9bd69449b65e
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Signed-off-by: Rick Song <ricks@nvidia.com>
Reviewed-on: http://git-master/r/264411
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoarm: tegra: bootloader fb free in late_initcall
Min-wuk Lee [Thu, 29 Aug 2013 11:42:47 +0000]
arm: tegra: bootloader fb free in late_initcall

At this moment, bootloader framebuffer memory is freed
in arch_initcall, whereas, kernel framebuffer begins to
be used in dc device register with device_initcall.
It has potential bug to display garbage screen in device
booting. bootloader framebuffer memory should be freed
after dc device register, so move it to late_initcall
frame.

Bug 1346172

Change-Id: I8038d32fcf710295d387f58641f48a9beeb823b9
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/269401
(cherry picked from commit 15c081176787d8470663c6c00699dfe948a436f4)
Reviewed-on: http://git-master/r/270547
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agommc: core: Enable secure sanitize for eMMC4.5
R Raj Kumar [Wed, 4 Sep 2013 13:18:36 +0000]
mmc: core: Enable secure sanitize for eMMC4.5

Enabled secure sanitize operation for eMMC4.5 devices.

Bug 1360376

Change-Id: I54d7de1c1ec7ba0fb2cce3be3fe98e59de73f2b1
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/270115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra: phy:Do not enable pmc during id unplug
Rakesh Bodla [Mon, 2 Sep 2013 05:40:03 +0000]
ARM: tegra: phy:Do not enable pmc during id unplug

Do not enable pmc when id cable is unplugged
from the system.

Bug 1357517

Change-Id: I6e8adae9da6b15ac44987f8169d7607194983a50
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/268916
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoinput: touch: raydium: v60.5 code drop
Xiaohui Tao [Wed, 4 Sep 2013 17:19:48 +0000]
input: touch: raydium: v60.5 code drop

[1] Add check mechanism for adding timer in case resume and watchdog add the same timer at the same time
[2] Fix Slow scan function
[3] Add check mechanism for initialization during resume phase
[4] Modify some code for Kernel 3.8
[5] Improve idle mode stability
[6] Fix idle mode stability issue
[7] Fix LP0 power consumption issue
[8] Turn off touch when display off

Bug 1348628
Bug 1345677
Bug 1311609
Bug 1288233
Bug 1262448
Bug 1246020
Bug 1293127

Change-Id: If4575accb77ea6f6ce6732dd86329f1052f77239
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/270179
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agopower: max17042: Report full status only when charger plugged
Darbha Sriharsha [Tue, 3 Sep 2013 07:04:14 +0000]
power: max17042: Report full status only when charger plugged

The battery gauge should report "100% Full" status only when the
battery is charged to full capacity and the charger is still
connected. When the battery is fully charged but the charger
cable is unplugged, we should report "100% Not Charging" as the
status

Bug 1358884

Change-Id: Ibfc7d30fdaab8c37fc99ccb5032719807780709a
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/269379
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: max17042: Use upper roundoff of soc
Darbha Sriharsha [Tue, 3 Sep 2013 05:55:49 +0000]
power: max17042: Use upper roundoff of soc

Use upper roundoff of soc instead of lower roundoff to
report the final soc value on UI.

Bug 1358884

Change-Id: I52c79b41ef6140bf1ff8d2f97277cfa855828ab0
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/269342
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra11: dvfs: Increase DFLL Vmin for AP40/AP40X
Alex Frid [Wed, 21 Aug 2013 19:09:13 +0000]
ARM: tegra11: dvfs: Increase DFLL Vmin for AP40/AP40X

Increased DFLL Vmin for AP40/AP40X to 1.0V (from 0.9V).

Bug 1355044

Change-Id: Ifd95d34f21cc81877e350e287a5481ee28ea9d60
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/264513
Tested-by: Venkata (Muni) Anda <vanda@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agousb: xhci: tegra: change hs_slew to 0xC
Ajay Gupta [Mon, 19 Aug 2013 16:35:37 +0000]
usb: xhci: tegra: change hs_slew to 0xC

Bug 1254391

Change-Id: I582cf785dd404d677d1558b41d0151bf0399f695
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/263408
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoarm: tegra11: fuse: correct JTAG_START_BIT as 8
Haley Teng [Fri, 30 Aug 2013 09:37:47 +0000]
arm: tegra11: fuse: correct JTAG_START_BIT as 8

The start bit of ARM_DEBUG_DIS in fuse programming array for T114 is 8

Bug 1354656

Signed-off-by: Haley Teng <hteng@nvidia.com>
Change-Id: Ie669e2f3a1bb84863f61d4e3d730c2a63639b9a0
Reviewed-on: http://git-master/r/268454
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: macallan:update INI data for max17048
Venkat Reddy Talla [Wed, 28 Aug 2013 09:58:07 +0000]
ARM: tegra: macallan:update INI data for max17048

 update battery characterization data for yoku
 battery 4100mAh.

 battery: yoku
 capacity: 4100mAh
 model: macallan

 Bug 1357802

Change-Id: Ice4dfc5a56a90e07e8bf69d5a1c1af7702e31b6d
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/267228
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: tegratab: Add min/max temperature for Tdiode
Jinyoung Park [Wed, 17 Jul 2013 10:08:25 +0000]
ARM: tegra: tegratab: Add min/max temperature for Tdiode

Added min/max temperature for Tdiode.

Bug 1287901

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/250222
(cherry picked from commit c70471ba2106aacc8a2d4e59a1e4236684578731)

Change-Id: Ic11fde9b46a4f6d2aa2543dbf792d8910b4d0b45
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252888
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agommc: host: Fix soft lockup issue
Pavan Kunapuli [Tue, 27 Aug 2013 16:34:21 +0000]
mmc: host: Fix soft lockup issue

This patch fixes the soft lockup that could occur as a result of commit
8c226304. The mutex_unlock call from interrupt context could cause a
deadlock.

This patch partially reverts the commit 8c226304 by removing the mutex
lock/unlock calls before and after data transfers. mutex locks in
tuning implementation are still present.

This patch ensures that data transfers on all controllers triggered
while running tuning will be stopped until tuning is done inorder to
avoid the risk of any failures due to core voltage changes in tuning.

Locking needs to be extended for the transfer that is already in progress.
This will be done in subsequent patches after thorough testing.

Bug 1354967

Change-Id: Ic6bfd22ec84f24e8782d7da6e3267a7300cb267e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/266802
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra tegratab: Fix wrong calculation in ADC to temp for NTC thermistor
Jinyoung Park [Mon, 24 Jun 2013 10:54:51 +0000]
ARM: tegra tegratab: Fix wrong calculation in ADC to temp for NTC thermistor

Fixed wrong calculation in ADC to temp for NTC thermistor.

Bug 1287901

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/241438
(cherry picked from commit 0fbba0ab97b549343edf7f82b5f61e48658abfd7)

Change-Id: I4db583d3263b4f62b9e1366b4a6e1d74683359ba
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252886
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: tegratab: Add ADC temperature conversion for thermal diode
Jinyoung Park [Fri, 21 Jun 2013 07:54:01 +0000]
ARM: tegra: tegratab: Add ADC temperature conversion for thermal diode

Added ADC temperature conversion for thermal diode.

Bug 1287901

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/241376
(cherry picked from commit 8db34a07b76b486f537905698cabe56aadc6ca62)

Change-Id: I2e9a013b0b24e88babcecabf190e385df556b8de
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252884
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agostaging: iio: adc: palmas: Add ADC reading with dual-current source for CH3
Jinyoung Park [Fri, 21 Jun 2013 07:24:00 +0000]
staging: iio: adc: palmas: Add ADC reading with dual-current source for CH3

Added ADC reading with dual-current source for Channel3 in order to do series
resistance cancellation for thermal diode.

Bug 1287901

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/241375
(cherry picked from commit 3c809efe7325c6c24f03cf61a590d672bd495ff3)

Change-Id: Ifaf6ae6e293d66955f5c55d9c739af94a692a30e
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252883
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoThermal: generic_adc_thermal: Add second value read back on read channel raw
Jinyoung Park [Fri, 21 Jun 2013 06:53:20 +0000]
Thermal: generic_adc_thermal: Add second value read back on read channel raw

Added second value read back on read channel raw.

Bug 1287901

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/241374
(cherry picked from commit 59aa8e57f663512f4489c11984673bc87e9a5738)

Change-Id: I0bde33c4cb16e1c500b0cf86b64ec3e84e9a61d7
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252880
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agostaging: iio: Support second value read back on iio_st_read_channel_raw
Jinyoung Park [Thu, 20 Jun 2013 08:55:41 +0000]
staging: iio: Support second value read back on iio_st_read_channel_raw

Support second value read back on iio_st_read_channel_raw.

Bug 1287901

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/241373
(cherry picked from commit f8664172759b7846bd046779c1ca4be672a6fee8)

Change-Id: I2d5eb06ae3434fbca8a92591e8b498340371c771
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252879
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: camera: VI clock changes
Bhushan Rayrikar [Wed, 21 Aug 2013 18:19:02 +0000]
video: tegra: camera: VI clock changes

Use pll_c and pll_p both as parents for VI. Needed to select the
lowest clock rate greater than the required clock to improve power.

Bug 1350635

Change-Id: Ia684f9c2bcbf6342d7d02343f42a22f33940c4a3
Signed-off-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-on: http://git-master/r/266214
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sean Pieper <spieper@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoCpufreq: Serialize policy update across hotplug
Puneet Saxena [Sat, 24 Aug 2013 11:35:14 +0000]
Cpufreq: Serialize policy update across hotplug

It serialise policy parameters update when hot-unplug
happens.

Bug 1327428

Change-Id: I0be6523add2866e45e413c79ef7c86605a359f44
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/265844
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>