3 years agoRevert "staging: android: persistent_ram: remove atomic operations"
Sumit Singh [Tue, 1 Mar 2016 09:00:42 +0000]
Revert "staging: android: persistent_ram: remove atomic operations"

We are reverting this change as we trying to align with upstream.

This reverts commit eae036b44aea75669573f1bfef953ac6bc9205f2.

Bug 200177889

Change-Id: I0ac8a3503b453d8ac478a8bc97175fa3e5e463ff
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>

3 years agogpu: nvgpu: return from worker if gpu is not up
Deepak Nibade [Wed, 20 Jan 2016 15:45:52 +0000]
gpu: nvgpu: return from worker if gpu is not up

During GPU shutdown path, it is possible that we
shut down the GPU while worker thread is still
running gk20a_channel_update()

Hence before accessing gp_put/get, check if GPU
is up or not

Bug 200166139

Change-Id: Iba3ec173041a84527c4700a93f20564a842cfb01
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/935193
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agogpu: nvgpu: force close all channels on shutdown
Deepak Nibade [Tue, 12 Jan 2016 12:19:57 +0000]
gpu: nvgpu: force close all channels on shutdown

In gk20a_pm_shutdown(), we currently wait for 2s
for all channels to finish their work

Instead of waiting, force close all channels
(disable and preempt) during shutdown

Also, if GPU is already railgated during shutdown,
then we can just disable runtime_pm and return
without doing anything

Bug 200166139

Change-Id: I0012f1b3c0f4f676958d083f8c60a001f7015fb0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/931706
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: dump vmode flag via debugfs
Ivan Raul Guadarrama [Fri, 26 Feb 2016 09:14:49 +0000]
video: tegra: dc: dump vmode flag via debugfs

Also dump the mode vmode flag through the mode debugs node.

Bug 1721518

Change-Id: Ia12055ac195cb9ce24e1ef3343f2a6a5666cf943
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/1020600
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Tuomas Kulve <tkulve@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agortc: tegra: change irq name
Krishna Yarlagadda [Thu, 25 Feb 2016 11:08:06 +0000]
rtc: tegra: change irq name

Change irq name from tegra-rtc to tegra_rtc
sanity tests depend on this name

Bug 1698877

Change-Id: Iad6159296391b67207bb1ef02260cefc4bb5bd0d
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1019945
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agortc: tegra: set persistent clock
Krishna Yarlagadda [Thu, 25 Feb 2016 11:05:53 +0000]
rtc: tegra: set persistent clock

RTC keeps running even during suspend. Registering
Tegra RTC as persistent clock

Bug 1698877

Change-Id: I2c8abacd34d75b64858ae8dafe1437d673fde63e
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1019944
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoRevert "Revert "arch: dt: Disable periodic-calibration""
Anubhav Jain [Tue, 23 Feb 2016 06:18:13 +0000]
Revert "Revert "arch: dt: Disable periodic-calibration""

This reverts commit c26bb0fcdd14ac0b050753784e86cb83a1b8f236.

Change-Id: Id88c142123246860efbc53400af6497db2d153d0
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/1017335
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>

3 years agoadma: tegra: report precise dma position
Ravindra Lokhande [Tue, 23 Feb 2016 11:49:53 +0000]
adma: tegra: report precise dma position

Earlier dma position is reported for buffers for which interrupt is
received. Current buffer transfered bytes are ignored. This change
adds current buffer transferred data to report more precise dma
position.

Change-Id: I5d246d44f6f572951918aebbd31121c83188dfdd
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/1018161
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

3 years agogpu: nvgpu: Protect sync by an own lock
Terje Bergstrom [Wed, 21 Oct 2015 20:14:09 +0000]
gpu: nvgpu: Protect sync by an own lock

Protect creation and deletion of sync by an own mutex. This prevents
deadlock in channel abort when abort is called from submit path.

Bug 200147887

Change-Id: I5d6308b773c1d1a6a89d4590e2e74c74d691f79d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/821127
(cherry picked from commit 4be2cc60de49d22a87986c4122accf3427e94412)
Reviewed-on: http://git-master/r/999489
(cherry picked from commit 39f4d7ad2928768e0f530ef2018233ef20548953)
Reviewed-on: http://git-master/r/1020291
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agothermal: nct72: report correct initial temperature & fix shutdown during bootup
Rajkumar Kasirajan [Mon, 21 Dec 2015 07:03:20 +0000]
thermal: nct72: report correct initial temperature & fix shutdown during bootup

If NCT is in standby mode, need to initiate one-shot conversion
before reading temperature, otherwise while bootup NCT will report
wrong initial temperature and driver will set wrong temperature
alert limits based on that.

While nct driver probe, enable oneshot conversion after
setting shutdown limits for local and external sensors.

Bug 1723265
Bug 200161159

Change-Id: I9080579be749fb26f51d4d1c28911db4b6538a70
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/1018100
Reviewed-on: http://git-master/r/929897
(cherry picked from commit 4164770df219bcd37ffa68950882564181a78e8f)
(cherry picked from commit baaa7aad03a9a49fb86f5f58c783920b906b0ee2)
Reviewed-on: http://git-master/r/1019841
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoiio: common: nvs: NVS v212 Fix coverity
Erik Lilliebjerg [Fri, 19 Feb 2016 21:55:58 +0000]
iio: common: nvs: NVS v212 Fix coverity

- Fix sizeof dereferenced pointer.
- Fix possible out of bounds loop.

Coverity ID: 12707
Coverity ID: 13297

Bug 1416640
Bug 200116059

Change-Id: Ib054679d884e0615f5e391cd7068327e8b6f0a9e
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1014126
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agoiio: imu: nvi: v.305 fix coverity
Erik Lilliebjerg [Sun, 21 Feb 2016 04:29:24 +0000]
iio: imu: nvi: v.305 fix coverity

- Fix negative index in debug print.
- Fix DMP IRQ wake for significant motion.
- Fix auxiliary batch period initialization.

Coverity ID: 20452

Bug 1416640
Bug 200116059
Bug 200154126

Change-Id: If288c5676bc52dbb707b097b2ebdc07ff44febc2
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1014976
(cherry picked from commit 7c16d1478d04cf2d892efcc554598ef3758e739c)
Reviewed-on: http://git-master/r/1014265
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agodts: compass: Limit compass operating frequency.
Robert Collins [Wed, 17 Feb 2016 17:44:19 +0000]
dts: compass: Limit compass operating frequency.

- CTS tests fail @ 100 Hz and higher due to compass limited by HW
  to 70 Hz.  Solution:  Limit compass operating frequency to 60 Hz.

Bug 200174194

Change-Id: I875c16f3e05ad509d57559fce248139d1fe0f84a
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1012920
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

3 years agoplatform: tegra: nvadsp: Add mailbox and Agic dump
Ajay Nandakumar [Tue, 23 Feb 2016 12:23:13 +0000]
platform: tegra: nvadsp: Add mailbox and Agic dump

Adding additional dumps of SEND/RECV mailbox and pending/active states
of agic interrupts along with adsp logs, when adsp fails.

Bug 200149702

Change-Id: I7a33898408e1087c11baa42b090aafa65d113e79
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/1017566
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agodrivers: soctherm: support min offsets for pllx offsetting
navneet kumar [Sat, 13 Feb 2016 01:52:37 +0000]
drivers: soctherm: support min offsets for pllx offsetting

add support for min offsets for pllx hw offsetting feature. while at it, fix a
latent bug where the default max offset should be in mC instead of C.

Bug 1717395

Change-Id: Idbb2616646584278283d85825842a065bb94e436
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/1011580
GVS: Gerrit_Virtual_Submit
Reviewed-by: Cyril Raju <craju@nvidia.com>
Tested-by: Cyril Raju <craju@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoarm64: dts: enable pllx offsetting for GPU-therm
navneet kumar [Sat, 13 Feb 2016 01:50:43 +0000]
arm64: dts: enable pllx offsetting for GPU-therm

enable pllx offsetting for GPU-therm and add min/max offsets for the same

Bug 1717395

Change-Id: I6a5198d107148daee370cf2f2e0a3b760723a8e3
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/1011579
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Cyril Raju <craju@nvidia.com>
Tested-by: Cyril Raju <craju@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agopcie: host: tegra: swap msleep with usleep_range
Vidya Sagar [Thu, 25 Feb 2016 06:08:17 +0000]
pcie: host: tegra: swap msleep with usleep_range

replace msleep(20) with usleep_range(19000, 21000)
as msleep is causing more than 65ms sometimes during LP0 exit

Bug 200163241

Change-Id: I18bb0cca9bb5a7849676c913bf9cb30961f7645e
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1019784
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>

3 years agoarm64: tegra: jetson_cv: fix dc property for devkit
Kerwin Wan [Thu, 25 Feb 2016 03:35:02 +0000]
arm64: tegra: jetson_cv: fix dc property for devkit

Jetson CV devkit will use tegradc.1 as primary display header.
The sor node is /host1x/sor1 not /host1x/sor which is default
assigned when tegradc.0 is not enabled and dc-or-node is not set.

Bug 200173778

Change-Id: I56c3bc11dd25c2b3ce20e47f6e8b71f5f7609e1f
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/1019716
GVS: Gerrit_Virtual_Submit

3 years agovideo: tegra: hdmi: fix HDMI GCP programming
Santosh Reddy Galma [Wed, 24 Feb 2016 09:27:09 +0000]
video: tegra: hdmi: fix HDMI GCP programming

This fixes the color depth information to be
programmed in GCP packets for deep color
formats supported and other non-deep color formats
as per the HDMI spec.

Bug 1715032
Bug 1717183

Change-Id: I5783191ece523d42f08c544585be048426ce988b
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/1018073
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agodriver: media: fix ov5693 gpio warnings
Frank Chen [Fri, 12 Feb 2016 18:57:23 +0000]
driver: media: fix ov5693 gpio warnings

Use gpio_set_value_cansleep() function when gpio driver
supports it.

Bug 1729926

Change-Id: Ib6e363c6587ca9439eeda3a45f8c91b8c18a917c
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1011425
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Tryndin <itryndin@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoARM64: DT: Add auto detect support for E3322 board
Frank Chen [Thu, 11 Feb 2016 20:38:44 +0000]
ARM64: DT: Add auto detect support for E3322 board

Add auto detect support for E3322 (imx219 x6) camera
board.

Bug 1693429

Change-Id: I3a54616e27fd504d222e79b8523295df1524b1dd
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1011057
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Igor Tryndin <itryndin@nvidia.com>
Reviewed-by: Kai Lee <kailee@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agovideo: tegra: host: Fix resource imbalance
Arto Merilainen [Sun, 13 Sep 2015 06:19:00 +0000]
video: tegra: host: Fix resource imbalance

During engine reset we may end up imbalancing some engine specific
resources; Currently the code calls directly .finalize_poweron
callback which in many cases is sufficient. However, in case
.finalize_poweron callback acquires resources, we never release
the resources before calling it again.

This patch adds .prepare_poweroff callback call to engine recovery
to ensure that all acquired resources get released before calling
.finalize_poweron again.

Bug 1730860

Change-Id: I35b9957bb94685222e4722754bd2402e51cfe2c9
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/798334
(cherry picked from commit 99a81de600c88efb43820d8023dce7e600c2ea7c)
Reviewed-on: http://git-master/r/1013917
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

3 years agogpu: nvgpu: enable use_full_comp_tag_line in gpc mmu
mheyer [Sat, 20 Feb 2016 05:31:24 +0000]
gpu: nvgpu: enable use_full_comp_tag_line in gpc mmu

Also GPC MMU needs to have its PRI_MMU_CTRL_USE_FULL_COMP_TAG_LINE
control bit set.

Bug 1730611

Signed-off-by: Mathias Heyer <mheyer@nvidia.com>
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Change-Id: I01e11de066ea5487bf1d9c8c8eddbf159e4882da
Reviewed-on: http://git-master/r/1014881
(cherry picked from commit d1651bbebe1b3e46d2173dec1651b3d2f4307b40)
Reviewed-on: http://git-master/r/1017443
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years ago[SCSI] verify return pointer from blk_get_request
Hans Yang [Thu, 18 Feb 2016 11:52:29 +0000]
[SCSI] verify return pointer from blk_get_request

blk_get_request()->get_request() may return NULL pointer
if the request queue has been shutdown.

Bug 1730744

Change-Id: I9f6c98d64086c14732ade2c7dcb0934f62c941a4
Signed-off-by: Hans Yang <hansy@nvidia.com>
Reviewed-on: http://git-master/r/1013395
Reviewed-by: WK Tsai <wtsai@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agohid: jarvis: split hid reports from thunderstrike
siddardha naraharisetti [Thu, 18 Feb 2016 02:05:29 +0000]
hid: jarvis: split hid reports from thunderstrike

follow same model as jarvis to split the hid reports
that have audio and hid data combined in to a single
report

Bug 1703649

Change-Id: Ic9b70d623ce12e741fecf0acd9bf381e7fa2fc8a
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/1013117
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoRevert "ARM64: tegra210: move Host1x to separate asid"
Pranami Bhattacharya [Wed, 24 Feb 2016 02:31:53 +0000]
Revert "ARM64: tegra210: move Host1x to separate asid"

Bug 1733523

This reverts commit 128706f21c51051193cd86145738c9cac7997020.

Change-Id: Id95f79131497d87db00b004875eb582489c6aa1d
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: http://git-master/r/1017888
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarm64: tegra: jetson_e: add dts for 24x7 usage mode
Kerwin Wan [Mon, 22 Feb 2016 08:41:15 +0000]
arm64: tegra: jetson_e: add dts for 24x7 usage mode

Bug 200169339

Change-Id: I2667a5a3a6b1870d938cc4d4caba3462fb42e827
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/1014800
GVS: Gerrit_Virtual_Submit

3 years agoarm64: tegra: jetson_e: use UCM1 DVFS override by default
Kerwin Wan [Mon, 22 Feb 2016 08:32:21 +0000]
arm64: tegra: jetson_e: use UCM1 DVFS override by default

Bug 200169339

Change-Id: I20b9d978e209418341b82a597684d4939b33a95c
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/1014799
GVS: Gerrit_Virtual_Submit

3 years agoalarm: Use system rtc for alarms
Krishna Yarlagadda [Wed, 3 Feb 2016 09:26:43 +0000]
alarm: Use system rtc for alarms

Alarm uses first registered rtc device for setting alarm
as of now. Changed this to use system rtc so time and
alarm are in sync

Bug 1698877

Change-Id: I8c04736230fb50b8fc77332549414e72e6b43bed
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012790
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm: tegra: Set Tegra RTC device as rtc1
Krishna Yarlagadda [Fri, 19 Feb 2016 06:45:18 +0000]
arm: tegra: Set Tegra RTC device as rtc1

Let PMIC RTC to be used as system rtc
and alarm device.

Change-Id: I937ee81a17fe83559ba723b5fb858e072804e1dc
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1013757
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm64: tegra: set Tegra RTC as hctosys device
Krishna Yarlagadda [Mon, 14 Dec 2015 06:11:01 +0000]
arm64: tegra: set Tegra RTC as hctosys device

Use Tegra RTC for system time and Pmic RTC as
backup device

Bug 1698877

Change-Id: I8dca6f022c0f6e32af35c532906d2bf3b23eea3c
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012789
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agortc: tegra: backup hctosys device
Krishna Yarlagadda [Mon, 14 Dec 2015 10:15:16 +0000]
rtc: tegra: backup hctosys device

RTC device used for system time needs to be battery backed.
Non-battery backed devices could lose time upon power reset.
However battery backed devices from external source will add delay
from interface and take more time.

Introduced a config option for slower battery backed rtc device that
will update faster system rtc device.

Bug 1698877

Change-Id: Ia2742b2c46ae1daf2850cfd2a63b95f400ee782b
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012788
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agortc: tegra: Register as tegra rtc
Krishna Yarlagadda [Thu, 3 Dec 2015 09:45:16 +0000]
rtc: tegra: Register as tegra rtc

Reigster tegra rtc as rtc devices instead of
clocksource

Bug 1698877

Change-Id: Ic9cd07ddf836d3e146f29dde1b6f1dce75138ae7
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012787
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agortc: honor device tree /alias entries when assigning IDs
Stephen Warren [Thu, 23 Jan 2014 23:55:14 +0000]
rtc: honor device tree /alias entries when assigning IDs

Assign RTC device IDs based on device tree /aliases entries if present,
falling back to the existing numbering scheme if there is no /aliases
entry (which includes when the system isn't booted using DT), or there is
a numbering conflict.

This is useful in systems with multiple RTC devices, to ensure that the
best RTC device is selected as /dev/rtc0, which provides the overall
system time.

For example, Tegra has an on-SoC RTC that is not battery backed, typically
coupled with an off-SoC RTC that is battery backed.  Only the latter is
useful for populating the system time, yet the former is useful e.g.  for
wakeup timing, since the time is not lost when the system is sleeps.

Change-Id: I64806f3c908e36e0565fe80968e338c2e915c255
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 9d2b7e532da8aadfcc1bd85b62ec5dd853e870e3 in mainline v3.14)
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012786
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoARM: t124: disable wlan default gpio
Laxman Dewangan [Wed, 10 Feb 2016 06:37:27 +0000]
ARM: t124: disable wlan default gpio

As wlan is disabled, disable the required node
to set gpio on default state for wlan.

bug 1725516

Change-Id: I44cba3475e12d6ae7c3ed0cad9d645d65806e7b5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1010300
(cherry picked from commit 4c7497ffbb7d8e0d6a5bc6db073e1b18d0be6338)
Reviewed-on: http://git-master/r/1012656
GVS: Gerrit_Virtual_Submit
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>

3 years agoARM: config: tegra124: disable Marvell wifi driver
Michael Hsu [Thu, 11 Feb 2016 01:17:38 +0000]
ARM: config: tegra124: disable Marvell wifi driver

Disable unused wifi driver.

Bug 1725516

Change-Id: Ifac354c2ed927abd1830eb1c8cde5365fa5565f1
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/1010671
(cherry picked from commit c8263cff9f97f6cc4a4cc11548dfd10c076a680f)
Reviewed-on: http://git-master/r/1012655
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoASoC: tegra-alt: jetson-cv - update clock for hra
Sameer Pujar [Wed, 17 Feb 2016 09:29:28 +0000]
ASoC: tegra-alt: jetson-cv - update clock for hra

For HRA use case the codec_rate is set to 96 or 192 KHz.
The mclk/sysclk supplied to codec should be atleaset 256
times of the codec rate.

pll_a_out0 is parent for codec mclk, it is fixed at 49.152MHz.
36.864 MHz was not sufficient for all use cases since 1.5
divider is not supported.
From this required frequencies are derived with interger divider.
Requriements for codec mclk,
    * HRA - 25.576 / 49.152 MHz
    * non-HRA - 12.288 MHz

Also fixed hw_param() failure due to unsupported bit format.
For HRA usecases the format set is 32_LE and same needs to
be acknowledged by codec

Bug 200174763

Change-Id: Ie07615f946c3e828765a8febfa3f341a529deeae
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/1012753
GVS: Gerrit_Virtual_Submit
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agotegra: dc: hdcp: Fix for test 1A-07a
Pranami Bhattacharya [Tue, 12 Jan 2016 18:46:38 +0000]
tegra: dc: hdcp: Fix for test 1A-07a

Bug 200153065

Change-Id: Ic0425d228cd70b2a4e501ac815190f81ca518825
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: http://git-master/r/931775
Reviewed-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

3 years agoreboot: freeze processes before restart/shutdown
Deepak Nibade [Thu, 4 Feb 2016 10:14:51 +0000]
reboot: freeze processes before restart/shutdown

Add new API freeze_processes_ignore_wakeup() which will
freeze all processes ignoring the wakeup sources

Use this API before triggering restart/shutdown

Bug 200125494

Change-Id: I093d6e5dcc02fe3ff73c7c4d7c6bc14fa8e91cb8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1007555
(cherry picked from commit 32212d6e42147942a853aa5238a417497d31d1c6)
Reviewed-on: http://git-master/r/1013804
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoCoverity: net: wireless: bcmdhd: Restore iovar only if rf_test is enabled
Srinivas Ramachandran [Tue, 16 Feb 2016 21:06:12 +0000]
Coverity: net: wireless: bcmdhd: Restore iovar only if rf_test is enabled

tegra_sysfs_rf_test_disable will be called when
1. rf_test mode is manually disabled through sysfs node
2. Wi-fi is turned off

In case of latter, if rf_test mode was never enabled,
this function will try to restore the iovars set to 0 during
rf_test_init.

0 is not a valid param value for some iovars and trying to
restore these will fail with an error log. To prevent this,
restore the iovar values only if rf_test mode is enabled
(which implies iovars are backed up with current values
from the firmware already)

Also - add check to prevent null pointer dereference
in rf_test code path

Bug 200116059
Bug 1713208

Coverity ID: 20430

Change-Id: I4e7922e7cc3a143f69641346c9bbe72bf0b246ff
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/1012470
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoARM: t132: extend tegra WDT suspend
Ian Chang [Wed, 17 Feb 2016 03:52:50 +0000]
ARM: t132: extend tegra WDT suspend

Extend tegra WDT suspend to syscore ops to keep running
after device suspend.

bug 200130544

Change-Id: I8eb995833af317052c8951df563626e303142ac8
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/1012605
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoARM: remove wdt recovery driver
Ian Chang [Thu, 14 Jan 2016 05:59:29 +0000]
ARM: remove wdt recovery driver

As tegra watchdog has flag which can be selected
from DT to disable the watchdog in the syscore suspend
instead of device suspend to have more time for WDT running.
It can protect suspend/resume path so we do not need
wdt-recovery driver anymore.

bug 200130544

Change-Id: I2910587777c66bf15652f7401604273632af99a6
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/1012604
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoARM: t124: extend tegra WDT suspend
Ian Chang [Wed, 17 Feb 2016 03:35:25 +0000]
ARM: t124: extend tegra WDT suspend

Extend tegra WDT suspend to syscore ops to keep running
after device suspend.

bug 200130544

Change-Id: I6f5fb5f3b1d5ef0b3dd2995b94d7e155b3ea8d73
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/1012603
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoFix memory leak when blake is removed
Eric Miao [Tue, 26 Jan 2016 23:12:26 +0000]
Fix memory leak when blake is removed

Bug 200168010

Change-Id: I3310d0e3aca17a4aed9610e42522786c3d661fc9
Signed-off-by: Eric Miao <emiao@nvidia.com>
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/1000107
(cherry picked from commit 4870486c932aba8b8541129ca12666c4e7f6aead)
Reviewed-on: http://git-master/r/998343
(cherry picked from commit 7a8c24d46d0de35769d867099c537a79bc89f6d0)
Reviewed-on: http://git-master/r/1012540
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agovideo: tegra: hdmi: fix tegra_nvhdcp_create fn params
Santosh Reddy Galma [Sun, 14 Feb 2016 18:49:42 +0000]
video: tegra: hdmi: fix tegra_nvhdcp_create fn params

HDCP node id should be based on DC id rather than SOR
instance to be consistent with the HDCP API.

Bug 200172752

Change-Id: I0a1878be7ce2f4feff239d360a95e1f6d48eac99
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/1011745
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoimx230: cropping region comparison fix
Hu He [Fri, 12 Feb 2016 19:51:10 +0000]
imx230: cropping region comparison fix

Previuosuly a cropped sensor mode is used as default and used in cropping
logic comparison. The later part should be compared with full size. For
imx230 sensor, it is 5344x4016.

Change definitions for default values to use those from full size setting
to fix the comparison logic.

Also add more comments.

Bug 1695366

Change-Id: Id819ea94f4079b7127b0728f25bd59c21ae067d7
Signed-off-by: Hu He <hhe@nvidia.com>
Reviewed-on: http://git-master/r/1011443
(cherry picked from commit 1cda066864daa670c6be7b2ef01329e4b5022891)
Reviewed-on: http://git-master/r/1013505
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

3 years agogpu: nvgpu: preempt before adjusting fences
Deepak Nibade [Thu, 10 Dec 2015 08:58:32 +0000]
gpu: nvgpu: preempt before adjusting fences

Current sequence in gk20a_disable_channel() is
- disable channel in gk20a_channel_abort()
- adjust pending fence in gk20a_channel_abort()
- preempt channel

But this leads to scenarios where syncpoint has
min > max value

Hence to fix this, make sequence in gk20a_disable_channel()
- disable channel in gk20a_channel_abort()
- preempt channel in gk20a_channel_abort()
- adjust pending fence in gk20a_channel_abort()

If gk20a_channel_abort() is called from other API where
preemption is not needed, then use channel_preempt
flag and do not preempt channel in those cases

Bug 1683059

Change-Id: I4d46d4294cf8597ae5f05f79dfe1b95c4187f2e3
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/921290
(cherry picked from commit a174139ec383ba6d2ede096743192066e8582684)
Reviewed-on: http://git-master/r/1012165
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agogpu: nvgpu: call channel_update() always in channel_abort()
Deepak Nibade [Tue, 8 Dec 2015 15:59:05 +0000]
gpu: nvgpu: call channel_update() always in channel_abort()

In gk20a_channel_abort(), we disable the channel and
adjust the fences. And then we call gk20a_channel_update()
only if we released the post-fence semaphore

Instead of this, call gk20a_channel_update() always to ensure
that all the clean up after fence completion is done always

Bug 1683059

Change-Id: Ife00ba43e808c0833264d79c98c74417ffadf802
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/842999
(cherry picked from commit 8a5871149b3cf5aac897f44e890ea0ada7590d5a)
Reviewed-on: http://git-master/r/1012164
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agogpu: nvgpu: Immediate channel release
Terje Bergstrom [Mon, 23 Nov 2015 22:17:56 +0000]
gpu: nvgpu: Immediate channel release

When closing channel, disable and preempt it immediately instead of
waiting for it to finish all work.

Bug 1683059

Change-Id: Ia5f5fc6a072dc3ddb1e9bf63534814ff0a60b5b4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/836746
(cherry picked from commit f3966945a7678cb88c7e56d374b7a79e9870d438)
Reviewed-on: http://git-master/r/1012163
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM64: tegra210: move Host1x to separate asid
Deepak Nibade [Wed, 10 Feb 2016 11:27:44 +0000]
ARM64: tegra210: move Host1x to separate asid

Bug 200170054

Change-Id: I18042d06984f8e34f385adb91315e54505f0f2d6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1010406
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoarm: tegra: enable SDHCI driver reboot notifier
Ian Chang [Thu, 4 Feb 2016 09:31:25 +0000]
arm: tegra: enable SDHCI driver reboot notifier

Enable tegra sdhci driver reboot notifier to
disable RTPM when device reboot.

bug 200169886

Change-Id: I2ce793e8053490ee4156d432d1b5083c06792d09
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/1013283
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Shih <rshih@nvidia.com>

3 years agommc: sdhci: tegra: disable rtpm at reboot
Bitan Biswas [Mon, 6 Oct 2014 14:01:07 +0000]
mmc: sdhci: tegra: disable rtpm at reboot

During Boot stress test, we do not want runtime
callbacks to execute. Hence disable runtime
power management callbacks as part of
Tegra sdhci reboot notifier.

bug 200169886

Change-Id: Idffb8f0794d13c7515d277c9ef29f5eec7490e14
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/553831
Reviewed-on: http://git-master/r/1013282
Reviewed-by: Ian Chang <ianc@nvidia.com>
Tested-by: Ian Chang <ianc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Shih <rshih@nvidia.com>

3 years agolight: cm32180: Adjust light sensor calibration
Robert Collins [Wed, 3 Feb 2016 23:59:41 +0000]
light: cm32180: Adjust light sensor calibration

Calibrate to D35 reference in dark room environment.

Bug 1725551

Change-Id: Id19d7e62b3e26780a112b579e309a0be114e32b4
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1010654
(cherry picked from commit 048f962d452ed631e26e3fbc793222a35f57fc22)
Reviewed-on: http://git-master/r/1013085
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoasoc: es755: fix audio loopback latency test
Srinivas Anne [Wed, 17 Feb 2016 00:07:29 +0000]
asoc: es755: fix audio loopback latency test

FW Version: M90.5.2.12_B64051_NVidia_Hawkeye_MCFFillIn_STREAM.BIN

Change Summary:
Enabled level-1 noise suppression for Headset-mic voice recognition
streams. This may increase the RTL by 17 msec.

Bug 200153239

Change-Id: Iff4427302e21a2240665d747aa1381e01bdec236
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/1012526
(cherry picked from commit f61460f7def246c8ba70fadc325f60a13c8779cd)
Reviewed-on: http://git-master/r/1013166
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

3 years agovideo: tegra: host: use dynamically allocated wait_queue
Deepak Nibade [Wed, 20 Jan 2016 13:39:19 +0000]
video: tegra: host: use dynamically allocated wait_queue

In nvhost_syncpt_wait_timeout(), we currently allocate
wait_queue_head on stack using
DECLARE_WAIT_QUEUE_HEAD_ONSTACK()

If wait is complete, then this wait_queue_head will
removed off the stack

But in some rare case if action_wakeup_interruptible()
is called after wait is complete, we try to access
wait_queue_head which is already deleted from stack

To fix this, define wait_queue_head inside nvhost_waitlist
and allocate it dynamically along with waitlist

Bug 200126989

Change-Id: Iad7869323832e6f36c044e0d29fdea62dca762d5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/935161
(cherry picked from commit 80b5c960e95b9f1f4c1401b03d72641ac4b6ccc6)
Reviewed-on: http://git-master/r/1013277
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agosoc_camera: ov13860: enlarge power-on delay
Arun Kannan [Wed, 10 Feb 2016 01:19:14 +0000]
soc_camera: ov13860: enlarge power-on delay

To avoid i2c communication failure on some board

Bug 1709693

Change-Id: I4c3426ec057e3ebcc4ba344941252eb3f9f4a7ef
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/1010211
(cherry picked from commit 094efc0bcc39842fc516fcd982b77101e1471c33)
Reviewed-on: http://git-master/r/1012933
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

3 years agogpu: nvgpu: post events on all channels of TSG.
Ashutosh Jain [Wed, 17 Feb 2016 13:00:48 +0000]
gpu: nvgpu: post events on all channels of TSG.

Raise the SM exception event on dbg fds of all
channels as userspace might have registered on
only one of the channels.
WAR till we fix Bug 200089620

Bug 1724367

Change-Id: I69c20ee9837927c116f350f4bdc70af5e90cd0a8
Signed-off-by: Ashutosh Jain <ashutoshj@nvidia.com>
Reviewed-on: http://git-master/r/1012851
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoARM64: dts: update DTS for 12/14 bit support
Ankit Gupta [Wed, 17 Feb 2016 12:42:36 +0000]
ARM64: dts: update DTS for 12/14 bit support

This change adds examples demonstrating appropriate
values of pixel_t in the sensor mode for different
bayer pixel patterns having 10/12/14 bit format.

Bug 1639290
Bug 1619056

Change-Id: I569605a6b5bf5759c5abad44126dbe0d5625751a
Signed-off-by: Ankit Gupta <ankitgu@nvidia.com>
Reviewed-on: http://git-master/r/1012847
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Shantanu Nath <snath@nvidia.com>

3 years agoextcon: core: add support to change cable state by name
Laxman Dewangan [Fri, 5 Feb 2016 12:59:14 +0000]
extcon: core: add support to change cable state by name

Add support to make connection state by cable names
through sysfs /sys/class/extcon/<name>/connect
This will provide the easy interface to user space
to control the cable states by cable names provided
by user.
Example: If extcon device name is usb-cables then in sysfs
echo USB > /sys/class/extcon/usb-cables/connect
echo USB-Host > /sys/class/extcon/usb-cables/connect
echo none > /sys/class/extcon/usb-cables/connect

Here USB and USB-Host are names of individual cable.
For disconnect all cable, "none" is used.

bug 1671524

Change-Id: Idc30204ba7f324b9813473f728796fbafe1bcd45
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1008914
(cherry picked from commit 4d53c6d4b5b7c6a07e2c4ade7c30c1baaa99e4de)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1011845
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoextcon: gpio-states: Add support for provide cable state without gpios
Laxman Dewangan [Fri, 5 Feb 2016 13:02:43 +0000]
extcon: gpio-states: Add support for provide cable state without gpios

Add support to provide cable connection states via extcon
framework even if there is no gpios property is provided.

On this case, it will read the initial cable state property
from DT and set the cable state. The cable state can be change
by extcon sysfs.

This helps in case where dynamic detection of cable is not
available and user still want to use multiple type of
cable on port. On this case, user can connect cable and
then cable state via sysfs.

bug 1671524

Change-Id: I79a2ca117d07c432440ed2f328a8a61919e22218
Reviewed-on: http://git-master/r/1008915
(cherry picked from commit 7b192eb4849cf1303b446188e91994ccc900c6c5)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1011844
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoextcon: gpio-state: add dt property for wait timeout for gpio scan
Laxman Dewangan [Wed, 20 Jan 2016 10:05:21 +0000]
extcon: gpio-state: add dt property for wait timeout for gpio scan

Add wait timeout for all gpio scan after gpio settled down.
This wait timeout time helps to appear all gpio interrupt
and serve before all gpios states are scanned for cable.

Change-Id: I86853e758f1b04d1b290b79bc20115dca0ee5f27
Reviewed-on: http://git-master/r/935029
(cherry picked from commit 9ae6861da16ab0ae73dd52d94c24ff3010934c99)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1011843
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agodts: compass: Limit compass operating frequency.
Robert Collins [Thu, 11 Feb 2016 18:30:09 +0000]
dts: compass: Limit compass operating frequency.

- CTS tests fail @ 100 Hz and higher due to compass limited by HW
  to 70 Hz.  Solution:  Limit compass operating frequency to 60 Hz.

Bug 200162747

Change-Id: I2a2b3f1edcf00f9a702dbacb24106e763b8ba0c1
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1010983
(cherry picked from commit d17e56353cf2399362f6d2f0fc687e5386ee99a5)
Reviewed-on: http://git-master/r/1012551
GVS: Gerrit_Virtual_Submit

3 years agodrivers: soc_camera: imx230 update mode table
Arun Kannan [Mon, 25 Jan 2016 23:04:06 +0000]
drivers: soc_camera: imx230 update mode table

Update mode table with latest info from vendor.

Bug 1709692

Change-Id: I71417b7ca293f243bc8390d1d5ec6aa301942731
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/937087
(cherry picked from commit 49c22e2445841b7ef7f68d6a122ff22110a389cc)
Reviewed-on: http://git-master/r/1012498
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

3 years agoxhci: tegra: fix coverity issue
Ajay Gupta [Tue, 15 Sep 2015 16:15:42 +0000]
xhci: tegra: fix coverity issue

Fix the errors for coverity ID 13478

Bug 1523147

Change-Id: Ic96cd925faafbb046b463d7ccbd8c86cff3341ab
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
(cherry picked from commit 1db21d722a9fdd3da35e8daa5cc1fbd6377a56b6)
Reviewed-on: http://git-master/r/928957
GVS: Gerrit_Virtual_Submit
Tested-by: Pavitra Kumar <pavitrak@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit 52184cb03dada0bc247d0ddcdb371bc931237e79)
Reviewed-on: http://git-master/r/1012921
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agowireless: bcmdhd: support to get FW and NVRAM paths from DT
Bhadram Varka [Mon, 8 Feb 2016 04:18:19 +0000]
wireless: bcmdhd: support to get FW and NVRAM paths from DT

Added two DT properties for FIRMWARE path and NVRAM path.
Read these properties at the time of drive probe and
populate adapter fw_path and nv_path. The same will be
considered every time while doing path update.

Also adds the support for Antenna-tuned nvram path by
adding tuned_nv_path property. It will be populated if
the wifi-antenna-tuning dt node defined.

Added is_file_valid() for checking the existence of file.
It will be useful for other OS's to validate the file
existence.

Bug 1709222

Change-Id: Ic819b00620ec5e7890d1d1a9a9676672c089b25b
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: http://git-master/r/929908
(cherry picked from commit c516251151b3b4c3214ca0d67d6b9ba698c03024)
Reviewed-on: http://git-master/r/1001152
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Tested-by: Mohan Thadikamalla <mohant@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agovideo: tegra: hdmi: add new pclk to audio config
Vaibhav Shinde [Mon, 11 Jan 2016 09:47:39 +0000]
video: tegra: hdmi: add new pclk to audio config

Bug 1717920

It is found that with few monitors, the pclk calculation
changes. Inside audio config table, these values not
present. So adding support from them.

Change-Id: I8ef00d94b1f0a9a4712fb33edc2af7fc67e387b9
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/930995
(cherry picked from commit c8ed17dc0ca8d0c0e385c46b1588dde025fe95dd)
Reviewed-on: http://git-master/r/1011771
(cherry picked from commit 2a7ea23e60c064fece1c3b7313e14e136e3df962)
Reviewed-on: http://git-master/r/1012552
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>

3 years agoxhci: tegra: clear INTE of USBCMD during suspend
Peter Yu [Fri, 22 Jan 2016 01:54:20 +0000]
xhci: tegra: clear INTE of USBCMD during suspend

After bus suspend, device may wake and host may resume ports after
receiving a port status change event. Host then enters suspend
without suspending ports. This causes disconnect after host resume.
To fix this, we clear INTE after bus suspend to avoid resuming ports
then check link state. If enabled ports are not in U3, we fail bus
suspend. USBCMD is a context to save and restore, so we set INTE after
host resume.
Bug 200159328

Change-Id: I6fa4ae1534ab543e500e01272d6451c1284e38a5
Signed-off-by: Peter Yu <pyu@nvidia.com>
Reviewed-on: http://git-master/r/935968
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agovideo: tegra: nvmap: Add new NVMAP_PAGES_ZAP_AND_CLEAN option
Sri Krishna chowdary [Thu, 21 Jan 2016 10:05:33 +0000]
video: tegra: nvmap: Add new NVMAP_PAGES_ZAP_AND_CLEAN option

CUDA needs this zap but not reserve pages in prefetch operations.
That way, if no cpu accesses in between the prefetch operation and
till cuda kernel launch, none of the pages will be marked dirty and
there won't be any zap or cache writeback operation. So, a lot of
overhead can be avoided.

bug 200167711

Change-Id: I3b5d8d12b82ca0b2ebdd94c0f3701f71dd7a7667
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/935713
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

3 years agoarm64: boot: dts: update darcy LANE_DRIVE_CURRENT
Daniel Fu [Tue, 16 Feb 2016 04:54:59 +0000]
arm64: boot: dts: update darcy LANE_DRIVE_CURRENT

In 720p,1080p,and 4k@30 case, Vswing go up a bit, which in turn was then failing EMI.
New setting to pass both HDMI compliance and EMI requirements.
SOR_NV_PDISP_SOR_LANE_DRIVE_CURRENT0 (0x54580138) = 0x2D303030

Bug 1701822

Change-Id: I965d76b83be023bf2a900a6521bf35cd3ecfbc94
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/1012129
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Aly Hirani <ahirani@nvidia.com>

3 years agoalsa:hda: enable inject null sample for stereo LPCM
Ashok Mudithanapalli [Thu, 28 Jan 2016 12:09:40 +0000]
alsa:hda: enable inject null sample for stereo LPCM

add check for format along with channel count to
ensure that inject null sample enabled only for
stereo LPCM streams.

Also disable at the time of closing the device.

Bug 1718097

Change-Id: I1e46e49359cccc2b3a95d2706d9281789bbdcc44
Signed-off-by: Ashok Mudithanapalli <ashokm@nvidia.com>
Reviewed-on: http://git-master/r/999397
(cherry picked from commit 646ca49047138091f3c7c39fa98eb1d8895dcf04)
Reviewed-on: http://git-master/r/1002154
(cherry picked from commit 97b1b6fefb484b77104cde914ef59d0a27bae824)
Reviewed-on: http://git-master/r/1011322
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agodrivers: soc_camera: imx230 crop
Arun Kannan [Sat, 9 Jan 2016 00:03:08 +0000]
drivers: soc_camera: imx230 crop

Define s_crop and g_crop ioctls
and corresponding registers.

Bug 1713205

Change-Id: I5152d7fbded1d52c17320e601240e11c1da715f1
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/930690
(cherry picked from commit 46d677ff1bf70be814b3a56ff6f7e321f352b8c0)
Reviewed-on: http://git-master/r/999520
Reviewed-by: Hu He <hhe@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

3 years agoRevert "rtc: honor device tree /alias entries when assigning IDs"
Mrutyunjay Sawant [Tue, 16 Feb 2016 13:10:51 +0000]
Revert "rtc: honor device tree /alias entries when assigning IDs"

This reverts commit bb142c18a62c66588321f8041e92feea38ce31c7.

bug 1731008

Change-Id: Ib805e3905d1b61c8c443f871cff8e51249efe211
Reviewed-on: http://git-master/r/1012306
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

3 years agoRevert "arm: tegra: set Tegra RTC as hctosys device"
Mrutyunjay Sawant [Tue, 16 Feb 2016 13:10:34 +0000]
Revert "arm: tegra: set Tegra RTC as hctosys device"

This reverts commit 2be578092e89b0298739081150b0a0c4b6b6ca03.

bug 1731008

Change-Id: I99f9103c57753997f5b4d4872e7aa0aa1b5b1a47
Reviewed-on: http://git-master/r/1012305
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

3 years agoRevert "rtc: tegra: backup hctosys device"
Mrutyunjay Sawant [Tue, 16 Feb 2016 13:10:22 +0000]
Revert "rtc: tegra: backup hctosys device"

This reverts commit 8571d12cc54e7e1fea0f63c75b1d00d788016be8.

bug 1731008

Change-Id: I05e7619ac00a93a5eb0ae145ca37ca4d419ecef9
Reviewed-on: http://git-master/r/1012304
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoRevert "rtc: tegra: Register as tegra rtc"
Mrutyunjay Sawant [Tue, 16 Feb 2016 13:10:07 +0000]
Revert "rtc: tegra: Register as tegra rtc"

This reverts commit 0d2c587672445626447df06978548215236ae594.

bug 1731008

Change-Id: I15ad960ef1688724eee97460397ecebbc6f819e8
Reviewed-on: http://git-master/r/1012303
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoRevert "alarm: Use system rtc for alarms"
Mrutyunjay Sawant [Tue, 16 Feb 2016 13:09:53 +0000]
Revert "alarm: Use system rtc for alarms"

This reverts commit 60063a36096ba97a8cefc3607b57fe774df29ea6.

Bug 1731008

Change-Id: I3c2f8726ff48ccd32dd81de5c12b12f21f8b9f89
Reviewed-on: http://git-master/r/1012302
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

3 years agoarm: tegra: set Tegra RTC as hctosys device
Krishna Yarlagadda [Mon, 14 Dec 2015 06:11:01 +0000]
arm: tegra: set Tegra RTC as hctosys device

Use Tegra RTC for system time and Pmic RTC as
backup device

Bug 1698877

Change-Id: Id10d7ca3ea76e622666c58e6fede437013b7bac5
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/922553
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agortc: tegra: backup hctosys device
Krishna Yarlagadda [Mon, 14 Dec 2015 10:15:16 +0000]
rtc: tegra: backup hctosys device

RTC device used for system time needs to be battery backed.
Non-battery backed devices could lose time upon power reset.
However battery backed devices from external source will add delay
from interface and take more time.

Introduced a config option for slower battery backed rtc device that
will update faster system rtc device.

Bug 1698877

Change-Id: Ifd4884335fdd6c6e375f9bd52fb83fb5bb652adc
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/922552
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agortc: tegra: Register as tegra rtc
Krishna Yarlagadda [Thu, 3 Dec 2015 09:45:16 +0000]
rtc: tegra: Register as tegra rtc

Reigster tegra rtc as rtc devices instead of
clocksource

Bug 1698877

Change-Id: I2e5bf7563f8212d1b4b3742440c7e03088835e73
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/840963
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agortc: honor device tree /alias entries when assigning IDs
Stephen Warren [Thu, 23 Jan 2014 23:55:14 +0000]
rtc: honor device tree /alias entries when assigning IDs

Assign RTC device IDs based on device tree /aliases entries if present,
falling back to the existing numbering scheme if there is no /aliases
entry (which includes when the system isn't booted using DT), or there is
a numbering conflict.

This is useful in systems with multiple RTC devices, to ensure that the
best RTC device is selected as /dev/rtc0, which provides the overall
system time.

For example, Tegra has an on-SoC RTC that is not battery backed, typically
coupled with an off-SoC RTC that is battery backed.  Only the latter is
useful for populating the system time, yet the former is useful e.g.  for
wakeup timing, since the time is not lost when the system is sleeps.

Change-Id: Id8b925fb7a8e1b80487a8e246cdc4ce4654abfbe
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 9d2b7e532da8aadfcc1bd85b62ec5dd853e870e3 in mainline v3.14)
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/926525
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoalarm: Use system rtc for alarms
Krishna Yarlagadda [Wed, 3 Feb 2016 09:26:43 +0000]
alarm: Use system rtc for alarms

Alarm uses first registered rtc device for setting alarm
as of now. Changed this to use system rtc so time and
alarm are in sync

Bug 1698877

Change-Id: I60b249d871b758fb3afeeab960e79e94838264e5
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1002254
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agovideo: tegra: host: Use pure threaded IRQs
Gagan Grover [Tue, 26 Jan 2016 20:08:53 +0000]
video: tegra: host: Use pure threaded IRQs

Threaded IRQs have higher priority than our current workqueue based.
Make our IRQs "pure" threaded IRQs instead of using workqueue gives
us on average 20 us of efficiency.

This CL removes the workqueue logic and replace it with threaded IRQ

Bug 1712814

Change-Id: I80f3c7496504bb58f66ac3b8e664eee6bf86f38c
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1010885
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

3 years agoarm: tegra21: dts: update LC898212 focuser path
Frank Chen [Wed, 10 Feb 2016 00:55:11 +0000]
arm: tegra21: dts: update LC898212 focuser path

Corrected device tree node patch for LC898212 focuser

Bug 1700211

Change-Id: I79aa8061fec9898e9905ad712b68f06c0fd9b8f8
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1010203
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Tryndin <itryndin@nvidia.com>
Reviewed-by: Ankit Gupta (SW-TEGRA) <ankitgu@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agovideo: tegra: dc: flag modes failing constraints
Ivan Raul Guadarrama [Tue, 8 Dec 2015 14:44:06 +0000]
video: tegra: dc: flag modes failing constraints

-Create the new FB_VMODE_ADJUSTED flag to detect modes
 which fail tegra dc programming constraints and have
 been adjusted by the driver.
-Propagate such flag to userspace.

Bug 1691633
Bug 1689283

Change-Id: I0794c957f2ac821a8747c929aeda82455538cb54
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/933883
GVS: Gerrit_Virtual_Submit
Reviewed-by: Tuomas Kulve <tkulve@nvidia.com>
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoarm64: config: tegra21: Add CONFIG_HZ=300
David Lock [Thu, 4 Feb 2016 18:32:27 +0000]
arm64: config: tegra21: Add CONFIG_HZ=300

Bug 1695965

Change-Id: I82c338f1fff32b4f79b501948044abe5bfaacc6c
Signed-off-by: David Lock <dlock@nvidia.com>
Reviewed-on: http://git-master/r/1008503
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM64: Make HZ configurable
Sai Gurrappadi [Wed, 14 Oct 2015 20:13:44 +0000]
ARM64: Make HZ configurable

The default value of 100HZ is not fast enough for a smooth
user-experience because preemption isn't slick enough.

Let platforms configure HZ via defconfig to suit their needs.

Bug 1695965

Change-Id: I38874e802cc5a796049b57d0622d0c9a9c9b438c
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/818991
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

3 years agothermal: tegra: aotag: fix programming resolution
navneet kumar [Wed, 3 Dec 2014 20:16:30 +0000]
thermal: tegra: aotag: fix programming resolution

Fix the programming resolution for thermA/B to 1/2C.
was 1C previously.

Bug 200057102
Bug 1560086
Bug 1695267

Change-Id: I225331bbe460e456d4057f2817e4615250ad0aa7
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/934675
GVS: Gerrit_Virtual_Submit
Reviewed-by: Srikar Srimath Tirumala <srikars@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
(cherry picked from commit b661f642e41558fed866d2a39e35bfd77003f9a4)
Reviewed-on: http://git-master/r/1010048
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoserial: tegra: remove ack dma_desc again
Shardar Shariff Md [Wed, 10 Feb 2016 12:17:46 +0000]
serial: tegra: remove ack dma_desc again

remove acknowledge dma_desc again in
tegra_uart_rx_dma_complete() callback.

Bug 200166733

Change-Id: I0b47052f27d152caa65d715856e9dce34c597ab6
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1010430
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agospi: tegra: support polling mode
Krishna Yarlagadda [Tue, 17 Nov 2015 14:01:22 +0000]
spi: tegra: support polling mode

Added support to use polling mode instead of interrupts
through a property in dt

Bug 1679083

Change-Id: Ic82ab592822cc96bacda05124d38ddd913e09af9
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/840233
Reviewed-on: http://git-master/r/1009988
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agopcie: host: tegra: increase pcie linkup time
Vidya Sagar [Tue, 9 Feb 2016 11:30:13 +0000]
pcie: host: tegra: increase pcie linkup time

increases pcie link up time from its current 100ms
value to 350ms value because of the specific USB3.0 controller
card based on VIA chipset takes around 350ms time to linkup
with rootport. To be at par with x86 machine interms of
device enumeration, this change is required.
Also, this changes comes into picture only if there is a device
found (i.e. only if TX_RDET_STATUS is already set)

Bug 200171635

Change-Id: I1ccdd395467eb78fed59319f1ab9199210d7bd62
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1009897
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agospi: tegra: Reduce register access
Krishna Yarlagadda [Mon, 8 Feb 2016 13:48:17 +0000]
spi: tegra: Reduce register access

Reduce register accesses to SPI as it is dependent on
slow, variable SPI clock frequency.

Bug 1675619

Change-Id: I5d638b8f95d9207fbad1e30e21234fc7433e03b3
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1009503
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agospi: tegra: option to boost register access
Krishna Yarlagadda [Mon, 8 Feb 2016 11:17:35 +0000]
spi: tegra: option to boost register access

SPI register access for T210 and earlier chips depend
on SPI clock frequency. Provided an option to set SPI
clock at max frequency for register access.

Bug 1675625

Change-Id: Ie52c83cd4602604822462d9f02ddf31ead83aafc
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1009454
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agomisc: palmas: reduce system voltage monitor frequency
Somdutta Roy [Sat, 2 Jan 2016 23:54:02 +0000]
misc: palmas: reduce system voltage monitor frequency

palmas_ldousb_in_sel_work periodically checks the system
voltage every 100 ms, increasing this to 1 second to
increase cpu idle time

Bug 1716167

Change-Id: I16a901272e5fb6b086698fa8f971467bc14767db
Signed-off-by: Somdutta Roy <somduttar@nvidia.com>
Reviewed-on: http://git-master/r/929331
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
(cherry picked from commit cb63fa51cab28aa6871fef9e9839e56a688c9e93)
Reviewed-on: http://git-master/r/1010606
Reviewed-by: Steve Rogers <srogers@nvidia.com>

3 years agotegra-alt: amx: allow disabling of AMX slots
Viraj Karandikar [Fri, 5 Feb 2016 09:57:37 +0000]
tegra-alt: amx: allow disabling of AMX slots

AMX slot can be disabled by sending negative value via
Byte Map control.

Bug 200100724

Change-Id: I67d8e0896b739f94187e4401ceb09382a4a7ed8d
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/1008822
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Uday Gupta <udayg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agov4l2: use _IOC_NR for comparison
Naveen Kumar Rai [Fri, 5 Feb 2016 06:18:51 +0000]
v4l2: use _IOC_NR for comparison

use _IOC_NR for comparison to avoid
mismatch in different enviornments.

Bug 1719828
Bug 200168855

Change-Id: Icbbc43501c006a102018e33a55612fb21e6ab2b5
Signed-off-by: Naveen Kumar Rai <nkumarrai@nvidia.com>
Reviewed-on: http://git-master/r/1008721
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Sharma <rasharma@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agonet: wireless: bcmdhd: Avoid data pkt processing if credits is low
Ramanathan R [Mon, 25 Jan 2016 18:28:47 +0000]
net: wireless: bcmdhd: Avoid data pkt processing if credits is low

When running the EU wifi adaptivity test, ioctl timeouts are
observed as ctrl frames are out of bus credits and do not get sent
to the wifi chip. As a result, the OS resets the wifi chip to recover
the ioctl timeout. This results in EU wifi adaptivity test failure.

To prevent this from happening, avoid processing the data frames if
available credits is low.

Bug 1700549

Change-Id: Iaaf46112b1673088c27bfc5126b874dcdeb82b2d
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/936993
Reviewed-by: Nagaraj Annaiah <nannaiah@nvidia.com>
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoRevert "video: tegra: Don't allocate double buffered fb"
Pankaj Kumar [Mon, 21 Dec 2015 12:50:09 +0000]
Revert "video: tegra: Don't allocate double buffered fb"

This reverts commit 2bc194cac57ca30ff4c1ffc1d41df32a9e967824.

Bug 200150661

Change-Id: I9283bfe60a1fef29f4604a9b7ffbef7511f44751
Signed-off-by: Pankaj Kumar <pankumar@nvidia.com>
Reviewed-on: http://git-master/r/925527
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Santosh Galma <galmar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoiio: magnetometer: fix hal NULL ptr
Erik Lilliebjerg [Tue, 9 Feb 2016 15:01:39 +0000]
iio: magnetometer: fix hal NULL ptr

- Fix HAL NULL pointer by setting default HAL pointer even when device isn't
  found.

Bug 1727708

Change-Id: I368744922c5b1750118c1375a36ec0479e97ccde
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1009959
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

3 years agoARM64: darcy: add camera support
Naveen Kumar Rai [Fri, 5 Feb 2016 03:03:27 +0000]
ARM64: darcy: add camera support

Even Darcy does not have built-in cameras
we still need to create power service device
node for SCF in case user plug in an USB camera.

Bug 1717157

Change-Id: Ic9a9dfcb42f92ed79c60075c1bfbb0d9fa300ac6
Signed-off-by: Naveen Kumar Rai <nkumarrai@nvidia.com>
Reviewed-on: http://git-master/r/1008679
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoiio: common: NVS light module v.103
Erik Lilliebjerg [Thu, 4 Feb 2016 10:28:50 +0000]
iio: common: NVS light module v.103

- Add ability to change dynamic resolution table index limits at runtime.
- Add ability to have individual thresholds per entry in the dynamic resolution
  table and the ability to change these thresholds at runtime as well as in the
  device tree.
- Add ability to have absolute HW value thresholds per entry in the dynamic
  resolution table that determines when to switch to the next table entry.  And
  these can be changed at runtime as well as be set in the device tree.
- Add the ability, as a WAR, to cap the maximum lux value.
- Fix dynamic resolution lux calculation.
- Fix threshold high calculation.
- Add above new features to cm3217 and cm3218x drivers.
- Add forced ARA to cm3218x driver as WAR for POR random registers.

Bug 1725551
Bug 200171152

Change-Id: Ide9fa9b3748338b8858d576b795bd77a9c136e54
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1007652
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>