7 years agoParanoid network.
Robert Love [Mon, 16 Apr 2012 07:10:03 +0000]
Paranoid network.

With CONFIG_ANDROID_PARANOID_NETWORK, require specific uids/gids to instantiate
network sockets.

Signed-off-by: Robert Love <rlove@google.com>

paranoid networking: Use in_egroup_p() to check group membership

The previous group_search() caused trouble for partners with module builds.
in_egroup_p() is also cleaner.

Signed-off-by: Nick Pelly <npelly@google.com>

Fix 2.6.29 build.

Signed-off-by: Arve Hjønnevåg <arve@android.com>

net: Fix compilation of the IPv6 module

Fix compilation of the IPv6 module -- current->euid does not exist anymore,
current_euid() is what needs to be used.

Signed-off-by: Steinar H. Gunderson <sesse@google.com>

Conflicts:

net/Kconfig
net/ipv4/af_inet.c
net/ipv6/af_inet6.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoAdd android_aid.h
Robert Love [Mon, 16 Apr 2012 07:08:28 +0000]
Add android_aid.h

Add <linux/android_aid.h>, our mapping of AID defines to gid numbers.

Signed-off-by: Robert Love <rlove@google.com>

Conflicts:

include/linux/android_aid.h

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoswitch: switch class and GPIO drivers.
Mike Lockwood [Mon, 16 Apr 2012 07:07:29 +0000]
switch: switch class and GPIO drivers.

switch: Export symbol switch_set_state.

Signed-off-by: Mike Lockwood <lockwood@android.com>

switch: gpio: Don't call request_irq with interrupts disabled

Signed-off-by: Arve Hjønnevåg <arve@android.com>

switch: Use device_create instead of device_create_drvdata.

device_create_drvdata is obsolete.

Signed-off-by: Arve Hjønnevåg <arve@android.com>

switch_gpio: Add missing #include <linux/interrupt.h>

Change-Id: I6c397e41bbe1457162cc69e31a29db5d9f76fccb
Signed-off-by: Mike Lockwood <lockwood@android.com>

Conflicts:

drivers/switch/switch_class.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agopower_supply: Hold a wake_lock while power supply change notifications are pending
Arve Hjønnevåg [Mon, 16 Apr 2012 07:05:25 +0000]
power_supply: Hold a wake_lock while power supply change notifications are pending

When connecting usb or the charger the device would often go back to sleep
before the charge led and screen turned on.

Change-Id: I01def6d86ddece0d4e31d2a91d176ed0975b6b9d
Signed-off-by: Arve Hjønnevåg <arve@android.com>

Conflicts:

include/linux/power_supply.h

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoInput: evdev - Add ioctl to block suspend while event queue is not empty.
Arve Hjønnevåg [Fri, 17 Oct 2008 22:20:55 +0000]
Input: evdev - Add ioctl to block suspend while event queue is not empty.

Add an ioctl, EVIOCSSUSPENDBLOCK, to enable a wakelock that will block
suspend while the event queue is not empty. This allows userspace code to
process input events while the device appears to be asleep.

The current code holds the wakelock for up 5 seconds for every input
device and client. This can prevent suspend if sensor with a high data
rate is active, even when that sensor is not capable of waking the
device once it is suspended.

Change-Id: I624d66ef30a0b3abb543685c343382b8419b42b9
Signed-off-by: Arve Hjønnevåg <arve@android.com>

7 years agoPM: Add user-space wake lock api.
Arve Hjønnevåg [Fri, 10 Oct 2008 04:01:46 +0000]
PM: Add user-space wake lock api.

This adds /sys/power/wake_lock and /sys/power/wake_unlock.
Writing a string to wake_lock creates a wake lock the
first time is sees a string and locks it. Optionally, the
string can be followed by a timeout.
To unlock the wake lock, write the same string to wake_unlock.

Change-Id: I66c6e3fe6487d17f9c2fafde1174042e57d15cd7

7 years agoPM / Sleep: Add wake lock api wrapper on top of wakeup sources
Arve Hjønnevåg [Mon, 16 Apr 2012 07:03:12 +0000]
PM / Sleep: Add wake lock api wrapper on top of wakeup sources

Change-Id: Icaad02fe1e8856fdc2e4215f380594a5dde8e002
Signed-off-by: Arve Hjønnevåg <arve@android.com>

Conflicts:

kernel/power/Kconfig

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agocgroup: Remove call to synchronize_rcu in cgroup_attach_task
Colin Cross [Mon, 16 Apr 2012 07:01:13 +0000]
cgroup: Remove call to synchronize_rcu in cgroup_attach_task

synchronize_rcu can be very expensive, averaging 100 ms in
some cases.  In cgroup_attach_task, it is used to prevent
a task->cgroups pointer dereferenced in an RCU read side
critical section from being invalidated, by delaying the
call to put_css_set until after an RCU grace period.

To avoid the call to synchronize_rcu, make the put_css_set
call rcu-safe by moving the deletion of the css_set links
into free_css_set_work, scheduled by the rcu callback
free_css_set_rcu.

The decrement of the cgroup refcount is no longer
synchronous with the call to put_css_set, which can result
in the cgroup refcount staying positive after the last call
to cgroup_attach_task returns.  To allow the cgroup to be
deleted with cgroup_rmdir synchronously after
cgroup_attach_task, have rmdir check the refcount of all
associated css_sets.  If cgroup_rmdir is called on a cgroup
for which the css_sets all have refcount zero but the
cgroup refcount is nonzero, reuse the rmdir waitqueue to
block the rmdir until free_css_set_work is called.

Signed-off-by: Colin Cross <ccross@android.com>

Conflicts:

kernel/cgroup.c

Change-Id: I3b3f245c8f5e2e5d33f1e54178b2bb6ef10a0817

Conflicts:

kernel/cgroup.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agocgroup: Add generic cgroup subsystem permission checks
Colin Cross [Mon, 16 Apr 2012 06:59:12 +0000]
cgroup: Add generic cgroup subsystem permission checks

Rather than using explicit euid == 0 checks when trying to move
tasks into a cgroup via CFS, move permission checks into each
specific cgroup subsystem. If a subsystem does not specify a
'allow_attach' handler, then we fall back to doing our checks
the old way.

Use the 'allow_attach' handler for the 'cpu' cgroup to allow
non-root processes to add arbitrary processes to a 'cpu' cgroup
if it has the CAP_SYS_NICE capability set.

This version of the patch adds a 'allow_attach' handler instead
of reusing the 'can_attach' handler.  If the 'can_attach' handler
is reused, a new cgroup that implements 'can_attach' but not
the permission checks could end up with no permission checks
at all.

Change-Id: Icfa950aa9321d1ceba362061d32dc7dfa2c64f0c
Original-Author: San Mehat <san@google.com>
Signed-off-by: Colin Cross <ccross@android.com>

Conflicts:

kernel/cgroup.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agocgroup: Set CGRP_RELEASABLE when adding to a cgroup
Colin Cross [Mon, 16 Apr 2012 06:57:38 +0000]
cgroup: Set CGRP_RELEASABLE when adding to a cgroup

Changes the meaning of CGRP_RELEASABLE to be set on any cgroup
that has ever had a task or cgroup in it, or had css_get called
on it.  The bit is set in cgroup_attach_task, cgroup_create,
and __css_get.  It is not necessary to set the bit in
cgroup_fork, as the task is either in the root cgroup, in
which can never be released, or the task it was forked from
already set the bit in croup_attach_task.

Signed-off-by: Colin Cross <ccross@android.com>

Conflicts:

kernel/cgroup.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: cache-l2x0: update workaround for PL310 errata 727915
Colin Cross [Mon, 16 Apr 2012 06:51:43 +0000]
ARM: cache-l2x0: update workaround for PL310 errata 727915

ARM errata 727915 for PL310 has been updated to include a new
workaround required for PL310 r2p0 for l2x0_flush_all, which also
affects l2x0_clean_all in my testing.  For r2p0, clean or flush
each set/way individually.  For r3p0 or greater, use the debug
register for cleaning and flushing.

Requires exporting the cache_id, sets and ways detected in the
init function for later use.

Change-Id: I215055cbe5dc7e4e8184fb2befc4aff672ef0a12
Signed-off-by: Colin Cross <ccross@android.com>

Conflicts:

arch/arm/mm/cache-l2x0.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: add option to flush console before reboot
Dima Zavin [Tue, 23 Aug 2011 22:56:50 +0000]
ARM: add option to flush console before reboot

If the console_lock was held while the system was rebooted, the messages
in the temporary logbuffer would not have propogated to all the console
drivers.

This force releases the console lock if it failed to be acquired.

Change-Id: I193dcf7b968be17966833e50b8b8bc70d5d9fe89
Signed-off-by: Dima Zavin <dima@android.com>

7 years agopower: Add option to log time spent in suspend
Colin Cross [Mon, 16 Apr 2012 06:49:37 +0000]
power: Add option to log time spent in suspend

Prints the time spent in suspend in the kernel log, and
keeps statistics on the time spent in suspend in
/sys/kernel/debug/suspend_time

Change-Id: Ia6b9ebe4baa0f7f5cd211c6a4f7e813aefd3fa1d
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>

Conflicts:

kernel/power/Makefile

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agopanic: Add board ID to panic output
Nishanth Menon [Wed, 17 Aug 2011 23:31:58 +0000]
panic: Add board ID to panic output

At times, it is necessary for boards to provide some additional information
as part of panic logs. Provide information on the board hardware as part
of panic logs.

It is safer to print this information at the very end in case something
bad happens as part of the information retrieval itself.

To use this, set global mach_panic_string to an appropriate string in the
board file.

Change-Id: Id12cdda87b0cd2940dd01d52db97e6162f671b4d
Signed-off-by: Nishanth Menon <nm@ti.com>

7 years agoashmem: Add shmem_set_file to mm/shmem.c
John Stultz [Fri, 16 Dec 2011 02:51:04 +0000]
ashmem: Add shmem_set_file to mm/shmem.c

NOT FOR STAGING
This patch re-adds the original shmem_set_file to mm/shmem.c
and converts ashmem.c back to using it.

Change-Id: I769c71f10d70b2ee37b2cd69482ae885e0b6aa12
CC: Brian Swetland <swetland@google.com>
CC: Colin Cross <ccross@android.com>
CC: Arve Hjønnevåg <arve@android.com>
CC: Dima Zavin <dima@android.com>
CC: Robert Love <rlove@google.com>
CC: Greg KH <greg@kroah.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: dvfs: read proper cpu/core process ids
Varun Wadekar [Fri, 13 Apr 2012 11:28:30 +0000]
ARM: tegra20: dvfs: read proper cpu/core process ids

Change-Id: I7a5237fc4584c8ebd2f984e56a07df05a259271b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: host: tegra: remove incorrect emc/sclk clock disables
Varun Wadekar [Fri, 13 Apr 2012 06:16:17 +0000]
usb: host: tegra: remove incorrect emc/sclk clock disables

Change-Id: Ie7b8dec05eca96083a423122a50e1c87a925b9a2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: ventana: enable emc scaling early in the boot process
Varun Wadekar [Fri, 13 Apr 2012 06:15:50 +0000]
ARM: tegra20: ventana: enable emc scaling early in the boot process

Change-Id: Idd9599aaed202e106bf6186fa0f4e783f850db0a
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: whistler: enable emc scaling early in the boot process
Varun Wadekar [Fri, 13 Apr 2012 06:14:59 +0000]
ARM: tegra20: whistler: enable emc scaling early in the boot process

Change-Id: Ib6bb9955d2acecfcc3475335daeec5516dda6112
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: emc-scaling: validate the emc chip data in _probe
Varun Wadekar [Fri, 13 Apr 2012 06:10:57 +0000]
ARM: tegra20: emc-scaling: validate the emc chip data in _probe

Change-Id: I368b109157f615d6e9f6eeea05d8eb95f85681cb
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: harmony/ventana/whistler: register emc device
Varun Wadekar [Thu, 12 Apr 2012 12:25:14 +0000]
ARM: tegra20: harmony/ventana/whistler: register emc device

Change-Id: Ic722010edfa8b77a6634bdc54ef8d35341cc7ca3
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: emc: convert tegra_emc_init to postcore_initcall
Varun Wadekar [Thu, 12 Apr 2012 12:24:11 +0000]
ARM: tegra20: emc: convert tegra_emc_init to postcore_initcall

Change-Id: I1f30f1aa89a58d1ea37c86aedaa1ce95eff2ed7b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: devices: add IORESOURCE_IRQs for tegra-aes
Varun Wadekar [Thu, 12 Apr 2012 12:23:24 +0000]
ARM: tegra: devices: add IORESOURCE_IRQs for tegra-aes

Change-Id: I03f1800fb6b249e3f85fcbccf1fc95b376c25e9e
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: devices: add emc device
Varun Wadekar [Thu, 12 Apr 2012 12:22:45 +0000]
ARM: tegra: devices: add emc device

Change-Id: Iba5fdf0e81f0123559406eb2fbe2e6c74ebe7c0e
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: harmony/whistler: use PIN_CFG_* to describe pin types
Varun Wadekar [Thu, 12 Apr 2012 09:41:42 +0000]
ARM: tegra20: harmony/whistler: use PIN_CFG_* to describe pin types

Change-Id: Iacb2a4764156ad59aae6c3d07ce3ee4c7a6e4636
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: pcie: fix compilation errors
Varun Wadekar [Thu, 12 Apr 2012 09:40:20 +0000]
ARM: tegra: pcie: fix compilation errors

add MEM_SIZE_x, MEM_BASE_1, PREFETCH_MEM_BASE_x and
PREFETCH_MEM_SIZE_x.

Change-Id: Ibb23aaa8a5b23406f7364a2654af06003787159d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: ventana/whistler: include <linux/platform_data/tegra_emc.h>
Varun Wadekar [Thu, 12 Apr 2012 09:39:39 +0000]
ARM: tegra20: ventana/whistler: include <linux/platform_data/tegra_emc.h>

Change-Id: Ibde4802b607cf21159797b55514d46461fb1144d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: pinmux: include <linux/bug.h>
Varun Wadekar [Thu, 12 Apr 2012 09:38:57 +0000]
ARM: tegra20: pinmux: include <linux/bug.h>

Change-Id: I5b304a3d48b70972579666ab41ed79e87fe39207
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: platsmp: compile is_cpu_powered() for tegra20
Varun Wadekar [Thu, 12 Apr 2012 09:37:25 +0000]
ARM: tegra: platsmp: compile is_cpu_powered() for tegra20

Change-Id: Ia2452cf02fffa1acfcc590904777084ca7f8ca85
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: clocks: replace tegra_sku_id() by tegra_sku_id
Varun Wadekar [Thu, 12 Apr 2012 09:36:46 +0000]
ARM: tegra20: clocks: replace tegra_sku_id() by tegra_sku_id

Change-Id: Iaab708dccb2786dbdf50cf4986c10bd7ecbceddd
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: fix compilation errors
Varun Wadekar [Thu, 12 Apr 2012 09:34:57 +0000]
ARM: tegra20: fix compilation errors

add tegra_emc_table, tegra_emc_table_size and missing label

Change-Id: Ib06a45c72ead4078d8143076c70a5c7d6f7f894e
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: speedo: fix compilation errors
Varun Wadekar [Thu, 12 Apr 2012 09:33:51 +0000]
ARM: tegra20: speedo: fix compilation errors

include <linux/bug.h> and use tegra_sku_id instead of
tegra_sku_id()

Change-Id: I640577359321b1bfa18d963dc4cae61520d02303
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: usb_phy: replace otg_io_write with usb_phy_io_write
Varun Wadekar [Thu, 12 Apr 2012 09:33:05 +0000]
ARM: tegra: usb_phy: replace otg_io_write with usb_phy_io_write

Change-Id: I0b69592ccbb8616c15f42b7b95295265b80fe2f2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agommc: host: tegra: fix compilation errors in tegra_sdhci_readw
Varun Wadekar [Thu, 12 Apr 2012 09:32:19 +0000]
mmc: host: tegra: fix compilation errors in tegra_sdhci_readw

Change-Id: I1f37622d7f13f5e42984b9e3a65d58cd3cb2b938
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agocrypto: tegra: fix include macro names
Varun Wadekar [Thu, 12 Apr 2012 09:31:33 +0000]
crypto: tegra: fix include macro names

Change-Id: I67f2d749e3628b30f9ead08707708ad5e1b88f4c
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agosound: soc: codecs: wm8753: replace wm8753_reg by wm8753_reg_defaults
Varun Wadekar [Thu, 12 Apr 2012 09:30:38 +0000]
sound: soc: codecs: wm8753: replace wm8753_reg by wm8753_reg_defaults

Change-Id: I9172f1f49b747f361060aa0b1e13fa93eb2a4f90
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra20: pm: do not include <asm/system.h>
Varun Wadekar [Thu, 12 Apr 2012 09:27:27 +0000]
ARM: tegra20: pm: do not include <asm/system.h>

Change-Id: I0e5e71e0c777e48135d2ab6cf6bdae4722f5a970
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: enterprise: use proper backlight clk_div for A03/A04
Tom Cherry [Tue, 20 Mar 2012 23:59:51 +0000]
arm: tegra: enterprise: use proper backlight clk_div for A03/A04

The new TPS61160A part asks for the control PWM signal to be between
5kHZ and 100kHz.  This change sets clk_div to 0x1D for a 5kHz signal.

This change also installs a linear table for
enterprise_bl_output_measured_a03.

Bug 956246

Reviewed-on: http://git-master/r/91606
(cherry picked from commit 32a67cf7b1c8223abe8de7d88b4bcd1906cda0a2)

Change-Id: Ic7907cfae6f918ef055add33615822ef8c5e0ec6
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/93051
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: emc scaling for enterprise
Wen Yi [Thu, 22 Mar 2012 20:53:16 +0000]
arm: tegra: emc scaling for enterprise

Need to include A01 board for emc scaling.

Bug 957981

Reviewed-on: http://git-master/r/91877
(cherry picked from commit 2dff127a133056b4229b8d7a4e8328959873f3c8)

Change-Id: I9c615b13adf4375ee0742b817361b0d6326afccd
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/93050
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agotty: serial: core: Fix console resume for PORT_TEGRA
Pradeep Kumar [Wed, 28 Mar 2012 11:48:55 +0000]
tty: serial: core: Fix console resume for PORT_TEGRA

WAR to enable console prints when console service is not started
for port type TEGRA.

Bug 958959

Change-Id: I51e582d16195171f1f8bae9324e2ddece4638281
Signed-off-by: Pradeep Kumar <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/92814
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Tested-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: enterprise: Add A03/A04 support
Tom Cherry [Wed, 11 Apr 2012 14:09:17 +0000]
ARM: tegra: enterprise: Add A03/A04 support

Bug 939799

Reviewed-on: http://git-master/r/90824
(cherry-picked from commit 8c556f816196c17e059db2c11b966ca89848efa3)

Change-Id: I67b26958862b8b60217c2750fe0b2eef3013d9b3
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/92409
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Conflicts:

arch/arm/mach-tegra/board-enterprise-pinmux.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: ehci: tegra: add suspend_fail flag
Rakesh Bodla [Mon, 26 Mar 2012 11:19:21 +0000]
usb: ehci: tegra: add suspend_fail flag

Adding the suspend_fail flag to proprogate the
bus suspend failure to the ehci suspend. This
ensure the proper synchronization between two
suspend calls.

Bug 932020

Reviewed-on: http://git-master/r/92286
(cherry picked from commit 9548deb7f4dfda95067731744b3122a47be3f654)
Change-Id: I00cc062888fcf7085be7aa3556ae500e0e457cd1
Reviewed-on: http://git-master/r/93130
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: tegra: ALC5640 machine: Fix i2s for BT Sco
Manoj Gangwal [Wed, 28 Mar 2012 12:43:27 +0000]
asoc: tegra: ALC5640 machine: Fix i2s for BT Sco

fix i2s for BT Sco.

Bug 936626

Change-Id: Iaf1d1a230fcb37d45d9deaaf1dae780f5870e99f
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/92860
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoASoC: wm8903: resolve compilation time warnings
Sanjay Singh Rawat [Wed, 28 Mar 2012 13:43:20 +0000]
ASoC: wm8903: resolve compilation time warnings

bug 949219

Change-Id: I8abd1e837a774d15aef25ec8c40b857b8cba0426
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/92858
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agousb: otg: tegra: code clean up
Venu Byravarasu [Wed, 28 Mar 2012 12:39:14 +0000]
usb: otg: tegra: code clean up

Modified multiple if conditions to switch case.
Included a new OTG state case: undefined

Change-Id: Iba4cf1a79b8c220fc873966bd8a89f43a5648863
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/92832
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agousb: host: tegra: code clean up
Venu Byravarasu [Wed, 28 Mar 2012 12:00:05 +0000]
usb: host: tegra: code clean up

With this patch:
1. Renamed structure and function names to be more meaningful.
2. Removed unnecessary local variables.

Change-Id: I0684d840c1b8c606c1643e1e2517e083be825787
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/92817
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agop1852: Enable uart4 and remove spi4
Manoj Chourasia [Tue, 20 Mar 2012 13:14:46 +0000]
p1852: Enable uart4 and remove spi4

+ Enable uart4 and remove spi4
+ use SPI2 instead of SPI1 as initial pinmux for gpio x5/6

bug 933971

Reviewed-on: http://git-master/r/78718
(cherry picked from commit 7135fbe5edf7357384dc92b613ea46dc927d6b06)

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

7 years agovideo: tegra: dc: remove obsolete overlay interface
Jon Mayo [Wed, 28 Mar 2012 00:18:48 +0000]
video: tegra: dc: remove obsolete overlay interface

Remove old overlay interface, it is replaced with TEGRA_DC_EXTENSIONS
External functions made static now that overlay.c no longer needs them.

Change-Id: I5d080ceb19ad90d3b5cc4bf20494c967687293a5
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/92661
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: Markus Holtmanns <mholtmanns@nvidia.com>

7 years agopower: smb349: resolve compilation time warnings
Sanjay Singh Rawat [Tue, 27 Mar 2012 12:34:13 +0000]
power: smb349: resolve compilation time warnings

bug 949219

Change-Id: I56904b3607c92281076ae3245ee1071922763eb8
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/92557
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

7 years agoi2c: tegra: Correct 10bit address configuration
Laxman Dewangan [Tue, 27 Mar 2012 12:19:06 +0000]
i2c: tegra: Correct 10bit address configuration

The slave address of device to be configured in packet
header as follows:
7 bit address: PacketHeader3[7:1]
10 bit address: PacketHeader3[9:0]

Fixing the code to make packet header3 properly.

Change-Id: I1797066d23ada5d4d7b14710201a1fb17566b78b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/92556
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andy Carman <acarman@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

7 years agoinput: keyboard: remove interrupt_key driver
Laxman Dewangan [Mon, 26 Mar 2012 14:06:53 +0000]
input: keyboard: remove interrupt_key driver

Removing interrupt key driver as this duplicates the
gpio_keys driver. Desired functionality can be achieve
through the gpio_keys.

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

7 years agoARM: tegra: config: Remove CONFIG_KEYBOARD_INTERRUPT
Laxman Dewangan [Wed, 11 Apr 2012 14:03:49 +0000]
ARM: tegra: config: Remove CONFIG_KEYBOARD_INTERRUPT

Remove config variable CONFIG_KEYBOARD_INTERRUPT as same
functionality can be achieve through the gpio_keys.

Change-Id: Ice898c9abe9f4eba2e82459b22f309cb36347123
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/92461
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Conflicts:

arch/arm/configs/tegra3_defconfig

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: cardhu/Kai: Use gpio_keys driver for int key
Laxman Dewangan [Mon, 26 Mar 2012 14:00:40 +0000]
ARM: tegra: cardhu/Kai: Use gpio_keys driver for int key

gpio_keys driver support for the key which can generates only
interrupt and not mapped to any gpio functionality.
Using this feature to support the onkey which generates interrupt
only when key is pressed.

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

7 years agoARM: tegra: Cardhu: Support for E1198-A03
Laxman Dewangan [Mon, 26 Mar 2012 11:01:19 +0000]
ARM: tegra: Cardhu: Support for E1198-A03

Adding support for E1198-A03 which have different regulators
and the identification of regulators are done based on board
sku id.

Change-Id: Iee76d2bc493308da5346011232db32b933fd8625
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/92284
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: host: Remove pre-check in syncpt wait
Terje Bergstrom [Mon, 26 Mar 2012 11:07:41 +0000]
video: tegra: host: Remove pre-check in syncpt wait

Remove the check and debug dump for cases where we compare against
an old syncpt value. Also removes an extra check that is already done
by wait_event_interruptible_timeout();

Bug 941327

Change-Id: Icbaf70b04a8bd070c3fdd3467b981de11219d2b9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/92283
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agovideo: tegra: nvmap: Refactor page pool code.
Krishna Reddy [Thu, 22 Mar 2012 22:25:19 +0000]
video: tegra: nvmap: Refactor page pool code.

Refactor page pool code.
Add page pool support for all memory types.
Add support to enable/disable page pools.
Add support to allow configuring page pool size.

Change-Id: I07c79004542efdd5909547928b3aa5d470e38909
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/91914
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agousb: gadget: fsl_udc_core: Properly return the self-powered bit
ahcheng [Wed, 22 Feb 2012 09:26:09 +0000]
usb: gadget: fsl_udc_core: Properly return the self-powered bit

This patch fixes the GetStatus always reports self powered.
As per USB compliance update, a device that is actively drawing
more than 100mA from USB must report itself as bus-powered in
the GetStatus(DEVICE) call.

Bug 928340

Change-Id: Iefd1577a2ff2f301add98b14a402ed8eacc3aa28
Signed-off-by: ahcheng <ahcheng@nvidia.com>
Reviewed-on: http://git-master/r/91404
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: include: make module space configurable
Mursalin Akon [Tue, 31 Jan 2012 01:20:44 +0000]
arm: include: make module space configurable

Make the module space a configurable option.
The default value remains 16. The main goal
of this CL is to enable large module, such as
resman module of nvidia.

Change-Id: I8a775a6a23c1a75562917d8ab8e4bbe29f08d7e5
Signed-off-by: Mursalin Akon <makon@nvidia.com>
(cherry picked from commit 40aaad75bd32822137033fc7972d41ee30ff7bc9)
Reviewed-on: http://git-master/r/91322
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agomtd: chips: support for the new CFI version 1.5 and write buffer programming
Manoj Chourasia [Wed, 11 Apr 2012 14:02:06 +0000]
mtd: chips: support for the new CFI version 1.5 and write buffer programming

This patch add CFI version 1.5 support. It replaces
classic word programming by write buffer programming
and sets the FFS write size to 512 bytes.

The patch taken from spansion

bug 906309

Reviewed-on: http://git-master/r/89412
(cherry picked from commit 733c7ef4b9bdc52ac95095436a5cf83aa0296da5)

Change-Id: I63cbd0bad077e055d6efd4e2b4c7d26c608d1b66
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/91307
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Conflicts:

drivers/mtd/chips/cfi_cmdset_0002.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agommc:host: add pm_caps and pm_flags to platform data
Mursalin Akon [Sat, 17 Mar 2012 00:59:14 +0000]
mmc:host: add pm_caps and pm_flags to platform data

Initialize pm_caps and pm_flags through platform
data.

Bug 956238

Change-Id: I400f6e92541fa2e63ccc7f829e204d5eef4697fc
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90790
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agonet:wireless:bcmdhd: Add BCM4330 chip ID
Mursalin Akon [Wed, 11 Apr 2012 14:00:33 +0000]
net:wireless:bcmdhd: Add BCM4330 chip ID

Add ID of BCM4330 to supported chips.
Remove ID of BCM4329 as it is not supported.

Bug 956238

Change-Id: I5c9e809245161d76c3decab3e5252ce111a2a07d
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90657
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

Conflicts:

drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: Fix Synaptics setup compilation warning
Juha Tukkinen [Wed, 14 Mar 2012 11:44:35 +0000]
ARM: tegra: Fix Synaptics setup compilation warning

Fix Synaptics touchpad GPIO setup compilation warning and add freeing of
resources when unconfiguring.

Change-Id: Idc98dd622cc969ac55f8c6a945317d657a6b7222
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/90046
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agortc: tps80031: Enable RTC interrupt appropriately
Venu Byravarasu [Wed, 15 Feb 2012 07:39:02 +0000]
rtc: tps80031: Enable RTC interrupt appropriately

Observed interrupt not getting enabled properly.
hence fixing it.

bug 937221

Change-Id: If852c9cd40fc98711fe12a124b533ee8ee99eb3c
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/83992
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: host: do not assume 3d channel opened by user space
Mayuresh Kulkarni [Tue, 27 Mar 2012 09:24:47 +0000]
video: tegra: host: do not assume 3d channel opened by user space

- if user space does not open 3d channel, 3d scaling
algorithm is not initialized. so return safely when
3d scaling is disabled
- also do not call nvhost_module_suspend() explicitly
for host1x client modules. nvhost_channel_suspend()
takes care to suspend the module if ref count = 0
- call nvhost_module_suspend() only for host1x device
as it does not use actual hardware channel

Bug 953451

Change-Id: Iba2b771b71d9b41c8ed978112566181872c56259
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/92506
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Peer Chen <pchen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Emily Jiang <ejiang@nvidia.com>

7 years agoASoC: Tegra wm8903 machine: Remove regulator error message
Preetham Chandru [Mon, 26 Mar 2012 15:08:55 +0000]
ASoC: Tegra wm8903 machine: Remove regulator error message

Few boards which uses wm8903 has independent regulators
for spk and mic while others do not have it.
For the boards which do not have independent regulators
we should avoid getting their regulators otherwise we
would get the following error messages:
"tegra-snd-wm8903 tegra-snd-wm8903.0: No speaker regulator found"
"tegra-snd-wm8903 tegra-snd-wm8903.0: No digital mic regulator found"

Bug 956562
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: Ide1ce141b5d45d56e834dc82a7cf5a7adc6c3e80
Reviewed-on: http://git-master/r/91548
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agousb: gadget: fsl_udc: Remove regulator error message
Preetham Chandru [Tue, 27 Mar 2012 08:23:55 +0000]
usb: gadget: fsl_udc: Remove regulator error message

Print only a warning message if usb_bat_chg regulator is not registered.
Some boards do not support usb charging and for such boards
usb_bat_chg regulator will not be registered.
Hence print only a warning message in such cases.

Bug 956558
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: I64c727f122c09d3865d649f3529b053bc65615ad
Reviewed-on: http://git-master/r/91521
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM:tegra:pcie:Avoid commenting PM noirq calls
Jay Agarwal [Mon, 26 Mar 2012 14:23:23 +0000]
ARM:tegra:pcie:Avoid commenting PM noirq calls

1. disable read write operation while suspend/resume
   noirq operation is performed to avoid hang
2. implement dev pm_ops for pcie tegra driver
3. use a backup buffer to save config space of
   all pcie devices to avoid legacy PM calls.

Change-Id: I2d39f69a865b48e1e51ce2cd466e24007718a8b6
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/90617
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Penny Chiu <pchiu@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Emily Jiang <ejiang@nvidia.com>

7 years agoARM:tegra:pcie: fix pcie power management
Jay Agarwal [Fri, 2 Mar 2012 18:38:07 +0000]
ARM:tegra:pcie: fix pcie power management

1. disable pci devices asynchronous suspend/resume.
2. correct resume function of tegra pcie driver.
3. enable clock clamping
4. require noirq suspend/resume calls to be commented

Bug 790141
Bug 947673

Change-Id: I49ebba43f296c3c38bc960d7db5fe847232e29a8
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/87316
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Penny Chiu <pchiu@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Krishna Thota <kthota@nvidia.com>

7 years agoarm: tegra: baseband: wake lock on both BB_RST_OUT pol
Frederic Bossy [Fri, 23 Mar 2012 22:05:19 +0000]
arm: tegra: baseband: wake lock on both BB_RST_OUT pol

bug 947710

Change-Id: If06de72d3880055c219e5ded892bb8cf956d774a
Signed-off-by: Frederic Bossy <fbossy@nvidia.com>
Reviewed-on: http://git-master/r/92066
Reviewed-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: tegra: cardhu: Fixed DSI panel issue on PM269.
Kevin Huang [Mon, 3 Oct 2011 21:16:47 +0000]
ARM: tegra: cardhu: Fixed DSI panel issue on PM269.

Bug 953155

Change-Id: I9fbb87f17e590971d5a0bf313e740e8b3b4c890b
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/91871
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: Enable speculative line fill in SCU.
Krishna Reddy [Thu, 22 Mar 2012 17:31:35 +0000]
arm: tegra: Enable speculative line fill in SCU.

Enable speculative line fill in SCU.
Bug 947861

Change-Id: I2db7515c47715160a4e559931e178b41c01a1744
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/91834
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

7 years agoarm:tegra[3]:config: turn off MMC_EMBEDDED_SDIO
Mursalin Akon [Fri, 16 Mar 2012 18:40:36 +0000]
arm:tegra[3]:config: turn off MMC_EMBEDDED_SDIO

No apparent need for L4T

Bug 956238

Change-Id: I78b7451a1bf30cce974f1daad88ae27959d55340
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90672
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agonet:wireless:bcmdhd: rename bcmsdh_remove & bcmsdh_probe
Mursalin Akon [Wed, 11 Apr 2012 13:52:20 +0000]
net:wireless:bcmdhd: rename bcmsdh_remove & bcmsdh_probe

rename bcmsdh_remove & bcmsdh_probe to *_bcmdhd
to resolve symbol conflicts with bcm4329 driver.

Bug 956238

Change-Id: I750238ddf9b3a0d9ff9583a7ec456aceef28531c
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90656
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

Conflicts:

drivers/net/wireless/bcmdhd/bcmsdh_linux.c
drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agovideo: tegra: add cursor mode flipping
Adam Cheney [Thu, 15 Mar 2012 21:50:00 +0000]
video: tegra: add cursor mode flipping

This change adds a flag to flip windows in cursor mode.  Cursor mode
will cause flips to be skipped over if there are newer flip requests
waiting in the workqueue.

Add CURSOR_MODE to caps bitfield.

bug 942762

Change-Id: Ib52a0a5565f961cdd9650e4204cd65b86f96fee1
Signed-off-by: Adam Cheney <acheney@nvidia.com>
Reviewed-on: http://git-master/r/90418
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>

7 years agotegra: p852: nor: Changing timing registers
Vishal Singh [Thu, 22 Mar 2012 09:10:55 +0000]
tegra: p852: nor: Changing timing registers

Changing the values of registers timing0 and timing1 of NOR flash
to those specified in the NOR POR.

Bug 914158.

Change-Id: Ie65fadbeda7329b22786841f46dd2583043a8381
Reviewed-on: http://git-master/r/#change,72828
Reviewed-on: http://git-master/r/91737
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra3: ARM_SAVE_DEBUG_CONTEXT should be selected based on PM_SLEEP
Manoj Chourasia [Wed, 21 Mar 2012 09:14:14 +0000]
ARM: tegra3: ARM_SAVE_DEBUG_CONTEXT should be selected based on PM_SLEEP

ARM_SAVE_DEBUG_CONTEXT was getting selected by tegra3 independent
of PM_SLEEP config. ARM_SAVE_DEBUG_CONTEXT itself is dependent on
PM_SLEEP. That was generating following warning while doing
savedefconfig with PM_SLEEP disabled.

scripts/kconfig/conf --savedefconfig=defconfig Kconfig
warning: (ARCH_TEGRA_2x_SOC && ARCH_TEGRA_3x_SOC) selects \
ARM_SAVE_DEBUG_CONTEXT which has unmet direct dependencies\
(PM_SLEEP && CPU_V7)

This patch fixes the issue.

bug 931053

Change-Id: I57016476b7ca39f9ac36a9c59d0102c89c85c6c9
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/91461
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoInput: gpio_keys - add support for interrupt only keys
Varun Wadekar [Wed, 11 Apr 2012 11:03:18 +0000]
Input: gpio_keys - add support for interrupt only keys

Some of buttons, like power-on key or onkey, may only generate interrupts
when pressed and not actually be mapped as gpio in the system. Allow
setting gpio to invalid value and specify IRQ instead to support such
keys. The debounce timer is used not to debounce but to ignore new IRQs
coming while button is kept pressed.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

Cherry-picked from mainline
d8ee4a1c90529ed06e1aa43d034986649f7b670b

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

Conflicts:

drivers/input/keyboard/gpio_keys.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoFix 3.3 merge error in: drivers: power: Add watchdog timer to catch drivers which...
Arve Hjønnevåg [Wed, 21 Mar 2012 23:43:45 +0000]
Fix 3.3 merge error in: drivers: power: Add watchdog timer to catch drivers which lockup during suspend.

__device_suspend could return with an active timer on the stack

Change-Id: I113f5f9aa12f909cb46621b6744e02a104ddd2bd
Signed-off-by: Arve Hjønnevåg <arve@android.com>

7 years agousb: gadget: adb: Only enable the gadget when adbd is ready
Benoit Goby [Tue, 20 Mar 2012 01:56:52 +0000]
usb: gadget: adb: Only enable the gadget when adbd is ready

When adb is enabled, only connect the gadget when adbd is ready. If adbd
dies or is restarted (e.g. "adb root"), the gadget is disconnected when
the adb device is close, and it is re-connected once adb re-open the
device.

- Add callbacks to adb, similar to FunctionFs callbacks, to notify the
  gadget when the daemon is ready or closed.
- Refcount calls to android_enable/android_disable to enable the gadget
  only once all the function daemons are ready.
- Add enable/disble to android_usb_function to notify the function when
  it is added/removed from the list of enabled functions.

Change-Id: Id54ff85aec9cf8715c94b4f9bd6137a79ad58bfc
Signed-off-by: Benoit Goby <benoit@android.com>

7 years agoInput: gpio_keys - constify platform data
Varun Wadekar [Wed, 11 Apr 2012 08:14:52 +0000]
Input: gpio_keys - constify platform data

The platform data should not be altered and therefore should be
accessed through const pointers.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cherry-picked from
d9080921aa32c70a95476ce387e973787b892591

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

Conflicts:

drivers/input/keyboard/gpio_keys.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm : tegra: clocks: Add PERIPH_ON_APB flag for apbif clock
Varun Wadekar [Wed, 11 Apr 2012 08:10:15 +0000]
arm : tegra: clocks: Add PERIPH_ON_APB flag for apbif clock

Bug 953357

Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/90845
(cherry picked from commit 24b715551882d387b82a89e0213012863e46bb95)

Change-Id: Ia8632fccab0708dacd9ef4b9360f8ef499b47818
Reviewed-on: http://git-master/r/92280
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Conflicts:

arch/arm/mach-tegra/tegra3_clocks.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: Fix PPCS IO address for Tegra 2x
Varun Wadekar [Wed, 11 Apr 2012 08:08:10 +0000]
ARM: tegra: Fix PPCS IO address for Tegra 2x

PPCS physical address is different for Tegra 3x and 2x

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

Conflicts:

arch/arm/mach-tegra/include/mach/io.h

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agocrypto: tegra-aes: save key during key call
Varun Wadekar [Wed, 11 Apr 2012 08:07:17 +0000]
crypto: tegra-aes: save key during key call

Save the key in hardware when the key setting call comes. Currently it is
set at later time.

Bug 917607

Change-Id: Ibdacb07c16c161eeba00eda6716884518e40c40a
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/90072
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Conflicts:

drivers/crypto/tegra-aes.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: cardhu: add pm311 mem table
Ray Poudrier [Sat, 18 Feb 2012 04:31:27 +0000]
ARM: tegra: cardhu: add pm311 mem table

Bug 896060

Reviewed-on: http://git-master/r/84679
(cherry picked from commit e1eb8a0802ff7c2aaf8e278e0f8cfd1fa06758be)

Change-Id: Ic233905eaa22775daa894c0132187b1192824b01
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>

Conflicts:

arch/arm/mach-tegra/board-cardhu-memory.c

Change-Id: Ic233905eaa22775daa894c0132187b1192824b01
Reviewed-on: http://git-master/r/88867
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: dvfs: correct LCD frequency for 1V
Ray Poudrier [Fri, 10 Feb 2012 04:27:17 +0000]
ARM: tegra: dvfs: correct LCD frequency for 1V

Bug 841336

Reviewed-on: http://git-master/r/82996
(cherry picked from commit 5850c8f4968fd7acbb22e377a56a476e37ac5117)

Change-Id: I61d5c1576a6f5caf82b3efec2123c47eb64889b2
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/88865
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: dvfs: Add chip sku override
Varun Wadekar [Wed, 11 Apr 2012 07:55:27 +0000]
ARM: tegra: dvfs: Add chip sku override

Based on command line parameter, override the sku

Bug 925878

Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/83241
(cherry picked from commit 24df2878418fc0c5f2b2dd20130df91a23dd042e)

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

Conflicts:

arch/arm/mach-tegra/tegra3_speedo.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: gadget: tegra: Fence read for AHB memory coherency
Rakesh Bodla [Tue, 7 Feb 2012 13:37:56 +0000]
usb: gadget: tegra: Fence read for AHB memory coherency

Fix memory coherency of AHB Master-initiated writes
to DRAM by reading the fence registers to make sure
memory is flushed to DRAM from the MC/EMC.

Bug 729267
Bug 952405

Change-Id: I96454fa43b58778d15095de2edb42e9dac1547d2
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/88285
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agousb: ehci: tegra: Fence read for AHB memory coherency
Rakesh Bodla [Tue, 7 Feb 2012 12:56:46 +0000]
usb: ehci: tegra: Fence read for AHB memory coherency

Fix memory coherency of AHB Master-initiated writes
to DRAM by reading the fence registers to make sure
memory is flushed to DRAM from the MC/EMC.

Bug 729267
Bug 952405

Change-Id: Ia60ee6796e53de6ece89e7e2ad531009a2fe5f00
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/88284
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra: xmm: reduce timeout timing on resume
Seongho Joo [Sun, 26 Feb 2012 03:18:02 +0000]
arm: tegra: xmm: reduce timeout timing on resume

1.reduce CP ack timeout to 1000 ms, based on modem vendor spec.
expected timing is 10ms, but modem vendor recommend to wait less than 1 sec.
2.move log print after spinlock section.
log in spinlock could waste cpu resource.

Bug 932104

Signed-off-by: Seongho Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/86003
(cherry picked from commit de853a886153cfb35cafcf797df490207187cc33)

Change-Id: I4b1ea80d25e0aa1f93599c08eedf306dbed00d63
Reviewed-on: http://git-master/r/91934
Reviewed-by: Shawn Joo <sjoo@nvidia.com>
Tested-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoARM: tegra: timer: add /dev/timerinfo
Jon Mayo [Wed, 29 Feb 2012 04:55:19 +0000]
ARM: tegra: timer: add /dev/timerinfo

Add a device that allows read-only mmap() of timer registers.

Reviewed-on: http://git-master/r/87511
(cherry picked from commit 95a6a6dafd97cbc72ea305f17b600be67a03093b)

Change-Id: I8782107dc3a32ff1c5a3a3c68d2ff0e8fb123dc3
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/91984
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarch: arm: configs: update for minimal kernel
Ken Chang [Thu, 8 Mar 2012 04:01:42 +0000]
arch: arm: configs: update for minimal kernel

shall not have board specific config for mods
remove CONFIG_I2C_MUX_PCA954x

bug 916180

Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/88730
Reviewed-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
(cherry picked from commit afee1fcade2e60d9c5986488e891c0cc9f1b22be)

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

7 years agoALSA: HDA: Return -ENODEV if hdmi_pcm_open() fails
Sumit Bhattacharya [Thu, 22 Mar 2012 14:17:16 +0000]
ALSA: HDA: Return -ENODEV if hdmi_pcm_open() fails

Return -ENODEV instead of -EAGAIN if hdmi_pcm_open() fails. There is
a chance of user space getting hung while trying to open pcm device
if -EAGAIN is returned.

Bug 949659

Change-Id: If4ff4078d8e0d882859ac97742e7d48d2e6c230c
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/91819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

7 years agovideo: tegra: host: use bus_for_each_dev for channel debug output
Mayuresh Kulkarni [Mon, 19 Mar 2012 12:38:53 +0000]
video: tegra: host: use bus_for_each_dev for channel debug output

- this patch uses the iterrator bus API to print the channel
status on debug-fs output
- it is the first step for removal nvhost_master holding
pointers to all the channels

Bug 871237

Change-Id: I2eaf8f0124512f1bc1ea9bbbe71d2c112b1947d2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/91676
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agovideo: tegra: host: Split submit into subfunctions
Terje Bergstrom [Fri, 16 Mar 2012 11:55:24 +0000]
video: tegra: host: Split submit into subfunctions

Split host1x_channel_submit() into subfunctions.

Bug 926690

Change-Id: I8be55cbc9d25ee76c758a918de4a9bb27e2ea846
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/90626
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoARM: tegra: Fix compilation warning for PCIe
Juha Tukkinen [Wed, 14 Mar 2012 11:41:34 +0000]
ARM: tegra: Fix compilation warning for PCIe

Fix compilation error for PCIe.

Change-Id: I1ab5390dfce273236bd4aa09579bf54425faf2e9
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/90045
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agortc: tps80031: Fixing POR month comparison
Venu Byravarasu [Tue, 13 Mar 2012 05:21:33 +0000]
rtc: tps80031: Fixing POR month comparison

As month calculation is modified to fix bug 931452
and POR comparison for month is not updated, fixing it.

bug 951622

Change-Id: Ifd906b48c51b155809ed88892579e9dd14abd5a0
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/89663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoALSA:hda: add alsa control for query of device
Varun Wadekar [Wed, 11 Apr 2012 07:08:06 +0000]
ALSA:hda: add alsa control for query of device

alsa control is added to facilitate querying dts decode capability of
connected device. dts decode capability of the connected device is
updated in the ELD buffer. That information is updated in the
ALSA control structure. In addition to that, the code is amended to
handle other pass through decoder mode support.

Bug 943017

Change-Id: If8da7dfb24be3b86592191f5586b70492282b438
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/91813
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Conflicts:

sound/pci/hda/hda_eld.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agomfd: Build rtc5t583 only if I2C config is selected to y.
Laxman Dewangan [Mon, 19 Mar 2012 06:14:55 +0000]
mfd: Build rtc5t583 only if I2C config is selected to y.

Fixing build error reported by Stephen Rothwell:

drivers/built-in.o: In function `rc5t583_i2c_init':
rc5t583.c:(.init.text+0xb3db): undefined reference to `i2c_register_driver'
drivers/built-in.o: In function `rc5t583_i2c_probe':
rc5t583.c:(.devinit.text+0x8fa0): undefined reference to `regmap_init_i2c'
drivers/built-in.o: In function `rc5t583_i2c_exit':
rc5t583.c:(.exit.text+0x708): undefined reference to `i2c_del_driver'

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(cherry picked from commit 5364d0b8640dd15e5c0b3ba40d0e874764b1bc88)

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

7 years agomfd: Add support for RICOH PMIC RC5T583
Varun Wadekar [Wed, 11 Apr 2012 06:58:34 +0000]
mfd: Add support for RICOH PMIC RC5T583

Ricoh power management IC  RC5T583 contains is multi
functional device having multiple sub devices inside this.
This device has multiple dcdc/ldo regulators, gpios, interrupt
controllers, on-key, RTCs, ADCs.
This device have 4 DCDCs, 8 LDOs, 8 GPIOs, 6 ADCs, 3 RTCs etc.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

Cherry-picked from mainline
1b1247dd75aa5cf5fae54a3bec7280046e9c7957

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

Conflicts:

drivers/mfd/Makefile

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoi2c: tegra: Remove synchronization between init and isr
Chaitanya Bandi [Thu, 22 Mar 2012 11:47:37 +0000]
i2c: tegra: Remove synchronization between init and isr

Removed unnecessary synchronization between init and isr
because clock driver is making sure that any operations
will be completed before disabling the driver clock.

Change-Id: I545e48be73697e023fedb8c663402c15e2a472df
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/91779
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>