Revert "mmc: patch: add fixes for wifi on endeavoru"

This reverts commit 83e09dfa93a444367b60aa46c413fd07c5b1a1dd.
arm: tegra: Added sysfs knobs for RT thresholds

Added different bias levels to RT and added the option to
modify the bias level through sysfs knobs

Bug 1003531

Reviewed-on: http://git-master/r/114271
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 654bc674034f384d8826806fb443d4e9c67b9b3b)

Change-Id: I2e647a65fb89926dd9f0b2ac3edc3dca8eb659a1
Reviewed-on: http://git-master/r/118201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
ARM: tegra: Add profile that disables runnable threads

Add profile [0, 0, 0] which effectively disables runnable threads

Bug 1003531

Change-Id: Ia45e533d5a6531b06c44c6d95f2f7cfd93cf976e
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/118219
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Revert "Modified the hot-plug governor down_delay to be 500ms instead of 2s"

This is required as it is causing performance regression for SD, eMMC and USB

Bug 1006055
Bug 1021754

This reverts commit 2f5a59bbeee465fb33d012b8dc714fa0c1637209.

Change-Id: Ie54c28859ead976b5c554191d42eb22569370063
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/118575
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
ARM: tegra: cpuquiet: Notify the cpuquiet governor when the driver is busy

Added generic busy/free notifiers that the driver can invoke to let the
governor know that it cannot process further core online/offline
requests (invoked in our case whenever we switch to the LP cluster).

Change-Id: I5e3f7f28f38806a7f87050e8d0c8d2f2cf7521aa
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/114807
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
ARM: tegra: cpuquiet: Fix cpuquiet notifiers

The notifiers now properly fire on every cluster switch

Change-Id: I381301cf62f25b49532326cc7759696c7f6797b7
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/118376
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
ARM: tegra: Ignore PmQos when disabled

The cpu hotplug drivers should only bother updating state or switching
to the G cluster if the driver is not disabled

Bug 1032096

Change-Id: Ice938b094bbf48fef47afa3915b1a48362fb256d
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/122859
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
camera: patch drivers to stock enrc2b
board-endeavoru-power: set correct mv for cam_d1v2_en and cam2_d1v2_en
board-endeavoru-power: set correct audio regulator
misc: tegra-throughput: adding throughput dev node

Creates a miscdev at /dev/tegra-throughput which gl will use to set a
target frame rate. In addition it receives notifications from dc on
flip events. On each notification the percentage ratio of the actual
frame time to the target frame time is calculated. In subsequent
changes this ratio will be reported to other modules as a throughput
hint.

Bug 991589

Change-Id: Ieaa2b2755b63d2d071de31e3ef819d4c3b51a956
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
video: tegra: host: adding throughput hint in 3dfs

adding support for using a throughput hint given by the tegra-gfx misc
device in the 3d scaling code. If throughput hint usage is enabled and
the latest throughput hint is recent enough (less than 1 second old),
the throughput hint is used to control 3d frequency scaling. Otherwise
the existing idle time percentage estimate is used.

Bug 991589

Change-Id: I68893e5ce7ef922b95ce5f5b3664eb8e1fdd4027
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116866
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
MPU6050: Disable irq when suspend all sensors

When we suspend all sensors, MPU6050 continue generating irqs.
So set MPUREG_INT_ENABLE to 0 for saving power.

Bug 1021448

Signed-off-by: Hunk Lin <hulin@nvidia.com>
Change-Id: I90acb0b5e297c61c205a20b8eb54e6164a4d5b32
Reviewed-on: http://git-master/r/119344
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prem Sasidharan <psasidharan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
misc: tegra_baseband: power: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I19296beb619cb6adc8daa02cde825aef45d8d42f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119613
Reviewed-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
misc: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ib5f433fc2ef9cf3777c34eda91b1eff8e815bcb9
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118073
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
misc: tegra-cryptodev: treat warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Iacd963ea85f9a29b79776b7cd504838d992ff1bc
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118076
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
misc: tegra-throughput: prevent division by 0

Prevent division by 0 on subsequent flip notifications at an interval
shorter than 1 micro-second.

Bug 1027664

Change-Id: I6e2f886721216fc2479adc1a24504b707c7ebe45
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/120397
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
misc: tegra-throughput: prevent race on init

prevent a race condition on initialization which could result in
multiple notifier registrations.

Bug 1027664

Change-Id: I2e7dcad159f631a7e244d43019169fdaf195bc34
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/121140
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
misc: bcm4329: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I38dac94bd0eb753c779db61f71c1e01295faa89e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120848
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
misc: tegra-throughput: warn on short frames

issue a warning on flip events less than 1 microsecond apart.

Bug 1027664
Bug 1028850

Change-Id: I5dff33baf7dc568687468beab598f3d113985c8d
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/121810
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>