6 years agoregulator: tps65090: rename regulator enums
Laxman Dewangan [Thu, 2 Aug 2012 13:18:07 +0000]
regulator: tps65090: rename regulator enums

Renaming regulator enums from TPS65090_ID_* to
TPS65090_REGULATOR_* for better readability.

Change-Id: I402de2069045b97000686e8010897c4a0821a48d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120835
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agomfd: tps80031: fix wrong regmap for charger
Xin Xie [Fri, 3 Aug 2012 01:28:48 +0000]
mfd: tps80031: fix wrong regmap for charger

BUG 1026050

Change-Id: Ide19fd183ee172c84b0d5d2d0382e8ec944f2a87
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/120580
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: cardhu: add support for lid switch
Rhyland Klein [Thu, 2 Aug 2012 19:09:15 +0000]
ARM: tegra: cardhu: add support for lid switch

Chromeos testing includes verifying the lid switch is functional.
While cardhu's don't have lids, this can be tested via the
lid_switch dip switch on the debug board. Add support for the lid
switch via gpio_keys.

bug 1027716

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I7b2e31798b6cfa0715980ddd93dd6b5292ca20d3
Reviewed-on: http://git-master/r/120445
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@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>

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>

6 years agoinput: touch: atmel_mxt_ts: Add Ftrace logging.
Vikas Jain [Fri, 27 Jul 2012 10:05:47 +0000]
input: touch: atmel_mxt_ts: Add Ftrace logging.

This change assists automating system wide
touch driver performance.

Bug 928954

Change-Id: Iea21dfea1c31748ce5835652cecc0856c4f4028d
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/118984
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: David Jung <djung@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

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
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@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/119835
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@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
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoregulator: tps65090: Use IS_ERR to check return value of regulator_register
Laxman Dewangan [Thu, 2 Aug 2012 12:42:04 +0000]
regulator: tps65090: Use IS_ERR to check return value of regulator_register

regulator_register never returns NULL.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(Cherry-picked from mainline
0ca2d6e65268477a53f959320a43d13b0c4d6b70)

Conflicts:

drivers/regulator/tps65090-regulator.c

Change-Id: Id79e2beb2a3e278ace32054c19c463783f334a16
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120372

6 years agomfd: Convert tps65090 to devm_regmap_init_i2c()
Axel Lin [Wed, 25 Apr 2012 02:04:58 +0000]
mfd: Convert tps65090 to devm_regmap_init_i2c()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
1d88f7a01d9588b3298cfd6a2ec30538e96d166e)

Change-Id: I0613e268d6a9cd16a154d5dea00deb5b3eb528c4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120371
Reviewed-by: Automatic_Commit_Validation_User

6 years agomfd: Return proper error if tps65090 regmap_init_i2c fails
Axel Lin [Wed, 25 Apr 2012 01:30:36 +0000]
mfd: Return proper error if tps65090 regmap_init_i2c fails

Return proper error instead of 0 if regmap_init_i2c fails.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherrypicked from mainline
b683a0a675560307ebc458cf9044d98d27820b7c)

Change-Id: I2643a80e320664723d0fbb91b22120ec8d82a7df
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120370

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

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

6 years agoUSB: gadget: f_accessory: change prototype of create_bluk_endpoints
Rakesh Bodla [Thu, 2 Aug 2012 06:35:28 +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: I9a39abb4de4548f18e6c6482e56a9126fe4122a3
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120277
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:23:39 +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: I27ae63c26647f055de60c2837edfd5fd44a9dabc
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120245
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@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
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoregulator: tps80031: support for external regulator
Laxman Dewangan [Wed, 1 Aug 2012 09:18:59 +0000]
regulator: tps80031: support for external regulator

TPS80031 supports the three external regulator named
as REGEN1, REGEN2 and SYSEN.
Supports these regulator through regulator driver.

Change-Id: I6c22aab13499a66ab8b4c68e8a5833553222decd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119977

6 years agoregulator: tps80031: register regulators as mfd sub device
Laxman Dewangan [Thu, 2 Aug 2012 08:04:01 +0000]
regulator: tps80031: register regulators as mfd sub device

Converting tps80031 regulator driver to be register as mfd
sub device of the tps65910 and register all its regulators from
single probe calls.
Add separate platform data for the regulator to be supply from
board as part of tps80031 platform data.

Change-Id: Ie65b25f3058202070f7f917e64a4a660dd941210
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119976

6 years agoregulator: tps80031: separate device info with platform info
Laxman Dewangan [Fri, 27 Jul 2012 08:22:01 +0000]
regulator: tps80031: separate device info with platform info

Currently the platform specific data is sharing with
device information structure and hence it restrict to
use the multiple instance of the device.
Separating the device specific information to the platform
specific data and allocating different memory for
storing platform specific data.

Change-Id: I74284514c764f1ceb84f5d9dda215fea7f3cbd13
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119975

6 years agoARM: tegra: p1852: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:27:22 +0000]
ARM: tegra: p1852: 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: Ie3ae3375348cd8cbe94b14bd5ce3a861d73cc30c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119610
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: ventana: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:26:22 +0000]
ARM: tegra: ventana: 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: I870c361cfcfff949620c0518afb324faeb5879d3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119609

6 years agoARM: tegra: cardhu: get rid of tegra_gpio_enable() in hsic registration
Laxman Dewangan [Tue, 31 Jul 2012 08:56:16 +0000]
ARM: tegra: cardhu: get rid of tegra_gpio_enable() in hsic registration

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

Change-Id: Id54a26bc2f3a968c60364b1d5109dd23ff724b94
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119606
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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>

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>

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>

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
Reviewed-on: http://git-master/r/119098
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@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/118543
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agousb: otg: tegra: enable warning as error flag
Deepak Nibade [Wed, 25 Jul 2012 04:52:32 +0000]
usb: otg: tegra: enable warning as error flag

-enable warnings as errors compilation flag
-handle errors of missing semicolon and mismatched argument type

bug 949219

Change-Id: I29b1c08c590c94fa1aa43a9e37abf0385e3597d5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118235
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoasoc: codecs: max98088: fix no audio after reset
Sayak Ghosh Choudhury [Thu, 2 Aug 2012 09:29:53 +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: I060929bfb868c48dc4db9def171a3bdd167a3913
Reviewed-on: http://git-master/r/120319
Tested-by: Sayak Choudhury <sayakc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@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>

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

Change-Id: If9ecfaa7328a9a7148f95d604926975172c0886a
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-On: http://git-master/r/#change,109067
(cherry picked from commit c3de03de4d97937e6a989ae6c79c8c430afd300e)
Reviewed-on: http://git-master/r/105168
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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>

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>

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>

6 years agow1: master: tegra: treat compile warning as error
schowdary [Tue, 24 Jul 2012 15:51:27 +0000]
w1: master: tegra: treat compile warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ifc6b454e3debf44c14720d2aa908147902d57b79
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118087
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agovideo: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:46:06 +0000]
video: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ib183b75f73df1a141f1dfdbc330369da838b24b9
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agocrypto: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:42:04 +0000]
crypto: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ie5b8eb8ebb3ca37ac111fb0acc64cd8667e2c8e1
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118079
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomisc: tegra-cryptodev: treat warning as error
schowdary [Tue, 24 Jul 2012 15:36:01 +0000]
misc: tegra-cryptodev: treat warning as error

- Add compilation flag to treat warning as error

bug 949219

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

6 years agomisc: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:24:36 +0000]
misc: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

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

6 years agopower: tegra: enable warnings as errors flag
Deepak Nibade [Tue, 24 Jul 2012 13:26:28 +0000]
power: tegra: enable warnings as errors flag

-enable warnings as errors compilation flag

bug 949219

Change-Id: Iccacce77b98498e7d13119cf41db9d34d2bea492
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118044
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agonet: caif: tegra: enable warnings as errors flag
Deepak Nibade [Tue, 24 Jul 2012 13:18:31 +0000]
net: caif: tegra: enable warnings as errors flag

-enable warnings as errors compilation flag

bug 949219

Change-Id: Ifeaba174d59c437e0068324b73dffd287f90c957
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118041
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>

6 years agowatchdog: tegra: enable compile warning as error
schowdary [Tue, 24 Jul 2012 13:16:07 +0000]
watchdog: tegra: enable compile warning as error

- Add compilation flag to treat warning as error
- Handle error of unused variable
- Handle error of uninitialised variable

bug 949219

Change-Id: I07437be5eaa7bf7abe5494c828690b6be3b98178
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118039
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agousb: gadget: treat warning as errors for tegra_udc.c
Deepak Nibade [Tue, 24 Jul 2012 13:10:54 +0000]
usb: gadget: treat warning as errors for tegra_udc.c

bug 949219

Change-Id: If76cece9a5c929216024b165f48f37c4046faffc
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118037
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonand: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 13:00:09 +0000]
nand: tegra: treat warnings as errors

add compilation flag to treat warnings as errors

bug 949219

Change-Id: Iac1b0e608ac5b19f5f84380ab7ffc76e14c3d7a0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118033
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoiommu: tegra/gart: resolve compilation warning
schowdary [Tue, 24 Jul 2012 12:33:47 +0000]
iommu: tegra/gart: resolve compilation warning

- Add compilation flag to treat warning as error
- resolve label defined but not used error in smmu

bug 949219

Change-Id: Ie6693cf21904008bbe927b27817a9cd02ed0d34f
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118025
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoserial: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 12:17:56 +0000]
serial: tegra: treat warnings as errors

-add compilation flag to treat warning as error

bug 949219

Change-Id: I1b4eb4a38abbf6140ab5929bb51eec469b96b710
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>

6 years agotegra: sata: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 12:05:14 +0000]
tegra: sata: treat warnings as errors

-add compilation flag to treat warning as error

bug 949219

Change-Id: I23c961756ebe7b84ff019995e5c0704693fdf13f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118016
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Yen Lin <yelin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

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>

6 years agoregulator: tps80031: make regualtor_init_data as pointer type
Laxman Dewangan [Wed, 1 Aug 2012 08:51:19 +0000]
regulator: tps80031: make regualtor_init_data as pointer type

The platform data of tps80031 have the regualtor_init_data as
non-pointer type. Converting this as pointer type for aligning
to regulator driver policy and easy support for DT.

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

6 years agoARM: tegra: enterpise: name all regulator rails
Laxman Dewangan [Wed, 1 Aug 2012 08:44:29 +0000]
ARM: tegra: enterpise: name all regulator rails

Provide name for all tps80031 regulator rails locally
in place of depending on the name provided by driver.

Change-Id: I845d0b27077ff6362ab1d19ba7c057260de3722e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119973
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@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: I627b6ddb78a60e44da2a869c0d51dd84166302ed
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119972
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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

This reverts commit 70e40e9cf025c73fde46d1a5577547dc37182a64

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

6 years agomisc: tegra_baseband: power: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:49:52 +0000]
misc: tegra_baseband: power: get rid of tegra_gpio_enable()

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

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

6 years agommc: host: tegra: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:48:54 +0000]
mmc: host: tegra: 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: I2c9bce83a283f6ef45754075cf3b7b1bc5c1d9ac
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119612
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: enterprise: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:29:23 +0000]
ARM: tegra: enterprise: 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: I3f81c54d2e1933684689df88814b98f617da3545
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119611
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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

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

Change-Id: I3e3e49fb3b970b090f2184c21601f676356212a4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119608
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: David Jung <djung@nvidia.com>

6 years agoARM: tegra: cardhu: get rid of tegra_gpio_enable() in panel init
Laxman Dewangan [Tue, 31 Jul 2012 08:58:19 +0000]
ARM: tegra: cardhu: get rid of tegra_gpio_enable() in panel init

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

Change-Id: I394cb55d90c625f1608a0ac80b24228b57b351c1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119607
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: i2c_recovery: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:53:58 +0000]
ARM: tegra: i2c_recovery: 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: Ic266be441125c751736cada81ac17f4d36e4db5d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119605

6 years agoARM: tegra: usb_modem: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:48:18 +0000]
ARM: tegra: usb_modem: 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: I19fea4d4752b72809bf65fbd0a0b255705ec33f8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119604
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: usb_phy: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:44:16 +0000]
ARM: tegra: usb_phy: 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: I6629743f34ffc6fa3b505deff5b9dc940b7160ef
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119603
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@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>
Reviewed-on: http://git-master/r/119436
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chinmay Kamat <ckamat@nvidia.com>
Reviewed-by: Alexandre Berdery <aberdery@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>

6 years agoARM: 7017/1: Use generic BUG() handler
Vishal Singh [Fri, 27 Jul 2012 06:58:00 +0000]
ARM: 7017/1: Use generic BUG() handler

ARM uses its own BUG() handler which makes its output slightly different
from other archtectures.

One of the problems is that the ARM implementation doesn't report the
function
with the BUG() in it, but always reports the PC being in __bug(). The
generic
implementation doesn't have this problem.

Currently we get something like:

kernel BUG at fs/proc/breakme.c:35!
Unable to handle kernel NULL pointer dereference at virtual address
00000000
...
PC is at __bug+0x20/0x2c

With this patch it displays:

kernel BUG at fs/proc/breakme.c:35!
Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP
...
PC is at write_breakme+0xd0/0x1b4

This implementation uses an undefined instruction to implement BUG, and
sets up
a bug table containing the relevant information. Many versions of gcc do
not
support %c properly for ARM (inserting a # when they shouldn't) so we
work
around this using distasteful macro magic.

v1: Initial version to replace existing ARM BUG() implementation with
something
more similar to other architectures.

v2: Add Thumb support, remove backtrace whitespace output changes.
Change to
use macros instead of requiring the asm %d flag to work (thanks to
Dave Martin <dave.martin@linaro.org>)

v3: Remove old BUG() implementation in favor of this one.
Remove the Backtrace: message (will submit this separately).
Rebase to linux-2.6.git master.

v4: Allow BUGS in modules (these were not reported correctly in v3)
(thanks to Stephen Boyd <sboyd@codeaurora.org> for suggesting that.)
Remove __bug() as this is no longer needed.

v5: Add %progbits as the section flags.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit 87e040b6456fd3416a1f6831c1eedaef5c0a94ff)

Change-Id: Ic7692288dff6e4a15c732eb030295bd196a87fb4
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/117356
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit 6708ffd0b44f4d09d8fe745471641545655091fb)
Reviewed-on: http://git-master/r/119328
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@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>

6 years agoregulator: tps62361: make all register as non-volatile
Laxman Dewangan [Tue, 31 Jul 2012 10:14:03 +0000]
regulator: tps62361: make all register as non-volatile

All register fo TPS62361 is non-volatile and so implementing
this api for regmap actual caching.

bug 993297

Change-Id: I7695ed54bdb0fd9dec13e735264c12b60e18777a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119592

6 years agommc: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 13:11:46 +0000]
mmc: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error
- Modified sdhci-tegra.c to remove compile warning

bug 949219

Change-Id: I704ea95e3b8ca8862482b6793b71ca4e5114f832
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118036
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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

Change-Id: I5374d792fe1564fd4a04a48d9fa9de2c93cc94dd
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/119619
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@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
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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.

Change-Id: Ie54c28859ead976b5c554191d42eb22569370063
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/118575
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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>

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: Ie4a0e565630187bdacd6f31b1f35778eb31bfc81
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/118163
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@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>

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>

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>

6 years agoi2c: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:56:39 +0000]
i2c: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: If40890724e2ba6b9c8356c9b031216eb526a5fd8
Signed-off-by: schowdary <schowdary@nvidia.com>

6 years agohwmon/tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 13:30:27 +0000]
hwmon/tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: I1106e3d7d13e0c6305a8709ddfdf85e7652f26a1
Signed-off-by: schowdary <schowdary@nvidia.com>

6 years agortc/tegra: treat compilation warning as error
schowdary [Wed, 25 Jul 2012 07:00:01 +0000]
rtc/tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ic52b13519b817ab3861bd56692ec6b6da60edc48
Signed-off-by: schowdary <schowdary@nvidia.com>

6 years agogpio: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 08:02:02 +0000]
gpio: tegra: treat warnings as errors

add compilation flag to treat warnings as errors

bug 949219

Change-Id: Icc202aabd0a43a7c48a32e40fdf7bffe0142c2ff
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>

6 years agoarm: tegra: usb_phy: add close operation for hsic
Vinayak Pane [Sat, 21 Jul 2012 02:02:29 +0000]
arm: tegra: usb_phy: add close operation for hsic

hsic phy_power_off keeps hsic bus in suspend state
through PMC interface. The bus should go in reset
state at phy_close otherwise the connected device
will not enumerate after ehci-remove.

Bug 1003141

Change-Id: Ifa91d06a3c10221e74de67c68ea1f930d843d19f
Signed-off-by: Vinayak Pane <vpane@nvidia.com>

6 years agokthread: disable preemption during complete()
Peter Boonstoppel [Thu, 19 Jul 2012 21:58:10 +0000]
kthread: disable preemption during complete()

After a kthread is created it signals the requester using complete()
and enters TASK_UNINTERRUPTIBLE. However, since complete() wakes up
the requesting thread this can cause a preemption. The preemption will
not remove the task from the runqueue (for that schedule() has to be
invoked directly).

This is a problem if directly after kthread creation you try to do a
kthread_bind(), which will block in HZ steps until the thread is off
the runqueue.

This patch disables preemption during complete(), since we call
schedule() directly afterwards, so it will correctly enter
TASK_UNINTERRUPTIBLE. This speeds up kthread creation/binding during
cpu hotplug significantly.

Change-Id: I856ddd4e01ebdb198ba90f343b4a0c5933fd2b23
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>

6 years agoRevert "mmc: host: Disable SDIO card clock when idle"
Pavan Kunapuli [Mon, 25 Jun 2012 10:12:55 +0000]
Revert "mmc: host: Disable SDIO card clock when idle"

Without card clock, inband interrupt is not working on
some wifi chips.

Bug 981683

This reverts commit b31946b34507209f26c6d709e23fd1c0cedd25f8.

Change-Id: I2dd86edb2445bd6db7917adf509b7a018d31aaed
Reviewed-on: http://git-master/r/110839

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Change-Id: I6f2266ac5b6bd9585272958b4b8a89af1b3cdffb
Reviewed-on: http://git-master/r/119009
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

6 years agoARM: tegra: wifi dpd control for reset
Bitan Biswas [Fri, 27 Jul 2012 10:39:39 +0000]
ARM: tegra: wifi dpd control for reset

Wifi On/Off needs to toggle GPIO pins under SDMMC that could be
in IO DPD mode.

bug 1021526

Change-Id: If514059372d2242c6f6512b30534536cbff455dd
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/118940
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>

6 years agoregulator: tps65090: align driver with mainline
Laxman Dewangan [Mon, 30 Jul 2012 12:59:25 +0000]
regulator: tps65090: align driver with mainline

Align driver with mainline.
This is based on mainline change
452534e50780697a7e1d3cf87cdfdd2b5a0d3c6b
------------------
regulator: Add TPS65090 regulator driver

Add TPS65090 regulator driver

TPS65090 PMIC from TI consists of 3 step down converters,
2 always on LDOs and 7 current limited load switches. The
output voltages are ON/OFF controllable and are meant to
supply power to the components on target board.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-----------------

Change-Id: I2aeacc948e2aa15aedd73c704787eef8ace9d336
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119321
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: usb: keep usb vdd regulator on
Rakesh Bodla [Mon, 30 Jul 2012 09:46:18 +0000]
ARM: tegra: usb: keep usb vdd regulator on

Adding the conditions during which USB vdd
regulator should be kept ON.

Bug 1024425
Bug 1012078
Bug 1018538

Change-Id: I3319c91ecc02891ea4467f73be2b84a3817dab36
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/119279
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra: usb: free allocated resources in error
Rakesh Bodla [Fri, 27 Jul 2012 18:38:08 +0000]
ARM: tegra: usb: free allocated resources in error

Free allocated resources at approriate error
conditions.

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