5 years agovideo: tegra: host: disable gr2d power gate. rel-roth-r2 daily-2013.11.06.0_rel-roth-r2-partner
Shaoming Feng [Sat, 8 Jun 2013 05:16:11 +0000]
video: tegra: host: disable gr2d power gate.

Bug 1300659

Change-Id: Ic7854834030a5bec079da5be3ea3ccee55f13fba
Signed-off-by: Shaoming Feng <shaomingf@nvidia.com>
Reviewed-on: http://git-master/r/323900
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>
Tested-by: Manish Tuteja <mtuteja@nvidia.com>

5 years agoarm: tegra: roth: Add pwm gpio daily-2013.10.28.1_rel-roth-r2-partner daily-2013.10.28.2_rel-roth-r2-partner daily-2013.10.29.0_rel-roth-r2-partner
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/302592
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

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/302591
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

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>

5 years agoARM: kprobes: Fix kprobes build
Igor Nabirushkin [Thu, 31 Jan 2013 23:05:24 +0000]
ARM: kprobes: Fix kprobes build

Fix incorrect changes in the arch_arm_kprobe
function (commit: 3b3f4d24917c97fa75aa4fba2b09797ef94cea38)

Bug 1228659

Change-Id: Iee16e3d5f6475acd9cd08060b16d015e8757a286
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/208435
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>

5 years agoarm: tegra: roth: Enable FAST init mode for smps9
Anshul Jain [Tue, 2 Jul 2013 04:20:53 +0000]
arm: tegra: roth: Enable FAST init mode for smps9

Bug 1315200

Change-Id: If1bfc2a17d302f10b4d5439fa5e1ba5914b2fcc5
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit a85da1ba4c7249722caf3c0c75683f08cc0860e1)
Reviewed-on: http://git-master/r/246316

5 years agodrivers:misc:issp: Hold wakelock while recovery
Anshul Jain [Fri, 21 Jun 2013 21:44:53 +0000]
drivers:misc:issp: Hold wakelock while recovery

This change takes a wakelock before stating the recovery
mechanism of JS

Bug 1306389

Change-Id: I0109455647988248f1e37d5a000e1e34654e40e5
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit 7ead3698de496deb876fddc747221dc79e09997c)
Reviewed-on: http://git-master/r/246315

5 years agomisc: issp: Add usb js recovery mechanism
Anshul Jain [Fri, 21 Jun 2013 01:49:06 +0000]
misc: issp: Add usb js recovery mechanism

This change recovery the JS uC after USB resume failure by
unloading USB, resetting uC from ISSP and then reloading USB

Bug 1306389

Change-Id: I086636d4b7b91e3a2874f584fa6efbfd2cae6014
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit e10f9579dbd6e3d37b127995520b9dee036be199)
Reviewed-on: http://git-master/r/246314

5 years agodrivers:misc:issp: Reset Device on USB resume fail
Anshul Jain [Sat, 15 Jun 2013 01:10:31 +0000]
drivers:misc:issp: Reset Device on USB resume fail

This is a WAR to reset the USB device if the device
fails to resume. We assume that the resume failure is
because of the uC hang.

Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Change-Id: I6fc85cd0ce2fad7a7dbff5b6ddee0a96149a5d76
(cherry picked from commit 0c87ac97b15b35b41cf333611fa81b1ff3cff04d)
Reviewed-on: http://git-master/r/246313

5 years agovideo: tegra: dc: hdmi: calling tegra_hotplug_signal to queue deferred work
sharath sarangpur [Tue, 25 Jun 2013 02:15:26 +0000]
video: tegra: dc: hdmi: calling tegra_hotplug_signal to queue deferred work

Call tegra_hotplug_signal to queue deferred work after a delay of 30ms and call gpio_get_value
in tegra_dc_hpd

bug 1310096
bug 1298680

Change-Id: Iab37af3258429b1e281705eb5b077be31b53b07f
Signed-off-by: sharath sarangpur <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/241633
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/243635
Reviewed-by: Matt Wagner <mwagner@nvidia.com>

5 years agonet: wireless: bcmdhd: Set dpc rt thread priority to max
Mohan T [Thu, 4 Jul 2013 05:20:31 +0000]
net: wireless: bcmdhd: Set dpc rt thread priority to max

Dhd dpc rt thread is getting starved on CPU load scenarios.
NIC driver has to get the data in real time, So we need to
set dpc rt thread priority to max. RT thread with SCHED_FIFO
schedule policy priorities are in ascending order
(i.e. 1 is lowest priority, 99 is highest).

So setting the dhd_dpc_thread priority to 99 to avoid starvation.
- Set CUSTOM_DPC_PRIO_SETTING to 99

Bug 1286848

Change-Id: Iec4a9ff8f1d8c4cf70e4c9c1ec055f1a0584a346
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/244976
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agofirmware: p2560-uc firmware update v59
Jun Yan [Sat, 15 Jun 2013 02:50:29 +0000]
firmware: p2560-uc firmware update v59

v58->v59:
- Keep uC USB buffer unchanged for about 1 second when exiting suspend
  mode, in order to fix false wakeup events issue

Change-Id: I175bb0328af1840cbfe8c70e0607d7d8023e0c26
Signed-off-by: Jun Yan <juyan@nvidia.com>
(cherry picked from commit 5f337115955a3dffa7b2522c43f9844f8416bec7)
Reviewed-on: http://git-master/r/243054
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>

5 years agofirmware: p2560-uc firmware update
Jun Yan [Mon, 3 Jun 2013 22:08:14 +0000]
firmware: p2560-uc firmware update

v57->v58
-changed dead band to 38
-changed cal window to 80

Bug 1266521

Change-Id: I686ef709df77ad7d29e8cee6420683ee901a73cf
Signed-off-by: Jun Yan <juyan@nvidia.com>
(cherry picked from commit 20434a424e4c535f8105bd26a220ae6f1f999067)
Reviewed-on: http://git-master/r/237706
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>

5 years agofirmware: p2560-uc firmware update
Anshul Jain [Fri, 31 May 2013 07:07:50 +0000]
firmware: p2560-uc firmware update

v56->v57
  added changes to uC FW that will check to make sure if LED PWM timer0 == Started then check the timer0 start bit and if not set
  then set it to start running again.

v55->v56
- Bump revision to v0_56.
- Changed the following End Point 2 commands:
  LED_UC_DRIVE- This function now does Nothing. Left it in for backwards compatibility.
  (Previously this function setup the Port 1.1 pin to drive from tri-state. And also set the LED pin high (ON).)
  LED_BREATHE_ON- This function now sets up port 1.1 in a drive state from tri-state and starts timer0 for the SW PWM.
  LED_BREATHE_OFF- This function now sets up port 1.1 in a drive state from tri-state.
  Also keeps the same logic as before stopping the SW PWM timer0 and set P1.1 LED LOW (OFF).

Bug 1266521

Change-Id: I2ef12fe6c66e03d299b0135e749498d8154f3937
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit 95b376f67b759bf783c76cc6701d9103d065ada5)
Reviewed-on: http://git-master/r/237705
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agofirmware: p2560-uc update v55
Anshul Jain [Wed, 29 May 2013 17:57:48 +0000]
firmware: p2560-uc update v55

- Bump revsion to v0_55.
- Center point calibration window (power on/reset) now 40 from 80
- power on defaults for Right/Left Joystick X,Y axes are now 250 from150.
  Note: doing this makes the scaling values less granular or smaller steps on power on.
  Thus helps with RS mouse drift being a larger value just outside the center dead band.
  Noticed that the RS mouse drift can go away after moving the joysticks to its max and min points.
- power on defaults for right/left analog triggers are now 600 and 300 max/min.
  The original version had this at 300 and 700 reversed. Hence, on the very first trigger pull,
  you only had to move a very small distance to hit max.
  NOTE: Center point stiction dead band is still set to 37. Same as v52.

Bug 1266521

Change-Id: I071c9b1ef2cb837787fd4f21f0e4a6bee9aafc01
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit b2528f22257dcbd32e7e89113d5a532376ef95a5)
Reviewed-on: http://git-master/r/237704
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agobcmdhd: Add support for channel 165
bibhayr [Fri, 21 Jun 2013 07:40:36 +0000]
bcmdhd: Add support for channel 165

channel 165 is not the side band of 40MHz 5G channel

Bug 1298751

Change-Id: I9f29d11d30b1394ab097c82f97b177acd98149a2
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/240198
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: tegra:fix non-standard charger detection
Rakesh Bodla [Mon, 17 Jun 2013 11:24:43 +0000]
usb: gadget: tegra:fix non-standard charger detection

Fixing the non standard charger type detection. Also,
fix commit messages and free pm_qos request during
driver unregistration.

Bug 1281401

Change-Id: I39da0847c10c1109fa95afe16866951848b694ab
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/239297
(cherry picked from commit 2cebf65e6c30959ab7d144dd21b1e4b65b0e4065)
Reviewed-on: http://git-master/r/240245
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: gadget: tegra: set cpu normal in work context
Rakesh Bodla [Tue, 21 May 2013 06:54:41 +0000]
usb: gadget: tegra: set cpu normal in work context

Once USB transfers are completed, set cpu frequency
to normal in work context.

Bug 1292315

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

5 years agoasoc: roth: Headphone detection improvement
Scott Peterson [Tue, 28 May 2013 00:27:58 +0000]
asoc: roth: Headphone detection improvement

Improve headphone jack detection in certain
scenarios.

Bug 1296602

Change-Id: I748f7649680ad60edbc450c09027cb3b76552f8c
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/233081
(cherry picked from commit 482977e3c5e948394bdafb638dfc5a3813232a3d)
Reviewed-on: http://git-master/r/235178
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>

5 years agoarm: tegra: board support for sensors
Erik Lilliebjerg [Wed, 20 Mar 2013 07:29:32 +0000]
arm: tegra: board support for sensors

Added support for BMP180 pressure sensor and auto-detection of AKM89XX compass.

Change-Id: I3e45250e7b4e2887d79bd62a402ddcdc0d057b92
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/211081
(cherry picked from commit 00811e96be2c6ac4139a6b24b39cf44ddcf20bda)
Reviewed-on: http://git-master/r/216710
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: configs: Add BMP180 module
Erik Lilliebjerg [Tue, 19 Mar 2013 16:51:00 +0000]
arm: tegra: configs: Add BMP180 module

Add BMP180 pressure sensor driver as module.

Bug 1253718
Bug 1242566

Change-Id: Ia2de59ccbe833b9f444fb56234954729edf7b5a3
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/210854
(cherry picked from commit f891baec733e839d02c220fcb934097c29a266be)
Reviewed-on: http://git-master/r/216711
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoinput: misc: fix sysfs permissions
Erik Lilliebjerg [Thu, 6 Jun 2013 14:25:35 +0000]
input: misc: fix sysfs permissions

- Fix sysfs permissions.
- Fix raw accelerometer access.
- Fix autodetection behind MPU.
- Add self-test.

Bug 1224709
Bug 1243584
Bug 1291044
Bug 1295651
Bug 1290313
Bug 1298831

Change-Id: I55847fd158abdb9f12dc830218619c6ed7913396
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/237428
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>

5 years agodriver: sensor: change compass value from int to short
Robert Collins [Mon, 8 Apr 2013 17:35:11 +0000]
driver: sensor: change compass value from int to short

Bug 1266211

Change-Id: Ib4a9f9cd58bd526c0afd3d815b29f0a72defac79
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/217421
(cherry picked from commit 984398033a9f4c26454e2018ab025f52a115cf91)
Reviewed-on: http://git-master/r/216731
(cherry picked from commit 24cdec613f41532522fc79346e1754bb8bbc183f)
(cherry picked from commit dfd3dcd3fd3c777435c948f064aca05a953a2820)
Reviewed-on: http://git-master/r/237426
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>