6 years agovideo: tegra: dc: power optimize DC and host1x clk
Jon Mayo [Tue, 17 Jul 2012 22:56:44 +0000]
video: tegra: dc: power optimize DC and host1x clk

Use threaded IRQ to support enabling clocks in interrupt handling.
Use io_start and io_end to hold and release host1x clock.
Disable IRQ after it is first requested to balance enable/disable.
Use disable_irq_nosync() anywhere dc->lock is held to avoid deadlock.

Change tegra_dc_update_windows() to always be balanced with
tegra_dc_sync_windows(). Sync points (from host1x) are potentially lost if
clock gated after update, generally this only affects applications that
update at a slow frame rate.

To balance update and sync calls, Colormap/LUT code now performans a
sync_windows on a LUT change, this makes LUT changes slower and take effect
immediately.

Add a nosync version of tegra_dc_dsi_write_data to be used within dsi
module.

Bug 1031933
Bug 1002768
Bug 1036025
Bug 1013506
Bug 1025621
Bug 1028716
Bug 1029041
Bug 899059
Bug 887342
Bug 929609

Change-Id: I79454e265a96df66244275c2f3b0e4949f71bd02
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/123813
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoRevert "video: tegra: dc: fix boot issue with HDMI"
Jon Mayo [Fri, 17 Aug 2012 21:12:17 +0000]
Revert "video: tegra: dc: fix boot issue with HDMI"

This reverts commit 50fa5e50b74a0534d7524fb6d7dcaa65b2e6e74c.

Change-Id: I535127153082dae5ec701bbb876af002c9ebf5a3
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/124449
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoRevert "arm: tegra: la: hack latency allowance formula"
Wen Yi [Tue, 21 Aug 2012 18:35:35 +0000]
Revert "arm: tegra: la: hack latency allowance formula"

This reverts commit 935adef53692ab73a02a7d09876756b30beb5206.

The orginal patch is used to boost emc performance to
fix display underflow. It doesn't achieve the goal but with
side effect of higher power. Proper fix is required and the patch
is reverted.

Bug 996270

Signed-off-by: Wen Yi <wyi@nvidia.com>
Change-Id: I6d7364b311e4de86ceed40ff438ee9549251e02e
Reviewed-on: http://git-master/r/124975
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>

6 years agoARM: tegra: kai: adjust ov2710 power sequence
Sang-Hun Lee [Fri, 17 Aug 2012 23:54:05 +0000]
ARM: tegra: kai: adjust ov2710 power sequence

Update the power sequence to match the specification

Bug 1031318

Change-Id: If77777bf23fda32fa9698f53691b99b50cb35bde
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/124496
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra: cardhu: adjust ov2710 power sequence
Charlie Huang [Fri, 10 Aug 2012 23:26:34 +0000]
ARM: tegra: cardhu: adjust ov2710 power sequence

To fix an instability issue, the power sequence is updated to match
the specification for this device.

bug 1031318

Change-Id: I77c16e883ce6a5a37dace9372a016b0cbc71012b
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/122867
(cherry picked from commit e2862b9cd75bb9f608db0c33bef47f3952df5f26)
Reviewed-on: http://git-master/r/124443
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

6 years agoARM: tegra: usb: handle device connect in lp0
Krishna Yarlagadda [Tue, 14 Aug 2012 16:06:59 +0000]
ARM: tegra: usb: handle device connect in lp0

When a otg cable is connected along with device during lp0
system will wakeup but might not complete device enumeration
before going back to lp0. In this case we have to handle pmc
disable.

Bug 1024456

Reviewed-on: http://git-master/r/123383
(cherry picked from commit 6399f339601cee0f39e48011265d0e324e7dd99e)

Change-Id: Ib401c27a0d6729c906f5d3e1450548f21ff638f7
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/124317
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: Enable LP1_950 config
Karthik Ramakrishnan [Sat, 11 Aug 2012 00:33:20 +0000]
arm: tegra: Enable LP1_950 config

Enable LP1 Core voltage settings to 950mV

The feature is added in the below change.
Refer to http://git-master/r/#change,124135 for more details.
Bug 1035684

Change-Id: I922efff17797f4666fd6ed069a8523c164445842
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/124137
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoarm: tegra: Board files settings for LP1 0.95V CoreV
Karthik Ramakrishnan [Sat, 11 Aug 2012 00:24:20 +0000]
arm: tegra: Board files settings for LP1 0.95V CoreV

Set the register values for each of the board files to
keep the Core voltage to 0.95V in LP1.

This change is only for those platforms where LP1 is supported.
Enterprise and Kai are the main platforms for this change. There
is no support for Cardhu for LP1 and so is left blank and the
feature will be skipped for Cardhu platforms, except for AP37.
AP37 with a PM269 board needs this change and so Cardhu board
file is updated with the values specific to AP37.

This change is part of the feature to set VCore to 0.95V
Refer to http://git-master/r/124135 for more details
Bug 1035684

Change-Id: I6d1d984b0e7968b441cebbc37705c25647a4a85a
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/124136
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoarm: tegra: Set Core to 0.95V in LP1
Karthik Ramakrishnan [Tue, 14 Aug 2012 02:09:16 +0000]
arm: tegra: Set Core to 0.95V in LP1

When the device prepares for LP1, the Core voltage is set to the
highest value(1.2V for Enterprise and Kai, and 1.3V for AP37 and
Cardhu). This is to set for some of the driver suspend along the
sequence need a higher emc frequency and thus a higher Core voltage.

Since the sequence of drivers suspend depends on the sequence of
their registration in the table, which in turn is platform-dependent,
there is no right place in the LP1 entry path where the Core voltage
can be set to a lower voltage. Hence, the Core voltage remains high
in LP1 resulting in higher power.

Thus, the only safe location where the Core voltage can be lowered is
once all the drivers are suspended and the DRAM is set in self-refresh,
at the final point just before the system is suspended in the IRAM code.
This location at the assembly code ensures that no other module will be
running and thus that nothing will require a higher core voltage. The Core
is set to the lowest possible value since nothing requires it. It is then
restored to the highest voltage as soon as the LP1 resume code is started
so that all drivers are resumed safely.

At the execution point in IRAM during LP1 suspend path, even the I2C clocks
are gated. They must be reset first and then the I2C transaction is performed.
An I2C transaction involves 4 bytes of data, to send the slave address,
the Core voltage register address and 2 bytes of data which has the value
to set the voltage(the second byte is not required for this transaction).
Once these registers are set, the I2C transaction is performed by setting
the I2C transaction register to 0xA02. After sending the I2C transaction,
we wait for about 250us to check the status of the transaction and if not
updated, wait for more time to check again. If after 2ms and the transaction
fails to register, the transaction is aborted and the device is allowed
to enter at high voltage. Since the failure rate of I2C transaction is very
low at this point in execution where there will be no conflicts in the bus,
it is okay to have Core high for some of the LP1 cycles.

However, it is unacceptable for the I2C transaction to fail on the way
from LP1 resume since the device cannot come up with a lower Core
voltage. In this case, the transaction is retried again and again till
it is successful. There is no way but to keep trying as the device
would fail to resume with Core at 0.95V.

Each platform(or each PMU) has different values for the I2C transaction
ie. slave address, Core voltage register and the value to set the
voltage. For the device in IRAM, it cannot access anything in SDRAM
memory, these values needs to be pushed to IRAM memory before the device
starts execution in IRAM. This is done during initialization of suspend
code when it picks values from the board files and copies it to IRAM
part of code, before the whole memory is copied to IRAM.

This new feature is controlled by a KConfig variable TEGRA_LP1_950 which
should be enabled once the board file of the device is updated with the
right values. The device hangs when it does not have the right values for
the I2C transaction.

With this change in Core, LP1 power is reduced by 12mW in Enterprise,
20mW in AP37 and about 24mW in Kai.

Bug 1035684

Change-Id: I4318c66fd70ab227ef0786d6a13286e020e4541d
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/124135
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoPM: Need to wake_up_all when suspend fail
BH Hsieh [Mon, 13 Aug 2012 07:33:07 +0000]
PM: Need to wake_up_all when suspend fail

In rpm_suspend, when suspend fail,
before going to reschedule another autosuspend,
wake_up_all is required to avoid remote wakeup
issues.

Bug 1026169
Bug 1027598
Bug 1032565

Change-Id: Ieaf9282dae59b2cb343bf01aa2ba837a8cdc39c7
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/122978
(cherry picked from commit 856f955552e8dbdf3b4a25c3eb648bcd5193cacf)
Reviewed-on: http://git-master/r/124535
Reviewed-by: Neil Patel <neilp@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Neil Patel <neilp@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agoarm: tegra: baseband: Fix sysfs node permissions
Steve Lin [Tue, 31 Jul 2012 00:34:00 +0000]
arm: tegra: baseband: Fix sysfs node permissions

Restricting the modem sysfs node permissions to owner only.
Bug 1025901

Change-Id: I85095c06b6f5329403b66389a5f27383464f2c64
Signed-off-by: Steve Lin <stlin@nvidia.com>
(cherry picked from commit 21bbdcd602f8de21ab09de64cf15fee20643c8ea)
Reviewed-on: http://git-master/r/124131
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Peter Zu <pzu@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Fri, 10 Aug 2012 18:48:56 +0000]
security: tf_driver: integrate latest TL release

Tegra 3 version: TF_TEGRA3_AB01.15.36932
1)Fix an issue in GIC controller
2)Add a task profiler option into the Trusted Foundations
3)Fixes the RCU stalls

Bug 1030417

Reviewed-on: http://git-master/r/122808

Change-Id: I9fc15c69da94d5a2c56fc8582ccb1db0cf8936b4
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/123773
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: James Zhao <jamesz@nvidia.com>
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agovideo: tegra: dc: fix boot issue with HDMI
Deepak Nibade [Thu, 16 Aug 2012 11:58:51 +0000]
video: tegra: dc: fix boot issue with HDMI

Set default mode for probe and resume to enable initialization of dc.1
Skipping this initialization results in hard system hang.

bug 1030415

Change-Id: Icd8fe08a7803490117ed20caf0185f5cd4fb0d0b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/124001
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: E1506 Tristate, pull down LCD pins
Prem Sasidharan [Mon, 13 Aug 2012 20:54:16 +0000]
arm: tegra: E1506 Tristate, pull down LCD pins

Tristate and pull down LCD pins D0-D23, LCD_PWR* and
LCD_CS*_N pins for E1506 DSI panel. Reduced the power
consumption on VDDIO_LCD to 0.37mW for PM269 with E1506
DSI panel.

Bug 1007512
Bug 1015349

Signed-off-by: Prem Sasidharan <psasidharan@nvidia.com>
Change-Id: Ic54d1ca71f5ff92742f70915b7b27104c0a508a6
Reviewed-on: http://git-master/r/123172
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit a8047fabd0ae8fc767ce6f276d8bfb53fc838d05)
Reviewed-on: http://git-master/r/123848
Tested-by: Jon Mayo <jmayo@nvidia.com>

6 years agonet: wireless: bcmdhd: Update to 5.90.195.75
Narayan Reddy [Fri, 27 Jul 2012 09:57:53 +0000]
net: wireless: bcmdhd: Update to 5.90.195.75

Bug 1023045
Bug 1026444

Reviewed-on: http://git-master/r/117637
(cherry picked from commit 57716f1d1f8381ff50874cb81c326e203909b4f3)

Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Change-Id: I9da8fd7775cafae9284380723c81cb2bbfe61006
Reviewed-on: http://git-master/r/123986
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agopower: max17048: update charge status when resume
Kerwin Wan [Tue, 14 Aug 2012 09:31:11 +0000]
power: max17048: update charge status when resume

bug 1033234

original change is http://git-master/r/123301

Change-Id: I8722d3657bb61493bc5b58de584904fdf961e580
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/123917
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agovideo: tegra: dc: disuse notifier
Ilan Aelion [Fri, 10 Aug 2012 19:53:10 +0000]
video: tegra: dc: disuse notifier

Due to issues with rcu notifiers on secureos, modifying dc flip
notifications to use a simple callback instead.

Bug 1028850

Change-Id: Iebf2a6d64d7316e3df2b88444201f9f9a29698c5
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
(cherry picked from commit 62c5a94c283de070d8a8d9ace60f944100216afc)
Reviewed-on: http://git-master/r/#change,123103
Reviewed-on: http://git-master/r/123789
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>

6 years agoarm: tegra: enterprise: Pinmux changes for Enterprise A04
Karthik Ramakrishnan [Wed, 20 Jun 2012 07:23:07 +0000]
arm: tegra: enterprise: Pinmux changes for Enterprise A04

Pinmux configurations updated according to the schematics of
Enterprise A04. The unused pins are marked Tristate and turned
low. The directions are updated for other pins.

Bug 990845

Change-Id: I787bdd77848af59b5c33d030f0c040e7431d6c06
Signed-Off-By: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/105205
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 79fa97af045b942bb61507bbeffb0fa6d7055347)

Signed-off-by: Peter Zu <pzu@nvidia.com>
Change-Id: I3e0ae511b76a89fec8dd8f00304388a6dcabdf4b
Reviewed-on: http://git-master/r/123490
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agousb: host: fix tegra_ehci_remove() warnings
Venu Byravarasu [Wed, 8 Aug 2012 11:59:36 +0000]
usb: host: fix tegra_ehci_remove() warnings

usb_put_hcd calls hcd_release which frees up memory allocated
for hcd. As iounmap is called after usb_put_hcd and it is trying
to access hcd->regs, getting warning messages during unload of
USB. Hence fixing it.

bug 1023362

Change-Id: Ic339395edad9a76a9eeae290eff3517d2c714477
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/122088
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 7b3a327acb3a63fddc14f2b3ecd19a7ea8f41b3e)
Reviewed-on: http://git-master/r/123489
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoUSB: otg: delay device disconnect
Krishna Yarlagadda [Wed, 8 Aug 2012 11:31:10 +0000]
USB: otg: delay device disconnect

Device disconnect during resume might fail if notification
clients for this device removal are not ready.
Disconnecting device after the resume is complete.

Bug 1024496

Change-Id: Ia806e177d2dd2b1b43d3fea7a4af45f0d4a93cd4
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/122079
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit df73b460996b2f6e2c0b0d93b3679d6dca9d4615)
Reviewed-on: http://git-master/r/123488
Reviewed-by: Automatic_Commit_Validation_User

6 years agopower: smb349: correct charger status
Allen Yu [Wed, 8 Aug 2012 06:50:40 +0000]
power: smb349: correct charger status

When tegra-otg suspends with charger cable connected, the charger
state and type should not be changed, neither should the charger
callback be executed.

SMB349 has a debounce delay of ~20ms +/- 3 after cable is unpluged
and will stop all I2C functions for 2.3ms when getting reset to POR.
Add 50ms' delay before reading charger status to avoid I2C error and
make sure we get the right charger state.

Bug 1024735

Change-Id: I1667b23df768b46b524c6578c4bee09e131d9f96
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/120905
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 71f038602f3417417aec99470fabb287ec8886fd)
Reviewed-on: http://git-master/r/123487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: usb_phy: fix null pointer dereference
Rakesh Bodla [Wed, 8 Aug 2012 09:06:13 +0000]
arm: tegra: usb_phy: fix null pointer dereference

Fixing the null pointer dereference crash. Also
modifying USB driver not to give up in case if there
is no avdd_usb regulator.

Bug 1029852

Change-Id: I3232b7fa1580a0dc1aadd47b138e5eeae05af6f0
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/121984
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 48d8c7c91ea5acddf23f74abc801c89c9f16680f)
Reviewed-on: http://git-master/r/123486
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agousb: gadget: tegra: fix compilation issue
Rakesh Bodla [Wed, 8 Aug 2012 08:44:53 +0000]
usb: gadget: tegra: fix compilation issue

Fixing the potential compilation this is
currently masked as CONFIG_USB_OTG_UTILS
is enabled.

Change-Id: Ie10e5fc252156b8b904d387d87a11136fcc3f4c1
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/122043
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit a50e57e22bb42aa20e59686af148d24f09291c54)
Reviewed-on: http://git-master/r/123485
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agousb: otg: tegra: fix compilations errors
Rakesh Bodla [Wed, 8 Aug 2012 06:48:03 +0000]
usb: otg: tegra: fix compilations errors

Werror flag is enabled now. Fixing the compilations
errors when DEBUG is enabled.

Change-Id: I909dd177eedfd72f1f71d1a546fc40c301bd1aa7
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/122033
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit eb623030d171e1369760107886636f2985b39fc3)
Reviewed-on: http://git-master/r/123484
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: usb_phy: remove duplicate code
Rakesh Bodla [Wed, 8 Aug 2012 05:45:31 +0000]
arm: tegra: usb_phy: remove duplicate code

Remove duplicate code.

Change-Id: I9c9979f489d93c458f5e494fbb69008b89578b8d
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/121988
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 89c0dc999188865e0e6d58327d7beafb65587ea2)
Reviewed-on: http://git-master/r/123483
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: usbphy: disable PLLU clock
Suresh Mangipudi [Wed, 1 Aug 2012 11:27:51 +0000]
arm: tegra: usbphy: disable PLLU clock

Disable the MASTER_BLASTER clock for the null phy interface
when usb_bus is suspended.

Bug 992861

Change-Id: I86ff559148f9a128ee48bbea2564493f4286b420
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/120006
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 6e789ddf027ae942bfb7e442cc66e218f919bb28)
Reviewed-on: http://git-master/r/123482
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: usb: link ulpi resume sequence
Suresh Mangipudi [Wed, 1 Aug 2012 05:50:58 +0000]
arm: tegra: usb: link ulpi resume sequence

lp0 resume for link_ulpi_phy has been modified.To fix the issue of
frequent disconnects while resuming from LP0.

Bug 997267

Change-Id: If92b8245b154e9b872b80d80a2ab359c87107a39
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/119511
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit d228a8472dfa7b12e8841bc340ce54b9a7c1db10)
Reviewed-on: http://git-master/r/123481
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: xmm: protect xmm power state
Vinayak Pane [Wed, 30 May 2012 01:00:26 +0000]
arm: tegra: xmm: protect xmm power state

Added protection locks for xmm power state. Moving
prints outside of spinlock. Revisit spinlock on global
flags and rearrange in irq.
Avoid kernel crash in case of remote-wakeup detected.
Protect ipc_ap_wake_state in xmm on & off.

Bug 1010131

Change-Id: Id53598b09bececd6f4ff1a948a492e6fcc56628c
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/108427
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>
(cherry picked from commit cd0b0f629c7709411600a944a72b06225a523bac)
Reviewed-on: http://git-master/r/123480
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: nvmap: fix usermode input validation
Tuomas Tynkkynen [Tue, 31 Jul 2012 12:01:04 +0000]
video: tegra: nvmap: fix usermode input validation

nvmap_pin_ids accepts a list of handles to pin, which are passed
directly from usermode when called from nvmap_ioctl_pinop.

However, if invalid handles are passed in, the function might
still access them as valid handles, and cause a crash.

Bug 1023954

Change-Id: I6b98a2ef448bb496be7d569ddd4fb516fc399cba
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/119667
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
(cherry picked from commit 70d4ced2d12a1251202d67ffae7f5c0b3013cc94)
Reviewed-on: http://git-master/r/123478
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoMPU6050: Disable irq when suspend all sensors
Hunk Lin [Mon, 30 Jul 2012 16:19:09 +0000]
MPU6050: Disable irq when suspend all sensors

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

Bug 1021448

Signed-off-by: Hunk Lin <hulin@nvidia.com>
Change-Id: I90acb0b5e297c61c205a20b8eb54e6164a4d5b32
Reviewed-on: http://git-master/r/119344
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prem Sasidharan <psasidharan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
(cherry picked from commit 420cba2c46f70f77945653be51656b6ae89d5397)
Reviewed-on: http://git-master/r/123477
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: xmm: repair ipc_ap_wake_state at reset
Vinayak Pane [Wed, 25 Jul 2012 04:13:56 +0000]
arm: tegra: xmm: repair ipc_ap_wake_state at reset

Preparing strict checking for ipc_ap_wake_state during
modem initialization.

Modify the flashless xmm wake irq part to avoid mixing
with flashed modem irq handler.

Remove unused init1 workqueue from the driver.

Bug 1003141

Change-Id: I7b06b1783a140c0cc5121478e4983fab39862d7c
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/118475
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>
(cherry picked from commit e7a7520c6494c6610835bd6e5c83e790a05892eb)
Reviewed-on: http://git-master/r/123476
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: host: use strcmp in nvhost_bus_match
Mayuresh Kulkarni [Tue, 24 Jul 2012 07:17:24 +0000]
video: tegra: host: use strcmp in nvhost_bus_match

- replace the usage of strncmp with strcmp in
nvhost_bus_match()
- strncmp was needed when we had device name as
<name.ip-version>. but now the device name is <name>
which matches with the driver name.
- multiple devices get bind with the same driver using
id_table which uses .version field as an index in id_table

Change-Id: If0b6f0ee18626d5e7ff801b8515ef5168069c3f2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/117953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit ece74a0888415460a005d52bcf2d5f6cf535597d)
Reviewed-on: http://git-master/r/123475
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: xmm: device set to null in unregister
Vinayak Pane [Wed, 18 Jul 2012 02:06:54 +0000]
arm: tegra: xmm: device set to null in unregister

hsic_unregister is being called multiple times
during two step enumeration process of xmm.
In failure cases when enumeration does not
complete properly, kernel panic is seen because
of extra unregister-ehci device.

Bug 1016593

Change-Id: Ibaeb20ed0dab0e906741fdfad78f7d89a3672f60
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/116626
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 675dfd18c952e6cf5748aaa305086d86b0358582)
Reviewed-on: http://git-master/r/123474
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: enterprise: Use pll_p as clk source for PWR_I2C
Chaitanya Bandi [Tue, 10 Jul 2012 12:59:19 +0000]
arm: tegra: enterprise: Use pll_p as clk source for PWR_I2C

Using pll_p as clock source for PWR_I2C and set bus frequency
to 390Khz to make clock divider as 0x82.

Bug 1001924

Change-Id: Ib7936b0da9a754cc6b4858eb40a941eee606ac65
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/114577
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit ce9fc97cf95c463dff8156dffd5632e5336e4adc)
Reviewed-on: http://git-master/r/123473
Reviewed-by: Automatic_Commit_Validation_User

6 years agoalsa: hda: add alsa ctl to query max channels
Nikesh Oswal [Thu, 26 Jul 2012 10:28:46 +0000]
alsa: hda: add alsa ctl to query max channels

add alsa ctl to query maximum supported
channels

Bug: 998697

Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Change-Id: Id2f0e6a62d2413615f13a0c18757c05610ef0c2c
Reviewed-on: http://git-master/r/118602
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
(cherry picked from commit 93fa2d495c82c5b63572e62e8bba6a6acf3269f9)
Reviewed-on: http://git-master/r/123472
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: usb_phy: remote-wake for LS devices
Suresh Mangipudi [Thu, 9 Aug 2012 08:24:57 +0000]
arm: tegra: usb_phy: remote-wake for LS devices

Remote wakeup was not working for low speed devices.
Remote wakeup interrupt is now handled properly for low speed
devices.

Bug 1029608

Change-Id: If224f30ccc6275b97d50120fe04d9aa53d495e2e
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/122367
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit c065d9e47085fbb98924d986c3915f279e504fc8)
Reviewed-on: http://git-master/r/123471
Reviewed-by: Automatic_Commit_Validation_User

6 years agousb: ehci: tegra: Fix Slab corruption error
Preetham Chandru [Thu, 9 Aug 2012 08:21:39 +0000]
usb: ehci: tegra: Fix Slab corruption error

Give ownership of the DMA buffer back to the processor first and
then free the buffer. Otherwise processor won't be able to
access the dma mapped buffers and this would lead to slab
corruption.
When the DMA buffer is freed without a call to dma_sync_single_for_cpu(),
the kernel won't be able to set the buffer as POISON FREE and when we
acquire this memory back again the kernel will start printing slab
corruption output as the memory is not set to POISON FREE

Bug 1017884
Bug 1018161
Reviewed-on: http://git-master/r/#change,122151
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>

Change-Id: I00d6cb185cd2314cccb56f968eb0a05288588c13
Reviewed-on: http://git-master/r/122390
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 642d37a0eee196d0ce811dd11bb7af5ba281ee3a)

Signed-off-by: Peter Zu <pzu@nvidia.com>
Change-Id: I3ff611a3674536a93233da53488840fb77c5d4ef
Reviewed-on: http://git-master/r/123470
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: config: tegra3: enable ipv4/ipv6 filters
Mohan T [Thu, 9 Aug 2012 04:21:11 +0000]
arm: config: tegra3: enable ipv4/ipv6 filters

Android jb need ip filters to be enabled
to track data uses.

Bug 1019233

Change-Id: I8073643a4a7c34e428c02682a3afc5a23fbcf344
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/122051
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit bbdf4403412df9151864bd633519f828ea27c8c6)
Reviewed-on: http://git-master/r/123469
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoALSA: usb-audio: fix compilation error
Rhyland Klein [Thu, 2 Aug 2012 19:29:35 +0000]
ALSA: usb-audio: fix compilation error

change 8843c49092b6ed903e88eded1f1c9b9a7f432dfe introduced
a compliation error if CONFIG_SWITCH is not enabled.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I4b4c547394f424bd90837726b08d9feccd4207de
Reviewed-on: http://git-master/r/120444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
(cherry picked from commit 991fbf047fca8a4fa729d090b5c3f65a89acb9ba)
Reviewed-on: http://git-master/r/123468
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoasoc: tegra: fix compilation error in max98095
Rhyland Klein [Thu, 2 Aug 2012 19:27:53 +0000]
asoc: tegra: fix compilation error in max98095

change 4b70cc537cadc787b748c7c246d703a240b08985 introduced
a compilation error.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I59e54537d9bb4b30e807478e5b7634db0813a739
Reviewed-on: http://git-master/r/120443
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ankit Gupta (Engrg-SW) <ankitgupta@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
(cherry picked from commit c5dea888253285e23107585805b7728ebe46e17e)
Reviewed-on: http://git-master/r/123467
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomfd: Don't use I2C-specific suspend and resume operations for tps65090
Mark Brown [Mon, 7 May 2012 09:03:18 +0000]
mfd: Don't use I2C-specific suspend and resume operations for tps65090

The legacy suspend operations have been deprecated and printing warnings
on boot for over a year now.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
b6c9eeef4e775e1fff76f4395d11638dc198271d)

Change-Id: Ia8b79787c813327fe1d1ccb5a5ad19da57f2212f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120369
(cherry picked from commit b7582d0944f6329e8eb3804fd0a53eaacefe4395)

Signed-off-by: Peter Zu <pzu@nvidia.com>
Change-Id: I844f6f7962794c52a15a498fd6f83c5b413a9984
Reviewed-on: http://git-master/r/123466
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomfd: Fix tps65090 ifdefs for suspend mode
Mark Brown [Mon, 7 May 2012 09:03:17 +0000]
mfd: Fix tps65090 ifdefs for suspend mode

CONFIG_PM also covers runtime only PM.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
1ca5513af77307eccea7efd4d12ef5c14f1b12ab)

Change-Id: I5d8d35f72f46dec28d62e6b01fbc915049185ec3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120368
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit 4cf205f2c1ed24511e672bb8ffb8720516216dc8)

Signed-off-by: Peter Zu <pzu@nvidia.com>
Change-Id: I754e9e8b94e87455d64303014eaae72115a58d68
Reviewed-on: http://git-master/r/123465
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: usb_phy: Hard code HSIC phy params
Venu Byravarasu [Mon, 30 Jul 2012 12:47:34 +0000]
arm: tegra: usb_phy: Hard code HSIC phy params

As HSIC does not have any customizable phy params,
hard coding them in the phy driver.

bug 1024260

Change-Id: I64d5c7f91b077134b54b0aadaf44f129ceaa99e5
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/119299
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit ae0fe0f2527af92bc0ba9213ea0668ec6c7b19e8)
Reviewed-on: http://git-master/r/123464
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: remove hsic phy params from boards
Venu Byravarasu [Mon, 30 Jul 2012 11:04:24 +0000]
arm: tegra: remove hsic phy params from boards

As HSIC phy params are not customizable, removing
them from board files.

bug 1024260

Change-Id: I6b7702c95810c683ab3d9f79e975657f3f601cd0
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/119300
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit f34ad144dd221836787fd9bc6871274174364a66)
Reviewed-on: http://git-master/r/123462
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: usb: Remove HSIC phy params
Venu Byravarasu [Mon, 30 Jul 2012 10:57:32 +0000]
arm: tegra: usb: Remove HSIC phy params

As HSIC phy parameters are not customizable, removing them
from platform_data structure.

bug 1024260

Change-Id: I00fcc0559be43ad336b5b03a7a47443dfaa80d06
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/119298
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 8fa2ae311f67f90a85a746a659a75bb431314df3)
Reviewed-on: http://git-master/r/123461
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: fuse: check SENSE_DONE after fuse programming
Roger Hsieh [Mon, 30 Jul 2012 08:20:38 +0000]
arm: tegra: fuse: check SENSE_DONE after fuse programming

Make fuse burning take effect by checking SENSE_DONE. Without this
chip options will not be available on fuse registers until
power on reset or LP0 resume.

Bug 1020726

Change-Id: Id547d1ea51b023ba904f5751c2ad65667375777d
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/119271
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
(cherry picked from commit 940211c305fe0bed54b19847633800b77c369a46)
Reviewed-on: http://git-master/r/123460
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: lp0 WAKE2 status clear
Bitan Biswas [Mon, 6 Aug 2012 05:47:25 +0000]
ARM: tegra: lp0 WAKE2 status clear

Tegra pmc WAKE2 status registers also need to be cleared
before re-entering lp0 mode.

Change-Id: I1bd5c48baf86ba23d0352594e97c360d363ce991
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/121185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 7f9749a0050aa4bbe770f1a061f5ae8c8545dfa8)
Reviewed-on: http://git-master/r/123459
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomfd: tps65090: align driver with mainline
Venu Byravarasu [Fri, 16 Mar 2012 05:40:19 +0000]
mfd: tps65090: align driver with mainline

Align the driver with mainline.

This is vbased on commit
3c33be06f9aa0949ad24e67dfcae1f2a3006f4e1
---------------
mfd: Add support for TPS65090

TPS65090 is a Texas Instrument PMIC. It contains 3 Step-Down converters, 2
always on LDO's and  7 current limited load switches.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
--------------

Change-Id: I26545520f2cc72100a927cb60b38693153a4afce
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119320
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit a108454c2b8e037a82e49e14ceb3d9c0228af963)

Signed-off-by: Peter Zu <pzu@nvidia.com>
Change-Id: I1f7d303ae8a306aa61cf627f40474b1e098cef23
Reviewed-on: http://git-master/r/123458
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: usb_phy: Fix fake remote wakeup
Abhishek Shukla [Fri, 27 Jul 2012 07:34:18 +0000]
ARM: tegra: usb_phy: Fix fake remote wakeup

1. Move hsic line value detectors power on config to the beginning of
the sequence before enabling interrupt on hsic line wake event. This
avoids any fake event caused by any glitches introduced by this
switching.
2. Clear any prior interrupts for the line wake event before enabling
interrupt for the line wake event. This also clears any fake events
generated because of any glitches.
3. Fix wake event type to NONE in the disable routine during resume
interrupt.

Bug 1019619
Bug 1018416

Signed-off-by: Abhishek Shukla <abhisheks@nvidia.com>
Change-Id: I934fa2514897c4c23bc62ff8365f6fffe7915bd0
Reviewed-on: http://git-master/r/116699
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 50008402a6f093e48dee05fc88bc54750b97ae25)
Reviewed-on: http://git-master/r/123457
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: host: Fix section mismatches
Terje Bergstrom [Fri, 3 Aug 2012 11:29:11 +0000]
video: tegra: host: Fix section mismatches

nvhost context related functions were in init section, even though
they are called from non-init functions.

Bug 1022681

Change-Id: Ie85e9dd3f19873aec4153e34c7bffa19f40d37fa
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/120884
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 665a0fee9dc497413bc702fbe86430c9248db8c8)
Reviewed-on: http://git-master/r/123456
Reviewed-by: Automatic_Commit_Validation_User

6 years agomm: Avoid freeing init and initrd memory when CPA is enabled.
Krishna Reddy [Sun, 29 Jul 2012 22:32:14 +0000]
mm: Avoid freeing init and initrd memory when CPA is enabled.

Align memblock reserve for text area to PMD size.
Reserve the memory hole between DRAM start and Page table start.
Add Sanity check to avoid section split in text area.

Bug 1028787

Change-Id: I7fe94f6063b120df9993bc0a51b2ff57609aef3e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/121883
Reviewed-by: Automatic_Commit_Validation_User

6 years agomisc: throughput: move client calls to work queue
Ilan Aelion [Wed, 8 Aug 2012 18:25:52 +0000]
misc: throughput: move client calls to work queue

Perform throughput notifications to clients on work queue rather than
synchronously to dc flip notifications.

Bug 1028850

Change-Id: Ib9446a4ab87a476230a90a1f23c260bcf98e01dc
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/122160
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoarm: cardhu: change parameters for emc 266.5mhz
Rohan Somvanshi [Thu, 9 Aug 2012 06:08:29 +0000]
arm: cardhu: change parameters for emc 266.5mhz

The EmcTclkStable is set to 0x00000004 and McEmemArbOutStandingReq
is set to 0xc0000030

Bug 1030392

Change-Id: I4ade7a7bbceb990f57397d5777bf7215dbfd65f1
Signed-off-by: Wen Yi <wyi@nvidia.com>
Reviewed-on: http://git-master/r/122302
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: cardhu: correct EMEM_ARB_CFG in emc dfs table
Wen Yi [Wed, 8 Aug 2012 18:36:04 +0000]
arm: cardhu: correct EMEM_ARB_CFG in emc dfs table

The memory frequencies 266.5mhz and 437mhz have incorrect
EMEM_ARB_CFG set in emc table of  Samsung part. That resulted
in emc scaling completely disabled and emc runs at 533mhz all
time. The settings have been corrected to 0x00000008
and 0x0000000D.

Bug 1030392

Change-Id: I2ca9b1d8b93fbf292b33e8f39ee77a00cd11b2a6
Signed-off-by: Wen Yi <wyi@nvidia.com>
Reviewed-on: http://git-master/r/122163
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: host: invalidate FDC before context save
Nuno Subtil [Tue, 7 Aug 2012 05:11:01 +0000]
video: tegra: host: invalidate FDC before context save

Invalidate the FDC before submitting the context save pushbuffer to
ensure cache coherency across both GPU cores.

Bug 1020291

Change-Id: I595d16f42b03edd6f0938741905f1f94211c3962
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/121945
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Parker <dparker@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: cardhu: Disable ACCELIRQ
Prem Sasidharan [Fri, 27 Jul 2012 22:22:15 +0000]
arm: tegra: cardhu: Disable ACCELIRQ

Setting MPU_ACCEL_IRQ_GPIO to 0. This helps prevent creation of
device node /dev/accelirq and enable timerirq to provide polling
ticks for the MPU sensors. The MPU sensors are not currently
operating in interrupt mode, the sensors needs to be polled at
regular interval. MPU sensor HAL enables the polling timer in
the absense of /dev/accelirq device node.

Bug 947670

Signed-off-by: Prem Sasidharan <psasidharan@nvidia.com>
Change-Id: I8a2c60da00e7d288ec785aa204bdb3207d717028
(cherry picked from commit 27e76e47b5998941259b7ba3ffb77a486760e2c1)
Reviewed-on: http://git-master/r/120255
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomisc: tegra-throughput: warn on short frames
Ilan Aelion [Tue, 7 Aug 2012 15:27:45 +0000]
misc: tegra-throughput: warn on short frames

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

Bug 1027664
Bug 1028850

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

6 years agokernel/drivers: Atmel: Increase input_dev buf size
Xiaohui Tao [Tue, 7 Aug 2012 00:44:36 +0000]
kernel/drivers: Atmel: Increase input_dev buf size

Multi-touch causes a lot of events being generated. Increase the
buffer size so that it does not queue up very rapidly. May still
cause the screen to become slow.

BUG 1025871

Change-Id: If4488e38c88f0a533d7deb5654f67ca896f9f344
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/121497
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Jung <djung@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoarm: tegra: enterprise: change BB to DAP5 from DAP3 for A04
Tom Cherry [Tue, 8 May 2012 22:41:16 +0000]
arm: tegra: enterprise: change BB to DAP5 from DAP3 for A04

Due to a hardware issue, Audio Baseband lines are changed
for A04 board from DAP3 to DAP5. All other boards retain
the same older line

Bug 980383

Bug 1014702

Change-Id: If9ecfaa7328a9a7148f95d604926975172c0886a
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/105168
(cherry picked from commit 65688c4123a896291b5d08e511a609aaedd1b319)
Reviewed-on: http://git-master/r/121107
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>
Tested-by: Manish Tuteja <mtuteja@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: dc: move set default videomode out of _tegra_dc_enable.
Marvin Zhang [Fri, 3 Aug 2012 00:03:21 +0000]
video: tegra: dc: move set default videomode out of _tegra_dc_enable.

Set default videomode happens during probe and resume. _tegra_dc_enable
is also called during hotplug, setting default videomode there causes
hdcp test failure.

Bug 991805

Change-Id: I8a5355d764cbcd386f5749430b42f2226ea44ebe
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/121052
Reviewed-by: Gaurav Sarode <gsarode@nvidia.com>
Tested-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoWAR: gr3d: limit 3d clock when camera is on
Jihoon Bang [Tue, 19 Jun 2012 23:12:00 +0000]
WAR: gr3d: limit 3d clock when camera is on

As WAR, limit 3d clock frequency and emc clock frequency
when camera is on and chip is AP37. 3d clock is set to
361MHz and 437MHz is requested for emc clock with this
change. This change allows 3d to request 1.1V in Core
instead of 1.3V in AP37.

Bug 1001262
Bug 1019309

Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Change-Id: I1dbab3469a31ef603f7665fc5a6cb5c1999f89b6
Reviewed-on: http://git-master/r/120480
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agokernel/arch: Cardhu: Decrease sensitivity of touch
Xiaohui Tao [Thu, 2 Aug 2012 00:28:31 +0000]
kernel/arch: Cardhu: Decrease sensitivity of touch

Decrease the sensitivity threshold of touch. It might still cause
false touches. May decrease the performance.

BUG 1025873

Change-Id: I9c287a07b470878b05e2e5684a296fbfb5f22aad
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/120454
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Jung <djung@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agomisc: tegra-throughput: prevent race on init
Ilan Aelion [Sun, 5 Aug 2012 12:56:40 +0000]
misc: tegra-throughput: prevent race on init

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

Bug 1027664

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

6 years agoARM: tegra: cardhu: update memory timings
Ray Poudrier [Tue, 3 Jul 2012 18:43:05 +0000]
ARM: tegra: cardhu: update memory timings

Extend tick length to 60ns

Also add missed Cardhu SKU 1000 table

Bug 1001229
Bug 970610

Change-Id: I224158a88d02595d5b911f59b6920b9ed99481ab
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113315
(cherry picked from commit 492193079047d9c5a4fff617a14191438f356e42)
Reviewed-on: http://git-master/r/120967
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoARM: tegra: enterprise: update memory timings
Ray Poudrier [Tue, 3 Jul 2012 03:17:42 +0000]
ARM: tegra: enterprise: update memory timings

Extend to 60ns tick

Bug 1001229

Change-Id: Id2b01218a7c5cb1566d0e8c175defb12c79e6497
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113122
(cherry picked from commit 176fd3fbaede0d38281fe4bad721856e7fef0833)
Reviewed-on: http://git-master/r/120966
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoARM: tegra: kai: update memory timings
Ray Poudrier [Mon, 2 Jul 2012 23:41:32 +0000]
ARM: tegra: kai: update memory timings

Extend tick length to 60ns

Bug 1001229

Change-Id: I8a96dd08b6d11a196c9b82bec403ab2e4676e2f4
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113081
(cherry picked from commit 487622aa43568d3f6f9a9f5fc98176e5ffdd6246)
Reviewed-on: http://git-master/r/120965
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoARM: tegra: la: scale latency allowance based on ticks
Ray Poudrier [Fri, 22 Jun 2012 05:03:54 +0000]
ARM: tegra: la: scale latency allowance based on ticks

With new memory tables, the tick length will be longer.
This will check the tick length of the memory table,
and if needed, update the latency allowance.

Bug 955082

Change-Id: Idba0071c1452db95e3e430db3bea29947e1def6c
Reviewed-on: http://git-master/r/111040
(cherry picked from commit b7627149bd4678e58dfe95db04f5312232715afd)
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/120964
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agomedia: video: tegra: fix sh532u buffer overflows
Frank Chen [Wed, 1 Aug 2012 23:17:44 +0000]
media: video: tegra: fix sh532u buffer overflows

We need to validate the buffer size before we
copy buffers from/to user space.

Bug 1027334

Change-Id: I0717e9ff1d2e5eb3e8a863555457f4bcfdbb2cb9
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/120407
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Anton Kondratenko <akondratenko@nvidia.com>
Reviewed-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-by: Wei Chen <wechen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoasoc: codecs: max98088: fix no audio after reset
Sayak Ghosh Choudhury [Sun, 5 Aug 2012 08:40:17 +0000]
asoc: codecs: max98088: fix no audio after reset

98088 codec register value is altered to fix no audio issue after
reset. Previously after reset the register value was getting wiped
out.

Bug 1017782

Change-Id: I4c6d164067465e15571d1403375eb944a4989f59
Reviewed-on: http://git-master/r/121138
Tested-by: Sayak Choudhury <sayakc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Tue, 31 Jul 2012 22:53:09 +0000]
security: tf_driver: integrate latest TL release

Tegra 3 version: TF_TEGRA3_AB01.14.36781

1)Kernel boot addr in TF boot args, branch prediction activated early,
fix in system driver mapping.
2)Several improvments in boot and L2CC operations
3)Fix to support Neon

Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>

Change-Id: I6ba85c593331d32e0268e7d6a2d65fdeb8e1214e
Reviewed-on: http://git-master/r/119790
Reviewed-on: http://git-master/r/120960
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: James Zhao <jamesz@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: optimize L2 enable/disable paths for secureos
Hyung Taek Ryoo [Tue, 31 Jul 2012 22:43:34 +0000]
arm: tegra: optimize L2 enable/disable paths for secureos

For the CONFIG_TRUSTED_FOUNDATION code paths, differentiate L2
enable vs. reenable, which are different SMCs (won't trigger an
invalidate in the case of a reenable).

On an L2 disable SMC, optionally pass a 0 for the L2 ways arg,
which skips the full clean/invalidate (and simply just disabled
the L2).

In order to safely skip flushing the L2 on the disable, we have
to be careful what we dirty from the type we flush the L1 and
disable the L2.

Bug 939415
Signed-off-by: Chris Johnson <cwj@nvidia.com>

Change-Id: Ie83703e8a1620dcd4a913e43bb0775ce3f1709b5
Reviewed-on: http://git-master/r/119786
Reviewed-on: http://git-master/r/120956
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: James Zhao <jamesz@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 2 Aug 2012 12:19:17 +0000]
ARM: tegra: cardhu: report height/width for cardhu

For accurate Dots-per-inch computation we need to report height/width for
all cardhu based panels.

Bug 1003707.

Change-Id: I06c5ee077aa82a9ffd958e1cc7c536b445523da3
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/120350
(cherry picked from commit 5647ca7f3fe44781a3b9a49f3215d8c629d78f49)
Reviewed-on: http://git-master/r/120625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

6 years agoARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 26 Jul 2012 21:30:05 +0000]
ARM: tegra: cardhu: report height/width for cardhu

For accurate Dots-per-inch computation we need to report height/width for
the cardhu panel.

Bug 1003707.

Change-Id: I9a3413d06d97bed532ffc501000ca9bc2360e842
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118777
(cherry picked from commit bf475b5c3f084af205957fa2be68ef9f3cf57c3b)
Reviewed-on: http://git-master/r/120624
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: cardhu: provide suspend aggr for E1506
Rakesh Iyer [Thu, 26 Jul 2012 19:18:05 +0000]
ARM: tegra: cardhu: provide suspend aggr for E1506

DSI clock gating requires a valid value for aggressive suspend.

Change-Id: I6847fb94e2db899ff251e16f045fa76b8ad2e737
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118733
(cherry picked from commit a9d87f3b8f9ec811d6f8e0feb10bfb5151cc659c)
Reviewed-on: http://git-master/r/120404
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agovideo: tegra: hdmi: cleanup error handling in init
Gaurav Batra [Wed, 1 Aug 2012 19:28:51 +0000]
video: tegra: hdmi: cleanup error handling in init

In case tegra_dc_init fails, this change will prevent unbalanced call
to dc->out_ops->disable().

Also mark tegra_dc_io_end in case tegra_dc_controller_enable
fails, this is required to not stop device from going into suspend mode.

Bug 1003874

Change-Id: I5af6b46fc50e1ae8e54f9f4eb8540d751364fed7
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/120108
(cherry picked from commit 7f72709c2f23c05f65ff4ca8bfecde0db1448a65)
Reviewed-on: http://git-master/r/120959
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: usb: Clear pmc wake alarm
Krishna Yarlagadda [Tue, 31 Jul 2012 10:48:50 +0000]
ARM: tegra: usb: Clear pmc wake alarm

After a pmc wake, walk pointer and wake alarm should be cleared.
Currently wake alarm is cleared only in case of remote wakeup.
Clearing wake alarm for all cases of pmc wake.

Bug 1024496

Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/119619
(cherry picked from commit c3e88db583fec3126ad100775de777a30d9114c6)

Change-Id: Ia9e8340d0bea23ccc8aaf3cb522526d9f7076853
Reviewed-on: http://git-master/r/120337
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: Tegra: Added support to run at two frequency modes
Xiao Bo Zhao [Fri, 29 Jun 2012 19:46:11 +0000]
ARM: Tegra: Added support to run at two frequency modes

CPU clock is now capped at an normal frequency that is below
its maximum and allowed to run at a high frequency
only once within a period of time. By default the delay is set to
5*DOWN_DELAY, allowing a maximum of 20% high frequency time.

Sysfs knobs were also added that allows userspace tuning

Bug 1003531

Change-Id: Ic9be46cdae099771950f14e8a6ca79eeab7adbba
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
(cherry picked from commit 779a488fb850eb452a7b43788b87edb4186b69b9)
Reviewed-on: http://git-master/r/121042
Reviewed-by: Ryan Wong <ryanw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: hdcp: Fix Locking Issue
Matt Wagner [Thu, 2 Aug 2012 22:49:50 +0000]
video: tegra: hdcp: Fix Locking Issue

Locking in nvhdcp was set up in such a way that we couldn't
change the state of the HDMI plug while negotiating the HDCP connection.

Another lock was added that is only taken when the state of the plug or
hdcp session are changed.  This enables correct failure if the plug is removed
during negotiation.

Bug 1024031

Change-Id: Ia9e49fcd7b996d2ce5338a72ce4e66c1ab40e1bb
Reviewed-on: http://git-master/r/120546
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agomisc: tegra-throughput: prevent division by 0
Ilan Aelion [Thu, 2 Aug 2012 17:01:02 +0000]
misc: tegra-throughput: prevent division by 0

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

Bug 1027664

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

6 years agoarm: configs: tegra3: Enable boost cpu frequency
Rakesh Bodla [Thu, 2 Aug 2012 12:33:57 +0000]
arm: configs: tegra3: Enable boost cpu frequency

Enabling boost CPU frequency for tegra gadget
to improve USB performance.

Bug 1020850

Change-Id: I3ef7cbc4e023ffe1443fc2e662550963f34d1daf
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120353
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rama Kandhala <rkandhala@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoUSB: gadget: f_accessory: change prototype of create_bluk_endpoints
Rakesh Bodla [Thu, 2 Aug 2012 08:54:39 +0000]
USB: gadget: f_accessory: change prototype of create_bluk_endpoints

Changing prototype of create_bluk_endpoints since
function can called during runtime.

Bug 1026235

Change-Id: Ic80eaeb374fb3863cd16be3234653eda80c5eff2
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120308
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: usb_phy: use devm_kfree to free memory
Rakesh Bodla [Thu, 2 Aug 2012 06:10:48 +0000]
arm: tegra: usb_phy: use devm_kfree to free memory

devm_kfree() should be used to free memory allocated by devm_kzalloc()
Memory allocated with devm_kzalloc is automatically freed on driver
detach. Kernel crash will be observed if it is freed with kfree().

Bug 1027472

Change-Id: I48533d520b5c2669ca473c700eec689e2ddcbb90
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120273
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoRevert "Modified the hot-plug governor down_delay to be 500ms instead of 2s"
naveenk [Thu, 26 Jul 2012 08:56:55 +0000]
Revert "Modified the hot-plug governor down_delay to be 500ms instead of 2s"

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

Bug 1006055
Bug 1021754

This reverts commit 2f5a59bbeee465fb33d012b8dc714fa0c1637209.

Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
(cherry picked from commit 6ba0905d5dbd55d2604f0db2c597826d4354d20a)
Change-Id: I09203754db840428dc9df2b9eff9b5d9b88a7ffb
Reviewed-on: http://git-master/r/120261
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agomedia: tegra: ov9726: add group hold ioctl
Charlie Huang [Wed, 1 Aug 2012 01:41:38 +0000]
media: tegra: ov9726: add group hold ioctl

To make AE transition smoother, the group hold enable/disable actions
should be added before and after set gain/frame length/coarse time.

bug 1025995

Change-Id: I578b33167e50f59d0d9a88a0e16fac0c5425b6b6
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/120406
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

6 years agomedia: video: tegra: Focuser range tuning support
Sudhir Vyas [Thu, 26 Jul 2012 05:42:33 +0000]
media: video: tegra: Focuser range tuning support

* Add support for focuser range tuning.
* Fix focuser position move programming.
* Optimize focuser read/write.
* Optimize focuser power consumption.
* Fix foucser sound issue while capture.
* Improve overall focuser performance.

Bug 1013062
Bug 1018136
Bug 978541

Change-Id: I57fc0566a3a43468ce9a07319014cf3c038ed1e1
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/120307
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoRevert "regulator: tps80031: rename regulator-name enums"
Simone Willett [Tue, 31 Jul 2012 23:30:10 +0000]
Revert "regulator: tps80031: rename regulator-name enums"

This reverts commit 5bc340e408aa3f009651735c71f3c97676fbe79f

Change-Id: I70e40e9cf025c73fde46d1a5577547dc37182a64
Reviewed-on: http://git-master/r/119800
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: aruba: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:54:53 +0000]
ARM: tegra: aruba: get rid of tegra_gpio_enable()

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

Change-Id: I9e07a452f81c31abf29260cd3d833ee275d4d694
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: harmony: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:52:40 +0000]
ARM: tegra: harmony: get rid of tegra_gpio_enable()

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

Change-Id: Ic36636535be7be9b799b9f6bf0c56aac89675e63
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomedia: tegra: ov5650: update 320x240 mode
Wei Chen [Mon, 30 Jul 2012 23:53:14 +0000]
media: tegra: ov5650: update 320x240 mode

Add default values for coarse time and gain
settings.

Bug 990513

Change-Id: I7f6bae50de911f26d10991e1094de211c8f05632
Signed-off-by: Wei Chen <wechen@nvidia.com>

6 years agovideo: tegra: dc: suppress underflow warning
Jay Cheng [Mon, 30 Jul 2012 23:30:14 +0000]
video: tegra: dc: suppress underflow warning

change printk to trace_printk

Bug 995270

Change-Id: I71caadb76f6101f377e44ad3f3dc24ede0a099d5
Signed-off-by: Jay Cheng <jacheng@nvidia.com>

6 years agoARM: tegra: cardhu: WAKE19 disable
Bitan Biswas [Mon, 30 Jul 2012 16:02:05 +0000]
ARM: tegra: cardhu: WAKE19 disable

We see repeated WAKE19 (VBUS) resumes when USB device cable is connected
for E1186/E1187 cardhu boards. Hence, this change disables the WAKE19 to
prevent the problem

bug 1025421

Change-Id: If7ebf68ebf257a9bea58652042d77f0c19f40366
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agousb: otg: tegra: correct improper register update
Rakesh Bodla [Mon, 30 Jul 2012 14:58:36 +0000]
usb: otg: tegra: correct improper register update

Value of WAKEUP register is not updated
properly. Correcting it to take appropriate
value.

Bug 1008660

Change-Id: Ic1dcfed6639c8e8c686bc6931216fd268e4521ed
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>

6 years agoARM: configs: tegra: enable ISO9660 fs
Vishal Singh [Thu, 19 Jul 2012 13:50:49 +0000]
ARM: configs: tegra: enable ISO9660 fs

Enabling ISO9660 file system (and its JOLIET extension) support in
kernel.

Bug 1018276.

Change-Id: I1acaf5dc3a571b75a81860485d3c668ea82d822c
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/117372
Tested-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit c35638147c3fa9d56f124b4d6c0435aadad53d97)

6 years agoarm: tegra: p1852: Add USB_G_ANDROID support
Amlan Kundu [Mon, 16 Jul 2012 09:35:23 +0000]
arm: tegra: p1852: Add USB_G_ANDROID support

+ require for android adb

bug 1005255

Change-Id: If2c8d197f987ddd43a9b6a6cc602ac1e2f4ae2f8
Signed-off-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/114562
(cherry-picked from 6640721b05059f03325abadfebe2f08026a41a88)

6 years agovideo: tegra: nvmap: Fix two integer overflows.
Tuomas Tynkkynen [Mon, 30 Jul 2012 09:40:45 +0000]
video: tegra: nvmap: Fix two integer overflows.

nvmap_ioctl_pinop kmalloc's a temporary buffer, whose length is directly
given by ioctl parameter from usermode. The total size of the buffer
is not checked for overflow, which will cause a kernel panic with some
inputs.

Also, a sizeof() is applied to wrong type when calculating the amount
of bytes to copy from userspace.

nvmap_map_into_caller_ptr attempts to validate that the memory range
to be mapped is correct, but integer overflow can cause the check to
fail. This will lead to mapping wrong pages from the allocated
handle later on, when the page fault handler gets called.

Bug 1025502

Change-Id: I71a09c40c209dba9c5b37c3912e92a81e6f87e80
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>

6 years agoarm: tegra: p1852: Add android defconfig for p1852
Amlan Kundu [Mon, 30 Jul 2012 07:05:17 +0000]
arm: tegra: p1852: Add android defconfig for p1852

bug 1025348

Change-Id: I0206c273af45b51fdd67e94c80f915a33950a929
Signed-off-by: Amlan Kundu <akundu@nvidia.com>

6 years agousb: cdc_ether: Add rmnet device info to ZM5250
BH Hsieh [Mon, 30 Jul 2012 07:16:04 +0000]
usb: cdc_ether: Add rmnet device info to ZM5250

Modified device info element for ZM5250 to
sync with framework.

Change-Id: I855678edccef50c549960ee209e500ec6d692e36
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>

6 years agoregulator: tps80031: rename regulator-name enums
Laxman Dewangan [Wed, 25 Jul 2012 07:57:22 +0000]
regulator: tps80031: rename regulator-name enums

Renaming the regulator name from TPS80031_ID_* to
TPS80031_REGULATOR_* for better readability.

Change-Id: I6176cb213d23e44061549fd1e81306756a324523
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: enterprise:all configuration through regulator init data
Laxman Dewangan [Thu, 26 Jul 2012 11:39:56 +0000]
ARM: tegra: enterprise:all configuration through regulator init data

In place of using the separate platform data for configuring
regualtor's init states, pass all information through
regulator init data only.

Change-Id: I76f05bfa0da1b8867e7d4d5578ed9067eed6a882
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: usb_phy: Separate the consumer supply
Penny Chiu [Wed, 25 Jul 2012 07:35:25 +0000]
arm: tegra: usb_phy: Separate the consumer supply

Add usb host controller device names for avdd_usb
consumer supply. This change will make all usb
host controller devices have separate regulator
debugfs.

Bug 946361

Change-Id: I8f2a49bffc4623eac2e3f71333b602fb7a6caf7d
Signed-off-by: Penny Chiu <pchiu@nvidia.com>