4 years agoregulator: max77812: add max77812 regulator driver
Venkat Reddy Talla [Tue, 21 Feb 2017 15:34:59 +0000]
regulator: max77812: add max77812 regulator driver

Adding regulator driver for MAX77812 device which is
used in t210b01 based platforms for powering cpu,gpu
and dram io.

Bug 200270700

Change-Id: I2406ead7e00d5dc3afa2f480e769b22f0919089b
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1308821
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoi2c: tegra: add support to timeout on clock stretch.
Shardar Shariff Md [Thu, 9 Feb 2017 19:14:05 +0000]
i2c: tegra: add support to timeout on clock stretch.

Add timeout feature support to report err if clock is
stretched for more then 1msec for specified slave.

Bug 200278349

Change-Id: I6f2fff71faa0b9cf89136a10e60d7c1205a0234c
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1302289
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agopcie: host: tegra: fix DW unaligned EP CS access
Vidya Sagar [Sat, 25 Feb 2017 12:43:45 +0000]
pcie: host: tegra: fix DW unaligned EP CS access

this patch removes chip based differentiation and performs
access on full DW (32-bits) based access for RP config space
registers and respective request size access (byte/word/DW) for
EP config space registers.

Bug 1866971

Change-Id: I56706c68ed5a1438eeae02447c82362454729a3c
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1311428
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agotegra-cryptodev: Move tegra-cryptodev to crypto folder
Rakesh Babu Bodla [Mon, 27 Feb 2017 07:52:19 +0000]
tegra-cryptodev: Move tegra-cryptodev to crypto folder

Move tegra-cryptodev to crypto folder for better
organization of SE drivers.

Change-Id: Ib85e6b00015940e65a09b61346711c5834df0030
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/1311694
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agousb: gadget: ucd: prevent current value corruption
Rakesh Babu Bodla [Fri, 24 Feb 2017 12:28:50 +0000]
usb: gadget: ucd: prevent current value corruption

In cases when the node for the current in uA value
is absent in the DTB, prevent taking a corrupt
value in the container variable and passing
it over to the regulator.

Change-Id: I23ae878647ad9bb6655f03339ff4e26e73a19dee
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/1311002
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoplatform: tegra: mc: Treat decerr + secerr as secerr
Alex Waterman [Tue, 21 Feb 2017 20:09:07 +0000]
platform: tegra: mc: Treat decerr + secerr as secerr

When the MC generates an error with both MC_INT_DECERR_EMEM
and MC_INT_SECURITY_VIOLATION set treat the resulting error
as a security error not a decode error.

Bug 200231117

Change-Id: Ic15807fac5cbbbdf56fd9aa6c341f857b1748222
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1308907
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoplatform: nvadsp: Reduce the size of adsp logger
Ajay Nandakumar [Mon, 27 Feb 2017 05:48:16 +0000]
platform: nvadsp: Reduce the size of adsp logger

Decreasing size of ADSP log buffer from 1MB to 16 KB, as this helps
reducing the amount of memory used by ADSP.

Bug 1774702

Change-Id: Ib328dfe84679751d44fe1eb5d05307c8954e0e48
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/1311647
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoplatform: tegra: correct return value of function
Sumit Singh [Thu, 31 Mar 2016 09:34:07 +0000]
platform: tegra: correct return value of function

tegra_powergate_is_powered has bool as its return type, but it also
returns integer value. So, modify its signature to return int value
instead of bool.

Bug 200169751

Change-Id: I6646c5dfe102d59f909dee0ad1cdb8efd10e4ae8
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/1118268
Reviewed-on: http://git-master/r/1256273
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agosoc/tegra: fuse: read burnt fuse values from macro
Shardar Shariff Md [Thu, 23 Feb 2017 21:55:41 +0000]
soc/tegra: fuse: read burnt fuse values from macro

Read burnt fuse values from fuse macro instead of reading
from chip option registers as reading from chip option
requires sense operation and its not recommended in chips
after Tegra186.

Bug 200269848

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

4 years agoplatform: fix compilation error for UM archtecture
Om Prakash Singh [Thu, 23 Feb 2017 08:39:28 +0000]
platform: fix compilation error for UM archtecture

Bug 200207123

Change-Id: I36bbb5a3720f532644aeeacc76ec0718a251aada
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/1310091
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoi2c: tegra: make tegra_i2c_calc_end_bit() static
Shardar Shariff Md [Fri, 24 Feb 2017 08:16:46 +0000]
i2c: tegra: make tegra_i2c_calc_end_bit() static

Function tegra_i2c_calc_end_bit() is used only in this file
so making static to keep function scope to this file.

Bug 200088648

Change-Id: I9ee847168eea50f10461ea672b51e370d276edf2
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1310853
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agotrusty: replace queue_work with swork_event
dmitry pervushin [Tue, 7 Feb 2017 19:43:16 +0000]
trusty: replace queue_work with swork_event

In PREEMPT_RT-enabled kernel, call to queue_work in atomic context
causes the following spews:
[    5.020900] Call trace:
[    5.020906] [<ffffffc0000ba754>] __queue_work+0x26c/0x36c
[    5.020911] [<ffffffc0000ba944>] queue_work_on+0xf0/0x134
[    5.020920] [<ffffffc0008c6980>] trusty_call_notify+0x40/0x50
[    5.020925] [<ffffffc0000c223c>] notifier_call_chain+0x4c/0x88
[    5.020930] [<ffffffc0000c24e8>] atomic_notifier_call_chain+0x34/0x48
[    5.020936] [<ffffffc0008c3ccc>] trusty_std_call_helper+0x140/0x2bc
[    5.020940] [<ffffffc0008c481c>] trusty_std_call32+0x94/0x254
[    5.020945] [<ffffffc0008c657c>] trusty_call32_mem_buf+0x5c/0x9c
[    5.020949] [<ffffffc0008c7068>] trusty_virtio_add_devices+0x3b0/0x5a8
[    5.020953] [<ffffffc0008c736c>] trusty_virtio_probe+0x10c/0x1b8
[    5.020961] [<ffffffc00066d724>] platform_drv_probe+0x50/0xbc
[    5.020966] [<ffffffc00066b278>] driver_probe_device+0xcc/0x41c
[    5.020969] [<ffffffc00066b664>] __driver_attach+0x9c/0xa0
[    5.020973] [<ffffffc0006691f8>] bus_for_each_dev+0x58/0x98
[    5.020977] [<ffffffc00066ad00>] driver_attach+0x20/0x28
[    5.020981] [<ffffffc00066a87c>] bus_add_driver+0x208/0x290
[    5.020984] [<ffffffc00066c488>] driver_register+0x68/0x108
[    5.020989] [<ffffffc00066d62c>] __platform_driver_register+0x58/0x60
[    5.020994] [<ffffffc0011e09c8>] trusty_virtio_driver_init+0x18/0x20
[    5.020999] [<ffffffc000081ae8>] do_one_initcall+0xcc/0x1c0
[    5.021007] [<ffffffc0011a3b94>] kernel_init_freeable+0x20c/0x2ac
[    5.021014] [<ffffffc000c351c0>] kernel_init+0x10/0xdc
[    5.021018] [<ffffffc000084f90>] ret_from_fork+0x10/0x40

We should not sleep there, so if we are running in PREEMPT_RT kernel,
use another API -- swork_event, that does not sleep in atomic context.

Bug 200276180

Change-Id: Id9a846923abc29a665363e3e46cb9edd773daf36
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Reviewed-on: http://git-master/r/1300680
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Aniruddha Banerjee <aniruddhab@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

4 years agoi2c: tegra: apply prod settings if clock changed runtime
Shardar Shariff Md [Mon, 13 Feb 2017 21:11:34 +0000]
i2c: tegra: apply prod settings if clock changed runtime

- Apply the prod settings when there is runtime change in
clock frequency.
- Get the HS low and high clock count from HS timing register
instead of using the hard coded as HS multiplier.

Bug 1875147

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

4 years agosoc: tegra: fix suspend failure
David Yu [Thu, 23 Feb 2017 10:58:46 +0000]
soc: tegra: fix suspend failure

gpu rail should be excluded for suspend check

Bug 200282630
Bug 200265232

Change-Id: Id311b004a88c232ccb8b8d669aed4bf67d4e1925
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/1310189
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agosoc: tegra: Prevent crash if CPUidle not installed
Alex Frid [Thu, 16 Feb 2017 02:59:59 +0000]
soc: tegra: Prevent crash if CPUidle not installed

Bug 200270795

Change-Id: I7281c7caca7f62c6cdc4dd00e8c2ca05bbaa588d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/1305842
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agosoc/tegra: pm-tegra210: wrap with CONFIG_PM_SLEEP
Jon Mayo [Thu, 23 Feb 2017 21:24:31 +0000]
soc/tegra: pm-tegra210: wrap with CONFIG_PM_SLEEP

When PM_SLEEP is not enabled, this file shouldn't be compiled.
This change fixes a build error for missing resume_device_irq().

Change-Id: Ia7aa413f363c58c05709ddbaad975b65020da2fa
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/1310451
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agothermal: pwm_fan: fix hang on enable
David Yu [Fri, 24 Feb 2017 04:24:00 +0000]
thermal: pwm_fan: fix hang on enable

When pwm_fan is requested to enable via sysfs before
workqueue allocation finished in driver probe stage,
system gets hang. Fix this by returning -EAGAIN to
requester who can then retry later.

Bug 200282969
Bug 200265232

Change-Id: I8c77bd3f5ab0bf3d35eb9da52fdf99356c7da16e
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/1310674
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agotegra: powergate: add weak symbol for t19x init
Sivaram Nair [Thu, 23 Feb 2017 22:20:10 +0000]
tegra: powergate: add weak symbol for t19x init

So we don't break build when the t19x specific kernel is not included
into the build path.

JIRA TPM-1056

Change-Id: I95056630f631e6cc2f7f6010835fca27af60b73f
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/1310478
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agofirmware: tegra: check for ack even on timeout
Sivaram Nair [Tue, 21 Feb 2017 17:52:42 +0000]
firmware: tegra: check for ack even on timeout

When wait_for_completion_timeout() returns 0, we are delcaring a timeout
without checking the channel state. If the mail irq has been delayed due
to some other (strange) reason, we might be declaring an error
incorrectly. When this happens, the channel could be in acked state but
the condition variable wouldn't have been signalled. To avoid such
corner cases, check for the channel ack state one last time before
returning an error to the caller. However, print enough warnings to flag
the anomaly.

Bug 200275675

Change-Id: I7904dd43e791638e082d2faaf7f886713f0fc202
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/1310317
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>

4 years agomedia: i2c: imx274: Fix coverity defects
Josh Kuo [Wed, 22 Feb 2017 07:34:36 +0000]
media: i2c: imx274: Fix coverity defects

The imx274 sensor does not support eeprom, fused id and otp.
Fix coverity defects by removing unused eeprom, fused id, otp check

Coverity ID 32210
Coverity ID 32211
Coverity ID 32212
Coverity ID 32213
Coverity ID 36349

Bug 200192387

Change-Id: I55d385c76be6a2131fc6104552e0bc97a5f4a4fc
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/1309278
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Wenjia Zhou <wenjiaz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

4 years agomedia: platform: tegra: handle VI errors by worker
Pekka Pessi [Thu, 23 Feb 2017 21:27:14 +0000]
media: platform: tegra: handle VI errors by worker

The VI notifier callbacks should not invoke any notifier
functions. Schedule a worker thread to handle errors.

Bug 1854467
Bug 200281338

Change-Id: I64a6493d03f6126a31a1ec67481693bf4a71d8f0
Signed-off-by: Pekka Pessi <ppessi@nvidia.com>
Reviewed-on: http://git-master/r/1310450
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mika Liljeberg <mliljeberg@nvidia.com>

4 years agomm: fix compilation error for UM architecture
Om Prakash Singh [Thu, 23 Feb 2017 08:41:25 +0000]
mm: fix compilation error for UM architecture

fix error:
invalid operands to binary == (have ‘pte_t’ and ‘pte_t’)

‘SZ_512M’ undeclared here (not in a function)

Bug 200207123

Change-Id: I591a39686503b13c6cb1ec4b1a38662721197b8a
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/1310092
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoof: fix compilation error for UM architecture
Om Prakash Singh [Thu, 23 Feb 2017 08:37:20 +0000]
of: fix compilation error for UM architecture

Removed ; which was added by mistake.

Bug 200207123

Change-Id: Ida27b65279a84806fe7c9c16d11661a4285da6de
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/1310090
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm64: config: tegra210: Enable HDA and USB audio
Dara Ramesh [Tue, 21 Feb 2017 04:40:06 +0000]
arm64: config: tegra210: Enable HDA and USB audio

Enable HD Audio and USB audio on Tegra210 platform.

boot.img size is increased by 178176 bytes

bug 200275776

Change-Id: I858bacbd0456a2d241dae2a8790f1035c7e5bf9f
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/1308398
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoplatform: tegra: Use ARCH_TEGRA_210_SOC
Ishan Mittal [Fri, 17 Feb 2017 07:14:47 +0000]
platform: tegra: Use ARCH_TEGRA_210_SOC

Make use of ARCH_TEGRA_210_SOC instead of ARCH_TEGRA_21x_SOC
so that we can get rid of redundant ARCH_TEGRA_21x_SOC.

ARCH_TEGRA_210_SOC aligns to up-stream as well.

Bug 1766370

Change-Id: I93eb042ff9e64c190f7135cf8625da906c628190
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Reviewed-on: http://git-master/r/1306758
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agodrivers: dma: Use ARCH_TEGRA_210_SOC
Ishan Mittal [Fri, 17 Feb 2017 07:49:59 +0000]
drivers: dma: Use ARCH_TEGRA_210_SOC

Make use of ARCH_TEGRA_210_SOC instead of ARCH_TEGRA_21x_SOC
so that we can get rid of redundant ARCH_TEGRA_21x_SOC.

ARCH_TEGRA_210_SOC aligns to up-stream as well.

Bug 1766370

Change-Id: Icd4e2343827cb87f60578ab8e40dcd092d715af6
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Reviewed-on: http://git-master/r/1306825
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoinclude: soc: tegra: Use ARCH_TEGRA_210_SOC
Ishan Mittal [Fri, 17 Feb 2017 07:49:05 +0000]
include: soc: tegra: Use ARCH_TEGRA_210_SOC

Make use of ARCH_TEGRA_210_SOC instead of ARCH_TEGRA_21x_SOC
so that we can get rid of redundant ARCH_TEGRA_21x_SOC.

ARCH_TEGRA_210_SOC aligns to up-stream as well.

Bug 1766370

Change-Id: Iefa8a6aa429aa03566e1da08d40d6cdc5a9f6f7d
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Reviewed-on: http://git-master/r/1306824
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agomedia:i2c: fix coverity defects
Wenjia Zhou [Sat, 18 Feb 2017 02:00:40 +0000]
media:i2c: fix coverity defects

Fixed out of bound access
Fixed wrong shift value to compute gain

Coverity ID 29587
Coverity ID 36185

Bug 200192387

Change-Id: I60999628c38192c41ce7e75099b65643d7476f2c
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1307363
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shubham Chandra <shubhamc@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>

4 years agommc: cmdq: fixing use-after-free error
R Raj Kumar [Tue, 31 Jan 2017 09:48:01 +0000]
mmc: cmdq: fixing use-after-free error

Fixed use-after-free error reported by KASAN
>>>
[   95.547234] BUG: KASAN: use-after-free in mmc_blk_cmdq_complete_rq+0x1d8/0x248 at addr ffffffc1a3d34f60
[   95.556609] Read of size 8 by task mmc_cmdq_d/0/123
[   95.561475] =============================================================================
[   95.569637] BUG blkdev_requests (Tainted: G    B          ): kasan: bad access detected
[   95.577623] -----------------------------------------------------------------------------
>>>

Bug 200248998

Change-Id: I2a5251a5a2c898b6377ca90473b3fc029d51d955
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/1296642
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agommc: core: explicitly invoking mmc_test probe from bus drv
Sachin Nikam [Fri, 2 Mar 2012 13:24:07 +0000]
mmc: core: explicitly invoking mmc_test probe from bus drv

cherrypick from commit '080f0ec0b61087f61249aaa15b0a873bac86d287'

Bug 930113
Bug 200240170

Change-Id: I15fede503217152263905d8f7f56d3392e460e8a
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/1243740
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Tested-by: Anubhav Jain <anubhavj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>

4 years agoASoC: tegra-alt: add rt5640 machine driver
Dara Ramesh [Mon, 13 Feb 2017 06:51:17 +0000]
ASoC: tegra-alt: add rt5640 machine driver

on kernel 4.4 both rt5639 and rt5640 is
unified to single RT5640 driver, so changed
the machine driver to switch over to new
codec driver.

bug 200270111

Change-Id: Ib063af7682c45ae85766207ecf69dfe9ae3d9e8b
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/1303696
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agomisc: nct1008: Fix null pointer access
Srikar Srimath Tirumala [Wed, 8 Feb 2017 22:35:17 +0000]
misc: nct1008: Fix null pointer access

The thermal zone pointer will be null if there are no valid thermal
zones on the sensors. This causes a null pointer access if the
temperature alerts are modified via DT. Protect thermal zone pointers
with NULL checks.

Bug 1871472

Change-Id: I0446b086a2b3311e835cb7dc52415fcd9c6569bc
Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com>
Reviewed-on: http://git-master/r/1301662
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoconfigs: t186: minimal defconfig
dmitry pervushin [Wed, 15 Feb 2017 15:53:58 +0000]
configs: t186: minimal defconfig

Image size 3535072

Bug 200255172

Change-Id: I1628d0b92b2ee4f4b8177c9864987c15b330d81f
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Reviewed-on: http://git-master/r/1305500
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

4 years agodrivers: pmic: replace exported vars with get/set
dmitry pervushin [Fri, 17 Feb 2017 10:28:34 +0000]
drivers: pmic: replace exported vars with get/set

Exporting getter/setter instead of variables to allow
building when SYSTEM_PMIC is not enabled

Bug 200255172

Change-Id: Ief0a90b0e670cef9da774138ad7764c1551308d4
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Reviewed-on: http://git-master/r/1306938
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoincludes: add missing empty bodies
dmitry pervushin [Fri, 17 Feb 2017 10:39:52 +0000]
includes: add missing empty bodies

If some feature is not defined, headers usually define static
inline with empty body or returning appropriate error code.
This patch adds missing functions and corrects return values

Bug 200255172

Change-Id: I53afe5a5f5d9269eef05799d143c9f447c24b2bc
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Reviewed-on: http://git-master/r/1306944
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoandroid: fiq_debugger: add NULL check in probe
Bharat Nihalani [Tue, 7 Jul 2015 05:12:38 +0000]
android: fiq_debugger: add NULL check in probe

When pdata is NULL, it causes a NULL pointer de-reference. To avoid
this, add a NULL check before de-referencing it.

Change-Id: I89e69db270221327bfd2566b365f59230be466ac
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/766972
(cherry picked from commit d1ecbd0cc5e9822242e1d3a511b4b2c6934e4413)
Reviewed-on: http://git-master/r/1238351
GVS: Gerrit_Virtual_Submit

4 years agoarm64: tegra21: config: enable TEGRA_CPU_EDP
Bharat Nihalani [Wed, 22 Feb 2017 16:43:58 +0000]
arm64: tegra21: config: enable TEGRA_CPU_EDP

Enforce electrical design limits on CPU power rail. CPU
EDP prevents the CPU from drawing more current than its
voltage regulator can supply. Limit maximum CPU frequency
based on temperature and number of on-line CPUs to keep
CPU rail current within power supply capabilities.

Bug 200279659

Change-Id: I4b1f3d71fc8358b3c3b5396dd79c312a278a999e
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/1306901
GVS: Gerrit_Virtual_Submit

4 years agotegra: cpu-edp: Fix compilation error
Bharat Nihalani [Wed, 22 Feb 2017 17:13:51 +0000]
tegra: cpu-edp: Fix compilation error

Fix build error when just CONFIG_TEGRA_CPU_EDP is enabled.
This is done by guarding one of the system EDP hearder files
with CONFIG_TEGRA_SYS_EDP.

Bug 200279659

Change-Id: Ibaccb26bfd8065e97300cf9c7bdc4a7869067087
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/1309532
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>

4 years agomtd: Fix compilation warning
Pavan Kunapuli [Wed, 15 Feb 2017 10:21:00 +0000]
mtd: Fix compilation warning

Set __maybe_unused option to function reading multiple bytes
to avoid fix compilation warnings.
Enable option to treat compilation warnings as errors.

Bug 200261578

Change-Id: Ife6445152b729bbc9e37b1ad2ae094b919bf9717
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/1305326
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agofs: pstore: Fix compilation warnings
Pavan Kunapuli [Wed, 15 Feb 2017 10:18:58 +0000]
fs: pstore: Fix compilation warnings

Fix compilation warnings in inode and rtrace drivers.
Enable option to treat all compilation warnings as errors.

Bug 200261578

Change-Id: I4cd3e8b073b2be93aca70c9bcc3f7ff980c95998
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/1305303
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoblock: Treat all warnings as errors
Pavan Kunapuli [Wed, 15 Feb 2017 10:17:27 +0000]
block: Treat all warnings as errors

Treat all compilation warnings as errors.

Bug 200261578

Change-Id: I637be9dc6feee7154f2da689b161c615ccce7e32
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/1305301
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agommc: Treat all warnings as errors
Pavan Kunapuli [Wed, 15 Feb 2017 10:14:10 +0000]
mmc: Treat all warnings as errors

Enable Werror to treat all compilation warnings
as errors.

Bug 200261578

Change-Id: I0d3035aab0b270147b747c0cd8641a93bb2790ef
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/1305299
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoASoC: tegra-virt-alt: driver unification
Dipesh Gandhi [Fri, 3 Feb 2017 05:36:02 +0000]
ASoC: tegra-virt-alt: driver unification

Change remove soc dependeny from driver
and can be used across different soc based
on compatibility provided in dt.

Bug 200257345
EMA-378

Change-Id: Icd57edc0245c983afe69fba15f950a259dfc48e7
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/1296772
Reviewed-by: Uday Gupta <udayg@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agotegra-se-elp: Support for PKA1 Keyslot usage
Shravani Dingari [Mon, 23 Jan 2017 12:58:35 +0000]
tegra-se-elp: Support for PKA1 Keyslot usage

Add support to access PKA1 using keyslots apart
from operand memory addresses

Bug 200268711

Change-Id: I88c5edfad2e0886e3e5933387909a694a2a523ab
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/1292471
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agosound: pci: hda: Get rid of SoC config usage
Laxman Dewangan [Wed, 22 Feb 2017 08:31:23 +0000]
sound: pci: hda: Get rid of SoC config usage

Remove the usage of SOC config like CONFIG_ARCH_TEGRA_18x_SOC
and used runtime function for applying condition.

This helps in kernel unifications.

bug 200280972

Change-Id: I96d784c2a90896c17735337265c9eae88e8f2be0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1309312
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agosoc: tegra: Add T210 UCM2 GPU cap support
Alex Frid [Sat, 18 Feb 2017 06:59:10 +0000]
soc: tegra: Add T210 UCM2 GPU cap support

Bug 200269751

Change-Id: Id53068de71251ac547b60f064010e89abeef5614
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/1309084
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agouapi: fb.h: add new vmode flag FB_VMODE_BYPASS
Santosh Reddy Galma [Mon, 20 Feb 2017 10:45:58 +0000]
uapi: fb.h: add new vmode flag FB_VMODE_BYPASS

add new vmode flag FB_VMODE_BYPASS to check if bypass
flag is set by hwc during modeset for enabling/disabling
bypass mode in kernel for YUV 422/444 formats.

Bug 200268802

Change-Id: I31f9dd91c27b4d4c8b6ba4c3bd8b6f511dc81c9c
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/1308083
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>
Tested-by: Michael Frydrych <mfrydrych@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ujwal Patel <ujwalp@nvidia.com>

4 years agonvdumper: add the feature for t186
Yifei Wan [Fri, 10 Feb 2017 22:51:11 +0000]
nvdumper: add the feature for t186

Fixed a few bug when adding nvdumper.

Bug 200094773

Change-Id: Ibedd71cabfaa3d5d94536625ceffceb5cfdd459a
Signed-off-by: Yifei Wan <ywan@nvidia.com>
Reviewed-on: http://git-master/r/1303226
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agosoc/tegra: fuse: get temparature range through dt
Shardar Shariff Md [Tue, 21 Feb 2017 08:42:27 +0000]
soc/tegra: fuse: get temparature range through dt

Get the temparature range through DT instead of hardcoding
in driver as depending on sensor zone range varies.

Bug 200259694

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

4 years agovideo:tegra:camera: fix coverity defect
Wenjia Zhou [Tue, 21 Feb 2017 22:15:56 +0000]
video:tegra:camera: fix coverity defect

prevent divde by 0.

Coverity ID 24173

Bug 200192387

Change-Id: I0c6096bb62e297d893d067ebc93054a099a39828
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1307333
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shubham Chandra <shubhamc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

4 years agomedia:tegra:mipical: fix coverity defect
Wenjia Zhou [Fri, 17 Feb 2017 01:22:46 +0000]
media:tegra:mipical: fix coverity defect

Check return value of tegra_prod_set_by_name

Coverity ID 467183

Bug 200192387
Jira CHWI-837

Change-Id: I595046c7ceb77dd9de250ae8475e839451bbf406
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1306583
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Shubham Chandra <shubhamc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

4 years agoARM64: config: Enabling DEFAULT_TRACERS config
Venkat Reddy Talla [Mon, 20 Feb 2017 15:18:34 +0000]
ARM64: config: Enabling DEFAULT_TRACERS config

Enabling ENABLE_DEFAULT_TRACERS config in tegra18_android_defconfig.
This tracer allows to pick and choose which trace point
to be traced.

boot.img size increased by 2600960 bytes

Change-Id: Ia89205d04a67ba859bbe65ce901c6c76e503a15c
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1308200
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoclk: include fs header file in clk driver
Venkat Reddy Talla [Mon, 13 Feb 2017 09:59:21 +0000]
clk: include fs header file in clk driver

when CONFIG_IRQSOFF_TRACER config removed from t186_android_defconfig
observed build errors in clk module, adding fs header file in clk driver
to resolve below compilation errors.

/dvs/git/dirty/git-master_modular/kernel/kernel-4.4/drivers/clk/clk.c:316:8:
error: dereferencing pointer to incomplete type
    inode->i_private);
        ^
/dvs/git/dirty/git-master_modular/kernel/kernel-4.4/drivers/clk/clk.c:320:2:
error: unknown field 'open' specified in initializer
   .open           = freq_stats_table_open,
   ^
/dvs/git/dirty/git-master_modular/kernel/kernel-4.4/drivers/clk/clk.c:321:2:
error: unknown field 'read' specified in initializer
   .read           = seq_read,
   ^
/dvs/git/dirty/git-master_modular/kernel/kernel-4.4/drivers/clk/clk.c:322:2:
error: unknown field 'llseek' specified in initializer
   .llseek         = seq_lseek,
   ^
/dvs/git/dirty/git-master_modular/kernel/kernel-4.4/drivers/clk/clk.c:323:2:
error: unknown field 'release' specified in initializer
 .release        = seq_release,
  ^
/dvs/git/dirty/git-master_modular/kernel/kernel-4.4/drivers/clk/clk.c:628:20:
error: expected ')' before string constant
    freq_stats_set, "%llu\n");

/dvs/git/dirty/git-master_modular/kernel/kernel-4.4/drivers/clk/clk.c:2740:27:
 error: 'freq_stats_fops' undeclared (first use in this function)

Bug  200274003

Change-Id: I8bd9314a70740805f02fd05eeef21ecd9592464f
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1303783
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoRevert "ARM64: config: t186: enable IRQSOFF TRACER config"
Venkat Reddy Talla [Fri, 10 Feb 2017 06:42:42 +0000]
Revert "ARM64: config: t186: enable IRQSOFF TRACER config"

This reverts commit 62b623194c2a8aaf4d6890035c25ad06f048ac24.

boot.img size decreased by 2619392 bytes

Bug 200273576
Bug 200274003
Bug 200256189

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

4 years agopinctrl: tegra21x: Add support for t210b01
Rohith Seelaboyina [Wed, 1 Feb 2017 12:07:11 +0000]
pinctrl: tegra21x: Add support for t210b01

* Functions sata, hsic are not supported in t210b01
  and number of lanes reduced from 8 to 6
* Add support to handle the changes in driver

Bug 20085578

Change-Id: Ie5047cb6d0c630d6136f2eb20fd9361a09443c7d
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/1287939
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoarm64: tegra21: config: disable TEGRA_CEC_SUPPORT
Bharat Nihalani [Wed, 15 Feb 2017 11:57:35 +0000]
arm64: tegra21: config: disable TEGRA_CEC_SUPPORT

This is done because device hangs while going to suspend.

Bug 200275121

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

4 years agousb: driver: xhci: Add support for t210b01
Rohith Seelaboyina [Thu, 9 Feb 2017 09:57:08 +0000]
usb: driver: xhci: Add support for t210b01

Add support for t210b01 in xhci-tegra driver.
No. of supplies have been reduced due to removal
of sata function.

Change-Id: I5ef792e97df8899b23689e44078f6fdaa53e8984
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/1302062
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoarm64: tegra21: config: enable UID_CPUTIME
Bharat Nihalani [Fri, 30 Dec 2016 10:20:39 +0000]
arm64: tegra21: config: enable UID_CPUTIME

This is needed to get CPU time statistics that is exposed through
/proc/uid_cputime. Without this, we observe the following prints on
Android logcat:

 E/KernelUidCpuTimeReader(  830): Failed to read uid_cputime
 E/KernelUidCpuTimeReader(  830): java.io.FileNotFoundException: /proc/uid_cputime/show_uid_stat: open failed: ENOENT (No such file or directory)
 E/KernelUidCpuTimeReader(  830):  at libcore.io.IoBridge.open(IoBridge.java:452)
 E/KernelUidCpuTimeReader(  830):  at java.io.FileInputStream.<init>(FileInputStream.java:76)
 E/KernelUidCpuTimeReader(  830):  at java.io.FileInputStream.<init>(FileInputStream.java:103)
 E/KernelUidCpuTimeReader(  830):  at java.io.FileReader.<init>(FileReader.java:66)
 E/KernelUidCpuTimeReader(  830):  at com.android.internal.os.KernelUidCpuTimeReader.readDelta(KernelUidCpuTimeReader.java:71)
 E/KernelUidCpuTimeReader(  830):  at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8031)
 E/KernelUidCpuTimeReader(  830):  at com.android.internal.os.BatteryStatsImpl$MyHandler.handleMessage(BatteryStatsImpl.java:155)
 E/KernelUidCpuTimeReader(  830):  at android.os.Handler.dispatchMessage(Handler.java:104)
 E/KernelUidCpuTimeReader(  830):  at android.os.Looper.loop(Looper.java:148)
 E/KernelUidCpuTimeReader(  830):  at android.os.HandlerThread.run(HandlerThread.java:61)
 E/KernelUidCpuTimeReader(  830):  at com.android.server.ServiceThread.run(ServiceThread.java:46)
 E/KernelUidCpuTimeReader(  830): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
 E/KernelUidCpuTimeReader(  830):  at libcore.io.Posix.open(Native Method)
 E/KernelUidCpuTimeReader(  830):  at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
 E/KernelUidCpuTimeReader(  830):  at libcore.io.IoBridge.open(IoBridge.java:438)

Change-Id: I8a596e30db68ad1dcf894949e5833e2532d55501
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/1278878
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agopinctrl: t21x: Avoid LFPS disable on t21xb01
Petlozu Pravareshwar [Tue, 21 Feb 2017 09:42:57 +0000]
pinctrl: t21x: Avoid LFPS disable on t21xb01

Disabling LFPS detection before entering U3 and
re-enabling it after entering U3 is not needed
for soc t21xb01. It is only needed on T210.

Bug 1793697

Change-Id: I14c79e78c770475a1cf71086024c0882dbbacaa0
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/1308528
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoinclude: linux: usb: Support kernel unification
Rohith Seelaboyina [Tue, 21 Feb 2017 04:38:45 +0000]
include: linux: usb: Support kernel unification

* Remove support for chips earlier to T210 as kernel-4.4
  supports T210 and later chips.
* SNPS controller is supported only in T210

Bug 200280966

Change-Id: I8c823abb0b27a3d2730b526d8418320b6ad129bd
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/1308399
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoALSA: hda: disable long delay in get response
Mohan Kumar [Fri, 17 Feb 2017 07:34:29 +0000]
ALSA: hda: disable long delay in get response

Long delay is enabled by default for tegra devices, which is
causing 8 ms delay by codec read operation due to msleep function,
This flag needs to be disabled to avoid long delay in codec read.

Bug 200275633

Change-Id: Ib52413240e75023d6ebbd02a841056eccf2055ac
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/1306787
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agodefconfig: Enable qspi and mtd
sreenivasulu velpula [Mon, 2 Jan 2017 05:50:23 +0000]
defconfig: Enable qspi and mtd

Bug 200258423

Change-Id: I863d85670d070024bcac0fe692d2d63d11fadce2
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/1279007
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoqspi: tegra: Use qspi_out clock for ddr mode
Krishna Yarlagadda [Thu, 19 Jan 2017 16:55:24 +0000]
qspi: tegra: Use qspi_out clock for ddr mode

QSPI_CLK_DIV2 is used to select clock in DDR or SDR mode.
tegra_clk_cfg_ex api is no longer supported and hence
a new clock qspi_out has been added to support this mode select.
Modified driver to use new qspi_out clock.

Bug 200267756

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

4 years agoqspi: tegra: fix coverity defects
Krishna Yarlagadda [Tue, 21 Feb 2017 16:15:31 +0000]
qspi: tegra: fix coverity defects

Fix coverity defects with IDs 13377, 13368

Bug 200267756

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

4 years agogpio: tmpm32x: Add delay on reading power value
Jinyoung Park [Mon, 20 Feb 2017 08:15:41 +0000]
gpio: tmpm32x: Add delay on reading power value

Added 10ms delay after sending power rail channel info I2C command
for allowing MCU to read the INA sensor and save the result into
I2C return value.

Bug 200278725

Change-Id: I4ce32221c8acf8504a0244171a18e27071f4699d
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/1307930
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Johnny Fan <bradf@nvidia.com>
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Kurt Yi <kyi@nvidia.com>

4 years agofs/file.c: bypass file resource limit check during dup2/dup3 conditionally
Krishna Reddy [Thu, 16 Feb 2017 23:40:09 +0000]
fs/file.c: bypass file resource limit check during dup2/dup3 conditionally

If the newfd is beyond file resource limit and already pointing to
a valid file *, It means kernel is allowing the process to use fd's
beyond file resource limit. In this case, Bypass the file resource limit
check for newfd and allow recycling it.

Bug 1867572

Change-Id: I8d173ca627b3bcbe8d44cb7d1c690538316b1ccc
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/1306503
Reviewed-by: Tony Zlatinski <tzlatinski@nvidia.com>
Tested-by: Tony Zlatinski <tzlatinski@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agousb: gadget: cd: use common extcon id
David Yu [Fri, 17 Feb 2017 02:27:59 +0000]
usb: gadget: cd: use common extcon id

extcon cable name is not used anymore for registration.

Bug 200279222
Bug 200265232

Change-Id: Id8dd208f19c0435e41eccdd8f339bda0408ab390
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/1306606
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoarm64: tegra21: config: enable POWER_SUPPLY_EXTCON
David Yu [Mon, 13 Feb 2017 06:33:00 +0000]
arm64: tegra21: config: enable POWER_SUPPLY_EXTCON

enable power supply extcon driver for charger detection

boot.img size is increased by 2048 bytes.

Bug 200278036
Bug 200265232

Change-Id: Iab7b399511831f4650ac11e2aa6b873c81da2c3d
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/1303634
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agonet: eqos: add sysfs for eqos mac loopback
anju sebastian [Tue, 24 Jan 2017 04:34:23 +0000]
net: eqos: add sysfs for eqos mac loopback

Added sysfs interface for configuring mac_loopback

Bug 200224982

Change-Id: I0dca7cc921c950ae90ab2ec2a96982c3c6b54f17
Signed-off-by: anju sebastian <asebastian@nvidia.com>
(cherry picked from commit ce815aade7fadd05931552251432c82526b73563)
Reviewed-on: http://git-master/r/1292954
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sidharth Varier <svarier@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>

4 years agoprod: set prod-settings mask to 1-style default
Venkat Reddy Talla [Wed, 15 Feb 2017 09:20:29 +0000]
prod: set prod-settings mask to 1-style default

Enabling mask-one-style default for prod-settings ignoring
device tree property mask-one-style, so from now no need to
add mask-one-style property in device tree prod-settings node
because there is no support for mask-0-style in driver,
and in DTS prod-settings values should be in mask-1-style.

Change-Id: I94a8944276d882d27aeefd9f0f7f7c2fcb6da613
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1305267
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agodrivers: media: auto: gpio control from isc-mgr
Anurag Dosapati [Tue, 10 Jan 2017 22:25:41 +0000]
drivers: media: auto: gpio control from isc-mgr

- Add support for controlling a gpio from
  more than one isc-mgr

JIRA EN-2984

Change-Id: I980d58d314cfe47954e71ca6efcd29957484caf7
Signed-off-by: Anurag Dosapati <adosapati@nvidia.com>
Reviewed-on: http://git-master/r/1283077
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>

4 years agopinctrl: tegra: Add config property function mode
Suresh Mangipudi [Mon, 20 Feb 2017 05:15:03 +0000]
pinctrl: tegra: Add config property function mode

The pinmux that is set for a given pin is not dispalyed,
adding the support to retrieve this information from the
pinmux set for each pin.

Bug 200268665

Change-Id: I45ffa378b6c64d4697031dc7037c331e8ec74d07
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/1307751
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agosoc: tegra: Add T210 UCM2 core thermal caps table
Alex Frid [Sat, 18 Feb 2017 02:39:23 +0000]
soc: tegra: Add T210 UCM2 core thermal caps table

Bug 200269751

Change-Id: I650f939c017cae2601a0469917a78e57a7eadb97
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/1307426
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agosoc: tegra: Actually apply vdd-core voltage limits
Alex Frid [Sat, 18 Feb 2017 05:15:42 +0000]
soc: tegra: Actually apply vdd-core voltage limits

Fixed dvfs_rail_apply_limits() function that did not clamp vdd-core
voltage at all.

Bug 200269751

Change-Id: I891cab1e054761bb7c62280336c7e093cdbb6186
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/1307425
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agoclk: tegra: Add T210 UCM2 DFLL thermal caps table
Alex Frid [Fri, 17 Feb 2017 06:56:30 +0000]
clk: tegra: Add T210 UCM2 DFLL thermal caps table

Bug 200269751

Change-Id: I8b2e80c69e3786aec8d093b7f1fb3f0ccef23879
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/1307424
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agoclk: tegra: Protect recalculation of DFLL limits
Alex Frid [Fri, 17 Feb 2017 04:18:10 +0000]
clk: tegra: Protect recalculation of DFLL limits

Made sure recalculation of DFLL output limits because of thermal event
is serialized with the same recalculation caused by target rate change.
Changed DFLL limits debugfs output to rounded voltages.

Bug 200269751

Change-Id: I809838e45a2fd01bd2a40e600de66283be80227b
Signed-off-by: Alex Frid <afrid@nvidia.com>

dfll tmp

Change-Id: Ie83f2cb421cf31dfa5de1efb651af0817954c380
Reviewed-on: http://git-master/r/1307423
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agosoc: tegra: Update T210 sku info
Alex Frid [Fri, 17 Feb 2017 21:46:23 +0000]
soc: tegra: Update T210 sku info

- Populated sku info ucm field, and selected DVFS ids appropriately
- Made "a02" DVFS ids selection forward looking
  (applied to all A02+ revisions)
- Applied vcm31_sku to a02 parts (was a01 only), but limit it to
  0x17 sku fuses (was applied to 0x07 and 0x13 as well)
- Made always on personality a must for sku 0x8F

Bug 200269751

Change-Id: I85cbe2f1621c271640643aa2d203b9dac5b8c992
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/1307422
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agosoc: tegra: Add usage mode UCM field to sku info
Alex Frid [Fri, 17 Feb 2017 20:35:09 +0000]
soc: tegra: Add usage mode UCM field to sku info

Bug 200269751

Change-Id: I8044b350587e2298ec1b705dd01fec5fc6d83379
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/1307421
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agousb: gadget: ucd: add delay to secondary detection
Mark Kuo [Fri, 17 Feb 2017 05:38:58 +0000]
usb: gadget: ucd: add delay to secondary detection

Some host CDP may not respond well if we do secondary detection right
after primary detection finishes. If we add a small delay (20ms, max of
TVDMSRC_DIS) to wait for D- disabled from host, and then we perform
secondary detection, then those host CDPs which fail the secondary
detection will become normal.

Bug 200278483

Change-Id: Ied54761e96d47996b6544909369d66d846114322
Signed-off-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-on: http://git-master/r/1306673
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Hans Yang <hansy@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agocpuidle: cpuidle-arm: Get rid of SoC specific config
Laxman Dewangan [Mon, 20 Feb 2017 10:12:20 +0000]
cpuidle: cpuidle-arm: Get rid of SoC specific config

Remove the usage of SoC specific config for Tegra210 support as
the chip ID is already checked in run time.

This helps in kernel unifications.

bug 200280961

Change-Id: I5d78b1c58f6915281164576657c6037f177b3319
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1308076
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joseph Lo <josephl@nvidia.com>

4 years agotegra21x: cpufreq: fix dead code
Puneet Saxena [Mon, 20 Feb 2017 10:21:30 +0000]
tegra21x: cpufreq: fix dead code

Fix dead code as

return X;
goto Y

Coverity ID 557403

Change-Id: I8359ebd1b68882e2c8f759d598935a28dda13ae8
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/1308074
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agokernel: power: qos: Get rid of SoC config
Laxman Dewangan [Sun, 19 Feb 2017 09:58:14 +0000]
kernel: power: qos: Get rid of SoC config

Use the runtime function for finding the SoC compatible
instead of SoC config. This helps in kernel unifications.

bug 200280971

Change-Id: I04d290fdb16ab07cc00391ae18aba0eb712d095b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1307607
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Puneet Saxena <puneets@nvidia.com>

4 years agoplatform: tegra: firmwares: fix crash
Pekka Pessi [Thu, 16 Feb 2017 17:13:45 +0000]
platform: tegra: firmwares: fix crash

Do not try to move a non-existing device.

Bug 1867487
Bug 1878343

Change-Id: I66d97d6ab3249dcf2a8bc4a7c9593cf4450d1e76
Signed-off-by: Pekka Pessi <ppessi@nvidia.com>
Reviewed-on: http://git-master/r/1307091
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

4 years agopinctrl: pinconf: Support to print pin properties
Suresh Mangipudi [Fri, 17 Feb 2017 08:57:58 +0000]
pinctrl: pinconf: Support to print pin properties

Add support to print pin properties for
a pin name entered

Based on change on kernel-3.18
05caade6 pinctrl: pinconf: Support to print pin properties

Change-Id: I21eb25c8ff6ddba165dc048a2dccc2342e1ee235
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/1306890
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agodrivers: Kconfig: Use ARCH_TEGRA_210_SOC
Ishan Mittal [Fri, 17 Feb 2017 07:50:46 +0000]
drivers: Kconfig: Use ARCH_TEGRA_210_SOC

Make use of ARCH_TEGRA_210_SOC instead of ARCH_TEGRA_21x_SOC
so that we can get rid of redundant ARCH_TEGRA_21x_SOC.

ARCH_TEGRA_210_SOC aligns to up-stream as well.

Bug 1766370

Change-Id: I1d589efb65e823f0e5d7dd7b30b0d317f61d070e
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Reviewed-on: http://git-master/r/1306826
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoclocksource: Use ARCH_TEGRA_210_SOC
Ishan Mittal [Fri, 17 Feb 2017 07:17:05 +0000]
clocksource: Use ARCH_TEGRA_210_SOC

Make use of ARCH_TEGRA_210_SOC instead of ARCH_TEGRA_21x_SOC
so that we can get rid of redundant ARCH_TEGRA_21x_SOC.

ARCH_TEGRA_210_SOC aligns to up-stream as well.

Bug 1766370

Change-Id: I18d19b8f4e8899a4fa08bddd158b8518fb9e29f5
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Reviewed-on: http://git-master/r/1306822
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agosound: soc: tegra-alt: Use ARCH_TEGRA_210_SOC
Ishan Mittal [Fri, 17 Feb 2017 07:12:42 +0000]
sound: soc: tegra-alt: Use ARCH_TEGRA_210_SOC

Make use of ARCH_TEGRA_210_SOC instead of ARCH_TEGRA_21x_SOC
so that we can get rid of redundant ARCH_TEGRA_21x_SOC.

ARCH_TEGRA_210_SOC aligns to up-stream as well.

Bug 1766370

Change-Id: I10a9d9bb63b1fbac358d85a228710a208d595281
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Reviewed-on: http://git-master/r/1306757
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agocrypto: tegra-se: Fix logic error
Aniruddha TVS Rao [Thu, 16 Feb 2017 09:56:16 +0000]
crypto: tegra-se: Fix logic error

Logical AND operation within the if statement is
forcing the condition to be always true and doesn't
serve any additional purpose.
Fixed it by using bitwise AND operator instead of
logical AND.

Coverity ID 33302
Coverity ID 33304
Coverity ID 33351
Coverity ID 33365

Change-Id: Ib7a99f735a92c3285220b4868496d2cf3ac44106
Signed-off-by: Aniruddha TVS Rao <anrao@nvidia.com>
Reviewed-on: http://git-master/r/1306128
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agodrivers: hid: Fix warnings in hid subsystem
Rohith Seelaboyina [Tue, 14 Feb 2017 04:37:04 +0000]
drivers: hid: Fix warnings in hid subsystem

* Enable Werror to treat warnings as errors in
  hid drivers.
* Fix warnings in hid drivers related to unused
  variables and mixed declarations.

Bug 200261578

Change-Id: I0bada238228cd719844aa28201d4d5253be68bb8
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/1304342
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agomedia:tegra:camera: Fix coverity defect
Wenjia Zhou [Mon, 13 Feb 2017 23:07:21 +0000]
media:tegra:camera: Fix coverity defect

Do not compare unsigned int port to 0
check return value of_property_read_u32
Do not use ts when capture_error

Coverity ID 557401
Coverity ID 32364
Coverity ID 489257
Coverity ID 38672

Bug 200192387

Change-Id: If4790d919f81c04bdea805584c005337ddeb4813
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1304186
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agousb: gadget: xudc: Disable invalid_seq_num flag
Rohith Seelaboyina [Mon, 13 Feb 2017 04:54:38 +0000]
usb: gadget: xudc: Disable invalid_seq_num flag

Disable invalid_seq_num flag for T210b01

Bug 1793692

Change-Id: I73b8cc7a1772fdfdb036d58c315c62dc945071ce
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/1303567
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agommc: host: Avoid copy paste error
Aniruddha TVS Rao [Mon, 13 Feb 2017 04:44:12 +0000]
mmc: host: Avoid copy paste error

In cmdq_disable the code within if(cq_host->trans_desc_base)
is copied from if(cq_host->desc_base).
But the copied code is not consistent with the original
one.
cq_host->desc_base should be cq_host->trans_desc_base.

Coverity ID 29572

Change-Id: I0b2341efb376750c77fcfbc80a8413849d47a5b2
Signed-off-by: Aniruddha TVS Rao <anrao@nvidia.com>
Reviewed-on: http://git-master/r/1303563
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoARM64: configs: tegra18: disable nvmap stashing
Sri Krishna chowdary [Fri, 10 Feb 2017 08:46:27 +0000]
ARM64: configs: tegra18: disable nvmap stashing

Now that dmabuf stashing is enabled, nvmap stashing does
not provide any other advantage. Also, stashing mappings
for host1x context devices is a security hole. Since, nvmap
stashed those mappings as well, it is undesirable. Dmabuf
stashing is disabled for such devices so issue is not seen
with dmabuf stashing alone.

no change in boot.img size

bug 200229632

Change-Id: I518d06d670deeee40661b99ed9ecb44c1d73c8f7
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/1302905
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agousb: gadget: remove variable ret and remove unnecessary if statement
Colin Ian King [Thu, 8 Sep 2016 20:09:30 +0000]
usb: gadget: remove variable ret and remove unnecessary if statement

the if statement in lb_modinit is unnecessary so we can totally
remove the variable ret and just return the return value from
the call to usb_function_register.

Change-Id: Iead1398ab00e04f21469229975c243da170de7c5
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
(cherry picked from commit 5387c920372a3aaeb97b8b4721619ca9ff2a82ab)
Signed-off-by: Aniruddha TVS Rao <anrao@nvidia.com>
Reviewed-on: http://git-master/r/1302900
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoRevert "time: tegra: post-lp0 sync system to rtc time"
Krishna Yarlagadda [Thu, 9 Feb 2017 14:40:55 +0000]
Revert "time: tegra: post-lp0 sync system to rtc time"

This reverts commit f47210552f3e59b85452f426ea2ea65b9202243f.

Time sync should be done by timekeeping code and it has been
fixed now

bug 200258431

Change-Id: Ide222159439c1a18b60f81066ec2165097f71dde
Reviewed-on: http://git-master/r/1302178
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Joseph Lo <josephl@nvidia.com>
Tested-by: Joseph Lo <josephl@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopm: change system time restore source priority
Krishna Yarlagadda [Thu, 9 Feb 2017 14:30:52 +0000]
pm: change system time restore source priority

Changed preference for restoring system time after resume
to persistent clock -> suspend-nonstop clocksource -> rtc

This is required as suspend-nonstop clocksource does not report
proper time after resume.
Change to be reverted once suspend-nonstop clocksource is fixed.

Bug 200258431

Change-Id: If9f021841a5aa738980f7b393f68c207aaf155d2
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1302179
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Joseph Lo <josephl@nvidia.com>
Tested-by: Joseph Lo <josephl@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agotegra: powergate: t19x support
Stefan Kristiansson [Thu, 26 Jan 2017 13:42:13 +0000]
tegra: powergate: t19x support

Jira TPM-1056

Change-Id: I45281ab72b75d48c9b7aa15ef04b1fa4308864dc
Signed-off-by: Stefan Kristiansson <stefank@nvidia.com>
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/1294606
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>

4 years agosoc/tegra: add TEGRA194 define
Sivaram Nair [Thu, 16 Feb 2017 23:58:02 +0000]
soc/tegra: add TEGRA194 define

Jira TPM-1056

Change-Id: Ie020b535b16c083bcc5f0b3731a5effda9836176
Signed-off-by: Stefan Kristiansson <stefank@nvidia.com>
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/1294605
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>

4 years agomisc: eqos_ape: calc n_int, n_fract and n_modulo
Chandini Chandrasekaran [Tue, 10 Jan 2017 04:44:22 +0000]
misc: eqos_ape: calc n_int, n_fract and n_modulo

Added support to calculate n_int, n_fract and n_modulo for
programming ape clock parameters in userspace and remove rate
table in kernel space.

Bug 1813890

Change-Id: I18a092cdba66a6a1fde1d772506c5a56f15b89aa
Signed-off-by: Chandini Chandrasekaran <cchandini@nvidia.com>
Reviewed-on: http://git-master/r/1282516
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sidharth Varier <svarier@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>

4 years agortc: tegra: register to persistent clock
Krishna Yarlagadda [Wed, 16 Nov 2016 06:36:06 +0000]
rtc: tegra: register to persistent clock

RTC can register itself as persistent clock as it
can retain time across boot

Bug 200170914

Change-Id: I42f1e1f40ce4aef6220a067fe358dab8532c1497
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1254658
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Joseph Lo <josephl@nvidia.com>
Tested-by: Joseph Lo <josephl@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>