linux.git
10 years agodrivers:misc:issp: Reset Device on USB resume fail
Anshul Jain [Sat, 15 Jun 2013 01:10:31 +0000 (18:10 -0700)]
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

10 years agovideo: tegra: dc: hdmi: calling tegra_hotplug_signal to queue deferred work
sharath sarangpur [Tue, 25 Jun 2013 02:15:26 +0000 (19:15 -0700)]
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>
10 years agonet: wireless: bcmdhd: Set dpc rt thread priority to max
Mohan T [Thu, 4 Jul 2013 05:20:31 +0000 (10:50 +0530)]
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>
11 years agofirmware: p2560-uc firmware update v59
Jun Yan [Sat, 15 Jun 2013 02:50:29 +0000 (19:50 -0700)]
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>
11 years agofirmware: p2560-uc firmware update
Jun Yan [Mon, 3 Jun 2013 22:08:14 +0000 (15:08 -0700)]
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>
11 years agofirmware: p2560-uc firmware update
Anshul Jain [Fri, 31 May 2013 07:07:50 +0000 (00:07 -0700)]
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

11 years agofirmware: p2560-uc update v55
Anshul Jain [Wed, 29 May 2013 17:57:48 +0000 (10:57 -0700)]
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

11 years agobcmdhd: Add support for channel 165
bibhayr [Fri, 21 Jun 2013 07:40:36 +0000 (13:10 +0530)]
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>
11 years agousb: gadget: tegra:fix non-standard charger detection
Rakesh Bodla [Mon, 17 Jun 2013 11:24:43 +0000 (16:54 +0530)]
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>
11 years agousb: gadget: tegra: set cpu normal in work context
Rakesh Bodla [Tue, 21 May 2013 06:54:41 +0000 (12:24 +0530)]
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>
11 years agoasoc: roth: Headphone detection improvement
Scott Peterson [Tue, 28 May 2013 00:27:58 +0000 (17:27 -0700)]
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>
11 years agoarm: tegra: board support for sensors
Erik Lilliebjerg [Wed, 20 Mar 2013 07:29:32 +0000 (00:29 -0700)]
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>
11 years agoarm: tegra: configs: Add BMP180 module
Erik Lilliebjerg [Tue, 19 Mar 2013 16:51:00 +0000 (09:51 -0700)]
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>
11 years agoinput: misc: fix sysfs permissions
Erik Lilliebjerg [Thu, 6 Jun 2013 14:25:35 +0000 (07:25 -0700)]
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>
11 years agodriver: sensor: change compass value from int to short
Robert Collins [Mon, 8 Apr 2013 17:35:11 +0000 (10:35 -0700)]
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>
11 years agoinput: misc: compass: akm89xx: fix memory leak and race on accessing inf
David Yu [Tue, 23 Apr 2013 06:41:08 +0000 (15:41 +0900)]
input: misc: compass: akm89xx: fix memory leak and race on accessing inf

Bug 1276763

Change-Id: Ia16541ac45642c4758b55f041a6c3bc89dc6a00f
Signed-off-by: David Yu <davyu@nvidia.com>
(cherry picked from commit 8933e396c73d6ad7d8c1621649ef57fd6d32f534)
Reviewed-on: http://git-master/r/237425
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: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
11 years agoinput: misc: compass: akm89xx: add support for device tree
David Yu [Thu, 11 Apr 2013 04:07:37 +0000 (13:07 +0900)]
input: misc: compass: akm89xx: add support for device tree

Bug 1260300
Bug 1173064

Change-Id: I1cd32f31126ed08e13c731e3d40ceb2ca6052048
Signed-off-by: David Yu <davyu@nvidia.com>
(cherry picked from commit 58a1297474a500e21db87711410497b75c21c484)
Reviewed-on: http://git-master/r/237424
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>
11 years agoinput: misc: sensor drivers
Xiaohui Tao [Wed, 5 Jun 2013 23:03:10 +0000 (16:03 -0700)]
input: misc: sensor drivers

Sensor drivers for MPU, compass, and pressure.
New features include:
- Improved power management
- Completely powers off when not in use.
- Individual axis power control.
- Auto low power accelerometer.
- HW motion detection that gets an IRQ only when orientation changes.
- Improved performance
- Auto detect POR readiness.
- Auto detect reset/error completion.
- HW access only when needed.
- Streamlined execution path.
- Separate reset control.
- Runtime changes only affect the device being changed (removed carpet
          bombing global resets and disable/enables).
- Separate sample rate for each device.  A device not enabled doesn't inhibit
  a faster rate for an enabled device.
- Multiple MPU slave devices.
- Auto detection of MPU slave devices and allowing an external driver for a
  slave device to use or not use the MPU.
- External bypass mode.  Any external driver can control and lock the MPU
  I2C master bypass mode.
- Improved FIFO control.  Support for all devices to use the FIFO.
- Separate reporting rate for each device.
- Improved timestamping by taking a timestamp before and after the sample and
  using the average.
- Allows generic class driver for slave devices.  All drivers conform to a
  standard API.
- Automatically handle configuration steps to enable a device and make run-time
  changes.
- Improved debug support and added a debug API.
- Add BMP180 pressure driver.
- Added compass high speed feature where compass doesn't prevent the MPU
  devices from going faster than 100Hz.  Needed for camera.
- Added support for 8kHz Gyro and 1kHz accelerometer.  Needed for camera.
- Added support to populate Android sensor_t structure from kernel data.

Bug 1212893
Bug 1161345
Bug 930909
Bug 1224709
Bug 1058689
Bug 1030747
Bug 980723

Change-Id: Ic0a38f015691cfaca1bc3e72422d5980eddc1265
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/210592
(cherry picked from commit 90e7c6b815a591eb0bac120c8b595766f2196ecb)
Reviewed-on: http://git-master/r/216709
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
11 years agoRevert "input: misc: MPU sensor disable LPA"
Xiaohui Tao [Wed, 5 Jun 2013 22:40:00 +0000 (15:40 -0700)]
Revert "input: misc: MPU sensor disable LPA"

Plan to merge new driver for sensor. This change is no longer needed.
This reverts commit e0a3ba3b906cda0c54242c37e1fb5e03af5ba562.

Change-Id: Ib2be166cb40d77577603b64f73838c9c4004ea5f
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/236063
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agommc: sdhci: Remove command time out print statement
Naveen Kumar Arepalli [Thu, 23 May 2013 11:46:52 +0000 (17:16 +0530)]
mmc: sdhci: Remove command time out print statement

1. Remove command time out print statement, huge number of
these prints will cause device hang.
2. There is a sys fs interface to identify the number of
time out errors occured for an sdmmc device

Bug 1274359
BUg 1299713

Reviewed-on: http://git-master/r/232125
(cherry picked from commit 5d3ecf92c7ff03dca180776e245a94d2c3ee5e6c)
Change-Id: I428f4fc60b99142e782514f2f06f66759082de5b
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/237468
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
11 years agonet: wireless: bcmdhd: new driver version 1.28.28.4
bibhayr [Fri, 31 May 2013 06:56:57 +0000 (12:26 +0530)]
net: wireless: bcmdhd: new driver version 1.28.28.4

- Changed to take module parameter "disable_proptx" to avoid
  recompilation for P2P certification test.
- Fixed driver to recover properly from hang event.
- Fixed error log generated by deauthorization on virtual interface.

Driver attached in the bug

Bug 1247033

Change-Id: Ib57a25d2d7209188d16e363582bf3be779654bea
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/234433
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
11 years agoinput: misc: Add orientation vector in header file
Xiaohui Tao [Thu, 30 May 2013 17:55:41 +0000 (10:55 -0700)]
input: misc: Add orientation vector in header file

Add orientation vector in header file in order for better
management

Change-Id: Ic128afc49f169f534356fdec2e1381ccd09acc6b
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/237427
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
11 years agopower: bq2419x: disable otg for 30s when fault happens
Syed Rafiuddin [Fri, 10 May 2013 15:12:51 +0000 (20:42 +0530)]
power: bq2419x: disable otg for 30s when fault happens

disable OTG mode when over temprature and over current
interrupt occurs and re-enable OTG mode after 30sec.

Bug 1285652

Change-Id: I20aeddc61a26e1e9930d99170e313fc2610e8dbe
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/226994
(cherry picked from commit 4e8d08beb0a8659862018eda355c845167adac9d)
Reviewed-on: http://git-master/r/228770
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
11 years agosched,rt: disable rt_runtime borrowing by default
Mike Galbraith [Thu, 30 May 2013 21:01:25 +0000 (14:01 -0700)]
sched,rt: disable rt_runtime borrowing by default

Make the default RT_RUNTIME_SHARE setting reflect the most common
throttle role, that of safety mechanism to protect the box.

Bug 1269903

Change-Id: Id4ccf0095ea254f2e15fddc7ab02069f7f60a7c0
Signed-off-by: Mike Galbraith <bitbucket@online.de>
Reviewed-on: http://git-master/r/234274
(cherry picked from commit be74a12c8d8b987f569cdd0eec2aead3dcbdfa31)
Reviewed-on: http://git-master/r/237266
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
GVS: Gerrit_Virtual_Submit

11 years agovideo: tegra: host: Do not reset MC on powerup_reset
Matt Wagner [Tue, 4 Jun 2013 11:37:58 +0000 (04:37 -0700)]
video: tegra: host: Do not reset MC on powerup_reset

Change-Id: I2158918b6a22a4ceeadecdfa5a51fc87a624a105
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/235510
(cherry picked from commit e9d814ed83329fe74bc11c600a479a5190bf6fc5)
Reviewed-on: http://git-master/r/236372
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agovideo: tegra: host: Disable Powergate for T114 3d
Matt Wagner [Fri, 31 May 2013 05:58:44 +0000 (22:58 -0700)]
video: tegra: host: Disable Powergate for T114 3d

Change-Id: Ib87ff58487c324124987a563fc0621d8f8482784
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/234417
(cherry picked from commit 22f96e5a4485ccc995afe4d4f15a252a79d11684)
Reviewed-on: http://git-master/r/236371
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoARM: tegra: dvfs: Don't fail same level override request
Alex Frid [Thu, 2 May 2013 23:32:52 +0000 (16:32 -0700)]
ARM: tegra: dvfs: Don't fail same level override request

When new VDD_CORE override level is the same as the one already in
place do not return error from the override API.

Bug 1280293

Change-Id: Ic4393541308139c2ac9579acc8e2af47b144d521
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/225037
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Tested-by: Matt Wagner <mwagner@nvidia.com>
11 years agoasoc: tegra: Roth: check NULL pointers
Scott Peterson [Fri, 7 Jun 2013 21:44:55 +0000 (14:44 -0700)]
asoc: tegra: Roth: check NULL pointers

Check for NULL pointer in audio driver to
avoid crash when powering down tfa8997 device.

Bug 1300642

Change-Id: I367483a82e03aff5c02c398724cfa61a86cc94e3
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/236901
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Tested-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
11 years agonet: wireless: bcmdhd: mask excessive wifi chip interrupts
Michael Hsu [Tue, 4 Jun 2013 07:49:14 +0000 (00:49 -0700)]
net: wireless: bcmdhd: mask excessive wifi chip interrupts

On P2560 hardware only, wifi chip generates excessive wifi
activity interrupts:
- on first boot after flashing image

WAR is to mask this specific wifi activity interrupt to
prevent it from keeping application processor awake.

Bug 1299635

Change-Id: Idf0fdaf817621e3ae5e0f63864c488366dbbcaba
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/235330
(cherry picked from commit b1e29c7914c630f0a9a7bdd57cb27514c13e70a9)
Reviewed-on: http://git-master/r/236011
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
11 years agoHDCP: Only Wait for Communication to stop if HDMI is Plugged
Matt Wagner [Wed, 22 May 2013 00:50:34 +0000 (17:50 -0700)]
HDCP: Only Wait for Communication to stop if HDMI is Plugged

Don't wait for communication to stop if HDMI isn't plugged

Bug 1275577

Change-Id: Ifb56bc8a4b36ac2cb40614811398920b7e293e04
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/231692
(cherry picked from commit ef8716389cbed56cba95dae87e50ef040c969892)
Reviewed-on: http://git-master/r/232705
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoARM: Tegra: Roth: Increase Drive Strength for 4K
Matt Wagner [Fri, 17 May 2013 17:45:18 +0000 (10:45 -0700)]
ARM: Tegra: Roth: Increase Drive Strength for 4K

Increase by 30mV

Bug 1278943

Change-Id: I554c281ca1f12cb7494516844f4fd72e1d4b03b1
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
(cherry picked from commit e61f283f9966358e68c7cdcd9ea26bbc7bbc18c3)
Reviewed-on: http://git-master/r/230045
Reviewed-on: http://git-master/r/232704
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoARM: SMP: disable preempt before SMP cross call
Bo Yan [Wed, 24 Apr 2013 20:50:12 +0000 (13:50 -0700)]
ARM: SMP: disable preempt before SMP cross call

preemption should be disabled when smp_call_function_many is called.

bug 1224910

Change-Id: I4c23e6fe77354d50230b8e46bcc4128a9888f201
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/222644
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 252748d9f3e90b7ab36a50b8b10912c183ca67f4)
Reviewed-on: http://git-master/r/233913
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
11 years agoARM: tegra11x: Enable ARM_ERRATA_798181
Bo Yan [Fri, 15 Mar 2013 04:46:30 +0000 (21:46 -0700)]
ARM: tegra11x: Enable ARM_ERRATA_798181

Change-Id: I533f1965a93694484a910723c77454a0bd9e5fe0
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/209853
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
(cherry picked from commit 1927a8824de27eea314d7b1a4ac08741edb6daba)
Reviewed-on: http://git-master/r/221354
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
11 years agoarm: errata: Workaround for Cortex-A15 erratum 798181 (TLBI/DSB operations)
Catalin Marinas [Tue, 19 Feb 2013 16:34:29 +0000 (16:34 +0000)]
arm: errata: Workaround for Cortex-A15 erratum 798181 (TLBI/DSB operations)

On Cortex-A15 (r0p0..r3p2) the TLBI/DSB are not adequately shooting down
all use of the old entries. This patch implements the erratum workaround
which consists of:

1. Dummy TLBIMVAIS and DSB on the CPU doing the TLBI operation.
2. Send IPI to the CPUs that are running the same mm (and ASID) as the
   one being invalidated (or all the online CPUs for global pages).
3. CPU receiving the IPI executes a DMB and CLREX (part of the exception
   return code already).

The switch_mm() code includes a DMB operation since the IPI is only sent
to CPUs running the same ASID.

Change-Id: Ideb7f479910f7d4bf25182c84eb5e71691c42a93
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/209830
(cherry picked from commit e11ccb30b44fc55ba0576f5082e5e17e9a1d1854)
Reviewed-on: http://git-master/r/221353
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
11 years agoRevert "ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on ASID-capable CPUs"
Bo Yan [Fri, 15 Mar 2013 02:26:38 +0000 (19:26 -0700)]
Revert "ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on ASID-capable CPUs"

This reverts commit 7fec1b57b8a925d83c194f995f83d9f8442fd48e.

Change-Id: I3e2a4ed4e3dcb52368ec42e10819316078323ea4
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/209829
(cherry picked from commit 5d04ad58c35de6289072aad40cdc90abf8534faf)
Reviewed-on: http://git-master/r/221352
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
11 years agoRevert "ARM: Remove current_mm per-cpu variable"
Bo Yan [Fri, 15 Mar 2013 02:26:29 +0000 (19:26 -0700)]
Revert "ARM: Remove current_mm per-cpu variable"

This reverts commit e323969ccda2d69f02e047c08b03faa09215c72a.

Change-Id: I0f44f33b4848ec8e326bd356545903ca14d0da9a
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/209827
(cherry picked from commit 9eaa0e45a75d767b0ba34b104925d00f6fb5c503)
Reviewed-on: http://git-master/r/221351
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
11 years agoRevert "ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on pre-ARMv6 CPUs"
Bo Yan [Fri, 15 Mar 2013 02:26:17 +0000 (19:26 -0700)]
Revert "ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on pre-ARMv6 CPUs"

This reverts commit b9d4d42ad901cc848ac87f1cb8923fded3645568.

Change-Id: Icdc220a988b0e6b145466148fc922b5f8e5cdba8
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/209826
(cherry picked from commit ccf463167767706377a8d7fd0ead3114ef561c02)
Reviewed-on: http://git-master/r/221350
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
11 years agoRevert "ARM: 6944/1: mm: allow ASID 0 to be allocated to tasks"
Russell King [Thu, 9 Jun 2011 09:12:41 +0000 (10:12 +0100)]
Revert "ARM: 6944/1: mm: allow ASID 0 to be allocated to tasks"

This reverts commit 45b95235b0ac86cef2ad4480b0618b8778847479.

Will Deacon reports that:

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

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

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

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit a0a54d37b4b1d1f55d1e81e8ffc223bb85472fa3)
Change-Id: Id3bd7c795bb84269b646e6a1344d1974d85bf094
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/221349
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
11 years agousb: gadget: mtp: increase MTP buffers
Rakesh Bodla [Fri, 8 Mar 2013 12:49:59 +0000 (18:19 +0530)]
usb: gadget: mtp: increase MTP buffers

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

Bug 1168348
Bug 1216779

Change-Id: I31c78223870b788a67d628005026f6e3608df04f
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207589
(cherry picked from commit b64b3f926455e9cfdff90291525f3d5264b97dd4)
Reviewed-on: http://git-master/r/234037
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
11 years agoARM: config: tegra11:Increase GADGET_BOOST_CPU_FREQ
Rakesh Bodla [Thu, 30 May 2013 08:18:58 +0000 (13:48 +0530)]
ARM: config: tegra11:Increase GADGET_BOOST_CPU_FREQ

Increase TEGRA_GADGET_BOOST_CPU_FREQ for improving
USB throughput.

Bug 1216779

Change-Id: Ia5bb340af7eaf3d278994a8de294dcf03b64b1c8
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/234036
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
11 years agousb: gadget: tegra:Change cpu frequency boost logic
Rakesh Bodla [Mon, 13 May 2013 09:56:36 +0000 (15:26 +0530)]
usb: gadget: tegra:Change cpu frequency boost logic

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

Bug 1216779

Change-Id: I8b5378ee9e95c890d2cdc4a614f95e378ffb016f
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/227913
(cherry picked from commit d04550eb0e86946e9c140d966735fffccf98cdf0)
Reviewed-on: http://git-master/r/234035
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
11 years agoInput: touch: raydium: Update to Raydium v56.1 driver
Xiaohui Tao [Fri, 24 May 2013 17:43:46 +0000 (10:43 -0700)]
Input: touch: raydium: Update to Raydium v56.1 driver

1. CTS failure
2. Suspend/Resume time

Bug 1283362

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

11 years agoarm:tegra:roth: only expose tfa9887 on Thor
Scott Peterson [Wed, 22 May 2013 01:43:28 +0000 (18:43 -0700)]
arm:tegra:roth: only expose tfa9887 on Thor

Only expose the tfa9887 controls for power
doen on THor

Bug 1293745

Change-Id: I2418b526cb44d284cd6c887eb7fbb60775dd4a32
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/231367
Reviewed-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agovideo: tegra: dsi: Enable MIPI auto calibration
Vineel Kumar Reddy Kovvuri [Tue, 23 Apr 2013 10:03:34 +0000 (15:33 +0530)]
video: tegra: dsi: Enable MIPI auto calibration

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

Bug 1166307
Bug 1283871

Change-Id: Iab629231406024fa7f83c45e291991a5f49f1941
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/229915
(cherry picked from commit 6f8bc8a6feaa61825628d22614c2da99368fe1b8)
Reviewed-on: http://git-master/r/231586
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
11 years agovideo: tegra: dsi: Enable MIPI auto calibration
Vineel Kumar Reddy Kovvuri [Fri, 15 Mar 2013 06:13:56 +0000 (11:43 +0530)]
video: tegra: dsi: Enable MIPI auto calibration

Implementation of DSI MIPI auto calibration

Bug 1166307

Change-Id: I178f3ffb6bb69050c9edc4cd1663bfe9b61abf3a
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/229914
(cherry picked from commit 2bd97385468ac85c4dac33615c5c31b1eabc7f18)
Reviewed-on: http://git-master/r/231574
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
11 years agoARM: tegra: board: disable the alignement fix
Suresh Mangipudi [Wed, 15 May 2013 04:47:47 +0000 (10:17 +0530)]
ARM: tegra: board: disable the alignement fix

Disable the h/w alignment fix for T114 A02.

Bug 1289107

Change-Id: I09b390098dfbfb2890037038eb7e9c23b754764d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/228649
Reviewed-on: http://git-master/r/231086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Zu <pzu@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Peter Zu <pzu@nvidia.com>
11 years agoARM:Tegra:Roth: Update speaker settings
Scott Peterson [Mon, 20 May 2013 19:45:02 +0000 (12:45 -0700)]
ARM:Tegra:Roth: Update speaker settings

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

Change-Id: Ib5506cebe901991a4a6dbb5bd6867a90e7e8ca9c
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/230909
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
11 years agoARM: Tegra: Roth: Fix asoc debugfs hang
Scott Peterson [Fri, 17 May 2013 17:49:03 +0000 (10:49 -0700)]
ARM: Tegra: Roth: Fix asoc debugfs hang

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

Bug 1236039

Change-Id: I1535b87add4d1f142731e7451447a974f90436c2
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/229845
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
11 years agonet: wireless: bcmdhd: new driver version 1.28.28.2
bibhayr [Wed, 15 May 2013 06:47:19 +0000 (12:17 +0530)]
net: wireless: bcmdhd: new driver version 1.28.28.2

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

Bug 1282745

Change-Id: Ia45f496711f3775858de38e1c7e3c762d2f58828
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/228838
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
11 years agovideo: tegra: dc: log suspend enter time
Andy Park [Fri, 10 May 2013 23:59:35 +0000 (16:59 -0700)]
video: tegra: dc: log suspend enter time

log suspend enter time using uS timer

Bug 1279339
Bug 1252226

Change-Id: I7e29d177df78a286d3e3ee905b020f95575175ac
Signed-off-by: Andy Park <andyp@nvidia.com>
(cherry picked from commit 832517518d82fa2bce7c3b85cdd2c56e0b87704a)
Reviewed-on: http://git-master/r/229106
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
11 years agoARM: tegra: add a sysfs to time to go suspend
Andy Park [Fri, 10 May 2013 23:49:40 +0000 (16:49 -0700)]
ARM: tegra: add a sysfs to time to go suspend

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

Bug 1279339
Bug 1252226

Change-Id: If70135639b2e1eea72d1189f8c5cd32ba7d11bf1
Signed-off-by: Andy Park <andyp@nvidia.com>
(cherry picked from commit 5e21c0030b60ab71ca610ad55b8cfeacee03a980)
Reviewed-on: http://git-master/r/229105
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
11 years agomisc: nct1008: talk to nct1008 only when powered
Sang-Hun Lee [Mon, 13 May 2013 17:06:00 +0000 (10:06 -0700)]
misc: nct1008: talk to nct1008 only when powered

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

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

Bug 1288427

Change-Id: Id885794eb39a71025ad9f5c3615156c19039d13f
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/228011
(cherry picked from commit 08eed1ddbacece2f1c8b4fba633c01c0f87ba2cd)
Reviewed-on: http://git-master/r/229504
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agoinput: misc: inv: disable irq when powering off
Sang-Hun Lee [Mon, 13 May 2013 00:46:52 +0000 (17:46 -0700)]
input: misc: inv: disable irq when powering off

Problem descritpion:

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

Fix description:

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

Bug 1285239

Change-Id: I42dfa094b645944e22d600b64abc18b10b7fb38b
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/227781
(cherry picked from commit a2ce58ee6da12bbe3f9d18dfcef1e6a48a4572a9)
Reviewed-on: http://git-master/r/229503
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agommc: tegra: Disable cache control support
Pavan Kunapuli [Sat, 11 May 2013 05:27:04 +0000 (10:57 +0530)]
mmc: tegra: Disable cache control support

Disable cache control feature support for eMMC v4.5.

Bug 1287739

Reviewed-on: http://git-master/r/227714
(cherry picked from commit 722114cdcfedceab863a2936ccddd458bfa39e9c)
Change-Id: I3fe25938d11dcadbc82b17c4ab10c2c6e05fbb43
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/228890
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
11 years agommc: sdhci: Issue sdhci RTPM put() after tuning
rrajk [Thu, 2 May 2013 15:32:44 +0000 (21:02 +0530)]
mmc: sdhci: Issue sdhci RTPM put() after tuning

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

Bug 1249832

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

Signed-off-by: rrajk <rrajk@nvidia.com>
Change-Id: I13e96c649939e9ca434e630b4a24810523f2adeb
Reviewed-on: http://git-master/r/228211
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
11 years agoARM: tegra: roth: Add force update to P2560
Anshul Jain [Wed, 15 May 2013 01:29:43 +0000 (18:29 -0700)]
ARM: tegra: roth: Add force update to P2560

This change will force update firmware on P2560, this is
done to help with downgrading versions as required.

Bug 1266521

Change-Id: I9121a75c108d8a79f496ed7686a34e7fce66a3ad
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit 428c5acf8cabde6d72a9eee98f98b2bdefc52f60)
Reviewed-on: http://git-master/r/229466
Reviewed-by: Automatic_Commit_Validation_User
11 years agofirmware: p2560-uc update v52
Anshul Jain [Wed, 15 May 2013 01:32:50 +0000 (18:32 -0700)]
firmware: p2560-uc update v52

v51->v52
- Bump revsion to v0_52.
- All Joystick Wakeup out of Suspend Tuning changes:
-   Added a ADC Channel Synchronizer so as to make the Left and right joystick axes has a higher suspend mid point value.
      This helps the sensitivity when moving the POT towards the GND node.
-   Because of the ADC channels Sychronizer the Left and Right Analog triggers needed more Threshold tuning:
        now Left Analog Trigger threshold is < 100 (was 150) and Right Analog Trigger Threshold is > 350 (was 375)
        This helped move the wakeup trigger point more away from the ends.
- For the Left and Right Joysticks; we added two Thresholds wakeup methods:
      1) the original dADC/dt with a delta threshold of 80. same as v46.
      2) a "Measured" suspend MID-point min and max threshold.
            This helps wake up when user move joystick slowly to one side or the other.
              Measured absolute Thresholds are set to suspend mid point- 150 and + 150.
              If suspend mid-point is too low then we will default to a low threhold of 85.

v46->v51
- Bump revsion to v0_51. This has everything that v46 has.
- Has joystick wakeup and Left and Right Analog trigger wake up.
- Analog triggers use a fixed absolute threshold: Left is set to < 150 and Right is set to > 375
- The Left and Right Joysticks still are using dADC/dt methodolgy with a threshold of 80.
    However, it can be a little difficult to wake up using these. Especally if the using moves towards GND side of the POT.

Bug 1266521

Change-Id: I2322d0265fac69314368d025656e3fef8d3be414
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit 9d0f6ae86de61f3360932b1598e8da18b0fe7404)
Reviewed-on: http://git-master/r/229465
Reviewed-by: Automatic_Commit_Validation_User
11 years agopower: bq2419x: Update charger type
Pradeep Goudagunta [Fri, 3 May 2013 10:48:10 +0000 (16:18 +0530)]
power: bq2419x: Update charger type

Update charger type up on connection.

Bug 1281945

Change-Id: Iea2bf0323636ae54e2e911705fd795c273de50f7
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/225208
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
11 years agoperf: Treat attr.config as u64 in perf_swevent_init()
Tommi Rantala [Sat, 13 Apr 2013 19:49:14 +0000 (22:49 +0300)]
perf: Treat attr.config as u64 in perf_swevent_init()

Trinity discovered that we fail to check all 64 bits of
attr.config passed by user space, resulting to out-of-bounds
access of the perf_swevent_enabled array in
sw_perf_event_destroy().

Introduced in commit b0a873ebb ("perf: Register PMU
implementations").

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: davej@redhat.com
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Link: http://lkml.kernel.org/r/1365882554-30259-1-git-send-email-tt.rantala@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit 8176cced706b5e5d15887584150764894e94e02f)

Change-Id: I5ecfb388007fba52435b49ac38855d1873ca63db
Signed-off-by: Bo Yan <byan@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/228787
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoARM: Tegra: Roth: Update DSI Settings
Matt Wagner [Tue, 14 May 2013 23:09:04 +0000 (16:09 -0700)]
ARM: Tegra: Roth: Update DSI Settings

Fix v_front_porch, v_back_porch and pwr_ctrl settings

Bug 1283232

Change-Id: Ic5f7fcd49977157bfe64e47a4b9fbcee42fa79d3
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/228540
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoarm: roth: Add regulator for fuse
Shardar Shariff Md [Mon, 13 May 2013 09:13:05 +0000 (14:43 +0530)]
arm: roth: Add regulator for fuse

Add vpp_fuse entry into ldo4 of palmas

Bug 1286520

Change-Id: I2caad9d715f1ea8fc40335c93dc36f8c7107289b
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/227900
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
11 years agofirmware: p2560-uc update
Anshul Jain [Thu, 9 May 2013 19:57:52 +0000 (12:57 -0700)]
firmware: p2560-uc update

v40->v46

- Removed Debug GPIO P3.0
- No wakeup pulse sent in OS Idle/Display Off (aka Active/LED Breathing ON)
- If LED Breathing remains ON when Display is ON, will turn off LED
  Breathing with button press or Joystick Motion  (no Analog Triggers).
  LED breathing on in this state is a DON’T care because Tegra is
  overriding the LED control.
- Added back Joystick wakeup during USB Suspend.  Only Left
  and Right Analog sticks and NO Analog Triggers.
- Suspend Joystick wakeup Threshold is set to 80.
- Added a usb activity check before the LED control logic in the suspend loop. If usb activity detected; we will bail out of the loop.
  This change more matches v31 suspend loop that seems to be running LP0 suspend/resume cycles just fine.
  Noticed on the scope that the timing delta relationship from Resume to T-setup requests were varying quite a lot. The LED control logic
  just seems to be the reason for the large timing jitter.
- Added Port 3.0 debug toggle in the following functions:
          * uC Waiting for USB enumeration packets from the Host.
          * While loop LED timer0 in the beginning of Suspend; Will toggle P3.0.
- While LED timer0 ISR timeouts are still implemented.
- LED flicker fix

Bug 1276644
Bug 1285468
Bug 1266521
Bug 1283114

Change-Id: I609742ea3aae5b84a90a929bb19db0b2edd4c576
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/227147
Reviewed-on: http://git-master/r/228579
Reviewed-by: Automatic_Commit_Validation_User
11 years agotegra: dc: don't call tegra_dc_hpd in atomic context
Ray Poudrier [Wed, 8 May 2013 05:08:13 +0000 (22:08 -0700)]
tegra: dc: don't call tegra_dc_hpd in atomic context

tegra_dc_hpd(), which uses gpio_get_value_cansleep(),
is called from tegra_dc_hdmi_irq() in atomic context.
Move this call outside of the atomic context to avoid
potential lockup.

Change-Id: If62a3d257ab29eae34fd0999e6d182906a568846
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/226531
(cherry picked from commit e0a5c3a078138b9db103aa428a6667efb3e3a1d0)
Reviewed-on: http://git-master/r/228493
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
GVS: Gerrit_Virtual_Submit

11 years agoARM: Tegra: Roth: Update HDMI Settings
Matt Wagner [Thu, 2 May 2013 23:17:36 +0000 (16:17 -0700)]
ARM: Tegra: Roth: Update HDMI Settings

Update drive strengths to fix compliance issues

Bug 1278943

Change-Id: I83f9340f4031b2a675ed748307f0abd0455f1e3c
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/225026
(cherry picked from commit 45a7dd54a9565efd63537a16c2cfc6f2e9194c43)
Reviewed-on: http://git-master/r/228126
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoHDCP: finish hdmi access before turning nvhdcp off
Rakesh Iyer [Fri, 10 May 2013 00:42:11 +0000 (17:42 -0700)]
HDCP: finish hdmi access before turning nvhdcp off

Wait for hdmi accesses to finish before turning nvhdcp off.

Bug 1275577.

Change-Id: Ieef8635b66cfdddece7b2e1140b776b91350d272
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/227243
(cherry picked from commit ac6205a26fbf52d8439524543321012ed95c9d78)
Reviewed-on: http://git-master/r/228104
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agoinput: misc: MPU sensor disable LPA
Erik Lilliebjerg [Thu, 2 May 2013 13:21:40 +0000 (06:21 -0700)]
input: misc: MPU sensor disable LPA

Low Power Accelerometer is disabled due to known HW bug.

Bug 1279237

Change-Id: I8477fb84bbca7f8d139f5495ab7f584df528f44d
Reviewed-on: http://git-master/r/224897
(cherry picked from commit e0a3ba3b906cda0c54242c37e1fb5e03af5ba562)
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/227973
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agoRevert "mmc: core: Retries WAR for SDIO RW CMD"
Pavan Kunapuli [Thu, 9 May 2013 12:10:32 +0000 (17:40 +0530)]
Revert "mmc: core: Retries WAR for SDIO RW CMD"

This reverts commit 1c48c746ea721f95c594c08f5f1320ba78de40e4.

Bug 1281367

Change-Id: I78ad0f9886d4834b2a19542331bfd2b2e0f823af
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/227044
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
11 years agoARM: tegra: roth: Remove pm_flags settings
Pavan Kunapuli [Thu, 9 May 2013 12:05:56 +0000 (17:35 +0530)]
ARM: tegra: roth: Remove pm_flags settings

pm_flags should be set by the core/client driver if the card needs to
be powered ON during suspend and full enumeration is not required in
resume. These flags should not be set by default through platform data

Bug 1281367

Change-Id: I2b3301e92ca25e5db93809fc2a727182ede7c92a
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/227043
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
11 years agonet: wireless: bcmdhd: removed duplicated defines
Narayan Reddy [Thu, 25 Apr 2013 05:49:28 +0000 (22:49 -0700)]
net: wireless: bcmdhd: removed duplicated defines

Change-Id: I9df90c7774a30f5e512d492b3dce85d3f689cfff
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/222776
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
11 years agomisc: Remove debugfs warning on tfa9887
Scott Peterson [Tue, 7 May 2013 20:27:19 +0000 (13:27 -0700)]
misc: Remove debugfs warning on tfa9887

Remove warning about creation of debugfs
nodes for the NXP tfa9887 devices.

Bug 1284011

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

11 years agoRevert "Revert "bcmdhd: enable mpc during p2p search/listen""
Nitin Bindal [Thu, 25 Apr 2013 06:58:24 +0000 (12:28 +0530)]
Revert "Revert "bcmdhd: enable mpc during p2p search/listen""

This change is needed since we are moving to the new firmware
version which has disconnect and RSSI issue fix

Bug 1264805

This reverts commit c635cc0776dd095c805d22c882a4d92eb82454c8.

Change-Id: I54263803e75329f610541880d5a01eb047359def
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/222741
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Tested-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agommc: core: Retries WAR for SDIO RW CMD
Pavan Kunapuli [Thu, 2 May 2013 16:42:24 +0000 (22:12 +0530)]
mmc: core: Retries WAR for SDIO RW CMD

Adding WAR to have 3 retries for SDIO RW CMD52.

Bug 1281367

Change-Id: I1167126d46021f6725f5fe91ebdf8e9d85a106e6
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/224935
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
11 years agoarm: Reduce tfa9887 speaker pops
Scott Peterson [Fri, 26 Apr 2013 20:07:32 +0000 (13:07 -0700)]
arm: Reduce tfa9887 speaker pops

Reduce speakers pops when enabling/disabling
the NXP speaker protection device. Add an alsa
mixer control to mute the device from the audio
HAL prior to disabling the device.

Bug 1268519

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

11 years agomisc: nct1008: prevent irq revival
Sang-Hun Lee [Mon, 29 Apr 2013 16:07:03 +0000 (09:07 -0700)]
misc: nct1008: prevent irq revival

Problem description:
 - nct1008_shutdown and nct1008_suspend disable nct1008_irq
 - If nct1008_irq triggers during shutdown or suspend, the irq handler will
   schedule nct1008_work_func, which will re-enable nct1008_irq
 - This work could trigger after disabling the power rail as well, causing
   an access of nct1008 after disabling its power rail

Fix description:
 - Add a new flag stop_workqueue
 - While the flag is set, nct1008_work_func will return without doing anything
 - After setting the flag to effectively disable nct1008_work_func, wait for
   running nct1008_work_func to complete then disable nct1008_irq

Bug 1280843

Change-Id: I69176ad466f4c49e62932425fdf7a8583b2cf8bf
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/223906
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gaurav Batra <gbatra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
11 years agosched: remove redundant update_runtime notifier
Neil Zhang [Fri, 28 Dec 2012 10:00:26 +0000 (10:00 +0000)]
sched: remove redundant update_runtime notifier

migration_call() will do all the things that update_runtime() does.
So it seems update_runtime() is a redundant notifier, remove it.

Furthermore, there is potential risk that the current code will catch
BUG_ON at line 687 of rt.c when do cpu hotplug while there are realtime
threads running because of enable runtime twice.

Change-Id: I0fdad8d5a1cebb845d3f308b205dbd6517c3e4de
Cc: bitbucket@online.de
Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Reviewed-on: http://git-master/r/215596
(cherry picked from commit 8f646de983f24361814d9a6ca679845fb2265807)
Reviewed-on: http://git-master/r/223067
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
11 years agommc: tegra: Use full win for nominal vcore tuning
Pavan Kunapuli [Thu, 2 May 2013 12:12:57 +0000 (17:42 +0530)]
mmc: tegra: Use full win for nominal vcore tuning

If minimum override voltage tuning is not done or if the nominal core
voltage details are not specified, find full window using tuning and
set the best tap value as 50% of the full window.

Printing tuning window and tap value details.

Bug 1280293

Change-Id: I5d77f5b03e0543cb33ac97420a92ca08cb4f21a8
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/224224
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
GVS: Gerrit_Virtual_Submit

11 years agoarch: arm: roth: reduce didim aggressiveness for roth
Mitch Luban [Wed, 1 May 2013 01:41:18 +0000 (18:41 -0700)]
arch: arm: roth: reduce didim aggressiveness for roth

Set aggressiveness to 1 and do faster backlight phase in.

Bug 1276704

Change-Id: Ie9a17b5a42862a0804c4217ca0992514371b1d50
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/224321
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agofirmware: p2560-uc update
Anshul Jain [Fri, 3 May 2013 09:22:04 +0000 (02:22 -0700)]
firmware: p2560-uc update

v39->v40
Updates the guard band to 37

Bug 1282562

Change-Id: Ifd2e2c9803a2af0311a4017bec878f94522085b7
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/225341
Reviewed-by: Automatic_Commit_Validation_User
11 years agoinput: touch: raydium: Update to Raydium v55.3 driver
Xiaohui Tao [Sat, 27 Apr 2013 04:39:37 +0000 (21:39 -0700)]
input: touch: raydium: Update to Raydium v55.3 driver

Raydium code drop for v55.3 driver

(1) Does not let the suspend/resume fail if there is no internal clock
It will allow external clock to pass suspend/resume.

(2) Turn touch off when display off

Bug 1280093

Change-Id: Ie1e46727531cad3314ae39c0e9a90b275880ea57
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/223624
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agoinput: touch: raydium: Update to Raydium v55.2 driver.
Xiaohui Tao [Fri, 26 Apr 2013 17:16:32 +0000 (10:16 -0700)]
input: touch: raydium: Update to Raydium v55.2 driver.

Code drop from raydium to update kernel to v55.2

Change-Id: I3562e487cdbf55b45428139f093aa245cd8e0b90
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/223425
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agoARM:tegra: Change touch_panel_id to tp_id
Xiaohui Tao [Fri, 26 Apr 2013 22:53:43 +0000 (15:53 -0700)]
ARM:tegra: Change touch_panel_id to tp_id

touch_panel_id is too long for command line. Change it to tp_id

Change-Id: I1fd359e4092aa4befd1589042ffbe4844345a80f
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/223549
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agoARM: Tegra: Roth: Update DVFS for P2560
Sang-Hun Lee [Mon, 29 Apr 2013 17:59:26 +0000 (10:59 -0700)]
ARM: Tegra: Roth: Update DVFS for P2560

Bug 1181038

Change-Id: I1bb349448106dcc30e7d7fd6d62bbe9dfd2f9f7f
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/223940
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
11 years agoARM: tegra: roth: Enable power_off_rail
rrajk [Wed, 24 Apr 2013 06:55:06 +0000 (12:25 +0530)]
ARM: tegra: roth: Enable power_off_rail

Turn off sdhci rails for SD card before rebooting the device.

Bug 1222606
Bug 1242658

Change-Id: Iabff0e1ba54460365765bb64fc15fc35a941f8fe
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/224122
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
11 years agommc: tegra: Release lock before dvfs override call
Pavan Kunapuli [Thu, 25 Apr 2013 14:01:59 +0000 (19:31 +0530)]
mmc: tegra: Release lock before dvfs override call

Release the spinlock before calling the dvfs override API
to set/unset tuning override voltages.

Bug 1259286

Change-Id: Ib247ca3e6f7d7e86c52c8f762b4331adddb95dfe
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/222944
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
11 years agofirmware: p2454-uc and p2560-uc update
Anshul Jain [Mon, 29 Apr 2013 17:06:25 +0000 (10:06 -0700)]
firmware: p2454-uc and p2560-uc update

P2560 v0_38->v0_39
- Bump revsion to v0_39.
- Changed LED feed-forward table for optimal breathing cycle.
- LED Flicker fix when plugging and unplugging USB power. (aka Tegra goes into LP0 and into Idle/screen off.)
- Clear NAK counter and state when going from Suspend to active with LED_UC_DRIVE set.
- Make sure Suspend state if fully clear out of suspend; so we can respond to USB packets from tegra.
- Mure sure wakeup Puluse gets cleared when going from Suspend to active/LED_UC_DRIVE. flag was not getting cleared in active state.
- USB Descriptor name change "NVIDIA Corporation" "NVIDIA Controller v01.01"
- NAK 1 second code is still activiated.

P2454 v0_30->v0_31
- Same as v0_30 expect USB decriptor name change "NVIDIA Corporation" "NVIDIA Controller v01.01"

Bug 1266521

Change-Id: Ibc8b3bfbbc1c8f676ec4cb0e7c399346797ce653
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/223927
Reviewed-by: Automatic_Commit_Validation_User
11 years agoARM: Misc: More volume curve tuning
Scott Peterson [Wed, 27 Mar 2013 18:53:56 +0000 (11:53 -0700)]
ARM: Misc: More volume curve tuning

Additional adjustments to the curves used
on the NXP tfa9887 device.

Change-Id: I5b311d6c499c36f440c865f4fa8b909588b689be
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/223498
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Tested-by: Rajat Aggarwal <raggarwal@nvidia.com>
11 years agoARM: Tegra: Roth: Use Tegra11 Pinmux Header
Matt Wagner [Sat, 27 Apr 2013 23:23:58 +0000 (16:23 -0700)]
ARM: Tegra: Roth: Use Tegra11 Pinmux Header

We mistakenly used tegra30 instead of tegra11 pinmux header

Bug 1277823

Change-Id: I7950127d2dc3110f2e2ea5684f2e79630b9df6a0
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/223684
Reviewed-by: Automatic_Commit_Validation_User
11 years agoarm: increase command line size to 2048 bytes
Alexandre Courbot [Sun, 28 Apr 2013 11:17:55 +0000 (20:17 +0900)]
arm: increase command line size to 2048 bytes

Bug 1280123

Change-Id: I21ae0ee8c261f438e9428778674b2cee283bb913
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/223696
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>
Tested-by: Ankit Pashiney <apashiney@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
11 years agoARM: tegra11: clock: Fix boot over-clocking warnings
Alex Frid [Sun, 17 Feb 2013 08:39:45 +0000 (00:39 -0800)]
ARM: tegra11: clock: Fix boot over-clocking warnings

- Increase maximum rate for secondary PLLM output to the main PLLM
output limit
- Removed non supported sata clocks from the clock tree

Change-Id: I208df494a41ed620937086feb0271cd1dc85a5b6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201537
(cherry picked from commit c70f6b86b9f46226cc8fed5fa76ef1e05d315dd8)
Reviewed-on: http://git-master/r/221417
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>
11 years agoARM: Tegra: Roth: Remove Invalid Device Init
Matt Wagner [Thu, 25 Apr 2013 18:33:16 +0000 (11:33 -0700)]
ARM: Tegra: Roth: Remove Invalid Device Init

Bug 1169149

Change-Id: Ib3367d9c7f45bb714bfab8015a0516f4c4b5da87
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/223020
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agofirmware: p2454-uc and p2560-uc update
Anshul Jain [Thu, 25 Apr 2013 01:10:00 +0000 (18:10 -0700)]
firmware: p2454-uc and p2560-uc update

P2454
v30 change to make revision readable

P2560
v37->v38
- Bump revsion to v0_38.
- Change PID o 7203.
- change minimum PWM% to 4%.
- improve LED breathing jitter when sending wakeup pulse in active and suspend
  mode.
- add LED control Feed Forward Table method to adjust the LED smoothness and
  cycling time.
- adjust LED breathing behavior according to POR
- NAK 1 second code is still activiated.

Bug 1266521

Change-Id: I3514da906d1baf9d7ed159f92d1fc82c0e1796f1
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/222692
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoarm: tegra: fan: defer fan resume for 3 secs
Jean Huang [Wed, 24 Apr 2013 18:00:22 +0000 (11:00 -0700)]
arm: tegra: fan: defer fan resume for 3 secs

Bug 1267612

Change-Id: Ibaaa09491776e45b85f8850b3c2c1faa4ca3375a
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/222626
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
11 years agoARM: tegra: roth: ISSP configs and FW change
Anshul Jain [Thu, 25 Apr 2013 02:16:03 +0000 (19:16 -0700)]
ARM: tegra: roth: ISSP configs and FW change

This change separates issp device configuration for p2454 and
p2560 boards.

This change also downgrades the JS firmware P2454 from v37 to
v30. Also, it creates a node for p2560 with v37.

Bug 1266521
Bug 1270341
Bug 1276644

Change-Id: Ibb4b59d48146b71a8dec83c2460716299f38a0fc
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/222599
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
11 years agomisc: issp: add support for force update
Anshul Jain [Thu, 25 Apr 2013 02:14:33 +0000 (19:14 -0700)]
misc: issp: add support for force update

This change adds support for the firmware to be
force updated. This flag can be used to downgrade the
firmware.

Bug 1270341

Change-Id: I2c7eee9029cce38fdb902b211fb2800071579ff9
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/222598
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoarm: tegra: fan: clear next fan state before suspend
Jean Huang [Tue, 23 Apr 2013 19:28:59 +0000 (12:28 -0700)]
arm: tegra: fan: clear next fan state before suspend

Original design was to restore fan to the state before suspend,
but fan-thermal detection should work itself to decide fan state after resume.

Bug 1273984

Change-Id: Ieac7688ed2ccf3dca3427c61e3d51a209cda79a3
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/222157
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
11 years agotegra: dc: don't call tegra_dc_hpd in atomic context
Alexandre Courbot [Thu, 4 Apr 2013 18:37:16 +0000 (11:37 -0700)]
tegra: dc: don't call tegra_dc_hpd in atomic context

tegra_dc_hpd(), which uses gpio_get_value_cansleep(), is called from
tegra_dc_hdmi_resume() in atomic context. Move this call outside of the
atomic context to avoid potential lockup.

Change-Id: I983e58724727803c67a4145e11630746aff86a52
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/216593
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
11 years agosdhci-tegra: move kzalloc out of interrupt context
Alexandre Courbot [Thu, 4 Apr 2013 18:35:49 +0000 (11:35 -0700)]
sdhci-tegra: move kzalloc out of interrupt context

sdhci_tegra_sd_error_stats can be called from sdhci_irq. Move memory
allocation to the probe() function so we don't perform it in interrupt
context.

Change-Id: Ic4278526f72ebeb11d59bfe8a7d3e112172035a8
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/216591
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
11 years agonet: wireless: bcmdhd: Enable flag QUEUE_BW for RBE
Nitin Bindal [Mon, 8 Apr 2013 10:31:35 +0000 (16:01 +0530)]
net: wireless: bcmdhd: Enable flag QUEUE_BW for RBE

Enable QUEUE_BW to support Realtime Bandwidth
estimation for user applications.

Bug 1190552

Change-Id: I8af0befffb34da0bbd22d3a36ec0df377d1f3c50
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/217323
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

11 years agoinput: touch: raydium: fix regulator, enable external clock
Xiaohui Tao [Tue, 23 Apr 2013 21:17:31 +0000 (14:17 -0700)]
input: touch: raydium: fix regulator, enable external clock

Raydium does not support external clock and the regulator functions
are not balanced. Modify the code to support that.

Change-Id: I59c1d6018c666d87a697c19c29b9ab78484cf7dc
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/222163
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
11 years agoARM:tegra: Add support to parse touch panel id
Xiaohui Tao [Mon, 22 Apr 2013 17:22:59 +0000 (10:22 -0700)]
ARM:tegra: Add support to parse touch panel id

Support to parse touch panel id for kernel

Bug 1253012

Change-Id: I902a1a63efc030cb4b4e82e7301c00027c8e950c
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/221647
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>