5 years agousb: otg: tegra: add support for OTG Y-cable rel-roth-r3 daily-2014.02.03.0_rel-roth-r3-partner
Rakesh Bodla [Tue, 10 Dec 2013 06:55:07 +0000]
usb: otg: tegra: add support for OTG Y-cable

Below changes are made to support Y-cable
(i) Bring vbus control into OTG driver if port is OTG.
(ii) Detect Y-cable.
(iii) Add vbus_bat_chg charging regulator.

Bug 1375608

Change-Id: I41bab08ebce15d3f356c624de0b62ff8e4cc4a28
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/336278
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-on: http://git-master/r/356813
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>
Tested-by: Manish Tuteja <mtuteja@nvidia.com>

5 years agoARM: tegra: add otg driver entry for usb_vbus and vbus_bat_chg
Rakesh Bodla [Thu, 21 Nov 2013 12:42:14 +0000]
ARM: tegra: add otg driver entry for usb_vbus and vbus_bat_chg

Add the otg driver under device list for usb_vbus and
vbus_bat_chg regulators. If USB port has OTG support,
allow the OTG driver to control the vbus.

Bug 1375608

Change-Id: I86253d145a6ff966e7a4e50deee695efe8545b88
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/334358
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-on: http://git-master/r/356814
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>
Tested-by: Manish Tuteja <mtuteja@nvidia.com>

5 years agotegra: dc: enable CMU for secondary display.
Markus Hiienkari [Fri, 19 Oct 2012 14:00:20 +0000]
tegra: dc: enable CMU for secondary display.

Enable CMU for secondary display as default. If
DC type is HDMI, use sRGB-to-sRGB (limited range)
conversion configuration.

Bug 1162082
Bug 1162069
Bug 1407045

Change-Id: Ibb75ae0522fcf3aca6cffd3cfd747dfe5c6038bd
Signed-off-by: Markus Hiienkari <mhiienkari@nvidia.com>
Reviewed-on: http://git-master/r/337981
Reviewed-on: http://git-master/r/353697
Tested-by: Sanjay Singh Chauhan <schauhan@nvidia.com>
Reviewed-by: Thomas J. Meier <tmeier@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: Xuezhou Ma <xuezhoum@nvidia.com>

5 years agotegra: dc: fix HDMI CMU enable.
Markus Hiienkari [Mon, 8 Apr 2013 14:47:40 +0000]
tegra: dc: fix HDMI CMU enable.

Initialize HDMI CMU with same parameters as in
DC init when enabling it subsequently.

Bug 1162082
Bug 1407045

Change-Id: I25a7cfb75a43c49487a2a3ec7569aa89727dd4ab
Signed-off-by: Markus Hiienkari <mhiienkari@nvidia.com>
Reviewed-on: http://git-master/r/337980
Reviewed-on: http://git-master/r/353695
Tested-by: Sanjay Singh Chauhan <schauhan@nvidia.com>
Reviewed-by: Thomas J. Meier <tmeier@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: Xuezhou Ma <xuezhoum@nvidia.com>

5 years agovideo: tegra: host: disable gr2d power gate. daily-2013.12.03.0_rel-roth-r3-partner daily-2013.12.26.0_rel-roth-r3-partner
Ankita Garg [Tue, 5 Nov 2013 22:14:25 +0000]
video: tegra: host: disable gr2d power gate.

Bug 1300659

Change-Id: I7e18c696ad2616b1696312c1244f52d44b250d85
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/326830
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoi2c: tegra: Add debug prints for i2c timed out case
Chaitanya Bandi [Mon, 26 Aug 2013 11:22:28 +0000]
i2c: tegra: Add debug prints for i2c timed out case

Added debug prints for i2c timed out case to
help debug.

Change-Id: Ib0696b8237b90cd511ac224a476dede8fae60ceb
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/266050
(cherry picked from commit 3758f5013e3b9049bb0c6c8e58a60f017a825b28)
Reviewed-on: http://git-master/r/330873
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>

5 years agoALSA: usbaudio: Expose supported channel counts
Rahul Mittal [Tue, 3 Sep 2013 09:20:35 +0000]
ALSA: usbaudio: Expose supported channel counts

Add alsa controls to expose playback and capture
channels supported by the connected device

Bug 1360445

Change-Id: I812c05a1b318a756f2d1f82e63c10e48cea01db3
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/269923
(cherry picked from commit c3067e961f1e4320f006b3e9121df0c2e9142d39)
Reviewed-on: http://git-master/r/330696
Tested-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoALSA: usbaudio: Expose usb device supported sample rates
Rahul Mittal [Mon, 3 Jun 2013 15:29:03 +0000]
ALSA: usbaudio: Expose usb device supported sample rates

Add alsa control for exposing sample rate range
supported by the usb audio device

Bug 1274264
Bug 1240790

Change-Id: I6b0c43416ad61009cd287f948210aca29b62c3fc
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/235030
(cherry picked from commit 3ee6a261731ca9d07e54c47923d338ca193dfed4)
Reviewed-on: http://git-master/r/236563
(cherry picked from commit 5870ae5a1b25ce0e73164a762d27caaa46e92cbe)
Reviewed-on: http://git-master/r/330695
Tested-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agovideo: tegra: host: remove epp clock from isp
Daehyoung Ko [Wed, 24 Jul 2013 23:34:46 +0000]
video: tegra: host: remove epp clock from isp

to remove epp from the isp channel's clock list
in order to get rid of conflict for epp clock
between 2d and isp

bug 1331777
bug 1322046

Change-Id: I5625aae7b693b00668d97839c0ae5cf21bf8f460
Signed-off-by: Daehyoung Ko <dko@nvidia.com>
(cherry picked from commit 8e0ad7134904c27c27fa2dd68f7aaedb8797a94f)
Reviewed-on: http://git-master/r/323822
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

5 years agoUSB: ehci: tegra: destroy mutex when driver remove
Suresh Mangipudi [Thu, 7 Nov 2013 05:28:40 +0000]
USB: ehci: tegra: destroy mutex when driver remove

mutex_destroy to be called when the driver is removed.

BUG 1401358

Change-Id: Idb6703c01c41d241d8bdb67ca19c80a78c52b513
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/327454
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agomisc: tegra-profiler: send mapped memory regions
Igor Nabirushkin [Thu, 24 Oct 2013 13:23:11 +0000]
misc: tegra-profiler: send mapped memory regions

Tegra Profiler: send information about mapped
memory regions (on demand).

Bug 1394970

Change-Id: Idf9a3c5d2d9fac0fd622f99bd226632c810a8ab6
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309778
(cherry picked from commit 1a4a86d3faf8cd9a38cf80ed06f6a760264638be)
Reviewed-on: http://git-master/r/326028
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: backtraces from the kernel context
Igor Nabirushkin [Thu, 24 Oct 2013 11:12:53 +0000]
misc: tegra-profiler: backtraces from the kernel context

Tegra Profiler: collect backtraces from the kernel context

Bug 1394804

Change-Id: I1db7435c9e1fc753dd8c02252076287572f5f5af
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309768
(cherry picked from commit b5c40f131509f89609283a645f6e9d0b4abed365)
Reviewed-on: http://git-master/r/326027
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: backtracing for Thumb code
Igor Nabirushkin [Sun, 13 Oct 2013 17:45:06 +0000]
misc: tegra-profiler: backtracing for Thumb code

Tegra Profiler: add backtracing for Thumb code

Bug 1387645

Change-Id: I43b6be4e14aa88d23a974a0cf7fa8d6bfbbb109f
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309641
(cherry picked from commit 304e8f9f52bb2defd33640741bc639dd4375f1b0)
Reviewed-on: http://git-master/r/326026
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add /proc/quadd/status
Igor Nabirushkin [Tue, 24 Sep 2013 14:22:09 +0000]
misc: tegra-profiler: add /proc/quadd/status

Add /proc/quadd/status
It allows users to see current status of the Tegra Profiler.

Bug 1374376

Change-Id: I70d548c47bc80f6a12e3637f0af38fe74403de2d
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309638
(cherry picked from commit 895113159ac3fa814b3261446faa64d480c4f309)
Reviewed-on: http://git-master/r/326021
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add thumb flag into samples
Igor Nabirushkin [Tue, 24 Sep 2013 13:34:09 +0000]
misc: tegra-profiler: add thumb flag into samples

Tegra Profiler misc driver: thumb mode flag was
added into samples

Bug 1374335

Change-Id: If1a6b7e57071f6c9d645bc790e24cd1e3e405b6f
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309637
(cherry picked from commit fb840196820effd627abe7779907db1e7db60101)
Reviewed-on: http://git-master/r/326020
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add poll support
Igor Nabirushkin [Tue, 24 Sep 2013 13:11:06 +0000]
misc: tegra-profiler: add poll support

Tegra Profiler misc driver: add poll support

Bug 1374312

Change-Id: Id0844b3b329f348763f22b831fc73ac64f04fd9b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309634
(cherry picked from commit d8e347f4e5636fd6face6fae3db572d64d6727f0)
Reviewed-on: http://git-master/r/325990
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: send buffer fill count
Igor Nabirushkin [Tue, 24 Sep 2013 11:46:16 +0000]
misc: tegra-profiler: send buffer fill count

Tegra Profiler misc driver: transmit the maximum buffer
occupancy to the user space.

Bug 1374266

Change-Id: Id078083a5493552c1f3bb697a1d3e4a5504e3f82
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309633
(cherry picked from commit 757f16d5b83328d984feb3f37ebe6790fb42d15d)
Reviewed-on: http://git-master/r/325975
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: Enable the ozwpan (USB HCD) driver.
Todd Poynter [Thu, 31 Oct 2013 18:07:37 +0000]
arm: tegra: Enable the ozwpan (USB HCD) driver.

Enable the ozwpan USB HCD driver via CONFIG_USB_WPAN_HCD.

Bug 1394137.

Change-Id: If217707ea2f2cd215c93e7e42625abe4dc4eed4c
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/310142
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Toby Butzon <tbutzon@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agostaging: ozwpan: Update to latest drop from ATMEL.
Todd Poynter [Mon, 28 Oct 2013 18:40:01 +0000]
staging: ozwpan: Update to latest drop from ATMEL.

Update the ozwpan driver to the latest drop from ATMEL.

Bug 1394137.

Change-Id: I9069c974cb665a8be68d43536f57c3b717b570a6
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/304456
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Toby Butzon <tbutzon@nvidia.com>

5 years agoRevert "Revert "mmc: Set suspend/resume bus operations if CONFIG_PM_RUNTIME is used""
Pavan Kunapuli [Wed, 30 Oct 2013 13:59:35 +0000]
Revert "Revert "mmc: Set suspend/resume bus operations if CONFIG_PM_RUNTIME is used""

This reverts commit 866353859bcd3328dd0be84e0f0ed6d1ba834772. Moving back
suspend and resume to dev_pm_ops to ensure that bus suspend is done before
device suspend and bus resume is done after device resume. Without bus
suspend and resume, there is a chance of some requests being scheduled
after device suspend or before device resume is done.

Bug 1381236
Bug 1390987

Change-Id: I842b1e042982f8ac0547936800bbc996643c7d34
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/309911
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoarm: tegra: roth: Add pwm gpio
Anshul Jain [Tue, 22 Oct 2013 19:02:25 +0000]
arm: tegra: roth: Add pwm gpio

Add pwm gpio in fan data, so it can be accessed by pwm_fan driver.

Bug 1388303

Change-Id: I407166aac44473ec8ceaf4f8acee18b02db18d7f
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/302443
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agothermal: pwm_fan: toggle gpio in suspend/resume
Anshul Jain [Tue, 22 Oct 2013 18:59:23 +0000]
thermal: pwm_fan: toggle gpio in suspend/resume

On suspend, this change sets the gpio high.

On suspend:
free pwm
request gpio
set gpio high
On resume:
free gpio
request pwm
set pwm

Bug 1388303

Change-Id: I6905e4217dd170801d84ec98713067e5c2a53abf
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/302442
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agomisc: nct1008: Temperature bound check
Anshul Jain [Thu, 17 Oct 2013 19:53:42 +0000]
misc: nct1008: Temperature bound check

This change does bound checking of temperature reads from NCT
device, this is done to return error when NCT is not ready and
TF tries to read temperture.

Bug 1388303

Change-Id: I642ecb46feb39469c0b3b33ea513604c7ff4a893
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/300670
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agothermal: pwm-fan: lock during sysfs writes
Anshul Jain [Wed, 16 Oct 2013 03:18:57 +0000]
thermal: pwm-fan: lock during sysfs writes

This change locks the whole sysfs function to ensure
atomicity. Also, more logs are added for better visibility
during suspend and resume.

Bug 1388303

Change-Id: Iadf8bdc4309575ec42a1946ecfb28eb7654440e3
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/299756
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agomisc: therm_fan_est: Fix for suspend/resume race
Anshul Jain [Wed, 16 Oct 2013 03:15:36 +0000]
misc: therm_fan_est: Fix for suspend/resume race

Now trip index will be nullified after cancelling the work.

Bug 1388303

Change-Id: Icda3e232e98b4f504c1bebcd340b49749d1ebbc3
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/299755
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agomisc: nct1008: Suspend Lock
Anshul Jain [Wed, 16 Oct 2013 05:01:40 +0000]
misc: nct1008: Suspend Lock

Suspend lock is required to serialize suspend/resume,
get_temp from thermal framework and work queue.

Bug 1388303

Change-Id: Ib3e8873e3d2560aacd74ba02c726ec9fdc73e660
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/299754
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>

5 years agomisc: bluedroid_pm: check BT TX and RX status before wake_lock release
Nagarjuna Kristam [Thu, 27 Dec 2012 06:28:04 +0000]
misc: bluedroid_pm: check BT TX and RX status before wake_lock release

bluedroid stack, updates only TX busy status through proc interface.

When BT HID/PAN-U connection are active, high probability of data is RX only
and no activity on Tx path. So, dis-allow suspend when either of BT TX or
BT RX is active.

Bug 1381466

Change-Id: Ib174b7d95d173c34e41ce393f93fda5fa204f217
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/299894
GVS: Gerrit_Virtual_Submit
Tested-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>

5 years agoinput: touch: radyium: avoid deadlock
Xiaohui Tao [Tue, 15 Oct 2013 00:16:09 +0000]
input: touch: radyium: avoid deadlock

Fix potential deadlock in driver

Raydium drop does not fix the problem. We need to have this
temporary fix to solve the problem.

Bug 1384590

Change-Id: Ifcb56ba5db34b42af0b4d441659d7a5fdd869943
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/289969
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>

5 years agoRevert "video: tegra: dc: check ext enabled before flip"
Ankita Garg [Tue, 15 Oct 2013 22:12:38 +0000]
Revert "video: tegra: dc: check ext enabled before flip"

This reverts commit 047024eda0ce5f88ccb402ec02b6d85cae3e208b.

Bug 1386004

Change-Id: I7cde647f89f65a4b112c6c76a3b16d610fc03469
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/299639
Tested-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>

5 years agoinput: touch: raydium: import for service busy
Xiaohui Tao [Mon, 14 Oct 2013 17:36:05 +0000]
input: touch: raydium: import for service busy

Limit the number of service busy printks inside touch driver
for power saving purposes from v60.0 to v56.2.

Bug 1288488

Change-Id: I66d4fad29b90cf5eddcbb9f068596378d24ae925
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/299024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>

5 years agoARM: tegra: disable IKCONFIG and make modules built-in
Eric Miao [Fri, 4 Oct 2013 01:01:10 +0000]
ARM: tegra: disable IKCONFIG and make modules built-in

Bug 1343930

To be conform with CTS, we need to disable IKCONFIG and MODULES,
and make existing modules all built-in.

CONFIG_MODULES and relevant options are left untouched, these will
be turned OFF if it's a user build. This option is still necessary
for engineering build for out-of-tree modules and many test cases.

Change-Id: Icd858d5d707e66d4d9499de8ad358d06bc4e35d2
Signed-off-by: Eric Miao <eric.miao@nvidia.com>
Reviewed-on: http://git-master/r/281984
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agomisc: tegra-profiler: kprobes is no longer used
Igor Nabirushkin [Fri, 4 Oct 2013 21:35:23 +0000]
misc: tegra-profiler: kprobes is no longer used

Tegra Profiler: kprobes is no longer used
Use callbacks from the scheduler instead of kprobes

Bug 1343930

Change-Id: I67589dbe972cc5c853addfb6ed82c488529eed55
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/281941
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoinput: touch: raydium: release mutex in error
Xiaohui Tao [Tue, 8 Oct 2013 21:43:52 +0000]
input: touch: raydium: release mutex in error

The mutex needs to be released when there is an error inside
the rm_tch_ts_send_signal.

Bug 1384590

Change-Id: I269f1087724726c00eb31c8481dee3af577a2985
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/282913
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoinput: misc: inv: prevent IRQ revival
Sang-Hun Lee [Wed, 9 Oct 2013 21:14:24 +0000]
input: misc: inv: prevent IRQ revival

Problem description:
 - nvi_work_function may revive IRQ which was disabled
   during suspend and shutdown

Fix description:
 - Add a flag stop_workqueue which is set during suspend
   and shutdown
 - If the flag is set, make workqueue not revive the IRQ

Bug 1361923

Change-Id: I498091602ef9c43b75c0a17d7fe0837624271959
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/284347
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoinput: misc: inv: fix race in shutdown and suspend
Sang-Hun Lee [Tue, 8 Oct 2013 21:14:24 +0000]
input: misc: inv: fix race in shutdown and suspend

Problem description:
 - Write to shutdown flag is not mutex protected
 - nvi_work_func may be scheduled after shutdown or suspend
 - kfifo is being freed for shutdown, which could
   corrupt memory if there is a further access to
   kfifo by nvi_pm_exit and its function calls

Fix description:
 - Encapsulate write to shutdown flag with a mutex,
   to ensure readers get valid information
 - Wait for nvi_work_func to complete during shutdown and suspend
 - Free kfifo only during remove

Bug 1361923

Change-Id: I64dabfb21a289354e7f7c58ac408dc48bcff9267
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/283813
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomach-tegra: Enable LP0 wakeup on HDMI hotplug for board-roth.
Todd Poynter [Fri, 4 Oct 2013 17:31:43 +0000]
mach-tegra: Enable LP0 wakeup on HDMI hotplug for board-roth.

Set TEGRA_DC_OUT_HOTPLUG_WAKE_LP0 for roth_disp2_out which will
arm the GPIO wakesource when set.
Enable index WAKE4 / TEGRA_GPIO_PN7 (HDMI) as a wake source for
board-roth.

Bug 1367505.

Change-Id: I4b4e3ca458243b3b27b316ac237264a0d323ff17
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/281824
Reviewed-by: Dan Nolan <dnolan@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoinput: misc: inv: reset gyro on an interrupt storm
Sang-Hun Lee [Fri, 21 Jun 2013 04:08:23 +0000]
input: misc: inv: reset gyro on an interrupt storm

Problem description:
 - Sometimes gyro sends more interrupts than the system could handle
 - This locks up the system for a long time if the system is locked up
   at a low power cluster

Fix description:
 - If gyro sends more interrupts than the specification, disable interrupt
   and schedule a power cycle of gyro

Bug 1311053

Change-Id: Ib6a3eb2991702a4ca41657cfc57179e16ebcd11d
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/280083
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoinput: misc: Fix self-test
Erik Lilliebjerg [Mon, 29 Jul 2013 18:42:18 +0000]
input: misc: Fix self-test

- Fix self-test HW restore after test.
- Fix register write failures due to PM cycle mode.

Bug 1327608
Bug 1313284
Bug 1311053
Bug 1315609

Change-Id: I9b9fb1afc8b9a10309e0224e56813bc9e400598c
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/255171
(cherry picked from commit 029e3a6a8053e128c93b6bfc3850b74d5577ca66)
Reviewed-on: http://git-master/r/280082
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoinput: misc: sensor drivers
Erik Lilliebjerg [Mon, 8 Jul 2013 12:55:56 +0000]
input: misc: sensor drivers

- reduce suspend time for compass and pressure
- fix MPU possible interrupt storm
- fix MPU sample frequency overrun
- fix MPU 9250 support for sw_rev > 2 HW
- add BMP280 support to BMP180 pressure driver
- optimize MPU FIFO timestamp algorithm
- add compass self-test
- add data interface

Bug 1313284
Bug 1311053
Bug 1295128
Bug 1256470
Bug 1236893

Change-Id: I4ffa906c07ed1d07ad3b89aea9eb83fb153b765d
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/246132
(cherry picked from commit 8cdf5b9ccfb47477229bf2cbb37f5132e81ad39e)
Reviewed-on: http://git-master/r/248192
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agovideo: tegra: dc: WAR of SHIFT_CLK_DIV update.
Kevin Huang [Tue, 29 Jan 2013 23:12:52 +0000]
video: tegra: dc: WAR of SHIFT_CLK_DIV update.

Bug 1225291
Bug 1161019
Bug 1363029

Change-Id: I699e64a1f6464eeddae5275a55cd2b285badc698
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/195272
Reviewed-on: http://git-master/r/281537
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Rakesh Iyer <riyer@nvidia.com>

5 years agoinput: misc: mpu: Check suspend status before i2c
Xiaohui Tao [Wed, 2 Oct 2013 20:26:39 +0000]
input: misc: mpu: Check suspend status before i2c

During suspend/resume period, it is possible that the i2c transfer
still occurs after the power to the chip has already been cut. Add
shutdown to regulator control in order to avoid timeout when anyone
tries to send anything through the i2c bus when the chip has been
removed power.

Bug 1361923

Change-Id: I1cd37b56a7572955e1e8c29034d04c00c9c81e18
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/281110
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

5 years agotegra: dc: hdmi: allow LP0 wakeup by hotplug GPIO
Alexandre Courbot [Tue, 27 Aug 2013 04:22:16 +0000]
tegra: dc: hdmi: allow LP0 wakeup by hotplug GPIO

Introduce a new TEGRA_DC_OUT_HOTPLUG_WAKE_LP0 flag which can be
specified for DC controllers for which we want the HDMI hotplug
GPIO to serve as a LP0 wake source.

Bug 1345127

Change-Id: I9193be6ada4b0eca1c074c4b9a5888e3b0e49150
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/266365
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aaron Gamble <jgamble@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/281798
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-by: Kevin Bruckert <kbruckert@nvidia.com>

5 years agoARM: tegra: add wakeup sources tuning functions
Alexandre Courbot [Thu, 29 Aug 2013 03:32:35 +0000]
ARM: tegra: add wakeup sources tuning functions

Add tegra_set_wake_gpio() and tegra_set_wake_irq() functions that allow
board files to customize wakeup sources.

Wake sources are fixed and currently defined in wakeups-t11x.c. Defining
custom wake sources for a given project is difficult and can only be
done by:

1) Having compilation conditionals into wakeups-t11x.c to perform
per-board modifications (as is done for Dalmore currently), or
2) Duplicating wakeups-t11x.c and all the code it contains and compiling
the corresponding wakeups sources file for the board.

Neither or these methods can scale, and both actually break the ability
to boot the same kernel binary on different boards. This patch exports
functions that the board init functions can use to modify the wakeup
sources as they need, keeping board-specific changes into board-specific
files.

Change-Id: I2803e5a76f2fc7eaaa9bd343c904719b018357bd
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/267689
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/281795
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-by: Kevin Bruckert <kbruckert@nvidia.com>

5 years agobcmdhd: Define miracast modes 3 & 4
Srinivas [Thu, 26 Sep 2013 18:46:16 +0000]
bcmdhd: Define miracast modes 3 & 4

Improve QoS for Grid2shield stream by
turning off AMPDU aggregation on 11n AP's

Mode 3 - disable AMPDU for all CS's
Mode 4 - re-enable AMPDU except CS 5 & 7
Driver command MAXLINKSPEED added to
distinguish 11n and non-11n AP's

Bug 1375583

Change-Id: I36a6b2426ea53696fac54681fda38f91eabc8956
Signed-off-by: Srinivas <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/279441
Reviewed-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: issp: add lock for usb reset operation
Jun Yan [Mon, 30 Sep 2013 18:36:45 +0000]
misc: issp: add lock for usb reset operation

usb reset operation should be in critical region.
Add mutex lock to prevent two WARs resetting the USB
together.

Bug 1364476

Change-Id: I4c17a61a594cad496f5444e919cf101f8098da25
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/278072
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/279102
Reviewed-by: Automatic_Commit_Validation_User

5 years agomisc: issp: hold wake lock while reset
Anshul Jain [Tue, 17 Sep 2013 22:25:06 +0000]
misc: issp: hold wake lock while reset

Hold wakelock to prevent system goto LP0 again.

Bug 1364476

Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Change-Id: Id38d6dfaf6ed06a36a019d942786e09e89556875
Reviewed-on: http://git-master/r/276000
Reviewed-on: http://git-master/r/279101
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agomisc: issp: add sysfs node to control issp pins
Jun Yan [Thu, 8 Aug 2013 22:19:19 +0000]
misc: issp: add sysfs node to control issp pins

issp_reset: toggle issp reset pin.
issp_usbreset: reload usb driver and toggle issp reset pin
issp_data: read and write the state of issp_data pin
issp_clk: read and write the state of issp_clk pin

Bug 1364476

Change-Id: I3b470f0745ed002b16bdc71f661e0d18629f796f
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/259787
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/279099
Reviewed-by: Automatic_Commit_Validation_User

5 years agopower: bq2419x: Remove wdt reset print
Anshul Jain [Tue, 17 Sep 2013 00:54:59 +0000]
power: bq2419x: Remove wdt reset print

Change-Id: I1f8d19add271531bf6489e076da847582fd952f5
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/275442
Reviewed-on: http://git-master/r/279100
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>

5 years agousb: gadget: tegra: Reduce CPU boost trigger size
Rakesh Bodla [Tue, 24 Sep 2013 06:12:44 +0000]
usb: gadget: tegra: Reduce CPU boost trigger size

Decrease the CPU frequency boosting trigger size.

Bug 1343869

Change-Id: Ice4584196c053f06f58ca662dd7a4f67a7c57ab3
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/278169
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agohid: hid-input: decrease hid joystick fuzz value
Jun Yan [Thu, 5 Sep 2013 01:53:33 +0000]
hid: hid-input: decrease hid joystick fuzz value

Decrease hid fuzz value to range/1024 to enable
better joystick axis granularity on Linux/Android.

Bug 1358167

Change-Id: Ib8713bdbe1f1edaa0e963d8472afbe30b6afe909
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/276540
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dc: check ext enabled before flip
Spencer Sutterlin [Fri, 13 Sep 2013 03:46:17 +0000]
video: tegra: dc: check ext enabled before flip

Bug 1346021

Change-Id: Id7d8050d33b861da555969dd77674e49b40e159a
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/274563
(cherry picked from commit 3d9bda712bd8c449c54506f55f45103758b0d00e)
Reviewed-on: http://git-master/r/274073
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agopower: bq2419x: Fix charger type status update
Pradeep Goudagunta [Mon, 16 Sep 2013 09:39:23 +0000]
power: bq2419x: Fix charger type status update

We update charger type as AC even if the charging current
is less than 500mA.

Bug 1357573

Change-Id: I636eaaa13a2529b1d1d90559d4e634feb6771866
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/275076
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomisc: tegra-profiler: remove excess callchains
Igor Nabirushkin [Sun, 8 Sep 2013 06:43:36 +0000]
misc: tegra-profiler: remove excess callchains

Tegra Profiler: improve performance by removing
unnecessary callchains

Bug 1364258

Change-Id: Ib2b196660fbaecb9d11af65102145727aa22d110
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/272093
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add /proc entries
Igor Nabirushkin [Sat, 7 Sep 2013 11:16:57 +0000]
misc: tegra-profiler: add /proc entries

Tegra Profiler: show version and capabilities:
/proc/quadd/version
/proc/quadd/capabilities

Bug 1364258
Bug 1312406

Change-Id: I08f549557a872e719dcca5f9ef4ec05a7ae01296
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/272090
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: fix incorrect names
Igor Nabirushkin [Sat, 7 Sep 2013 07:36:23 +0000]
misc: tegra-profiler: fix incorrect names

Tegra Profiler: fix incorrect names of modules.
mmap buffers are created for each core

Bug 1364251
Bug 1312406

Change-Id: I09e9c9c09e77ab480f53e9b1601554677b2d20e0
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/272089
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

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

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

Bug 1343976

Change-Id: I684f186134db3717d4d1304c14f97dd310843cab
Reviewed-on: http://git-master/r/263972
(cherry picked from commit 949749fdd3be199823c188a8993016bd63ab12e6)
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/266164
(cherry picked from commit a1f9ad5ac420618535d8206874b1de8d475dd0cb)
Reviewed-on: http://git-master/r/273320
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agommc: tegra: 1.39V Tuning during device enumeration
Pavan Kunapuli [Tue, 23 Jul 2013 19:42:53 +0000]
mmc: tegra: 1.39V Tuning during device enumeration

Tuning at 1.39V to find a valid tap value that works at all core
voltages.
Boosting emc clock to 900MHz before setting 1.39V and releasing the
frequency after 1.39V setting is removed.

Bug 1331018

Reviewed-on: http://git-master/r/252471
(cherry picked from commit 25efc183d9f57431c379fecce0e2cc541b0fbc93)
Change-Id: Icbf009a90ba9d0bd88a5991aab2fad8f1783b823
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>

Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Change-Id: I512a29e94cb935c12a8e705da1d4478c640c9529
Reviewed-on: http://git-master/r/274994
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agommc: tegra: Sysfs for changing tap value
Naveen Kumar Arepalli [Thu, 18 Jul 2013 11:21:23 +0000]
mmc: tegra: Sysfs for changing tap value

Sysfs for changing tap value for wifi

Reviewed-on: http://git-master/r/250897
(cherry picked from commit 6028c371506333406df500da2af53b1c52f454da)
Change-Id: I08e0971c562cf1e491373173d5b3b7e5af1da6ba
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/250724
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra: roth: Mask HS200 mode support
Pavan Kunapuli [Sun, 12 May 2013 11:26:28 +0000]
ARM: tegra: roth: Mask HS200 mode support

Mask HS200 mode support for sdmmc4.

In DDR50 mode for eMMC can support max clock of 52MHz. For Tegra sdmmc
controllers, the host clock in ddr mode should be double that of the
eMMC device. Taking into consideration the dvfs tables, limiting ddr
mode clock to 51MHz to allow for lower core voltages to set even when
sdmmc4 clock is ON.

Bug 1287739
BUg 1324297

Reviewed-on: http://git-master/r/230048
(cherry picked from commit d7214ec63a22383be14ee4f1fb424ad8e0f00364)
Change-Id: Ib04dce91d771ab5505dd67ea3a8d5c704d0b499e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>

Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Change-Id: I539439a3ccff3f75a25ea13198aa6267a7293dca
Reviewed-on: http://git-master/r/274993
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agommc: Limit MMC speed to 52MHz if not HS200
Al Cooper [Fri, 30 Nov 2012 15:53:35 +0000]
mmc: Limit MMC speed to 52MHz if not HS200

If "caps2" host capabilities does not indicate support for MMC
HS200, don't allow clock speeds >52MHz. Currently, for MMC, the
clock speed is set to the lesser of the max speed the eMMC module
supports (card->ext_csd.hs_max_dtr) or the max base clock of the
host controller (host->f_max based on BASE_CLK_FREQ in the host
CAPS register). This means that a host controller that doesn't
support HS200 mode but has a base clock of 100MHz and an eMMC module
that supports HS200 speeds will end up using a 100MHz clock.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
(cherry picked from commit ccb52a00fd3fdea428e29816cbacb0a78090d474)

Reviewed-on: http://git-master/r/227758
(cherry picked from commit ed5cc4ef1e8bcdae292b6f234dbb7054cf5542cb)
Change-Id: I2967fcc733b7178bdf54d6f75f65bdff253fc1cc
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>

Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Change-Id: Iac4fda7a964c2a7791d62046376800de4f7a26bd
Reviewed-on: http://git-master/r/274992
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agommc: core: fix the decision of HS200/DDR card-type
Seungwon Jeon [Wed, 25 Apr 2012 07:17:37 +0000]
mmc: core: fix the decision of HS200/DDR card-type

Current implementation decides the card type exclusively. Even though
eMMC device can support both HS200 and DDR mode, card type will be
set only for HS200. If the host doesn't support HS200 but has DDR
capability, then DDR mode can't be selected.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
(cherry picked from commit 96cf5f02aee8bbeff38824b18b9ec583d687f846)

Reviewed-on: http://git-master/r/227757
(cherry picked from commit 084aa8cc074b0e95883934f82f5521d0cc5e0941)
Change-Id: Id2b9095f8ffe59c520850acd40681a9ef15c3ff9
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>

Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Change-Id: I3bb070fdb724b817de4475a77c3191b77e654243
Reviewed-on: http://git-master/r/274991
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoregulator:palmas: Sysfs node to change smps45 mode
Anshul Jain [Fri, 19 Jul 2013 00:11:36 +0000]
regulator:palmas: Sysfs node to change smps45 mode

This change creates a sysfs node
/sys/bus/platform/devices/palmas-pmic/auto_smps45_ctrl

echo 1 : force multi phase mode
echo 0: auto phase selection

Bug 1323712

Change-Id: Ibbac78cf841b1cda3444ad388426a0da4a67c38a
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit 4bd6aa227ef632c0bf32761262799490c6aa33bf)
Reviewed-on: http://git-master/r/253685
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra11: dvfs: Update T40T frequency limits
Alex Frid [Thu, 18 Jul 2013 19:18:21 +0000]
ARM: tegra11: dvfs: Update T40T frequency limits

Change-Id: I25851ce78f034ac592a0bd39ded1444f0a7e230d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251056
(cherry picked from commit 5fae13057d44640c55a2fe5e09e118b6bacebd92)
Reviewed-on: http://git-master/r/253674
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: roth: Limit SD card clock to 82MHz
Pavan Kunapuli [Tue, 23 Jul 2013 10:45:24 +0000]
ARM: tegra: roth: Limit SD card clock to 82MHz

Limiting SD card clock to 82MHz to ensure that the tap values
obtained through tuning work with the full core voltage range
even with boost mode enabled

Reviewed-on: http://git-master/r/252371
(cherry picked from commit 0d07482e116768eb1dc413c940f4168e609a11fe)
Change-Id: I562bb651d8eca8d412ea464cfbdca1b692783e55
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/253716
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoARM: tegra11: clock: Add emc and host1x sysfs floors
Alex Frid [Wed, 17 Jul 2013 21:23:25 +0000]
ARM: tegra11: clock: Add emc and host1x sysfs floors

Change-Id: Ia8bf319da85914e748c4a88877433e6c45667ef1
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250565
(cherry picked from commit 025b4feb4254f31a748ff926b225ffbde7960f1c)
Reviewed-on: http://git-master/r/253682
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: clock: Add sysfs interface for bus floors
Alex Frid [Wed, 17 Jul 2013 05:47:55 +0000]
ARM: tegra: clock: Add sysfs interface for bus floors

Added mechanism to install sysfs objects for tegra shared bus floors.
Currently no floor objects are installed.

Change-Id: I20e1a1448ee799a5ec59087f3214b77a80c05408
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250564
(cherry picked from commit caf42e72c877189dfc3b75d3d9d21fb2d2491fef)
Reviewed-on: http://git-master/r/253681
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: clock: Expand host1x shared bus
Alex Frid [Sat, 8 Jun 2013 07:09:21 +0000]
ARM: tegra11: clock: Expand host1x shared bus

Add cap, floor, and override shared users to host1x bus. Attached cap
user to core cap interface.

Change-Id: I20bf5f346f422d7f2cbd97a445f00847e8761ac8
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250563
(cherry picked from commit 01be9d99e4593df6fc149497d14bc4903e2bdd7e)
Reviewed-on: http://git-master/r/253680
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: clock: Re-factor host1x bus
Alex Frid [Sat, 8 Jun 2013 06:42:11 +0000]
ARM: tegra11: clock: Re-factor host1x bus

- Set host1x dev_id = "host1x" and con_id = NULL (these definitions
were used before conversion of host1x to shared bus; during conversion
ids were inadvertently swapped - restored now)
- Renamed host1x bus shared users to be consistent with other shared
buses

Change-Id: Iecf1f27681658c69fc63ed71c99d62ae86d9f30b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250562
(cherry picked from commit a96193452c05aca8596659a3a2f4346ad1818306)
Reviewed-on: http://git-master/r/253679
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: clock: Add host1x shared bus
Alex Frid [Sat, 4 May 2013 03:08:12 +0000]
ARM: tegra11: clock: Add host1x shared bus

Change-Id: Ie63f856727f9ba9f93e6c75b7bd5fb80357448a4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250561
(cherry picked from commit 2899d88dd8afa1971f2c1b09b7039852a65a5f4f)
Reviewed-on: http://git-master/r/253678
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: clock: Update emc monitor preset mechanism
Alex Frid [Tue, 9 Apr 2013 05:07:24 +0000]
ARM: tegra: clock: Update emc monitor preset mechanism

- Allowed per-SoC code to select emc monitor preset rate.
For now, rounded down boot rate is used as monitor preset rate
(round down to not over-clock on boot).

- Skipped emc clock update when monitor preset rate is set, but not
yet enabled (to avoid temporary dip in EMC rate). EMC rate is updated
only when monitor preset is enabled.

- Preset EMC monitor rate after iso usage table is initialized.

Signed-off-by: Alex Frid <afrid@nvidia.com>
Change-Id: I2b724df9dc95231d6a5760171aa18bd10bdb409a
Reviewed-on: http://git-master/r/250525
(cherry picked from commit 0a3c757d15fc8360ba54e123907dbb4dd46c8d22)
Reviewed-on: http://git-master/r/253677
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: clock: Preset EMC monitor rate
Alex Frid [Sun, 3 Mar 2013 03:37:42 +0000]
ARM: tegra11: clock: Preset EMC monitor rate

Use EMC boot rate as EMC monitor output reading during initialization
until actual monitoring starts.

Bug 1239168

Change-Id: I64d397623eeafe459769db106d0bfe80223f654f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250524
(cherry picked from commit 157a08636241aeb0886807190ab7d83b7e226c7b)
Reviewed-on: http://git-master/r/253676
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: clock: Record boot rates for all clocks
Alex Frid [Sun, 17 Feb 2013 08:46:46 +0000]
ARM: tegra: clock: Record boot rates for all clocks

Change-Id: Iea43edd693d1489aa87eff893a1cfcfca1379552
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250523
(cherry picked from commit 42ce0d9e5770de7452f487493d033fece17bce88)
Reviewed-on: http://git-master/r/253675
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: clock: Add cbus fine granularity region
Alex Frid [Tue, 16 Jul 2013 19:43:15 +0000]
ARM: tegra11: clock: Add cbus fine granularity region

Added fine granularity region to cbus possible rates. In this region
requested cbus rate is not clipped to dvfs steps, but rounded to fine
granularity resolution. The latter is set as 12MHz, and the region is
defined as 5 resolution steps below the top dvfs rate, assuming this
top rate is reachable on the particular chip bin/sku.

Change-Id: If1096ae068367819e64c55172c1a1c0a46c38b86
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250033
(cherry picked from commit 0c7b83bffdf79615bf15301f8643ac1dfabdefd9)
Reviewed-on: http://git-master/r/253673
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: dvfs: Update T40T tables and limits
Alex Frid [Fri, 12 Jul 2013 02:50:22 +0000]
ARM: tegra11: dvfs: Update T40T tables and limits

Updated dvfs and edp tables, clock and voltage limits for T40T part.

Change-Id: Ic256a6f3aa8026c96443ecc33204309275fcbe2e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250032
(cherry picked from commit d4add7fa3c1f5d26cb3a39e3431ca7c3fdb849e4)
Reviewed-on: http://git-master/r/253672
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: power: Add T40T core edp tables
Alex Frid [Sat, 13 Jul 2013 05:22:28 +0000]
ARM: tegra11: power: Add T40T core edp tables

Change-Id: Id5c2163224cdb1c862ef708e0790d99e4f04775e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250031
(cherry picked from commit 8c0649dc948f198068cce0086210309761194f82)
Reviewed-on: http://git-master/r/253671
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: dvfs: Don't throttle T40T nominal voltage
Alex Frid [Sat, 13 Jul 2013 03:36:22 +0000]
ARM: tegra11: dvfs: Don't throttle T40T nominal voltage

On T40T parts removed throttling of nominal voltage by boot core edp.
Used the latter to specify detached mode (boot, disable, suspend)
limits.

Change-Id: Ifa846ec8c7cb79df91b80cc81ffdef0f02a45372
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250030
(cherry picked from commit 08f29bd004f440272fdf75bf198638e9aceb8424)
Reviewed-on: http://git-master/r/253670
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: dvfs: Decouple nominal and detached voltages
Alex Frid [Sat, 13 Jul 2013 02:58:41 +0000]
ARM: tegra: dvfs: Decouple nominal and detached voltages

DVFS rail nominal voltage is minimum voltage required to run all
associated clocks at maximum allowed rates. DVFS rail can be detached
from clocks during initial boot, on suspend entry/exit, or when
voltage scaling is disabled. So far, rail voltage in any detached mode
was set to nominal level. This commit introduced separate voltages for
each detached mode. If any of these levels is not specified, backward
compatible nominal voltage is used.

Since, suspend voltage may now be different from nominal (below), it
is important for dvfs to suspend after suspend edp rate caps are set,
and resume before edp. Hence, priorities of dvfs suspend notifiers
were adjusted accordingly.

Change-Id: Id05e0b16f24dc7d28b1ee9e87afd63d98a9ab86e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250029
(cherry picked from commit 57d1ea085f098f43db40a9484e5f9d13ec49a45b)
Reviewed-on: http://git-master/r/253648
Tested-by: Shaoming Feng <shaomingf@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agonetfilter: xt_qtaguid: Allow tracking loopback
JP Abgrall [Thu, 7 Feb 2013 01:40:07 +0000]
netfilter: xt_qtaguid: Allow tracking loopback

In the past it would always ignore interfaces with loopback addresses.
Now we just treat them like any other.
This also helps with writing tests that check for the presence
of the qtaguid module.

Bug 1343922

Change-Id: I55d31277056d24172d22d32ad26c47dc8c55250a
Signed-off-by: JP Abgrall <jpa@google.com>
Reviewed-on: http://git-master/r/270087
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agodriver: led: Avoid calling pwm_disable and pwm_enable
Jun Yan [Thu, 25 Jul 2013 20:35:27 +0000]
driver: led: Avoid calling pwm_disable and pwm_enable

These two routines use semaphore to protect pwm resource.
However they can be called via led timer ISR, thus causing
linux BUG. Remove the call to these two functions and use
pwm_config instead

Bug 1333079

Change-Id: I6db788218f74c030956272ee0fcb9c7ec8a0652f
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/253619
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
(cherry picked from commit 65c8a35800bcd61ee5287a4c723380cae7a1d105)
Reviewed-on: http://git-master/r/269659

5 years agomisc: tegra-profiler: Do not expose kernel IPs
Igor Nabirushkin [Tue, 20 Aug 2013 05:12:27 +0000]
misc: tegra-profiler: Do not expose kernel IPs

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

Bug 1312406
Bug 1349673

Change-Id: I2934c3d92fb9aa88b397bf468bc69fbffc065a90
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/263688
GVS: Gerrit_Virtual_Submit
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agocrypto: tegra-se:Correct RSA context save sequence
Shravani Dingari [Fri, 23 Aug 2013 08:29:12 +0000]
crypto: tegra-se:Correct RSA context save sequence

While saving LP0 context, save RSA modulus first and
then RSA exponent

Bug 1346862

Change-Id: I1865ca0b810bc622e9e7f205aa90ad0e05913620
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/265321
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoaudio:Remove i2s enable/disable for tfa powerdown.
Vinod Subbarayalu [Wed, 21 Aug 2013 18:02:52 +0000]
audio:Remove i2s enable/disable for tfa powerdown.

Bug: 1333902

Change-Id: I201720cd976fa61a51a793c8d67be6bf304e7b76
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-on: http://git-master/r/264482
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agotegra11: config: enable selinux to permissive mode
James Zhao [Tue, 20 Aug 2013 20:46:35 +0000]
tegra11: config: enable selinux to permissive mode

- Enable SELinux for JB MR2
- Set config option AUDIT, EXT4_FS_SECURITY for SELinux
  dependency

Change-Id: I03a218ca421cc3337a82aca99e6c784732e6e650
Signed-off-by: James Zhao <jamesz@nvidia.com>
Reviewed-on: http://git-master/r/257184
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoaudio:Support Tfa9887 at different samplerate
Vinod Subbarayalu [Thu, 1 Aug 2013 23:03:53 +0000]
audio:Support Tfa9887 at different samplerate

Configure Tfa9887 at 16k for voip+nvoice usecase.
Add missing copyright info.

Change-Id: I080e874510255f1b2a4bf7d8045ef8fa6e2faadc
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-on: http://git-master/r/257042
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

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

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

Bug 1312406

Change-Id: Ibf268000dfcba4046c499f734c368a0854d0f942
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/258236
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>

5 years agomisc: tegra-profiler: allocate memory on demand
Igor Nabirushkin [Wed, 31 Jul 2013 11:17:47 +0000]
misc: tegra-profiler: allocate memory on demand

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

Bug 1312406

Change-Id: Idc5e8365e38b7faca236e011d9e665f53ac992e6
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/256309
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agonet: wireless: bcmdhd: Ensure OOB interrupt is registered
Michael Hsu [Wed, 24 Jul 2013 19:34:54 +0000]
net: wireless: bcmdhd: Ensure OOB interrupt is registered

Ensure OOB interrupt is always registered when bus is active.

Fixes this bug:
If there was an SDIO error during the initial firmware download,
the OOB interrupt will not get registered. Then, on subsequent
device resets, the code for registering OOB interrupt did not
get called again - causing a persistent wifi failure.

Bug 1327983

Change-Id: Ie0bca0a1ae757074140cc78e9b7c44175eec8581
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/253016
(cherry picked from commit c3602b567c7c15b0a78bf2a7ba63adc45fa786c5)
Reviewed-on: http://git-master/r/258418
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agobcmdhd: adds sysfs control "idletime" at "/sys/kernel/bcmdhd/idletime"
bibhayr [Wed, 24 Jul 2013 07:25:53 +0000]
bcmdhd: adds sysfs control "idletime" at "/sys/kernel/bcmdhd/idletime"

1.idletime can be controlled by accessing this file on the sysfs
2.read current value by "cat /sys/kernel/bcmdhd/idletime"
3.set by "echo X > /sys/kernel/bcmdhd/idletime"

set idletime value to "0" before starting sd tuning.
After sd tuning done, restore idletime value(currently, it is "5").

Bug 1332062

Change-Id: Ifb74ee3e30a8f2b5a064d476d6253bd085f6bda8
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/252786
GVS: Gerrit_Virtual_Submit
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agommc: tegra: Don't skip tuning for 2nd core voltage
Naveen Kumar Arepalli [Mon, 22 Jul 2013 10:50:09 +0000]
mmc: tegra: Don't skip tuning for 2nd core voltage

Even if nominal_vcore_tun_done, override_vcore_tun_done are set
don't skip tuning for 2nd core voltage.

Bug 1330031

Reviewed-on: http://git-master/r/242764
(cherry picked from commit 57b7008d0ad3cfdea888416e8b1db3ebb0c7cda7)
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Change-Id: I0f2b0b755b82ecb8d584d00f5b627fb3c82f05cb
Reviewed-on: http://git-master/r/254829
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agommc: tegra: full win should be 50% of partial win
R Raj Kumar [Wed, 17 Jul 2013 11:50:07 +0000]
mmc: tegra: full win should be 50% of partial win

Continue tuning procedure for full window calculation,
for the full window size is greater or equal to 50% of
partial window size, else choose partial window.

Bug 1320353

Reviewed-on: http://git-master/r/250260
(cherry picked from commit c9c82cd6ae70e5bab292680f34269f09ae7b25d4)
Change-Id: Ibe8e800cfcb106976bedd51e1be3b38fe3904d8f
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/254826
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra11: dvfs: Update CPU dvfs tables
Alex Frid [Sat, 18 May 2013 01:24:19 +0000]
ARM: tegra11: dvfs: Update CPU dvfs tables

Bug 1291764

Change-Id: I92c652e9ecbec366c017ab2eda0e51b1dd42cb17
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/230033
(cherry picked from commit 8c42909312f5082d3e62f0fbc7b0556e7aed099d)
Reviewed-on: http://git-master/r/242587
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>

5 years agoARM: tegra11: dvfs: Update DVFS
Matt Wagner [Tue, 11 Jun 2013 23:14:43 +0000]
ARM: tegra11: dvfs: Update DVFS

Set CPU Vmin in DFLL mode 1.0V
Change the tune high voltage to 1050mV

Bug 1291764

Change-Id: I84a6854b0d7c85e602a6bc21d3fcb497613e5cae
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/242586
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>

5 years agoARM: tegra: config: set panic timeout 5 secs
Jean Huang [Fri, 14 Jun 2013 20:42:17 +0000]
ARM: tegra: config: set panic timeout 5 secs

Change-Id: I342d1f1505caedabaefa0b2f0eb5dccdf5046bca
Signed-off-by: Jean Huang <jeanh@nvidia.com>
(cherry picked from commit 7b01f4f1251efc02b2688c60fec162462f9c3aae)
Reviewed-on: http://git-master/r/246201
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agousb: gadget: tegra: fix schedule work for non-std charger
Rohith Seelaboyina [Fri, 19 Jul 2013 10:43:29 +0000]
usb: gadget: tegra: fix schedule work for non-std charger

Work is scheduled to detect non-standard charger
whenever can_pullup is successful.

Bug 1316950

Change-Id: I8c8b7eb381d311273a77f039964601d5b2535bb2
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/251164
(cherry picked from commit 7d9bf6522525659f68559c077c817e0305765da7)
Reviewed-on: http://git-master/r/252724
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoarm: tegra: thor: fix wlan-bt power sequence
Michael Hsu [Fri, 7 Jun 2013 04:13:08 +0000]
arm: tegra: thor: fix wlan-bt power sequence

Use mutexes to prevent concurrent wifi / bluetooth turn
on sequence.

Bug 1302412
Bug 1215325

Change-Id: Icd086b616af2f5ccbff7968d613310c365ad549a
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/236533
(cherry picked from commit 3d4c996407fc1b98464a2e148619f4b8fb6a8de0)
Reviewed-on: http://git-master/r/238184
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>

5 years agohwmon: ina3221: ignore cpu notification when off
Jun Yan [Tue, 21 May 2013 00:35:50 +0000]
hwmon: ina3221: ignore cpu notification when off

When ina3221 is in suspend mode or off mode, ignore all cpu
notifications

Bug 1283995

Change-Id: I5c6bf66bfb401ce697b18828fbcb34ed916bfe3e
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/230999
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>

5 years agoinput: touch: raydium: re-enable cpu boosting code
Yogish Kulkarni [Wed, 12 Jun 2013 13:06:02 +0000]
input: touch: raydium: re-enable cpu boosting code

NV_ENABLE_CPU_BOOST was enabled based on ENABLE_AUTO_SCAN. Raydium
v55 drop removed ENABLE_AUTO_SCAN macro, that caused cpu boosting
logic to be always disabled. Re-enable cpu boosting code.

Bug 1306792

Change-Id: Ic4dcbaa515b1c09b46fc095fb651984e37b80785
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
(cherry picked from commit da13b7aa1f7464b39d4e2debe048e16f9ce33a2e)
Reviewed-on: http://git-master/r/238027
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: usb: Increase CPU frequency range
Rakesh Bodla [Fri, 8 Mar 2013 12:17:02 +0000]
ARM: tegra: usb: Increase CPU frequency range

Now tegra chips cpu frequency has increased and updating
the range accordingly.

Bug 1216779

Change-Id: I57d530bcc5f4b8d5969ed7b5ffc21987e23809e8
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207587
(cherry picked from commit e338bb00cb8e4b286147add38e652221b91ff73c)
Reviewed-on: http://git-master/r/247769
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: defconfigs: Enable Tegra profiler
Igor Nabirushkin [Wed, 26 Jun 2013 11:37:24 +0000]
ARM: defconfigs: Enable Tegra profiler

Enable Tegra profiler for Tegra platforms

Bug 1312406

Change-Id: If1bf645d40fec2de7ffcd17ac260deb0f8c2a4ee
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/242401
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>

5 years agoARM: tegra: Add Tegra Profiler
Igor Nabirushkin [Wed, 26 Jun 2013 11:21:17 +0000]
ARM: tegra: Add Tegra Profiler

Add Tegra Profiler kernel misc driver

Bug 1312406

Change-Id: Ifeadff529dbc949c40f91534fa059fde2b5f76b4
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/242395
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>