5 years agocpufreq: interactive: check freq with policy->cur rel-tegranote-r2 daily-2013.11.05.1_rel-tegranote-r2-partner
Jinyoung Park [Wed, 30 Oct 2013 10:34:03 +0000]
cpufreq: interactive: check freq with policy->cur

Added check for new target freq with policy->cur before request new
target freq.
This change is derived from http://git-master/r/#/c/298964/ for
stability issues.

Bug 1397658.

Change-Id: Id263e2c9988873e41ebe95dfcf52dab9d24ddcad
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/309571
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agomax17048: add sysfs for check battery capacity
Hyongbin Kim [Tue, 15 Oct 2013 03:36:10 +0000]
max17048: add sysfs for check battery capacity

For check battery capacity, read Battery ID from ADC.
User can check with below adb commend.
"cat /sys/class/i2c-dev/i2c-0/device/0-0036/battery_capacity"

Bug 1368059

Change-Id: I49ba1216244b85258fa3ef1ec8f60fd27a81e26b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/299269
(cherry picked from commit fd6efe4c23d6a4554643b582c5afc695dc0665b2)
Reviewed-on: http://git-master/r/304316
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: Tegra: TT-power: set battery id check flag
Hyongbin Kim [Tue, 15 Oct 2013 04:33:16 +0000]
ARM: Tegra: TT-power: set battery id check flag

Set battery id check flag of max17048 and add ADC pdata of Batt_ID channel.

Bug 1368059

Change-Id: I918a6e063fc01132931aaf84c9cb09deaaa16b6b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/299289
(cherry picked from commit 1d911020e42ab1a59233a71e167d6ca4082a91b2)
Reviewed-on: http://git-master/r/304317
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: misc: mpu: add load cal sysfs
David Yu [Fri, 18 Oct 2013 09:03:55 +0000]
input: misc: mpu: add load cal sysfs

Bug 1376017

Change-Id: I1e332dbb7f2a127a482837f3dff28b54077c923b
Reviewed-on: http://git-master/r/301137
(cherry picked from commit 6d170a3841164753799cca57b9d9b2f7610846b1)
Signed-off-by: Gabby Lee <galee@nvidia.com>
Reviewed-on: http://git-master/r/301233

5 years agomax17048: update temp change promptly
Hyongbin Kim [Mon, 14 Oct 2013 05:48:55 +0000]
max17048: update temp change promptly

When battery temperature is changed over 1.5C or over hot/cold threshold,
update power supply for sending event to framwork.

Bug 1386890

Change-Id: I72ecda41b339a07a467ca31950643fb45b21b7d9
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/298845
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: dts: tegra114: tegratab: Update Micron dvfs table to v9.0
Jinyoung Park [Fri, 4 Oct 2013 01:51:13 +0000]
ARM: dts: tegra114: tegratab: Update Micron dvfs table to v9.0

Updated Micron 1GB MT41K128M16-125 dvfs table to v9.0.

Bug 1280381

Change-Id: Ibfc9fddc28c75785ff3df18193cb8d7c1751d473
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/281603
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agovideo: tegra: Remove delay if power is enabled
Hyongbin Kim [Thu, 12 Sep 2013 08:42:55 +0000]
video: tegra: Remove delay if power is enabled

When first boot, vdd_lcd_bl_en is already enabled.
vdd_lcd_bl_en doesn't share power rail, we can remove 200ms delay.

Bug 1367030

Change-Id: I4f9d4900c59a858ae34224cba42791f36363851c
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/273602
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoRevert "usb: gadget: mtp: increase MTP buffers"
Alvin Park [Fri, 11 Oct 2013 04:58:37 +0000]
Revert "usb: gadget: mtp: increase MTP buffers"

This reverts commit b64b3f926455e9cfdff90291525f3d5264b97dd4.

Bug 1374649

Change-Id: I0c78bfc2c115ff2aad1af232451ba19b08bd8784
Signed-off-by: Alvin Park <apark@nvidia.com>
Reviewed-on: http://git-master/r/289520
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Kim <pekim@nvidia.com>

5 years agodriver: modified ov7695 orientation
Alvin Park [Wed, 2 Oct 2013 05:12:24 +0000]
driver: modified ov7695 orientation

Preview is showing as vertically-flipped in some camera apps.
Modified ov7695 orientation

Bug 1316532

Change-Id: I3470131016d637abcf5ea2a5c834272ffd8ee6be
Signed-off-by: Alvin Park <apark@nvidia.com>
Reviewed-on: http://git-master/r/280973
Reviewed-by: Karl Kim <kkim@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Kim <pekim@nvidia.com>

5 years agoARM: tegra: usb: reduce hs_squelch level
Hyongbin Kim [Tue, 1 Oct 2013 11:23:46 +0000]
ARM: tegra: usb: reduce hs_squelch level

For fix USB Device Receiver Sensitivity fail, reduce hs_squelch level
from 112.5mV(2b'10) to 100mV(2b'01).

Bug 1349951

Change-Id: I3588fc3a9b4ee2486274872d55a30e575cf6d5e2
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/280707
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: tegratab: change VD_DDR_R to 1.38V
Yong Goo Yi [Thu, 26 Sep 2013 11:21:38 +0000]
ARM: tegra: tegratab: change VD_DDR_R to 1.38V

Change VD_DDR_R(smps7) to 1.38V for DDR3 stability

Bug 1280381

Change-Id: I4735621fb53b490de2a58bc5218beb2d90ac38f6
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/279329
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: dts: tegra114: tegratab: Update Micron dvfs table to v8.0
Jinyoung Park [Mon, 30 Sep 2013 11:55:33 +0000]
ARM: dts: tegra114: tegratab: Update Micron dvfs table to v8.0

Updated Micron 1GB MT41K128M16-125 dvfs table to v8.0.

Bug 1280381

Change-Id: Ibcaceb15de6a4b1d9c95c3e7fa81e65afc1830ca
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/280320
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@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
Bug 1363827

Change-Id: I1b8ba453f9e4e0f21e65667b54ed5ce4bcee8ff1
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/276089
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit e0677bee1c32cc5c9f8afef8aa84250da71f020f)
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/279209
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim_sti: Update to version 1.4.3, v29
Xiaohui Tao [Sat, 28 Sep 2013 17:50:42 +0000]
input: touch: maxim_sti: Update to version 1.4.3, v29

Description:
version 1.4.3 TegraTab bringup v29 DVT3+;

Improvement:
Noise performance is also improved in this version.

Bug 1353325
Bug 1367501

Change-Id: I50a08845d4232e2d462c25bf0f7ae91eb166a141
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/280094
GVS: Gerrit_Virtual_Submit
Reviewed-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agopower: bq2419x-charger: short vbus enable time
Martin Chi [Wed, 14 Aug 2013 07:15:53 +0000]
power: bq2419x-charger: short vbus enable time

Per the scope of vbus regulator when plug-in otg
device cable, the vbus ring time is only about 2ms,
so short enable time from 500ms to 8ms

Bug 1344478
Bug 1370104

Change-Id: Ief7573281d427940af2af3b0365bac1389ae7862
Signed-off-by: Martin Chi <mchi@nvidia.com>
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/261358
(cherry picked from commit e5564f232d29ca5745ac235912fcb07fd602c9ec)
Reviewed-on: http://git-master/r/278101
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: TT: Skip hdmi init in charger boot
Hyongbin Kim [Thu, 12 Sep 2013 08:39:56 +0000]
ARM: TT: Skip hdmi init in charger boot

To save charger boot mode boot time, skip hdmi init code.

Bug 1367030

Change-Id: I34ab00a1fa06c0d0819bb76e557860920f78892d
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/273601
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: TT: Reduce charger mode boot time
Hyongbin Kim [Thu, 12 Sep 2013 08:34:32 +0000]
ARM: TT: Reduce charger mode boot time

In charger mode, sdhci2(External SD), sdhci0(Wifi) is not used.
Skip register to save boot time.

Bug 1367030

Change-Id: I297494976c8f0a50244638fc7c62916548c082e7
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/273600
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agodrivers: misc: therm_est: use late_initcall_sync
Jinyoung Park [Thu, 26 Sep 2013 06:43:16 +0000]
drivers: misc: therm_est: use late_initcall_sync

Changed module_init() to late_initcall_sync() for therm_est driver
to ensure therm_est driver registration after complete
all thermal_zone driver registration.

Bug 1375775

Change-Id: I0b70d1d14a40540056dbf2b07a16657f766d00a3
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/279213
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim: fix daemon crashing issue
David Jung [Wed, 25 Sep 2013 23:21:32 +0000]
input: touch: maxim: fix daemon crashing issue

Nvidia changes to fix the problem when the daemon crashes and the touch
is not responding after resume when display is off.

Bug 1353325

Change-Id: I4a2917ae2070a4a6500d7e03833218534c117250
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/279074
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim_sti: Update to version v28
David Jung [Sat, 21 Sep 2013 03:59:08 +0000]
input: touch: maxim_sti: Update to version v28

Maxim code drop which is for
further improvements to resume.

Bug 1353325

Change-Id: Ic6a267e3db268453cb3454e91216a8f97b135ce7
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/277469
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agotegra: video: LGD 7" T5 and T6 delay fix.
Min-wuk Lee [Wed, 25 Sep 2013 05:47:51 +0000]
tegra: video: LGD 7" T5 and T6 delay fix.

Based on the spec, LGD 7" T5 needs to be >200ms
and T6 needs to be >200ms. A part of delay is
already handled in mipi command sequence, so remove
duplicated delay value.

Bug 1349306

Change-Id: Iad1f2d2785d5f78e91a8eb61a51f1349ededc40a
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/278755
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agotegra: video: remove LGD 7" T4 in some condition
Min-wuk Lee [Wed, 4 Sep 2013 09:25:26 +0000]
tegra: video: remove LGD 7" T4 in some condition

This is work around. LGD WXGA 7" panel spec requests
1s delay between "panel 3v3 off" and "3v3 on" if all
panel related power rails (1v8, 3v3) are not turned off.

Precondition for work around
 - In power off, panel off then touch off.
 - In power on, touch on then panel on.

Why work around is necessary?
 - Same 1v8 rail is shared by touch and panel.
   In panel off, 3v3 rail off and 1v8 rail off
   are requested, but 1v8 rail isn't turned off
   in panel off timeframe because of touch module.
   It is possible to get panel on request without
   touch off/on control. In this case, 1S delay
   is necessary per spec. If 1v8 is turned off
   and on by touch module before panel on request,
   then, we don't need 1S delay. If 1v8 is turned
   off in panel on request time, we don't need
   1S delay, either.

Bug 1349306

Change-Id: I204b4c1a73aeff2fcd29e00a818e409a85c8a6e9
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/270026
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: dts: tegratab: change default brightness
Min-wuk Lee [Tue, 24 Sep 2013 09:42:13 +0000]
ARM: dts: tegratab: change default brightness

Change default brightness to 153, which is 60% compared
to max brightness

Bug 1353323

Change-Id: Ia2e35da24ff2a71c192b8436cc16b909b4d68aaa
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/278300
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim_sti: boot fusion from init
Xiaohui Tao [Tue, 17 Sep 2013 01:41:01 +0000]
input: touch: maxim_sti: boot fusion from init

Touch fusion process will be booted from init.*.rc instead of kernel.

Bug 1352711
Bug 1366179

Change-Id: Icf89f4e3285ba35f92c78552793b9bf5d9f78355
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/264601
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoasoc: rt5639: Set Speaker OVCD to default
Scott Peterson [Thu, 12 Sep 2013 23:50:45 +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>
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>

5 years agoinput: touch: maxim_sti: Check thread stop condition
Bo Kim [Fri, 13 Sep 2013 07:48:03 +0000]
input: touch: maxim_sti: Check thread stop condition

Problems:
If shutdown or remove is called when suspended, it could be stuck in
infinite loop.

Changes:
1. Check kthread_should_stop() in several loops should be helpful to
avoid infinite loop problem.
2. Add __pm_stay_awake() in resume() and __pm_relax() in suspend()
should be helpful to avoid messaging error touch fusion driver and touch
fusion daemon by user space freezing between suspend and resume.
3. shutdown()/remove() stops processing_thread() before killing daemon.

Bug 1366179

Change-Id: I68464164440418a53bd37ce1821e04b630c12aec
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/274196
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agotegratab: use touch_fusion for reversed panel
Bo Kim [Wed, 11 Sep 2013 06:01:02 +0000]
tegratab: use touch_fusion for reversed panel

We don't support DVT1(non reversed panel) device. So we don't need to
support touch_fusion and touch_fusion_rd together. We will use
touch_fusion for reversed panel.

Change-Id: I576f926463c69e1a033b763e5e5c2207e373baa6
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/272926
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: dts: tegra114: Add tegratab dvfs table in DT
Jinyoung Park [Mon, 9 Sep 2013 09:05:33 +0000]
ARM: dts: tegra114: Add tegratab dvfs table in DT

Added tegratab dvfs table in device tree.
This DT dvfs table is including a ram-code property to support multiple
devices of emc.
- ram-code = 0: Micron 1GB
- ram-code = 1: Hynix 1GB

Bug 1352073

Change-Id: I0353d9451043352c033cdcdee5b178d4c736f901
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/271985
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: clock: Use ram code for TegraTab
Jinyoung Park [Wed, 11 Sep 2013 05:59:21 +0000]
ARM: tegra: clock: Use ram code for TegraTab

Use ram code depending on each TegraTab H/W revisions.

Bug 1352073

Change-Id: I92d6267c6f352f3bb788a47db661b4b3499e4327
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/272929
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: ti-st: Send timeout error if ST registration fails
Shobek Sam Attupurath [Tue, 20 Aug 2013 15:17:33 +0000]
misc:  ti-st: Send timeout error if ST registration fails

Send timeout error in case of ST registration failure so that
that ST retries.

Bug 1347583

Change-Id: Ie64d17203aa03e7efa126d243c01e9017008a7f3
Signed-off-by: Shobek Sam Attupurath <sattupurath@nvidia.com>
Reviewed-on: http://git-master/r/263940
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agovideo: tegra: dc: dont restore windows in unblank
Rakesh Iyer [Mon, 15 Jul 2013 18:41:05 +0000]
video: tegra: dc: dont restore windows in unblank

During unblank, the original framebuffer should be the window 0.
This is broken so for the short term we will keep windows unchanged on unblank.

Bug 1299586
Bug 1358722

Change-Id: Ib16d901b9bc77d6ec9075a054c0b5e5c5d52cb55
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/248842
(cherry picked from commit 92d5cd55b603857daafb18828c83dc2cc6b1a527)
Reviewed-on: http://git-master/r/273765
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoarm: Enable IRQs before attempting to read user space in __und_usr
Catalin Marinas [Tue, 20 Aug 2013 17:37:02 +0000]
arm: Enable IRQs before attempting to read user space in __und_usr

The Undef abort handler in the kernel reads the undefined instruction
from user space. If the page table was modified from another CPU, the
user access could fail and do_page_fault() will be executed with
interrupts disabled. This can potentially deadlock on ARM11MPCore or on
Cortex-A15 with erratum 798181 workaround enabled (both implying IPI for
TLB maintenance with page table lock held).

This patch enables the IRQs in __und_usr before attempting to read the
instruction from user space.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Change-Id: Ie5164d8ada9646d723b2b6ef65797e9307718292
Reviewed-on: http://git-master/r/264300
(cherry picked from commit 099ae886a528059cdda926ce1701caaaeaa9e0e8)
Reviewed-on: http://git-master/r/267818
(cherry picked from commit 4b351ab2f929717d7e3c665828c6c9cff5fd4d33)
Reviewed-on: http://git-master/r/273633
GVS: Gerrit_Virtual_Submit
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: dts: tegratab: update CMU calibration data
Min-wuk Lee [Wed, 11 Sep 2013 06:45:22 +0000]
ARM: dts: tegratab: update CMU calibration data

Update CMU calibration data. Normalized matrix is chosen
for CMU csc matrix.

Bug 1354492

Change-Id: I79dde8f33ff89bf261c70a65365eb5555a5e4cd5
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/272948
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-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>
Reviewed-on: http://git-master/r/273088
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@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
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

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>

5 years agommc: tegra: error handling if no card
Harry Hong [Wed, 11 Sep 2013 05:50:59 +0000]
mmc: tegra: error handling if no card

if sd card removed during tap_delay tuning,
don't exit until trying MAX_TAP_VALUES.
it makes the system un-responsive for 2 sec.
Therefore, adding to check card_present before starting
freq_tuning.
if card is not present, return error
and then exit tuning procedure.

bug 1364449

Change-Id: Ib8dff29a1c1faade2acaa93c3e97ea23d3e3041c
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/272902
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: clock: Correct wrong pointer passing
Jinyoung Park [Mon, 9 Sep 2013 09:13:22 +0000]
ARM: tegra: clock: Correct wrong pointer passing

Corrected a wrong device node pointer passing.

Bug 1352073

Change-Id: Ib4354e0b74d1babf671d141cea238e9a55299343
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/271984
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agotegra: video: hdmi: WAR: ensure hdcp register access with clk enabled
Min-wuk Lee [Fri, 6 Sep 2013 08:43:06 +0000]
tegra: video: hdmi: WAR: ensure hdcp register access with clk enabled

There is a race condition between hdcp upstream and hdmi disable
during suspend/resume stress with hdmi plugged-in. WAR by making
host1x/hdmi clk enabled and hdmi clk out of reset.

Bug 1349507

Change-Id: I6870066358900d6f6798b3e20bc59bf5645f25b8
Original-author: Roger Hsieh <rhsieh@nvidia.com>
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/271389
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agovideo: tegra: avoid double free in modedb
Jon Mayo [Fri, 19 Jul 2013 00:37:19 +0000]
video: tegra: avoid double free in modedb

modedb can double free in some cases, or worse point to free'd memory that
later gets allocated.

Bug 1328121
Bug 1264520
Bug 1346938

Change-Id: Icc4bba24017a782501f27c4787a63a2e2680e4a7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/251070
(cherry picked from commit 5fe405dbe4317a177182eea98d1a09c9891cfcad)
Reviewed-on: http://git-master/r/269365
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoHDCP: Only Wait for Communication to stop if HDMI is Plugged
Matt Wagner [Wed, 22 May 2013 00:50:34 +0000]
HDCP: Only Wait for Communication to stop if HDMI is Plugged

Don't wait for communication to stop if HDMI isn't plugged

Bug 1275577
Bug 1346938

Change-Id: Ifb56bc8a4b36ac2cb40614811398920b7e293e04
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/231350
(cherry picked from commit fc774f94ffa54b1a6ce1771ac82b82c3a1eea39f)
Reviewed-on: http://git-master/r/267816
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoHDCP: finish hdmi access before turning nvhdcp off
Rakesh Iyer [Fri, 10 May 2013 00:42:11 +0000]
HDCP: finish hdmi access before turning nvhdcp off

Wait for hdmi accesses to finish before turning nvhdcp off.

Bug 1275577.
Bug 1346938.

Change-Id: Ieef8635b66cfdddece7b2e1140b776b91350d272
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/227243
(cherry picked from commit ac6205a26fbf52d8439524543321012ed95c9d78)
Reviewed-on: http://git-master/r/267815
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-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>
Reviewed-on: http://git-master/r/271849
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Gabby Lee <galee@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

Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/265844
(cherry picked from commit 318c456ae7509ca2286200ace7e8cddaff6a2fab)

Change-Id: I0be6523add2866e45e413c79ef7c86605a359f44
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/269945
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoCpufreq: protect policy & module refcount
Puneet Saxena [Wed, 14 Aug 2013 15:34:00 +0000]
Cpufreq: protect policy & module refcount

percpu policy pointer needs to be updated with "cpufreq_cpu_data"
synchronously.

This will avoid different virtue of policy pointer of an
online cpu.

It protects ref counting while releasing policy object

Bug 1327428

Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/261609
(cherry picked from commit e1f0ddb9f2a50a7697864f180fbab745add08682)

Change-Id: I817a78c2ead921546f97e4af8943fb5c4ffcfcc6
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/269944
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: defconfig: Enable CONFIG_PANIC_TIMEOUT=2
Hyongbin Kim [Thu, 5 Sep 2013 10:33:06 +0000]
ARM: defconfig: Enable CONFIG_PANIC_TIMEOUT=2

Add "CONFIG_PANIC_TIMEOUT=2" for reboot after 2sec,
when kernel panic occur.

Bug 1362640

Change-Id: I693573e1e6f2377866b609991c01f753d5e42f5b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/270760
Reviewed-by: Simon Je <sje@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim_sti: Update to version 1.4.1, v25
Robert Collins [Sat, 7 Sep 2013 03:27:37 +0000]
input: touch: maxim_sti: Update to version 1.4.1, v25

Description:
version 1.2.0 TegraTab bringup v25 DVT3+;

Changes:
* Eraser starts as being reported as pen and then switches to eraser without an intervening lift of the pen.
* Touch panel not responsive after standby resume
* Stylus events on virtual keyboard are missing with v24 build.

Bug 1357895
Bug 1353325
Bug 1360030

Change-Id: I4c01e13165074f5c0cbd5a71cf961956a66c07b1
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/271801
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: Assert reset when power ungating
Terje Bergstrom [Wed, 31 Jul 2013 05:34:10 +0000]
ARM: tegra: Assert reset when power ungating

Ensure unit is in reset when powering it back on.

Bug 1329416
Bug 1331777
Bug 1322046

Change-Id: I8ef6646a8fe2ae85fdb836f3222678e5f77a784c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/256139
(cherry picked from commit 814f276c512cd49abbf15c64e14f8a9bbeb22d39)
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/271354
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: tegratab: Set proper skin coeff to each P1640 revision
Jinyoung Park [Fri, 6 Sep 2013 06:00:38 +0000]
ARM: tegra: tegratab: Set proper skin coeff to each P1640 revision

Set proper skin coeff to each P1640 board revision.

Bug 1362155

Change-Id: Ie3574f71961dec9441a7e8a6f0880385ae54a2b7
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/271337
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoarm: tegra: tegratab: KEY_UNKNOWN as default wakeup_key
Yong Goo Yi [Wed, 4 Sep 2013 05:35:01 +0000]
arm: tegra: tegratab: KEY_UNKNOWN as default wakeup_key

Key code of SW_LID is 0 same with KEY_RESERVED used as default value
when checking wakeup key so even though waking up by RTC or wl18xx,
gpio key driver works for SW_LID. It increases LP0 standby power.
Use KEY_UNKNOWN as default wakeup_key.

Bug 1361016

Change-Id: Id44f78214060eb702e3a44997c1722095c734195
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/269908
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim_sti: Shutdown safely
Bo Kim [Fri, 30 Aug 2013 08:41:04 +0000]
input: touch: maxim_sti: Shutdown safely

Current shutdown implementation seems to be unsafe. Sometimes it can be
locked up due to interrupt from the chip but the interrupt cannot be
processed and cleared.

Bug 1349939
Bug 1359386

Change-Id: I585c03c2398eb9ab94563d5fe379bbafad7dc03c
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/268420
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: cpu: Ensure CPU freq with suspend freq during pre/post suspend
Jinyoung Park [Mon, 2 Sep 2013 06:02:05 +0000]
ARM: tegra: cpu: Ensure CPU freq with suspend freq during pre/post suspend

Tegra CPU driver fixes CPU freq with a selected suspend freq between
pre-suspend and post-suspend. In this pre/post suspend period, the Tegra
CPU driver ignores CPU freq scaling requests from the CPU freq governor.
But the CPU freq governor keep working until the system suspended.
So the CPU freq governor updates its status even if the system is in
the pre/post suspend period.
This makes unexpected CPU freq setting issue on post-suspend.
To ensure CPU freq with the selected suspend freq in the pre/post
suspend period, set a policy max freq on CPU freq governor to the
selected suspend freq via PM QoS at pre-suspend and release the setting
via PM QoS at post-suspend.

Bug 1354391

Change-Id: I8efa6dd438a37adc7cadfb1d36eb7340a4e85c79
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/268955
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agocpufreq: Set same governor as a first CPU when CPU online
Jinyoung Park [Mon, 2 Sep 2013 05:50:30 +0000]
cpufreq: Set same governor as a first CPU when CPU online

Set governor for a newly online CPU with same governor as a first CPU.

Bug 1354391

Change-Id: I104ff8f61e89667f482f262d4cc3cb5ea1a1875a
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/268954
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agocpufreq: conservative: Ensure requested_freq within policy min/max range
Jinyoung Park [Mon, 2 Sep 2013 05:39:34 +0000]
cpufreq: conservative: Ensure requested_freq within policy min/max range

Ensure requested_freq within policy min/max reage.

Bug 1354391

Change-Id: I55d0221a228c3cdeef3f9ced0a0ecb8bbdb21427
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/268953
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim: Do not rely on previous state of reset
Xiaohui Tao [Fri, 30 Aug 2013 17:36:11 +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
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoarm: tegra: fuse: printing RAM strapping info
Harry Hong [Thu, 29 Aug 2013 10:49:39 +0000]
arm: tegra: fuse: printing RAM strapping info

To be aware of RAM strapping info,
print it at kernel init by default.

bug 1352073

Change-Id: Ia0462392d6a2ca06b68fcced1b39ec7d68110c74
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/267903
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: nct: add serial number entries for LBH
Woojung Min [Mon, 19 Aug 2013 18:17:03 +0000]
ARM: tegra: nct: add serial number entries for LBH

Bugi 1346871

Change-Id: I20e523a89d214f1265009abc10e183f4dcce67cf
Signed-off-by: Woojung Min <wmin@nvidia.com>
Reviewed-on: http://git-master/r/265928
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: tegratab: Don't register touch driver if charger boot mode
Jinyoung Park [Fri, 30 Aug 2013 00:22:34 +0000]
ARM: tegra: tegratab: Don't register touch driver if charger boot mode

Don't register touch driver if charger boot mode to reduce power
consumption.

Change-Id: I7dcd120ecf2b7f6156aa40551c59aba88f815035
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/268203
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: tegratab: free BL fb in late_init
Min-wuk Lee [Thu, 29 Aug 2013 06:45:39 +0000]
ARM: tegra: tegratab: free BL fb in late_init

At this moment, bootloader framebuffer memory is freed
in arch_initcall, whereas, kernel framebuffer is used
in dc device register with device_initcall. bootloader
framebuffer memory should be freed after dc device
register, so move it to late_initcall frame.

Bug 1346172
Change-Id: Ibd6dc72deea82069aaa2ab6d2cd52d4810b1cb53
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/267790
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra11: power: Specify PMU undershoot gaurd-band
Alex Frid [Sun, 12 May 2013 07:06:36 +0000]
ARM: tegra11: power: Specify PMU undershoot gaurd-band

Specified PMU undershoot gaurd-band 100mV for tegratab, macallan, and
pluto boards.

Bug 1285525

Change-Id: I950630c1d3208657fde0a8dda7a538c60cfc706d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/227756
(cherry picked from commit 31a740326f55b922edc0b3c89839dc2332b4ed35)
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/267385
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: ti-st: enable wakeup device
Harry Hong [Wed, 28 Aug 2013 07:32:42 +0000]
misc: ti-st: enable wakeup device

- enable st_host_wake device as wakeup device
- set device_wakeup_enabe by default
- don't freq irq if irq is not registered
 in this driver

bug 1347948

Change-Id: Id8467cadc21270f73154e32711818111b8eb10c0
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/267128
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agopower: bq2419x: Set attr chmod 644
Hyongbin Kim [Wed, 28 Aug 2013 08:21:24 +0000]
power: bq2419x: Set attr chmod 644

Chmod 666 make "testAllFilesInSysAreNotWritable" fail in
android.permission.cts.FileSystemPermissionTest.

Bug 1342684

Change-Id: I60cb2b02080b5b5fd3fdedd5c7fed54b474454c8
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/267178
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jake Park <jakep@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Gabby Lee <galee@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
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Gabby Lee <galee@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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agopower: max17048: add battery temperature property
Hyongbin Kim [Mon, 26 Aug 2013 07:08:45 +0000]
power: max17048: add battery temperature property

To show battery temperature in APP, add POWER_SUPPLY_PROP_TEMP and
POWER_SUPPLY_PROP_TEMP_AMBIENT in property.
Android temperature unit is 1/10 C.
And when battery temp is too hot(60) or too cold(-10),
change battery health property.

Bug 1302687
Bug 1355391

Change-Id: I530a7cd55e1abe8e7a1e3d12cfb2a95c169291d3
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/266047
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: clock: Support EMC freq min/max constraints by PM QoS
Jinyoung Park [Tue, 20 Aug 2013 08:06:28 +0000]
ARM: tegra: clock: Support EMC freq min/max constraints by PM QoS

Support EMC frequency min/max constraints by PM QoS

Bug 1346293

Change-Id: I6987235c72921fdf8229a2411eb212dd7ffa66f0
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/263784
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoPM QoS: Add EMC freq min/max as PM QoS params
Jinyoung Park [Tue, 20 Aug 2013 07:39:25 +0000]
PM QoS: Add EMC freq min/max as PM QoS params

Added EMC frequency min/max as PM QoS parameters.

Bug 1346293

Change-Id: Ib9eb6977edd56420d8518231d06749b2fbf5c34c
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/263783
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>
Reviewed-on: http://git-master/r/264289
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: Tegra: TT-power: set sysedp throttle
Hyongbin Kim [Wed, 21 Aug 2013 03:25:03 +0000]
ARM: Tegra: TT-power: set sysedp throttle

At low SOC, set current threshold with INA230 is not enough.
Need to use sysedp capping in low soc.
set 10000mW under 4%, 10500mW under 8%.

Bug 1329495

Change-Id: I15b845f7669729692bfa3e32729512af0a20e555
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/264168
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agopower: max17048: sysedp throttle in low SOC
Hyongbin Kim [Wed, 21 Aug 2013 03:22:27 +0000]
power: max17048: sysedp throttle in low SOC

When low SOC, limit freq of cpu, gpu, emc by sysedp_lite.

Bug 1316595

Change-Id: I112efb815d3c57731d7478bb2ab0589c10f72865
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/264167
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoedp: tegra_core_lite: add tegra_core_lite
Hyongbin Kim [Tue, 20 Aug 2013 03:49:47 +0000]
edp: tegra_core_lite: add tegra_core_lite

When SOC is low, we need to limit clk of cpu, gpu, emc.
For simple use, set power directly and set edp limit.
Just use cpupri table.

Bug 1316595

Change-Id: I3f2644f8564735551be6e61248e916b2981e70ef
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/264166
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: Tegra: TT-power: set current threshold
Hyongbin Kim [Mon, 12 Aug 2013 05:35:46 +0000]
ARM: Tegra: TT-power: set current threshold

Set ina230 current threshold in low SOC.
1.8A under 4% SOC and 2.5A under 8% SOC.
This change has trade off against performence drop at low SOC.

Bug 1316595
Bug 1304204

Change-Id: I6e397277729f2570e29ee3f36170e9c6dfe08467
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/260356
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoRevert "ARM: Tegra: tegratab-power: Set "SOC low" irq threshold to 2%"
Hyongbin Kim [Mon, 12 Aug 2013 05:22:32 +0000]
Revert "ARM: Tegra: tegratab-power: Set "SOC low" irq threshold to 2%"

This reverts commit a285db7ae223699c8d31cce51c32c443cc3d4571.

Bug 1316595
Bug 1333630

Change-Id: Ib382f49dfdab8b72ca7f40618d6eaa43e274450c
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/260355
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoRevert "power: max17048_battery: WAR: Power off when SOC is 1%"
Hyongbin Kim [Mon, 12 Aug 2013 05:21:10 +0000]
Revert "power: max17048_battery: WAR: Power off when SOC is 1%"

This reverts commit 96428cf1a5202bd2758d4c718777e397f35195c7.

Bug 1316595

Change-Id: Ic11f35c3925521aa707f63c8f10c84b5e025189c
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/260354
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agopower: max17048: set current threshold at low SOC
Hyongbin Kim [Mon, 15 Jul 2013 06:09:26 +0000]
power: max17048: set current threshold at low SOC

Support current threshold table for prevent sudden power off
or freeze under low SOC.

Bug 1304204
Bug 1316595

Change-Id: I4374c27a781a96d3f5b6a3f59af2ce3dcd55bbf3
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/249079
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agohwmon: ina230: add export set current threshold
Hyongbin Kim [Mon, 15 Jul 2013 05:21:52 +0000]
hwmon: ina230: add export set current threshold

At low SOC, we need to limit current for system stability.
When set low value to current threshold, should set minimum cpu number
to avoid power down of current monitor.

Bug 1304204
Bug 1316595

Change-Id: I52219755a62acbb5289a6d28237b5ac57fa1a54a
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/249078
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agotegra: video: lgd-wxga-7 avdd power sequence fix
Min-wuk Lee [Wed, 21 Aug 2013 05:32:49 +0000]
tegra: video: lgd-wxga-7 avdd power sequence fix

This change is fixing LGD WXGA 7 AVDD 3.3V power sequence. This
power rail on needs to be >1000ms after it is off.
Add 1000ms delay after this rail is turned off.

Bug 1349957

Change-Id: I2a1d7a2be2df38e2e5eb5a1976d59ca380c730b7
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/264194
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agopower: bq2419x: add R/W permission to other
Hyongbin Kim [Thu, 22 Aug 2013 09:06:25 +0000]
power: bq2419x: add R/W permission to other

For read/write charging complete SOC by user application,
edit permission to 666 from 600.

Bug 1342684

Change-Id: I56478f804da2f33194970c4cbb0d1a5dd42f83e8
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/264797
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: BK Kim <bkk@nvidia.com>
Tested-by: BK Kim <bkk@nvidia.com>
Reviewed-by: Gabby Lee <galee@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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: misc: mpu: change self test criteria
Xiaohui Tao [Tue, 20 Aug 2013 17:38:52 +0000]
input: misc: mpu: change self test criteria

1) Increasing the at rest (Test #3) Threshold from 10dps to 40dps
Invensense claims this was a programming error from their side and
was updated in their code base over a year ago.  They say all their
customers are using (or should be) using the new code (with the
relaxed threshold).

2) Increasing the ST compare (Test #1) Threshold from 14% to 50%
Their response was 14% was set based on their factory results.
However, over time, they had several customer investigations and
found that their customer environments are a lot nosier than their
factory.  Based on more collected samples from the customer site,
they increased this limit from 14% to 50%.  They claim a major
tablet manufacturer with 100.s of thousands of units has taken
the new 50% threshold over a year ago and currently no reported
test escapes with the new threshold.

Bug 1343976

Change-Id: I684f186134db3717d4d1304c14f97dd310843cab
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/263972
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: Do not expose kernel IPs
Igor Nabirushkin [Mon, 19 Aug 2013 12:32:24 +0000]
misc: tegra-profiler: Do not expose kernel IPs

In Tegra Profiler misc driver, do not expose kernel-space IPs
for security purposes (for non-root users).

Bug 1312406
Bug 1349673

Change-Id: Ie3b89a555296359c8578ec39a00161d3e63a34ad
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/263320
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: fix backtracing
Igor Nabirushkin [Mon, 5 Aug 2013 13:29:32 +0000]
misc: tegra-profiler: fix backtracing

check_vma_address function:
sometimes (rarely): address value may be overflowed.

Bug 1312406

Change-Id: I50bdb89a92cc1ad28d57dc67a7c15c8d1ebebd6a
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/258205
GVS: Gerrit_Virtual_Submit
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: allocate memory on demand
Igor Nabirushkin [Mon, 5 Aug 2013 13:22:35 +0000]
misc: tegra-profiler: allocate memory on demand

Tegra Profiler misc driver:
allocate memory on demand from the user space, not on boot

Bug 1312406

Change-Id: Ic50e4e29a6066cee49c60cb435ab8f46c4748cbc
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/258202
GVS: Gerrit_Virtual_Submit
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: defconfigs: Enable Tegra profiler
Igor Nabirushkin [Thu, 18 Jul 2013 17:59:10 +0000]
ARM: defconfigs: Enable Tegra profiler

Enable Tegra profiler for Tegra platforms

Bug 1312406

Change-Id: I5d2051549b9a144a885e71939cf49a0648b6b4ba
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/250844
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>

5 years agoARM: tegra: Add Tegra Profiler
Igor Nabirushkin [Thu, 18 Jul 2013 17:42:07 +0000]
ARM: tegra: Add Tegra Profiler

Add Tegra Profiler kernel misc driver

Bug 1312406

Change-Id: Ie5715bd0029a4d06fb20fa4ad8724827411a6c3b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/250840
GVS: Gerrit_Virtual_Submit
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: Tegra: TT-power: Remove fixed complete soc
Hyongbin Kim [Wed, 14 Aug 2013 10:10:22 +0000]
ARM: Tegra: TT-power: Remove fixed complete soc

Charging complete soc can be set by sysfs.
Don't need to change charger pdata in factory mode.

Bug 1342684

Change-Id: Ia514a0e0b92906c46660ef92edbb39831e747037
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/261487
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agopower: bq2419x: Support set charging complete SOC
Hyongbin Kim [Wed, 14 Aug 2013 06:31:02 +0000]
power: bq2419x: Support set charging complete SOC

Add sysfs for set charging complete SOC in user space.
When soc value is not 100%, just check soc and cut charger power
when charging is done.
Set value should be between 60 and 100.
Make foraml way to use SOC check charging done.

Bug 1342684

Change-Id: Ia45a585e4709d0d109788018e38d24ffa1e42c09
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/261486
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agovideo: tegra: nvmap: enable iwb page pool if outer cache is present
Krishna Reddy [Wed, 20 Mar 2013 23:03:06 +0000]
video: tegra: nvmap: enable iwb page pool if outer cache is present

If outer cache is not present, wb and iwb refer to same memory type
and page pool is not necessary.

Bug 1328248

Change-Id: I86713ccb4eb8d41b8129dd241dc72218039bbd26
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/259406
Reviewed-by: Harry Hong <hhong@nvidia.com>
GVS: Gerrit_Virtual_Submit
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>
Reviewed-on: http://git-master/r/262439
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Tested-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim_sti: Update to version 1.4.1, v22
Robert Collins [Thu, 15 Aug 2013 16:44:35 +0000]
input: touch: maxim_sti: Update to version 1.4.1, v22

Changes:
 - Water Rejection: Multiple Stylus cursors are getting
   displayed when the water drops are there in screen
 - Water Rejection: Touch screen is not responding to
   stylus or manual touch in water droplet area

Bug 1301942
Bug 1302147

Change-Id: If5b403995ca2eeef0106b61553616fc0455351ff
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/261949
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra11: clock: Move auto-refresh control to CCFIFO
Alex Frid [Sun, 19 May 2013 06:23:27 +0000]
ARM: tegra11: clock: Move auto-refresh control to CCFIFO

Disabled/Enabled auto-refresh during EMC clock change using CCFIFO
mechanism.

Bug 1339693

Change-Id: I00fc1cc4fe4668ed84c1e7a4e105ebbb684b0ca5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/261318
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-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
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoRevert "ARM: tegra: dc: program active mux for cursor"
Min-wuk Lee [Tue, 13 Aug 2013 01:07:45 +0000]
Revert "ARM: tegra: dc: program active mux for cursor"

This reverts commit 3bb0d7f08cde9ef74c7419218187a3ca53b961c1.
Cursor programming to ACTIVE copy directly is bad and not
desired programming sequence, which has caused unexpected
cursor window rendering across whole screen suddenly.
With this change, it programs to ASSEMBLY copy and latch
them into ACTIVE copy after GENERAL_ACT_REQ.

Bug 1314051

Change-Id: Ic40557f93db5a4503fbe4362c4d6b27a1ef0acd7
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/260852
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: touch: maxim_sti: Update to version 1.4.0, v21
Robert Collins [Tue, 13 Aug 2013 02:37:12 +0000]
input: touch: maxim_sti: Update to version 1.4.0, v21

Changes:
- Fixed: Will respawn touch_fusion daemon in the event it crashes
  (bug 1316502/1339998).
- Fixed: Touch linearity issues fixed (Bug 1326822).
- Improved:  Linearity on edges (Bug 1333700).

Bug 1316502
Bug 1326822
Bug 1333700
Bug 1339998

Change-Id: I731da02b5912723b41da553eca19400885e10976
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/260856
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agopower: max17048: Set default RCOMP when power off
Hyongbin Kim [Mon, 12 Aug 2013 10:46:55 +0000]
power: max17048: Set default RCOMP when power off

Reset to default RCOMP value when power off.

Bug 1341794

Change-Id: I4b5b4d375a39593c67bf38703e782ce2d1bec933
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/260486
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agovideo:tegra:ad5823 support physical/working range
Karl Kim [Fri, 9 Aug 2013 02:20:23 +0000]
video:tegra:ad5823 support physical/working range

NVCS can't set the full range because the ad5823 driver is
clipping position value as working range.
This is separated physical and working range

Bug 1340766

Change-Id: I61f4dbdc8572fd6b1725a9e0803656b9d0bc1ec4
Signed-off-by: Karl Kim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/259886
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jake Park <jakep@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Kim <pekim@nvidia.com>