7 years agokernel: printk: Add non exported function for clearing the log ring buffer
San Mehat [Thu, 6 Aug 2009 17:25:21 +0000]
kernel: printk: Add non exported function for clearing the log ring buffer

Signed-off-by: San Mehat <san@google.com>

7 years agoprintk: Fix log_buf_copy termination.
Arve Hjønnevåg [Tue, 15 Apr 2008 04:35:25 +0000]
printk: Fix log_buf_copy termination.

If idx was non-zero and the log had wrapped, len did not get truncated
to stop at the last byte written to the log.

7 years agoRevert "printk: remove unused code from kernel/printk.c"
Arve Hjønnevåg [Mon, 16 Apr 2012 07:38:06 +0000]
Revert "printk: remove unused code from kernel/printk.c"

This reverts commit acff181d3574244e651913df77332e897b88bff4.

Conflicts:

kernel/printk.c

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

7 years agonet: Replace AID_NET_RAW checks with capable(CAP_NET_RAW).
Chia-chi Yeh [Tue, 30 Jun 2009 03:23:04 +0000]
net: Replace AID_NET_RAW checks with capable(CAP_NET_RAW).

Signed-off-by: Chia-chi Yeh <chiachi@android.com>

7 years agosecurity: Add AID_NET_RAW and AID_NET_ADMIN capability check in cap_capable().
Chia-chi Yeh [Mon, 16 Apr 2012 07:36:29 +0000]
security: Add AID_NET_RAW and AID_NET_ADMIN capability check in cap_capable().

Signed-off-by: Chia-chi Yeh <chiachi@android.com>

Conflicts:

security/commoncap.c

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

7 years agonet: PPPoPNS and PPPoLAC fixes.
Chia-chi Yeh [Fri, 12 Jun 2009 18:29:04 +0000]
net: PPPoPNS and PPPoLAC fixes.

net: Fix a bitmask in PPPoPNS and rename constants in PPPoPNS and PPPoLAC.

Signed-off-by: Chia-chi Yeh <chiachi@android.com>

net: Fix a potential deadlock while releasing PPPoLAC/PPPoPNS socket.

PPP driver guarantees that no thread will be executing start_xmit() after
returning from ppp_unregister_channel(). To achieve this, a spinlock (downl)
is used. In pppolac_release(), ppp_unregister_channel() is called after sk_udp
is locked. At the same time, another thread might be running in pppolac_xmit()
with downl. Thus a deadlock will occur if the thread tries to lock sk_udp.
The same situation might happen on sk_raw in pppopns_release().

Signed-off-by: Chia-chi Yeh <chiachi@android.com>

net: Force PPPoLAC and PPPoPNS to bind an interface before creating PPP channel.

It is common to manipulate the routing table after configuring PPP device.
Since both PPPoLAC and PPPoPNS run over IP, care must be taken to make sure
that there is no loop in the routing table.
Although this can be done by adding a host route, it might still cause
problems when the interface is down for some reason.

To solve this, this patch forces both drivers to bind an interface before
creating PPP channel, so the system will not re-route the tunneling sockets
to another interface when the original one is down. Another benefit is that
now the host route is no longer required, so there is no need to remove it
when PPP channel is closed.

Signed-off-by: Chia-chi Yeh <chiachi@android.com>

net: Avoid sleep-inside-spinlock in PPPoLAC and PPPoPNS.

Since recv() and xmit() are called with a spinlock held, routines which might
sleep cannot be used. This issue is solved by following changes:

Incoming packets are now processed in backlog handler, recv_core(), instead of
recv(). Since backlog handler is always executed with socket spinlock held, the
requirement of ppp_input() is still satisfied.

Outgoing packets are now processed in workqueue handler, xmit_core(), instead of
xmit(). Note that kernel_sendmsg() is no longer used to prevent touching dead
sockets.

In release(), lock_sock() and pppox_unbind_sock() ensure that no thread is in
recv_core() or xmit(). Then socket handlers are restored before release_sock(),
so no packets will leak in backlog queue.

Signed-off-by: Chia-chi Yeh <chiachi@android.com>

net: Fix msg_iovlen in PPPoLAC and PPPoPNS.

Although any positive value should work (which is always true in both drivers),
the correct value should be 1.

Signed-off-by: Chia-chi Yeh <chiachi@android.com>

7 years agonet: add PPP on PPTP Network Server (PPPoPNS) driver.
Chia-chi Yeh [Mon, 16 Apr 2012 07:35:43 +0000]
net: add PPP on PPTP Network Server (PPPoPNS) driver.

Signed-off-by: Chia-chi Yeh <chiachi@android.com>

ppopns: dont include px_proto define in if_pppopns.h

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

Conflicts:

drivers/net/ppp/Makefile
drivers/net/ppp/pppopns.c

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

7 years agonet: add PPP on L2TP Access Concentrator (PPPoLAC) driver.
Chia-chi Yeh [Mon, 16 Apr 2012 07:33:18 +0000]
net: add PPP on L2TP Access Concentrator (PPPoLAC) driver.

Change-Id: I3ae3ee7520951ae24269db0ef2898c6455cf6bcc
Signed-off-by: Chia-chi Yeh <chiachi@android.com>

ppolac: dont include px_proto define in if_pppolac.h

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

Conflicts:

drivers/net/ppp/Kconfig
drivers/net/ppp/Makefile
drivers/net/ppp/pppolac.c
include/linux/if_pppox.h

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

7 years agofs: yaffs: don't force YAFFS_TRACE_ALWAYS for all trace levels
Dima Zavin [Thu, 6 Jan 2011 00:03:21 +0000]
fs: yaffs: don't force YAFFS_TRACE_ALWAYS for all trace levels

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

7 years agofs: yaffs: Import yaffs from Thu Dec 23 13:31:37 2010 +1300
Arve Hjønnevåg [Mon, 16 Apr 2012 07:29:14 +0000]
fs: yaffs: Import yaffs from Thu Dec 23 13:31:37 2010 +1300

commit ddf33fed15c2376bfb602d62dd018c63fce60df8
Author: Timothy Manning <tfhmanning@gmail.com>
Date:   Thu Dec 23 13:31:37 2010 +1300

    yaffs updated direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>

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

Conflicts:

fs/yaffs2/yaffs_vfs.c
fs/yaffs2/yportenv.h

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

7 years agotiwlan: Add abstract wifi control functions support
Dmitry Shmidt [Mon, 16 Apr 2012 07:27:29 +0000]
tiwlan: Add abstract wifi control functions support

Conflicts:

include/linux/wifi_tiwlan.h

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

7 years agommc: core: host: only use wakelock for detect work
Colin Cross [Mon, 16 Apr 2012 07:25:58 +0000]
mmc: core: host: only use wakelock for detect work

There is no need to take a wakelock for delayed lazy disable
work, it will be cancelled in the suspend handler and force
disabled.  Only take the wakelock when the detect work is
queued, and make sure to drop the wakelock if the work is
cancelled.

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

Conflicts:

drivers/mmc/core/core.c

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

7 years agommc: Fix pm_notifier obeying deferred resume
Dmitry Shmidt [Thu, 14 Oct 2010 22:20:21 +0000]
mmc: Fix pm_notifier obeying deferred resume

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agommc: sdio: Fix enable_hs and enable_wide in sdio_reset_comm()
Dmitry Shmidt [Thu, 7 Oct 2010 00:25:02 +0000]
mmc: sdio: Fix enable_hs and enable_wide in sdio_reset_comm()

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agommc: sdio: Add high speed support to sdio_reset_comm()
Daniel Chen [Wed, 9 Dec 2009 17:45:36 +0000]
mmc: sdio: Add high speed support to sdio_reset_comm()

Signed-off-by: San Mehat <san@google.com>

7 years agommc: sdio: Claim host in sdio_reset_comm()
San Mehat [Mon, 16 Apr 2012 07:23:57 +0000]
mmc: sdio: Claim host in sdio_reset_comm()

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Conflicts:

drivers/mmc/core/sdio.c

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

7 years agommc: core: Add deferred bus resume policy.
San Mehat [Mon, 16 Apr 2012 07:23:24 +0000]
mmc: core: Add deferred bus resume policy.

A card driver can now specify that the underlying bus should *not*
auto-resume with the rest of the system. This is useful for reducing resume
latency as well as saving power when the card driver is not using the
bus. In the future, we'll add support for manual suspend

Signed-off-by: San Mehat <san@google.com>

Conflicts:

drivers/mmc/core/core.c
include/linux/mmc/host.h

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

7 years agommc: core: Hold a wake lock accross delayed work + mmc rescan
San Mehat [Mon, 16 Apr 2012 07:21:26 +0000]
mmc: core: Hold a wake lock accross delayed work + mmc rescan

Signed-off-by: San Mehat <san@android.com>

mmc: core: Rework mmc_delayed_work wakelock so that the wakelock is only extended if a card is added or removed.

Signed-off-by: San Mehat <san@google.com>

Conflicts:

drivers/mmc/core/core.c

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

7 years agommc: Add new API call 'sdio_reset_comm' for resetting communication with an SDIO...
San Mehat [Mon, 16 Apr 2012 07:20:39 +0000]
mmc: Add new API call 'sdio_reset_comm' for resetting communication with an SDIO device

Signed-off-by: San Mehat <san@android.com>

Conflicts:

drivers/mmc/core/sdio.c

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

7 years agotrout: Add functions for WiFi
Dmitry Shmidt [Tue, 11 Nov 2008 19:22:38 +0000]
trout: Add functions for WiFi

7 years agommc: Add concept of an 'embedded' SDIO device.
San Mehat [Mon, 14 Apr 2008 22:22:49 +0000]
mmc: Add concept of an 'embedded' SDIO device.

This is required to support chips which use SDIO for signaling/
communication but do not implement the various card enumeration registers
as required for full SD / SDIO cards.

mmc: sdio: Fix bug where we're freeing the CIS tables we never allocated when using EMBEDDED_SDIO
mmc: Add max_blksize to embedded SDIO data

Signed-off-by: San Mehat <san@google.com>

7 years agommc: Add status IRQ and status callback function to mmc platform data
San Mehat [Mon, 16 Apr 2012 07:18:38 +0000]
mmc: Add status IRQ and status callback function to mmc platform data

Signed-off-by: San Mehat <san@google.com>

Conflicts:

include/linux/amba/mmci.h

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

7 years agoInput: synaptics_i2c_rmi: Driver for Synaptics Touchscreens using RMI over I2C.
Arve Hjønnevåg [Mon, 16 Apr 2012 07:17:49 +0000]
Input: synaptics_i2c_rmi: Driver for Synaptics Touchscreens using RMI over I2C.

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

Input: synaptics_i2c_rmi: disable_irq -> disable_irq_nosync

Also remove duplicate swap macro

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

Conflicts:

drivers/input/touchscreen/synaptics_i2c_rmi.c

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

7 years agoinput: Add keyreset driver.
Arve Hjønnevåg [Sat, 22 Nov 2008 05:47:23 +0000]
input: Add keyreset driver.

Add a platform device in the board file to specify a reset key-combo.
The first time the key-combo is detected a work function that syncs
the filesystems is scheduled. If all the keys are released and then
pressed again, it calls panic. Reboot on panic should be set for
this to work.

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

7 years agoinput: misc: gpio_event: remove early suspend
Colin Cross [Thu, 2 Feb 2012 04:26:28 +0000]
input: misc: gpio_event: remove early suspend

Remove the early suspend handler.  Leave the suspend functions
for now, they should eventually get called through a userspace
interface.x

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

7 years agoInput: Generic GPIO Input device.
Arve Hjønnevåg [Mon, 16 Apr 2012 07:12:49 +0000]
Input: Generic GPIO Input device.

Supports keyboard matrixces, direct inputs, direct outputs and axes connected to gpios.

Change-Id: I5e921e6e3a1cc169316ee3b665f4cc21b5735114
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Nick Pelly <npelly@google.com>

Conflicts:

drivers/input/misc/gpio_event.c

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

7 years agomisc: uidstat: Adding uid stat driver to collect network statistics.
Mike Chan [Mon, 16 Apr 2012 07:11:04 +0000]
misc: uidstat: Adding uid stat driver to collect network statistics.

Signed-off-by: Mike Chan <mike@android.com>

Conflicts:

drivers/misc/uid_stat.c

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

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>