7 years agovideo: tegra: nvmap: fix input check in mmap ioctl
Tuomas Tynkkynen [Tue, 31 Jul 2012 14:49:49 +0000]
video: tegra: nvmap: fix input check in mmap ioctl

nvmap_map_into_caller_ptr takes a memory handle from usermode
and adds a memory mapping for the handle. However, the handle
is not checked for being allocated. An unallocated handle
would cause a kernel panic later on from a NULL dereference.

Change-Id: I73987b097a0c843b913660445e8bd1b4755dac61
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/119689
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agogpio: tegra: hide tegra_gpio_enable()/disable()
Laxman Dewangan [Tue, 31 Jul 2012 10:08:43 +0000]
gpio: tegra: hide tegra_gpio_enable()/disable()

The direction apis and irq_set_wake() support the
configuration of pins in gpio mode and hence it
is not require to export the apis for gpio_enable()/
gpio_disable().
Hiding these api.

Change-Id: I5493e4f270df85da21afb6500ac841f4fa4b522a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119616
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoARM: tegra: clocks: Frequency stats for SCLK/CBUS
Srikanth Nori [Tue, 3 Jul 2012 00:35:38 +0000]
ARM: tegra: clocks: Frequency stats for SCLK/CBUS

This adds a frequency histogram of the frequencies that SCLK
and CBUS clocks go to over time. Stats are presented in the
debugfs at /d/clock_stats/cbus and /d/clock_stats/sclk only if
debugfs is enabled in config

Change-Id: Icae83329612958d8ed4318b2e10c487683d9d734
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/118380
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

7 years agousb: gadget: tegra_udc: Enable DR IRQ in udc_start
Preetham Chandru [Tue, 10 Jul 2012 13:12:16 +0000]
usb: gadget: tegra_udc: Enable DR IRQ in udc_start

Currently dr_controller_run() is called only during otg state
change.
When we unload a gadget driver, for example g_mass_storage
gadget driver, dr_controller_stop() is called but when it is
loaded back dr_controller_run() won't get called becasue of the
if condition failure. i.e
if (!udc->transceiver) {
dr_controller_run(udc);
}

So when the gadget driver is loaded for the second time
without removing the cable (i.e without otg state change),
the device won't get enumerated on the host because DR
IRQs are not enabled.

This CL fixes the above issue.

Bug 1012787
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>

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

7 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>
Reviewed-on: http://git-master/r/123103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

7 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

Change-Id: Ib137dc4f155765cb7d7084f1f9a6f75d3bf38116
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/122808
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: James Zhao <jamesz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm: tegra: la: refactor la code.
Krishna Reddy [Mon, 13 Aug 2012 19:37:32 +0000]
arm: tegra: la: refactor la code.

This is necessary to support future tegra SOC's.

Change-Id: I2f6ce328e30a6895dce16d82c4097291339155cd
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/123146
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agovideo: tegra: host: Fix leak in 3D register read
Terje Bergstrom [Wed, 15 Aug 2012 09:12:16 +0000]
video: tegra: host: Fix leak in 3D register read

When 3D register is read, and we need to do a context switch, the old
context reference is incremented, but it never gets decremented. Fix
by using nvhost_job_get_hwctx() to acquire the reference.

Bug 1031746

Change-Id: Ic72637cb2399f960e2297733bfe45e585a8ec180
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/123678
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 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: I586e4ad6e3a94aa0c79b302e51156dbe089e481f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/121883
(cherry picked from commit 65d02640b4b0b38263687c7f3e664c873237dc43)
Reviewed-on: http://git-master/r/123431
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: power: Trace LP2 entry and exit
Antti P Miettinen [Tue, 14 Aug 2012 10:14:00 +0000]
ARM: tegra: power: Trace LP2 entry and exit

Add traces for measuring LP2 entry/exit times.

Bug 960304

Change-Id: I20bb0f8d55a7ed6f7e88e10d924871a3d09f2507
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/123313
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 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>

7 years agoARM: tegra: enterprise: set I2S as slave mode.
Ankit Gupta [Mon, 13 Aug 2012 06:44:51 +0000]
ARM: tegra: enterprise: set I2S as slave mode.

Setting default I2S mode as slave. This will help in power
optimization of around 4mW.

Change-Id: Ic2d702c332283bd0f6c4f73615e8097fb3b16ef9
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Reviewed-on: http://git-master/r/122943
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: p1853: get rid of tegra_gpio_enable()
Laxman Dewangan [Mon, 13 Aug 2012 05:51:45 +0000]
ARM: tegra: p1853: get rid of tegra_gpio_enable()

The gpio mode is enabled when setting direction and
disabled when freeing gpio and hence this call is no
more required.

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

7 years agoARM: tegra: p852: get rid of tegra_gpio_enable()
Laxman Dewangan [Mon, 13 Aug 2012 05:49:41 +0000]
ARM: tegra: p852: get rid of tegra_gpio_enable()

The gpio mode is enabled when setting direction and
disabled when freeing gpio and hence this call is no
more required.

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

7 years agovideo: tegra: nvmap: Add support for zeroed pages
Alex Waterman [Wed, 1 Aug 2012 18:02:30 +0000]
video: tegra: nvmap: Add support for zeroed pages

Add support to alloc zeroed pages for user space alloc requests. Also
define a config option to force userspace allocation requests to be
zeroed.

Change-Id: I75d3b2bc36e808f1470b423578ec4cba99e0f967
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/122549
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomm: Fix incorrect cache attribute restoration.
Krishna Reddy [Thu, 9 Aug 2012 18:18:21 +0000]
mm: Fix incorrect cache attribute restoration.

armv7 uses cache policy as WRITEALLOC. CPA is
restoring the cache attributes to WRITEBACK during
set_pages_array_wb().
Fixed issues in pmd to pte prot translation and vice versa.

Change-Id: I8406b784f62d559f657ef7bc08e77c83ac6e5690
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/122472
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: xmm: adding callback for L0 sequence.
Shawn Joo [Mon, 13 Aug 2012 07:50:48 +0000]
arm: tegra: xmm: adding callback for L0 sequence.

adding callback of xmm modem for L3->L0 power sequence.

Bug 1030815

Change-Id: I4997f56819726a55fc8268a1011bc98ff6baf8ca
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/122960
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: host: Disable host1x irqs at suspend
Terje Bergstrom [Mon, 13 Aug 2012 12:06:23 +0000]
video: tegra: host: Disable host1x irqs at suspend

host1x interrupts have been left on at suspend due to using wrong
constant for the interrupt register. Disable host1x interrupts at
suspend.

Change-Id: I915fc4e663e6ad90fccacff6fb223c5080e21fcd
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/123055
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agopower: tps80031-battery: enable battery full event
Xin Xie [Thu, 12 Jul 2012 22:17:37 +0000]
power: tps80031-battery: enable battery full event

BUG 1015045

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

7 years agopower: tps80031: charger: handle re-charge event
Xin Xie [Fri, 13 Jul 2012 01:26:59 +0000]
power: tps80031: charger: handle re-charge event

After the charging completed, TPS80031 can re-enable the charging if it
sense the voltage dropping (120mV below target). Current drive does not
handle this event and causing the charging forever stopped.

This patch will check the above re-charging happens in the charging WDT
handler, and will ack WDT in order to continue charging.

BUG 1015045

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

7 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>
(cherry picked from commit f48bec5168232d7a50ecfb193146a4be214af3d7)
Reviewed-on: http://git-master/r/#change,122160
Reviewed-on: http://git-master/r/123102
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agovideo: tegra: hdcp: Add Missing Lock
Matt Wagner [Fri, 10 Aug 2012 18:43:35 +0000]
video: tegra: hdcp: Add Missing Lock

Lock was missing around one state set, so we add it here.

Bug 1024031

Change-Id: Iab013fff7e8519e8bcc91e84a5ca7cd6e6e783da
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/122802
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoARM: tegra: Ignore PmQos when disabled
Sai Charan Gurrappadi [Fri, 10 Aug 2012 22:13:00 +0000]
ARM: tegra: Ignore PmQos when disabled

The cpu hotplug drivers should only bother updating state or switching
to the G cluster if the driver is not disabled

Bug 1032096

Change-Id: Ice938b094bbf48fef47afa3915b1a48362fb256d
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/122859
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoARM: tegra: cardhu: report correct height/width
Rakesh Iyer [Mon, 6 Aug 2012 21:06:17 +0000]
ARM: tegra: cardhu: report correct height/width

We will report the exact width/height instead of rounding it off for
Android's bucketed dpi values. The determination of the bucketed dpi
values is handled in user mode.

Bug 1003707.

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

7 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

7 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>

7 years agotracing: Clock lock trace events
Antti P Miettinen [Fri, 10 Aug 2012 12:18:38 +0000]
tracing: Clock lock trace events

Add tracing for clock lock/unlock operations.

Bug 960307

Change-Id: Id5c2d8be25900bc701e5dcd73f87c068ab6e5894
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/122666
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoworkqueue: CPU hotplug keep idle workers
Mitch Luban [Wed, 25 Jul 2012 19:59:04 +0000]
workqueue: CPU hotplug keep idle workers

This change merges two patchsets. The first set,
containing 6 patches, reimplements WQ_HIGHPRI
to use a seperate worker_pool. gcwq->pools[0]
is used for normal priority work and pools[1]
for high priority.

The second patchset contains 9 patches and
reimplements CPU hotplug to keep idle workers.
Updates workqueue CPU hotplug path to use a
disassociated global_cwq, which runs as an
unbound one (WQ_UNBOUND). While this requires
rebinding idle workers, overall hotplug path
is much simpler.

Original patchset:
http://thread.gmane.org/gmane.linux.kernel/1329164

Bug 978010

Change-Id: Ic66ec8848a8d111b5278e63ef6a410846dfd8fcc
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/118387
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agomtd: tegra-nor: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 12:38:52 +0000]
mtd: tegra-nor: treat warnings as errors

add compilation flag to treat warnings as errors
handle error of variable declaration

bug 949219

Change-Id: Iac05d4d0e4c4cbf39a534b7aee32c0dac57ae49d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118027
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoinput: tegra: kbc: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 11:42:33 +0000]
input: tegra: kbc: treat warnings as errors

-add compilation flag to treat warning as error

bug 949219

Change-Id: I3f7f557099b0473883e0b959b65eb8f17ed30978
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118008
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoE1853 BRINGUP: HDMI bringup
Dongfang Shi [Fri, 27 Jul 2012 10:28:50 +0000]
E1853 BRINGUP: HDMI bringup

- Register HDMI device.
- Panel init also registers HOST1x.
- HDMI is fully functional
- Hotplug detect GPIO, DDC bus works fine.

bug 966833
bug 1018258

Change-Id: Ia04fbfb9b9ddcf81cef241f3cd1187cdc87d159d
Reviewed-on: http://git-master/r/119118
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Rees <rrees@nvidia.com>
Tested-by: Dongfang Shi <dshi@nvidia.com>
(cherry picked from commit c62d307b84a034bae31afce67b8755d500170f58)
Reviewed-on: http://git-master/r/119743
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: enterprise: get rid of tegra_gpio_disable()
Laxman Dewangan [Wed, 8 Aug 2012 13:46:16 +0000]
ARM: tegra: enterprise: get rid of tegra_gpio_disable()

The gpio mode is enabled when setting direction and
disabled when freeing gpio and hence this call is no
more required.

Change-Id: Ib384ec9295184ee6d3b2edcf76b0c99bcd28e25a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/122117
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoARM: tegra: harmony: get rid of tegra_gpio_disable()
Laxman Dewangan [Wed, 8 Aug 2012 13:45:50 +0000]
ARM: tegra: harmony: get rid of tegra_gpio_disable()

The gpio mode is disabled when freeing gpio and
hence this call is no more required.

Change-Id: I21f0f098a4ed741984c474996ba13d7390617646
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/122116
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoARM: tegra: aruba: get rid of tegra_gpio_disable()
Laxman Dewangan [Wed, 8 Aug 2012 13:44:46 +0000]
ARM: tegra: aruba: get rid of tegra_gpio_disable()

The gpio mode is disabled when freeing gpio and
hence this call is no more required.

Change-Id: I61469ec85713e3599245c59d2311f869ba03335b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/122115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 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>

7 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>

7 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>

7 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>

7 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>

7 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

Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/121810
(cherry picked from commit 6c0e907b437765fb9f7093599911b71a836d49a6)

Change-Id: Ie15256e35475d345b2ebe6ddb637ccc181fcb61e
Reviewed-on: http://git-master/r/122326
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

7 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

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/121945
(cherry picked from commit cef956d07ec717f4714f5101805bbe2f0f149e71)

Change-Id: I43ffee6a77122b4f2fe17f063dc6756c501e59c7
Reviewed-on: http://git-master/r/122323
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Donghan Ryu <dryu@nvidia.com>

7 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>

7 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>

7 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>

7 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>

7 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>

7 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>

7 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>

7 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

Reviewed-on: http://git-master/r/120546
(cherry picked from commit 51f746421b73f8f378bd7908b35fd6c79687e239)

Change-Id: Id9a9b09f2cd03a1b51e7334391f35fc076a1e1dd
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/121399
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 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

Change-Id: Id6e43c852a90cbd5445daf38279ed690712c3332
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/117637
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 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
(cherry picked from commit 06ad60cd85a221eec673654c73d55fba34455a3a)
Reviewed-on: http://git-master/r/121143
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>

7 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>
(cherry picked from commit 92807179cbbd60be67e09ff40bdaab313e3a55fe)
Reviewed-on: http://git-master/r/121142
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael I Gold <gold@nvidia.com>

7 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>

7 years agopwm: tegra: resource allocation through devm_*
Kunal Agrawal [Tue, 7 Aug 2012 08:16:07 +0000]
pwm: tegra: resource allocation through devm_*

Using the devm_* for memory region allocation and clock handler
request. As a result, there is no need to explicitly free them and
hence saving some code.

Change-Id: Id69d40bd44622105ea4f8a37426dd83a694adb8d
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/121581
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: e1853: Update pinmux table entries
Ashwin Joshi [Thu, 26 Jul 2012 09:13:11 +0000]
ARM: tegra: e1853: Update pinmux table entries

Some of the entries in pinmux table are incorrect. Updated the table
with correct entries.

Bug 966833
Bug 1018258

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>

Change-Id: I7ca486246fd51d83e865a9ef825be33011404a89
Reviewed-on: http://git-master/r/118282
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit a1aef89788f8660e7579a8ad555f1ef68d4c553b)
Reviewed-on: http://git-master/r/119651
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: e1853: Add e1853 defconfig
Ashwin Joshi [Thu, 26 Jul 2012 07:25:49 +0000]
ARM: tegra: e1853: Add e1853 defconfig

Add a defconfig file for E1853 board

Bug 966833
Bug 1018258

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>

Change-Id: I7cbde666acbe13fcaca2f56d877e0b4872756c17
Reviewed-on: http://git-master/r/118281
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit 465ba7c85429964a7937a6683376d72e396ebe47)
Reviewed-on: http://git-master/r/119650
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: e1853: Add board support for e1853
Ashwin Joshi [Fri, 27 Jul 2012 10:24:22 +0000]
ARM: tegra: e1853: Add board support for e1853

E1853 is T30 based Automotive platform.

Changes done:
1. New board specific files added
2. Added new machine number for E1853
3. Added pinmux configuration for E1853

Bug 966833
Bug 1018258

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>

Change-Id: Ibf1093f59e10a0a5cfa42a177c21c0db01983196
Reviewed-on: http://git-master/r/118000
Tested-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit ad9dd1b3242f23c0f46eaf92ab49f495c06f330f)
Reviewed-on: http://git-master/r/119580
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: configs: tegra3: Enable boost cpu frequency
Rakesh Bodla [Thu, 2 Aug 2012 12:21:13 +0000]
arm: configs: tegra3: Enable boost cpu frequency

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

Bug 1020850

Change-Id: Ic36686399f8ebd84c24f9d3cb73792ce3bef90be
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120351
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agomfd: tps65090: initialize regmap before accessing register
Laxman Dewangan [Tue, 7 Aug 2012 09:46:51 +0000]
mfd: tps65090: initialize regmap before accessing register

The regmap should be initialized before irq initialization
happen as register are accessed during irq init.

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

7 years agomfd: add support for MAXIM77665
Laxman Dewangan [Tue, 7 Aug 2012 09:07:34 +0000]
mfd: add support for MAXIM77665

Maxim 77665 is Companion PMIC for Smartphones and Tablets.
This support Flash, Fuel Gauge, Haptic, MUIC and battery
charging.
This patch add the core driver for interface for accessing
resgister of the device.

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

7 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>

7 years agomfd: tps80031: remove support for subdevs registration
Laxman Dewangan [Sun, 5 Aug 2012 08:01:20 +0000]
mfd: tps80031: remove support for subdevs registration

The mfd sub devices should get added through the
mfd_add_devices() not through legacy style of
adding sub devices.

Change-Id: If275d41629d799f1e22d95fd442ebe7d3ace448e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121137
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agomfd: tps80031: gpadc: register as mfd sub device
Laxman Dewangan [Sun, 5 Aug 2012 07:57:08 +0000]
mfd: tps80031: gpadc: register as mfd sub device

Register General Purpose ADC driver of TPS80031 as
mfd sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

Change-Id: Ib3f86f05716baef96ee534eec5ae262627c6a853
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121136
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agopower: tps80031: battery-charger: register as mfd sub device
Laxman Dewangan [Wed, 1 Aug 2012 11:14:29 +0000]
power: tps80031: battery-charger: register as mfd sub device

Register battery charger driver of TPS80031 as mfd
sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

Change-Id: I8cff39f5c9b22434f7c5b9d4ed9f3865ff4c0001
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121135
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agopower: tps80031: battery-gauge: register as mfd sub device
Laxman Dewangan [Wed, 1 Aug 2012 11:04:12 +0000]
power: tps80031: battery-gauge: register as mfd sub device

Register battery gauge driver of TPS80031 as mfd
sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

Change-Id: I15765be19fc138695de2d813e5fa025400747c86
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121134
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agortc: tps80031: register as mfd sub device
Laxman Dewangan [Wed, 1 Aug 2012 10:55:25 +0000]
rtc: tps80031: register as mfd sub device

register RTC driver of TPS80031 as mfd sub
driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

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

7 years agoARM: tegra: enterprise: remove macro for common fixed regs
Laxman Dewangan [Sun, 5 Aug 2012 07:45:51 +0000]
ARM: tegra: enterprise: remove macro for common fixed regs

The macro FIXED_REGS_COMMON used in only one place and it
is no more common across A02 and A04 and hence removing
this. Also remove unnecessary back slash.

Change-Id: If56512a3f957d06406e9baf369dd409feb82b55b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121132
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agomisc: bcm4329: get rid of tegra_gpio_enable()
Laxman Dewangan [Fri, 3 Aug 2012 09:06:31 +0000]
misc: bcm4329: 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: I38dac94bd0eb753c779db61f71c1e01295faa89e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120848
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>

7 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/120185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 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: I16ed5d46d196875dece1f0006a0b04dbfdb58d42
Reviewed-on: http://git-master/r/119790
Reviewed-by: James Zhao <jamesz@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>

7 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: I756d2ceda83d5d8d6bc5670218e9d874d5e5f62a
Reviewed-on: http://git-master/r/119786
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: config: tegra: android: enable device tree support
Nitin Kumbhar [Thu, 3 May 2012 10:55:25 +0000]
arm: config: tegra: android: enable device tree support

Enable device tree support for tegra2/tegra3 based android
platforms.

Bug 1001225

Change-Id: I5caf6302b88d30cca66bfdb957c5b4f1a575a634
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/110204
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: whistler: add device tree support for whistler
Nitin Kumbhar [Thu, 14 Jun 2012 02:15:08 +0000]
arm: whistler: add device tree support for whistler

Enable device tree support for whistler by adding board
compatible table.

Bug 1001225

Change-Id: Ic945d70894fe2deb5039106e794b7fa51c5604bb
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116609
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: enterprise: add device tree support for enterprise
Nitin Kumbhar [Mon, 7 May 2012 06:43:17 +0000]
arm: enterprise: add device tree support for enterprise

Enable device tree support for enterprise by adding board
compatible table.

Bug 1001225

Change-Id: I64038ce47771148f7cf2f1d53503d11729ac56b8
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116608
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: ventana: add device tree support for ventana
Nitin Kumbhar [Mon, 30 Apr 2012 14:53:08 +0000]
arm: ventana: add device tree support for ventana

Enable device tree support for ventana by adding board
compatible table.

Bug 1001225

Change-Id: I3f20c1a7966aff1a8a5fbfc1a7ccf2790419be70
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/110203
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: cardhu: Add DT boot support
Dan Willemsen [Tue, 10 Apr 2012 01:08:04 +0000]
ARM: tegra: cardhu: Add DT boot support

Use the existing boardfile for everything, just match using DT.

Change-Id: Ie12cad6ab0bfcb94538cd158dd9fc9ca85b91c98
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/95478
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agousb: gadget: Don't build USB_FSL_MP_DR_OF on Tegra
Dan Willemsen [Tue, 10 Apr 2012 01:04:16 +0000]
usb: gadget: Don't build USB_FSL_MP_DR_OF on Tegra

This config option only builds on PPC platforms.

Change-Id: Ibe7ebdc2dd5b9aa46e8f887570481a11a373c417
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/95475
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>

7 years agoARM: tegra: make .dts compilation depend on Tegra2 support
Stephen Warren [Mon, 21 May 2012 20:44:26 +0000]
ARM: tegra: make .dts compilation depend on Tegra2 support

Update Makefile.boot to compile *.dts when the appropriate Tegra SoC
support is enabled, rather than requiring Kconfig to list each board
individually. Remove CONFIG_MACH_VENTANA now that it has no use.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 9132b0ed57320996b16eafbf651a04e02ad29092)

Conflicts:

arch/arm/mach-tegra/Makefile.boot

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

7 years agoARM: dt: tegra: rename board files to match SoC
Stephen Warren [Mon, 11 Jun 2012 22:25:07 +0000]
ARM: dt: tegra: rename board files to match SoC

Most ARM ${board}.dts files are already named ${soc}-${board}.dts. This
change modifies the Tegra board files to be named the same way for
consistency.

Once a related change is made in U-Boot, this will cause both U-Boot and
the kernel to use the same names for the .dts files and SoC identifiers,
thus allowing U-Boot's recently added "soc" and "board" environment
variables to be used to construct the name of Tegra .dtb files, and hence
allow board-generic U-Boot bootcmd scripts to be written.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 702b0e4f2f2782962aab7d9a0a40ad68770bb1f6)

Conflicts:

arch/arm/boot/dts/tegra20-paz00.dts
arch/arm/boot/dts/tegra20-trimslice.dts
arch/arm/mach-tegra/Makefile.boot

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

7 years agoarm: tegra: whistler: dt: add dts file with minimal info
Nitin Kumbhar [Thu, 14 Jun 2012 02:00:36 +0000]
arm: tegra: whistler: dt: add dts file with minimal info

Add dts file to enable device tree support on whistler platform.
This currently adds only compatible info to dt.

Bug 1001225

Change-Id: I3023639e817529e6bb18ed5fa92b8c35c12d45b8
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116606
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm: tegra: enterprise: dt: add dts file with minimal info
Nitin Kumbhar [Wed, 16 May 2012 12:49:23 +0000]
arm: tegra: enterprise: dt: add dts file with minimal info

Add dts file to enable device tree support on enterprise platform.
This currently adds only compatible info to dt.

Bug 1001225

Change-Id: I4cc4093062d39baef9871b423840f5f2d01f25e9
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116605
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm/dt: Tegra: Add minimal ventana file
Chinmay Kamat [Wed, 20 Jun 2012 21:09:33 +0000]
arm/dt: Tegra: Add minimal ventana file

We will gradually enhance this file as our internal support improves.

Change-Id: I9343a14a89942226b1e3eb8aa0afa8c186c46a9e
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>
Reviewed-on: http://git-master/r/110201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm/dt: Tegra: Add minimal Cardhu file
Dan Willemsen [Tue, 10 Apr 2012 01:06:13 +0000]
arm/dt: Tegra: Add minimal Cardhu file

We really just want the /chosen and compatible info for now, and use the
existing board files for the rest of the support. We can gradually
enhance this file as our internal support improves.

Change-Id: If50378c128afb31d0d014c78d9f8f03c86b8d568
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/95477
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>

7 years agoarm: tegra: read board info from device tree
Nitin Kumbhar [Mon, 7 May 2012 12:39:41 +0000]
arm: tegra: read board info from device tree

Read board_info data from device tree instead of ATAGs,
if we're booting with device tree.

Bug 1001225

Change-Id: I2d659252a6a91f723bf4bb6c74918774650b87e2
Original-Author: Dan Willemsen <dwillemsen@nvidia.com>
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116604
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: Add ATAG_SERIAL parsing
Dan Willemsen [Thu, 15 Sep 2011 00:15:50 +0000]
arm: tegra: Add ATAG_SERIAL parsing

Bug 973078

Change-Id: I2860402c887db414717ce313101dc09e8b327f99
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>
Reviewed-on: http://git-master/r/108699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: zImage: prevent constant copy+rebuild of lib1funcs.S
Nicolas Pitre [Wed, 14 Sep 2011 04:16:21 +0000]
ARM: zImage: prevent constant copy+rebuild of lib1funcs.S

The rule to copy this file doesn't have to be forced.  However
lib1funcs.[So] have to be listed amongst the targets.

This prevents zImage from being recreated needlessly.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: I0ad0d4564835837abf15f0c590e8452bfef1c3a7
Original: 63d15148b6058ab0037343390e8918503ed81968
Reviewed-on: http://git-master/r/108698
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: zImage: allow supplementing appended DTB with traditional ATAG data
Nicolas Pitre [Wed, 14 Sep 2011 02:37:07 +0000]
ARM: zImage: allow supplementing appended DTB with traditional ATAG data

Some old bootloaders can't be updated to a device tree capable one,
yet they provide ATAGs with memory configuration, the ramdisk address,
the kernel cmdline string, etc.  To allow a device tree enabled
kernel to be used with such bootloaders, it is necessary to convert those
ATAGs into FDT properties and fold them into the DTB appended to zImage.

Currently the following ATAGs are converted:

ATAG_CMDLINE
ATAG_MEM
ATAG_INITRD2

If the corresponding information already exists in the appended DTB, it
is replaced, otherwise the required node is created to hold it.

The code looks for ATAGs at the location pointed by the value of r2 upon
entry into the zImage code.  If no ATAGs are found there, an attempt at
finding ATAGs at the typical 0x100 offset from start of RAM is made.
Otherwise the DTB is left unchanged.

Thisstarted from an older patch from John Bonesio <bones@secretlab.ca>,
with contributions from David Brown <davidb@codeaurora.org>.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: Ifb96adf6976da0f518c9c2cdad6be85f94c8ad1c
Original: b90b9a38251e9c89c34179eccde57411ceb5f1aa
Reviewed-on: http://git-master/r/107423
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: zImage: gather some string functions into string.c
Nicolas Pitre [Wed, 14 Sep 2011 01:42:55 +0000]
ARM: zImage: gather some string functions into string.c

This is a small subset of string functions needed by commits to come.
Except for memcpy() which is unchanged from its original location, their
implementation is meant to be small, and -Os is enforced to prevent gcc
from doing pointless loop unrolling.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: Ib6fd21beb8ee8804e472fb4ff5eb1cbea2b8e877
Original: df4879fa2603fbf0804a80f9f146ef9023dd621f
Reviewed-on: http://git-master/r/107424
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: zImage: make sure appended DTB doesn't get overwritten by kernel .bss
Nicolas Pitre [Sun, 12 Jun 2011 05:07:33 +0000]
ARM: zImage: make sure appended DTB doesn't get overwritten by kernel .bss

The appended DTB gets relocated with the decompressor code to get out
of the way of the decompressed kernel.  However the kernel's .bss section
may be larger than the relocated code and data, and then the DTB gets
overwritten.  Let's make sure the relocation takes care of moving zImage
far enough so no such conflict with .bss occurs.

Thanks to Tony Lindgren <tony@atomide.com> for figuring out this issue.

While at it, let's clean up the code a bit so that the wont_overwrite
symbol is used while determining if a conflict exists, making the above
change more precise as well as eliminating some ARM/THUMB alternates.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: I1590dcbb9789f20d4c56a1e1f7c40177acaa8a2d
Original: 5ffb04f6690d71fab241b3562ebf52b893ac4ff1
Reviewed-on: http://git-master/r/107767
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: zImage: Allow the appending of a device tree binary
John Bonesio [Fri, 27 May 2011 22:45:50 +0000]
ARM: zImage: Allow the appending of a device tree binary

This patch provides the ability to boot using a device tree that is appended
to the raw binary zImage (e.g. cat zImage <filename>.dtb > zImage_w_dtb).

Signed-off-by: John Bonesio <bones@secretlab.ca>
[nico: ported to latest zImage changes plus additional cleanups/improvements]
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: I93c54694a59b357eb550587b94c986dcb19ab954
Original: e2a6a3aafa9862c4a4b59f2a59b8f923d64a680e
Reviewed-on: http://git-master/r/107422
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: zImage: ensure it is always a multiple of 64 bits in size
Nicolas Pitre [Sat, 28 May 2011 02:25:26 +0000]
ARM: zImage: ensure it is always a multiple of 64 bits in size

This is needed for proper alignment when the DTB appending feature
is used.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: I18dd4220a40984ab2551ca17a16db37193ffe80c
Original: 72bf0bce411d9df0935eb77256604212de8f89cc
Reviewed-on: http://git-master/r/108696
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoregulator: tps65090: support for input supply
Laxman Dewangan [Fri, 3 Aug 2012 11:20:37 +0000]
regulator: tps65090: support for input supply

Fill the desc.supply_name for each rail with corresponding
input pinname as per datasheet.

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

7 years agoregulator: tps65090: Support for external control of DCDC
Laxman Dewangan [Fri, 3 Aug 2012 10:49:46 +0000]
regulator: tps65090: Support for external control of DCDC

The DCDC regulators can support of control through extrenal
signal. Add support of this feature.

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

7 years agoregulator: tps65090: support for LDO1 and LDO2
Laxman Dewangan [Fri, 3 Aug 2012 09:25:27 +0000]
regulator: tps65090: support for LDO1 and LDO2

The LDO1 and LDO2 are always-on regulator from device.
Add support for these rails.

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

7 years agoregulator: core: support of supply name through desc
Laxman Dewangan [Fri, 3 Aug 2012 11:11:18 +0000]
regulator: core: support of supply name through desc

Add support of providing the supply name through
regualtor descriptor. This help to fill the supply name
in device based on datasheet.
This patch help to develop driver which is align with
mainline.
This change is small set of change in mainline
---------------
commit 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3
Author: Rajendra Nayak <rnayak@ti.com>

    regulator: map consumer regulator based on device tree
---------------

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

7 years agostaging: nvec: get rid of tegra_gpio_enable()
Laxman Dewangan [Fri, 3 Aug 2012 09:08:41 +0000]
staging: nvec: 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: I7107ea81a69d035b966c6fb8cebe4944edad6098
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120850
Reviewed-by: Automatic_Commit_Validation_User

7 years agomtd: nand: tegra: get rid of tegra_gpio_enable()
Laxman Dewangan [Fri, 3 Aug 2012 09:08:11 +0000]
mtd: nand: 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: Id1730f48d43134c67eb1e6edf70884e3e5f582d2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120849
Reviewed-by: Automatic_Commit_Validation_User

7 years agomfd: tps65090: print error message when malloc failed
Laxman Dewangan [Thu, 2 Aug 2012 15:12:19 +0000]
mfd: tps65090: print error message when malloc failed

Prints error message when memory alloc failed for easing
debugging.

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

7 years agomfd: tps65090: remove unused member from tps65090 structure
Laxman Dewangan [Thu, 2 Aug 2012 15:06:05 +0000]
mfd: tps65090: remove unused member from tps65090 structure

The structure tps65090 have member as "client", "lock", "id"
which is no more required.
Removing this member from structure.

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

7 years agoregulator tps65090: fix compilation warning
Laxman Dewangan [Thu, 2 Aug 2012 14:51:22 +0000]
regulator tps65090: fix compilation warning

Fix compilation warning of -Wmaybe-uninitialized

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