mmc: sdhci: Issue sdhci RTPM put() after tuning

sdhci RTPM get() is calling before tuning, so corresponding
sdhci RTPM put() should be issued after tuning as well.

Bug 1249832

Change-Id: I47fb448968db7ba889229e51366ace2f60ac1874
Reviewed-on: http://git-master/r/224915
(cherry picked from commit fdb087557256667e4303ae2d0f29b3d2dede1970)

Signed-off-by: rrajk <rrajk@nvidia.com>
Change-Id: I13e96c649939e9ca434e630b4a24810523f2adeb
Reviewed-on: http://git-master/r/228211
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
mmc: tegra: Disable cache control support

Disable cache control feature support for eMMC v4.5.

Bug 1287739

Reviewed-on: http://git-master/r/227714
(cherry picked from commit 722114cdcfedceab863a2936ccddd458bfa39e9c)
Change-Id: I3fe25938d11dcadbc82b17c4ab10c2c6e05fbb43
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/228890
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
input: misc: inv: disable irq when powering off

Problem descritpion:

 - Even after powering off the device through inv_set_power_state,
   inv_read_fifo can be running in paralell, still talking to the
   device

Fix description:

 - When powering off the device, also disable the irq to avoid
   talking to a powered off device
 - As a side effect, this change will also ensure interrupts from gyro
   do not result in a lock up of i2c bus during suspend even in case
   of an interrupt storm

Bug 1285239

Change-Id: I42dfa094b645944e22d600b64abc18b10b7fb38b
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/227781
(cherry picked from commit a2ce58ee6da12bbe3f9d18dfcef1e6a48a4572a9)
Reviewed-on: http://git-master/r/229503
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
misc: nct1008: talk to nct1008 only when powered

Problem description:
 - nct1008_suspend powers off nct1008
 - nct1008_suspend does stop the workqueue and irq, but
   if there is a kernel thread which would trigger
   nct1008_read_reg or nct1008_write_reg, nct1008 would
   still be accessed after it is powered off

Fix description:
 - Rename the existing flag shutdown_complete to nct_disabled
 - Update the value of nct_disabled when powering nct1008 on and off

Bug 1288427

Change-Id: Id885794eb39a71025ad9f5c3615156c19039d13f
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/228011
(cherry picked from commit 08eed1ddbacece2f1c8b4fba633c01c0f87ba2cd)
Reviewed-on: http://git-master/r/229504
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
ARM: tegra: add a sysfs to time to go suspend

measure the time from display control disabled to suspending core and
open an access to the data through sysfs. tegra_log_suspend_time
must be called from display control driver when disabled.

Bug 1279339
Bug 1252226

Change-Id: If70135639b2e1eea72d1189f8c5cd32ba7d11bf1
Signed-off-by: Andy Park <andyp@nvidia.com>
(cherry picked from commit 5e21c0030b60ab71ca610ad55b8cfeacee03a980)
Reviewed-on: http://git-master/r/229105
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
video: tegra: dc: log suspend enter time

log suspend enter time using uS timer

Bug 1279339
Bug 1252226

Change-Id: I7e29d177df78a286d3e3ee905b020f95575175ac
Signed-off-by: Andy Park <andyp@nvidia.com>
(cherry picked from commit 832517518d82fa2bce7c3b85cdd2c56e0b87704a)
Reviewed-on: http://git-master/r/229106
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
net: wireless: bcmdhd: new driver version 1.28.28.2

- Fixed Miracast discovery issue after P2P disconnection.
- Fixed P2P action frame issue when multiple P2P IEs are in the probe response.
- BW allocation for VSDB
- Support offset for RSSI report (currently set to 5)

Bug 1282745

Change-Id: Ia45f496711f3775858de38e1c7e3c762d2f58828
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/228838
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
ARM: Tegra: Roth: Fix asoc debugfs hang

Fix a hang when using debugfs commands to
read the tegra audio device registers. A
needed clock was not turned on causing the hardware
to hang.

Bug 1236039

Change-Id: I1535b87add4d1f142731e7451447a974f90436c2
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/229845
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
ARM:Tegra:Roth: Update speaker settings

Update speaker model, EQ, and configs for
the NXP tfa8997 device.

Change-Id: Ib5506cebe901991a4a6dbb5bd6867a90e7e8ca9c
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/230909
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
ARM: tegra: board: disable the alignement fix

Disable the h/w alignment fix for T114 A02.

Bug 1289107

Change-Id: I09b390098dfbfb2890037038eb7e9c23b754764d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/228649
Reviewed-on: http://git-master/r/231086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Zu <pzu@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Peter Zu <pzu@nvidia.com>
video: tegra: dsi: Enable MIPI auto calibration

Implementation of DSI MIPI auto calibration

Bug 1166307

Change-Id: I178f3ffb6bb69050c9edc4cd1663bfe9b61abf3a
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/229914
(cherry picked from commit 2bd97385468ac85c4dac33615c5c31b1eabc7f18)
Reviewed-on: http://git-master/r/231574
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
video: tegra: dsi: Enable MIPI auto calibration

Updated the auto calibration values.
Fixed call to register access function.

Bug 1166307
Bug 1283871

Change-Id: Iab629231406024fa7f83c45e291991a5f49f1941
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/229915
(cherry picked from commit 6f8bc8a6feaa61825628d22614c2da99368fe1b8)
Reviewed-on: http://git-master/r/231586
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
arm:tegra:roth: only expose tfa9887 on Thor

Only expose the tfa9887 controls for power
doen on THor

Bug 1293745

Change-Id: I2418b526cb44d284cd6c887eb7fbb60775dd4a32
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/231367
Reviewed-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Input: touch: raydium: Update to Raydium v56.1 driver

1. CTS failure
2. Suspend/Resume time

Bug 1283362

Change-Id: I86f068a74c187eb8fc1f075ae646c80a953d5894
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/231660
(cherry picked from commit 10c3573c922e79d81be2d2e0812b1945d4fab0f4)
Reviewed-on: http://git-master/r/232655
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
GVS: Gerrit_Virtual_Submit
usb: gadget: tegra:Change cpu frequency boost logic

Changing the logic for boosting and unboosting
CPU frequency during USB device transfers for
performance.

Bug 1216779

Change-Id: I8b5378ee9e95c890d2cdc4a614f95e378ffb016f
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/227913
(cherry picked from commit d04550eb0e86946e9c140d966735fffccf98cdf0)
Reviewed-on: http://git-master/r/234035
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
ARM: config: tegra11:Increase GADGET_BOOST_CPU_FREQ

Increase TEGRA_GADGET_BOOST_CPU_FREQ for improving
USB throughput.

Bug 1216779

Change-Id: Ia5bb340af7eaf3d278994a8de294dcf03b64b1c8
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/234036
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
usb: gadget: mtp: increase MTP buffers

Increase the buffer size to 32KB to improve MTP throughput and
keep the first packet size to 16KB for files greater than 4GB

Bug 1168348
Bug 1216779

Change-Id: I31c78223870b788a67d628005026f6e3608df04f
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207589
(cherry picked from commit b64b3f926455e9cfdff90291525f3d5264b97dd4)
Reviewed-on: http://git-master/r/234037
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Revert "ARM: 6944/1: mm: allow ASID 0 to be allocated to tasks"

This reverts commit 45b95235b0ac86cef2ad4480b0618b8778847479.

Will Deacon reports that:

 In 52af9c6c ("ARM: 6943/1: mm: use TTBR1 instead of reserved context ID")
 I updated the ASID rollover code to use only the kernel page tables
 whilst updating the ASID.

 Unfortunately, the code to restore the user page tables was part of a
 later patch which isn't yet in mainline, so this leaves the code
 quite broken.

We're also in the process of eliminating __ARCH_WANT_INTERRUPTS_ON_CTXSW
from ARM, so lets revert these until we can properly sort out what we're
doing with the context switching.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit a0a54d37b4b1d1f55d1e81e8ffc223bb85472fa3)
Change-Id: Id3bd7c795bb84269b646e6a1344d1974d85bf094
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/221349
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Revert "ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on pre-ARMv6 CPUs"

This reverts commit b9d4d42ad901cc848ac87f1cb8923fded3645568.

Change-Id: Icdc220a988b0e6b145466148fc922b5f8e5cdba8
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/209826
(cherry picked from commit ccf463167767706377a8d7fd0ead3114ef561c02)
Reviewed-on: http://git-master/r/221350
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Revert "ARM: Remove current_mm per-cpu variable"

This reverts commit e323969ccda2d69f02e047c08b03faa09215c72a.

Change-Id: I0f44f33b4848ec8e326bd356545903ca14d0da9a
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/209827
(cherry picked from commit 9eaa0e45a75d767b0ba34b104925d00f6fb5c503)
Reviewed-on: http://git-master/r/221351
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>