firefly-linux-kernel-4.4.55.git
13 years agoMerge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Erik Gilling [Wed, 1 Dec 2010 21:45:02 +0000 (13:45 -0800)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36

Change-Id: I27504990282eccc4dd6edd16768ae32ad3e4380c

13 years agovideo: tegra: set up high priority on all overlays
Erik Gilling [Wed, 1 Dec 2010 21:31:36 +0000 (13:31 -0800)]
video: tegra: set up high priority on all overlays

this drastically reduces display controller underruns

Change-Id: I7d57c53cf61db4aac5d1baeb0e31b3a5d6fe9e67
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agoARM: tegra: enable emc clock updates after lp0
James Wylder [Sat, 20 Nov 2010 00:12:00 +0000 (18:12 -0600)]
ARM: tegra: enable emc clock updates after lp0

Write a dummy value to EMC_MRW_0 to allow
clock frequency changes after lp0.

Change-Id: I2218967eaf9698eef6dcfe2e3edd89fbce2ebf1a
Signed-off-by: James Wylder <james.wylder@motorola.com>
13 years ago[ARM] tegra: ventana: fix volume up gpio
Varun Wadekar [Thu, 25 Nov 2010 11:26:16 +0000 (16:56 +0530)]
[ARM] tegra: ventana: fix volume up gpio

Change-Id: Ie0e25ee8074f4625feb7473f4d5ce759597ed035
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years ago[ARM] tegra2_clocks: remove incorrectly-defined frequencies
Iliyan Malchev [Mon, 29 Nov 2010 21:38:19 +0000 (13:38 -0800)]
[ARM] tegra2_clocks: remove incorrectly-defined frequencies

Definitions for 11.2896MHz and 12.288MHz were incorrect.  These
frequencies can be still requested through pll_a_out0.

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra_i2s_audio: remove unnecessary clocks
Iliyan Malchev [Wed, 1 Dec 2010 00:27:17 +0000 (16:27 -0800)]
[ARM] tegra_i2s_audio: remove unnecessary clocks

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[tegra i2c] add de-bounce cycles.
Jay Cheng [Fri, 26 Nov 2010 17:08:39 +0000 (12:08 -0500)]
[tegra i2c] add de-bounce cycles.

Change-Id: I3549105bb1d1a7803a300849ddba9c17dad1efba
Signed-off-by: Ken Radtke <kradtke@nvidia.com>
13 years agomedia: video: tegra: avp: turn off chatty avp/rpc debug logging
Dima Zavin [Fri, 19 Nov 2010 21:20:15 +0000 (13:20 -0800)]
media: video: tegra: avp: turn off chatty avp/rpc debug logging

Change-Id: I3f9025285fc5a002dbd436ee76bb6ca757c425ea
Signed-off-by: Dima Zavin <dima@android.com>
13 years agomedia: video: tegra: avp: make avp_svc have separate debug mask
Dima Zavin [Sat, 13 Nov 2010 00:20:56 +0000 (16:20 -0800)]
media: video: tegra: avp: make avp_svc have separate debug mask

Change-Id: Ib5490a7f7d294760d34a3b9da14281ad96c9b26c
Signed-off-by: Dima Zavin <dima@android.com>
13 years agomedia: video: tegra: properly drop refs to sclk on cleanup
Dima Zavin [Mon, 15 Nov 2010 19:22:31 +0000 (11:22 -0800)]
media: video: tegra: properly drop refs to sclk on cleanup

Change-Id: I7af31dc4cd1e2d7a4142f6265665a05ca4f41d15
Signed-off-by: Dima Zavin <dima@android.com>
13 years agousb: host: tegra: Reduce busy polling duration
Jay Cheng [Mon, 22 Nov 2010 16:03:52 +0000 (11:03 -0500)]
usb: host: tegra: Reduce busy polling duration

Change-Id: I63e271409818e33b4c19bb99b00e556bc5a2a4b3
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
13 years agoARM: tegra: clock: Fix cpu pll table entry for 608MHz
Colin Cross [Wed, 24 Nov 2010 22:56:34 +0000 (14:56 -0800)]
ARM: tegra: clock: Fix cpu pll table entry for 608MHz

The 608 MHz table entry would incorrectly produce a 760 MHz
clock for input clocks of 12 MHz, 13 MHz, or 26 MHz.

Change-Id: I6755fdde88f0851770490818dc2e5e1e2d512f20
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: Rearrange subsystem initialization order
Colin Cross [Wed, 24 Nov 2010 22:52:02 +0000 (14:52 -0800)]
ARM: tegra: Rearrange subsystem initialization order

Fuses must be initialized before clocks, so clocks can
determine the maximum cpu frequency.  Clocks must be
initialized before DMA, so DMA can enable the clock.
Once DMA is initialized, all fuses accesses must go
through DMA to avoid a hardware bug.

Change-Id: Id1f58e4f43152ec19000e02f2d1ea45abf141f9c
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: dma: Add dma initialzation stub when compiled out
Colin Cross [Wed, 24 Nov 2010 22:49:35 +0000 (14:49 -0800)]
ARM: tegra: dma: Add dma initialzation stub when compiled out

Change-Id: Iac01fa701342a5ed0bbbb1c6e5d38adb401f2d79
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: fuse: Separate fuse dma initialization
Colin Cross [Wed, 24 Nov 2010 22:44:09 +0000 (14:44 -0800)]
ARM: tegra: fuse: Separate fuse dma initialization

There is a dependency loop between fuses, clocks, and APBDMA.
If dma is enabled, fuse reads must go through APBDMA to avoid
corruption due to a hw bug.  APBDMA requires a clock to be
enabled.  Clocks must read a fuse to determine allowable cpu
frequencies.

Separate out the fuse DMA initialization, and allow the fuse
read and write functions to be called without using DMA before
the DMA initialization has been completed.  Access to the fuses
before APBDMA is initialized won't hit the hardware bug because
nothing else can be using DMA.

Change-Id: Ib5cb0f346488f2869e8314c5f3b24fd86873f4c3
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: fuse: Fix warnings
Colin Cross [Wed, 24 Nov 2010 22:34:35 +0000 (14:34 -0800)]
ARM: tegra: fuse: Fix warnings

Change-Id: I2793cb8413669dbae8c6ca92572c423e27f46c4e
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: fuse: Remove carriage returns in fuse files
Colin Cross [Wed, 24 Nov 2010 22:28:50 +0000 (14:28 -0800)]
ARM: tegra: fuse: Remove carriage returns in fuse files

Change-Id: If3675c8ee7a0e0a5d3f7bd0c147054bc3796deef
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Thu, 25 Nov 2010 00:41:30 +0000 (16:41 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agoARM: tegra: suspend: protect suspend functions with CONFIG_PM
Allen Martin [Fri, 19 Nov 2010 23:51:50 +0000 (15:51 -0800)]
ARM: tegra: suspend: protect suspend functions with CONFIG_PM

Protect suspend/resume functions behind #ifdef CONFIG_PM.  This
prevents a compile error with CONFIG_PM turned off.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: irq: protect irq suspend with CONFIG_PM
Allen Martin [Fri, 19 Nov 2010 22:50:50 +0000 (14:50 -0800)]
ARM: tegra: irq: protect irq suspend with CONFIG_PM

Protect irq suspend/resume functions behind #ifdef CONFIG_PM.
This prevents a link error if CONFIG_PM is turned off.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
13 years agousb: host: tegra: protect bus suspend with CONFIG_PM
Allen Martin [Fri, 19 Nov 2010 22:15:34 +0000 (14:15 -0800)]
usb: host: tegra: protect bus suspend with CONFIG_PM

Protect the bus suspend/resume functions behind #ifdef CONFIG_PM.
This prevents a compile error if CONFIG_PM is turned off.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoserial: tegra_hsuart: Use resources instead of platform data.
Jaikumar Ganesh [Sat, 20 Nov 2010 02:23:29 +0000 (18:23 -0800)]
serial: tegra_hsuart: Use resources instead of platform data.

Use resources to pass data to tegra_hsuart to set
mapbase, irq.

Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
13 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Wed, 24 Nov 2010 05:39:33 +0000 (21:39 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

13 years ago[ARM] tegra: support to burn device fuses
Varun Wadekar [Mon, 25 Oct 2010 04:49:30 +0000 (10:19 +0530)]
[ARM] tegra: support to burn device fuses

Change-Id: Ic12a93d4212b5f9a7802537b8f21e288aa431005
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years ago[ARM] tegra: fuse read/write apis for fuse burning
Varun Wadekar [Mon, 25 Oct 2010 04:31:28 +0000 (10:01 +0530)]
[ARM] tegra: fuse read/write apis for fuse burning

expose fuse register read and write apis for fuse
burning

Change-Id: Id6785f5506fe9293ddb5072240f49470ca5fcd08
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years ago[ARM] tegra: use dma to read/write fuse registers
Varun Wadekar [Sun, 24 Oct 2010 10:55:32 +0000 (16:25 +0530)]
[ARM] tegra: use dma to read/write fuse registers

tegra2 hangs if fuse registers are accessed during an apb dma
operation. war is to use apb dma to read/write fuse registers
instead.

Change-Id: I4d99a1ad56115c0d73e9cd0679cf38f70f922f3d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
13 years ago[ARM] tegra: Change size of constants from SZ_64 to 64.
Jaikumar Ganesh [Mon, 22 Nov 2010 20:05:04 +0000 (12:05 -0800)]
[ARM] tegra: Change size of constants from SZ_64 to 64.

Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
13 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Iliyan Malchev [Tue, 23 Nov 2010 21:58:43 +0000 (13:58 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

Conflicts:
arch/arm/mach-tegra/tegra_spdif_audio.c

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra_spdif_audio: support continuous DMA mode
Iliyan Malchev [Tue, 23 Nov 2010 19:55:27 +0000 (11:55 -0800)]
[ARM] tegra_spdif_audio: support continuous DMA mode

-- Add support for contnuous single-buffered DMA
-- Remove PIO support
-- Added suspend and resume functionality

Signed-off-by: Scott Peterson <speterson@nvidia.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Iliyan Malchev [Tue, 23 Nov 2010 00:07:44 +0000 (16:07 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

Conflicts:
arch/arm/mach-tegra/tegra_i2s_audio.c

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agoMerge branch 'android-2.6.36' into android-tegra-2.6.36
Iliyan Malchev [Tue, 23 Nov 2010 00:06:23 +0000 (16:06 -0800)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra_spdif_audio: Enable 16 bit packed mode
Scott Peterson [Tue, 9 Nov 2010 22:22:27 +0000 (16:22 -0600)]
[ARM] tegra_spdif_audio: Enable 16 bit packed mode

Enable 16 bit packed fifo format mode to work avoid
channel swapping when dma underrun occurs.

Added suspend/resume functionality so spdif registers
are restored.

Change-Id: Id80e7903b81fd3b3b84af08dba40196121eb6cb7
Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years ago[ARM] tegra: i2s: Continuous DMA support
Chris Fries [Thu, 18 Nov 2010 18:42:15 +0000 (12:42 -0600)]
[ARM] tegra: i2s: Continuous DMA support

- Refactor DMA interactions to handle continuous single-buffered DMA
- Remove PIO support (obsolete, conflicts with new buffer management)
- Remove sample rate conversion (obsolete)
- Remove error-reporting logic
- Remove TEGRA_AUDIO_IN/OUT_GET/SET_BUF_CONFIG
- Add TEGRA_AUDIO_IN/OUT_GET/SET_NUM_BUFS

Change-Id: I8f21a0bb314aac3b7d1bb4918bda9141e58db38d
Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agonet: wireless: bcm4329: Add 'setdfschannels' command
Dmitry Shmidt [Fri, 19 Nov 2010 19:20:35 +0000 (11:20 -0800)]
net: wireless: bcm4329: Add 'setdfschannels' command

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agoMerge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Mon, 22 Nov 2010 21:23:31 +0000 (13:23 -0800)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36

13 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Mon, 22 Nov 2010 21:21:49 +0000 (13:21 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agousb: host: tegra: rewrite usb suspend/resume routine.
Jay Cheng [Mon, 22 Nov 2010 16:03:52 +0000 (11:03 -0500)]
usb: host: tegra: rewrite usb suspend/resume routine.

Tegra host controller will time the resume operation to clear the bit
when the port control state switches to HS or FS Idle. This behavior
is different from EHCI where the host controller driver is required
to set this bit to a zero after the resume duration is timed in the
driver.

Poll PORT_SUSPEND bit till the suspend is completed. Write PORT_RESUME to 0
to clear PORT_SUSPEND bit.

Disable disconnect detection during resume.

Change-Id: I30a45dc7e7a87773a93c128877d0f0827e5d44b7
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
13 years agoARM: tegra: usb_phy: Disable disconnect detection during resume
Jay Cheng [Mon, 22 Nov 2010 16:03:52 +0000 (11:03 -0500)]
ARM: tegra: usb_phy: Disable disconnect detection during resume

Change-Id: I30a45dc7e7a87773a93c128877d0f0827e5d44b7
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
13 years agousb: gadget: rndis: don't use dev_get_stats
Benoit Goby [Wed, 17 Nov 2010 22:27:51 +0000 (14:27 -0800)]
usb: gadget: rndis: don't use dev_get_stats

Since 2.6.36, spin_lock_bh has been added to dev_txq_stats_fold. So
dev_get_stats cannot be called from atomic context.

Replaced it by netdev_stats_to_stats64 to copy the stats directly. This
will work if the device driver does not need txq tx stats folding.

http://lkml.org/lkml/2010/9/20/250

Change-Id: I715b00892beda56cc369139d6e2bdc9efb6bfe79
Signed-off-by: Benoit Goby <benoit@android.com>
13 years agovideo: tegra: host: Fix bounds-checking
Robert Morell [Sat, 20 Nov 2010 03:17:36 +0000 (19:17 -0800)]
video: tegra: host: Fix bounds-checking

The length of the mod_locks array is NV_HOST1X_NB_MLOCKS, not
NV_HOST1X_SYNCPT_NB_PTS.

Change-Id: Ibce054bb8a168f2b83646745f2b62cd282b8ff9d
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Acked-by: Erik Gilling <konkers@android.com>
13 years agovideo: tegra: Scale colors in pseudopalette
Robert Morell [Sat, 20 Nov 2010 02:55:51 +0000 (18:55 -0800)]
video: tegra: Scale colors in pseudopalette

This fixes incorrect colors drawn by clients such as fbconsole.  As
described by skeletonfb's fb_setcolreg: "The values supplied have a 16
bit magnitude which needs to be scaled in this function for the
hardware."

Tested with both r8g8b8 and r5g6b5 pixel depths and fbconsole.

Change-Id: Ie3c3579502ddab8843a8a4dc7049c6efaa5d0ac1
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Acked-by: Erik Gilling <konkers@android.com>
13 years agotegra: SDHCI: disable clock at suspend
Todd Poynor [Fri, 19 Nov 2010 04:24:24 +0000 (20:24 -0800)]
tegra: SDHCI: disable clock at suspend

Ensure sdmmc<n> clock is disabled at suspend, and that the subsequent
resume will perform clock enable processing, which is required if LP0
suspend is in effect.

Change-Id: Ia98698f13cc557040e5fdbc523a97effb63ac63b
Signed-off-by: Todd Poynor <toddpoynor@google.com>
13 years agoMerge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Erik Gilling [Fri, 19 Nov 2010 00:36:48 +0000 (16:36 -0800)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36

Change-Id: Iff6fb3eee3b96120f3973ccada4c0b0772dbc2b3

13 years agotegra: video: make tegra_dc_is_yuv_planar return bool
Erik Gilling [Fri, 19 Nov 2010 00:21:02 +0000 (16:21 -0800)]
tegra: video: make tegra_dc_is_yuv_planar return bool

Change-Id: I8adaea9eeb20f1c90b33d41a5b462ab8ee515b49
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agovideo: tegra: YUV overlay support
Ari Hirvonen [Wed, 17 Nov 2010 12:17:40 +0000 (14:17 +0200)]
video: tegra: YUV overlay support

Change-Id: I4bed4d37bc275cca9ef69390c217498529121db0
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Thu, 18 Nov 2010 23:49:06 +0000 (15:49 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agoMerge remote branch 'common/android-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Thu, 18 Nov 2010 23:48:39 +0000 (15:48 -0800)]
Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36

13 years agoARM: tegra: usb_phy: Disable HS disconnect detect for USB2 port
Nathan Connell [Thu, 18 Nov 2010 17:12:37 +0000 (11:12 -0600)]
ARM: tegra: usb_phy: Disable HS disconnect detect for USB2 port

Signed-off-by: Nathan Connell <w14185@motorola.com>
Change-Id: Ia0c24128af0f1def38d0902b15a274582c302ce2

13 years agonet: wireless: bcm4329: Use non-DFS channels only for US
Dmitry Shmidt [Thu, 18 Nov 2010 22:31:18 +0000 (14:31 -0800)]
net: wireless: bcm4329: Use non-DFS channels only for US

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agonet: wireless: bcm4329: Improve way to detect BT SCO connection for BT-coex
Greg Goldman [Thu, 18 Nov 2010 22:08:58 +0000 (14:08 -0800)]
net: wireless: bcm4329: Improve way to detect BT SCO connection for BT-coex

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agonet: wireless: bcm4329: Update to Version 4.218.248-15
Greg Goldman [Thu, 18 Nov 2010 21:49:25 +0000 (13:49 -0800)]
net: wireless: bcm4329: Update to Version 4.218.248-15

- Increase default Listen Interval to 20 Beacons
- Add logic to adjust SKIP_DTIM if Listen Interval < DTIM * DTIM_SKIP to
  avoid data lost due to fact that packet maybe not retrieved during Listen
  Interval and AP may toss it
- Fix problem with Hidden AP setting after AP reconfigure
- Add new SoftAP optional parameter as COUNTRY to pass country code to SoftAP

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years ago[ARM] tegra: dma: Single buffered continuous DMA
Chris Fries [Thu, 11 Nov 2010 23:39:06 +0000 (17:39 -0600)]
[ARM] tegra: dma: Single buffered continuous DMA

- Added "single buffer continuous DMA" mode in addition to the
  "double buffer continuous DMA" mode that is already implemented
- Changed the queuing of next buffer to be more flexible for
  continuous DMA.  It can now get in-flight right after a transfer
  starts, or whenever the client enqueues a buffer.

Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agonet: wireless: bcm4329: Set first channel passive scan to 30 ms
Dmitry Shmidt [Thu, 18 Nov 2010 00:20:48 +0000 (16:20 -0800)]
net: wireless: bcm4329: Set first channel passive scan to 30 ms

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agoARM: fiq_debugger: Add help command
Dmitry Shmidt [Tue, 16 Nov 2010 23:40:13 +0000 (15:40 -0800)]
ARM: fiq_debugger: Add help command

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Wed, 17 Nov 2010 22:18:29 +0000 (14:18 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agovideo: tegra: fill in transparency info in 32bpp FB mode
Erik Gilling [Wed, 17 Nov 2010 22:11:59 +0000 (14:11 -0800)]
video: tegra: fill in transparency info in 32bpp FB mode

also remove incorrect support for 24bpp

Change-Id: Ic6528760bf2585ca5e7a2a68a200e3346694505e
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agoMerge remote branch 'common/android-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Wed, 17 Nov 2010 21:20:43 +0000 (13:20 -0800)]
Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36

13 years agoUSB: gadget: f_mtp: Zero length packet fixes
Mike Lockwood [Wed, 17 Nov 2010 16:16:35 +0000 (11:16 -0500)]
USB: gadget: f_mtp: Zero length packet fixes

Send zero length packets at end of transfers that are a multiple of the
bulk max packet size as required by MTP.

Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agomisc: kernel_debugger: Add help command
Dmitry Shmidt [Tue, 16 Nov 2010 23:39:43 +0000 (15:39 -0800)]
misc: kernel_debugger: Add help command

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agoUSB: gadget: f_mtp: Support for file transfer length greater than 4 gigabytes
Mike Lockwood [Tue, 16 Nov 2010 22:14:32 +0000 (17:14 -0500)]
USB: gadget: f_mtp: Support for file transfer length greater than 4 gigabytes

For backward compatibility with PTP, MTP is limited to a 32-bit file size.
When transferring files greater than 4 gig, MTP uses 0xFFFFFFFF as the file size
and the receiver reads until it receives a short packet.

Expanded size of mtp_file_range.length to 64 bits and added support for
writing zero length packets.

Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Tue, 16 Nov 2010 22:32:19 +0000 (14:32 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

Change-Id: Ia027b838f8971f49b3f8cd276e2bc74f050210a7

13 years agoUSB: gadget: f_mtp: Return zero result for successful file transfer.
Mike Lockwood [Mon, 15 Nov 2010 20:22:21 +0000 (15:22 -0500)]
USB: gadget: f_mtp: Return zero result for successful file transfer.

Returning number of bytes transfered does not work for files > 2 gig
since ioctl() result is a signed integer.

Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agousb: host: tegra: Remove programing PTC bits based on bus speed.
Jay Cheng [Wed, 10 Nov 2010 23:40:46 +0000 (18:40 -0500)]
usb: host: tegra: Remove programing PTC bits based on bus speed.

Program PTC bits as NORMAL_OP is enough when resume.

Change-Id: I229eb3ef2ebaff72d023179502ec7a8904e87682
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
13 years agoMerge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Erik Gilling [Fri, 12 Nov 2010 02:12:08 +0000 (18:12 -0800)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36

Change-Id: I15e4d0a951e48c27e8f155e94c19f8fbe37131a0

13 years agovideo: tegra: add option to autodetect bitdepth from bootloader
Erik Gilling [Fri, 12 Nov 2010 01:39:04 +0000 (17:39 -0800)]
video: tegra: add option to autodetect bitdepth from bootloader

Change-Id: I5f17ab96323b3d313473622f572006d01b4716f7
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agovideo: tegra: call disable with interrupts disabled.
James Wylder [Thu, 11 Nov 2010 22:52:32 +0000 (16:52 -0600)]
video: tegra: call disable with interrupts disabled.

Change-Id: Idb126c14f6e18efcb64f3f613772640b8bd3fca0
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agoARM: tegra: flush console before reboot
Dima Zavin [Thu, 11 Nov 2010 23:28:46 +0000 (15:28 -0800)]
ARM: tegra: flush console before reboot

If the console_sem 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 sem if it failed to be acquired.

Change-Id: I6eba9d744ef41209d26328a17c7ae19c32d6e8cb
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoMerge remote branch 'common/android-2.6.36' into android-tegra-2.6.36
Dima Zavin [Thu, 11 Nov 2010 23:31:45 +0000 (15:31 -0800)]
Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36

13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Dima Zavin [Thu, 11 Nov 2010 23:31:26 +0000 (15:31 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

Conflicts:
drivers/video/tegra/dc/hdmi.c

Change-Id: Ia2bd5c56238b9ef0a1eaba3c184c00ea33368263

13 years agovideo: add rgb disable handler
James Wylder [Thu, 11 Nov 2010 18:55:59 +0000 (12:55 -0600)]
video: add rgb disable handler

Adjust pinmux on disable in order to save power/leakage

Change-Id: I65b642c128a780aa8932205052ccee199e4c41bf
Signed-off-by: James Wylder <james.wylder@motorola.com>
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agonet: wireless: bcm4329: Fix Softap start/stop race conditions
Dmitry Shmidt [Thu, 11 Nov 2010 01:56:37 +0000 (17:56 -0800)]
net: wireless: bcm4329: Fix Softap start/stop race conditions

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agomedia: tegra: avp: fix a mutex leak on an err path in lib load
Dima Zavin [Wed, 10 Nov 2010 18:18:04 +0000 (10:18 -0800)]
media: tegra: avp: fix a mutex leak on an err path in lib load

Also hold the mutex for longer on cleanup, while deleting
the libs nvmap client. Not strictly necessary...

Change-Id: I4dfdb065211571338053a16bacc2e5412c26ae77
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoARM: fiq_debugger: make fiq_debugger be in debug mode by default
Dima Zavin [Wed, 10 Nov 2010 23:39:07 +0000 (15:39 -0800)]
ARM: fiq_debugger: make fiq_debugger be in debug mode by default

Adds a config option that controls whether or not the console is on at
boot, defaulting to no.

Change-Id: Id4a3cad1c9dd4fb3c2b8c2298ca5d385a8bd0f8d
Signed-off-by: Dima Zavin <dima@android.com>
13 years agovideo: tegra: delay HDMI hotplug detection until after resume
Erik Gilling [Wed, 10 Nov 2010 23:32:58 +0000 (15:32 -0800)]
video: tegra: delay HDMI hotplug detection until after resume

Change-Id: I87c35dc3e1287fc1d936e554013deb2f92cbd6f4
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agoUSB: gadget: f_mtp: MTP driver cleanup:
Mike Lockwood [Mon, 8 Nov 2010 15:41:31 +0000 (10:41 -0500)]
USB: gadget: f_mtp: MTP driver cleanup:

Use a work queue instead of a separate thread for file transfer ioctls
(note: the file transfer must be done on a kernel thread rather than in
process context so vfs_read and vfs_write will use the correct address space
for the buffers)

Enforce requirement that only one ioctl call may be active at a time,
and remove mutex in mtp_send_event that is now no longer necessary.

Synchronize around use of shared variables to avoid SMP issues

Fix mismatched calls to fget and fput

Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoBluetooth: Add BT_POWER L2CAP socket option.
Jaikumar Ganesh [Wed, 10 Nov 2010 03:07:45 +0000 (19:07 -0800)]
Bluetooth: Add BT_POWER L2CAP socket option.

Add BT_POWER socket option used to control the power
characteristics of the underlying ACL link. When the remote end
has put the link in sniff mode and the host stack wants to send
data we need need to explicitly exit sniff mode to work well with
certain devices (For example, A2DP on Plantronics Voyager 855).
However, this causes problems with HID devices.

Hence, moving into active mode when sending data, irrespective
of who set the sniff mode has been made as a socket option. By
default, we will move into active mode. HID devices can set the
L2CAP socket option to prevent this from happening.

Currently, this has been implemented for L2CAP sockets. This has been
tested with incoming and outgoing L2CAP sockets for HID and A2DP.

Based on discussions on linux-bluetooth and patches submitted by
Andrei Emeltchenko.

Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
13 years agoRevert "Bluetooth: Hack: Do not use power_save feature."
Jaikumar Ganesh [Wed, 10 Nov 2010 23:45:07 +0000 (15:45 -0800)]
Revert "Bluetooth: Hack: Do not use power_save feature."

This reverts commit 3b02c046c3dfef5b5c4fa0c45b69654c107c7403.

Signed-off-by: Jaikumar Ganesh<jaikumar@google.com>
13 years agovideo: tegra: mark a window's handle as unused when it is
Erik Gilling [Wed, 10 Nov 2010 23:29:35 +0000 (15:29 -0800)]
video: tegra: mark a window's handle as unused when it is

Change-Id: Iedc9a26f62e14c0263f0f315e589a672762ab31a
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agomedia: video: tegra: add avp port transport info to debug dump
Dima Zavin [Tue, 9 Nov 2010 00:59:22 +0000 (16:59 -0800)]
media: video: tegra: add avp port transport info to debug dump

Change-Id: I7ade4469609ecf87663e6a6733842889b27f7ce5
Signed-off-by: Dima Zavin <dima@android.com>
13 years agomedia: video: tegra: add debugfs entry for tegra_rpc
Dima Zavin [Mon, 8 Nov 2010 21:58:04 +0000 (13:58 -0800)]
media: video: tegra: add debugfs entry for tegra_rpc

For now just includes the existing ports, the peer owners,
and the port and peer state.

Change-Id: I2c6b603ca02dc48acc1c763380ff0f1cb66f482b
Signed-off-by: Dima Zavin <dima@android.com>
13 years agomedia: video: tegra: wait for remote ack on disconnect
Dima Zavin [Tue, 9 Nov 2010 18:27:18 +0000 (10:27 -0800)]
media: video: tegra: wait for remote ack on disconnect

Change-Id: I42bf507b7d644184bd27be6ff53e5974dcfa3797
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoARM: tegra: usb_phy: Correct utmi power off sequence
Jay Cheng [Tue, 9 Nov 2010 05:22:28 +0000 (00:22 -0500)]
ARM: tegra: usb_phy: Correct utmi power off sequence

USB_WAKE_ON_CNNT_EN_DEV is only valid when USB controller is in device mode.

Also only one of USB_WAKE_ON_CNNT_EN_DEV and USB_WAKE_ON_DISCON_EN_DEV bits
can be set at any one time.

Change-Id: I76d7fcf73e6ab8fa1610ec4264060c44b221775c
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
13 years agoMerge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Tue, 9 Nov 2010 23:49:46 +0000 (15:49 -0800)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agoARM: tegra: dvfs: Fix dvfs disable config option
Colin Cross [Tue, 9 Nov 2010 23:48:55 +0000 (15:48 -0800)]
ARM: tegra: dvfs: Fix dvfs disable config option

Change-Id: If976cc25147d96fd1130f48301017ce696e38f4f
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: dvfs: Add lock to dvfs_reg
Colin Cross [Tue, 9 Nov 2010 00:30:48 +0000 (16:30 -0800)]
ARM: tegra: dvfs: Add lock to dvfs_reg

Change-Id: I0496cf37da3a20d697eb4f372c32d01d49352f98
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: dvfs: Fix locking on external dvfs calls
Colin Cross [Tue, 9 Nov 2010 00:30:11 +0000 (16:30 -0800)]
ARM: tegra: dvfs: Fix locking on external dvfs calls

Change-Id: I9e3a3cc8c6c4424d7f7ded22d886d51f715ec5d5
Signed-off-by: Colin Cross <ccross@android.com>
13 years agoARM: tegra: dvfs: Add config options to disable dvfs
Colin Cross [Tue, 9 Nov 2010 21:50:25 +0000 (13:50 -0800)]
ARM: tegra: dvfs: Add config options to disable dvfs

Change-Id: I401ab5587f28dfabaf0aae1ffa062a2411a1ad92
Signed-off-by: Colin Cross <ccross@android.com>
13 years ago[ARM] tegra: cleanup empty functions in mach/fb.h
Erik Gilling [Tue, 9 Nov 2010 21:59:43 +0000 (13:59 -0800)]
[ARM] tegra: cleanup empty functions in mach/fb.h

adds static inline

Change-Id: Iff0473dcc02ad6d10adb878f195b57a2ed6e3e2a
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agovideo: add short video mode decode to fbmon
Erik Gilling [Thu, 4 Nov 2010 20:48:53 +0000 (13:48 -0700)]
video: add short video mode decode to fbmon

Change-Id: Ida529e096688c231029628d3d16d6f8569bfe2c9
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agovideo: tegra: flush fb_flip workqueue on blank and suspend
Erik Gilling [Mon, 8 Nov 2010 23:08:40 +0000 (15:08 -0800)]
video: tegra: flush fb_flip workqueue on blank and suspend

Change-Id: I58e9ba73b2fd232e6c1f40946e2e353b90ce5dd7
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agovideo: tegra: fix crash when no HDMI modes are supported
Erik Gilling [Fri, 5 Nov 2010 22:30:35 +0000 (15:30 -0700)]
video: tegra: fix crash when no HDMI modes are supported

Change-Id: I2e23d018d5acb814e7a088921c26c8f305790442
Signed-off-by: Erik Gilling <konkers@android.com>
13 years agonet: wireless: bcm4329: Add FW Reload event processing
Greg Goldman [Tue, 9 Nov 2010 21:28:20 +0000 (13:28 -0800)]
net: wireless: bcm4329: Add FW Reload event processing

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agonet: wireless: bcm4329: Enable KEEP_ALIVE feature
Dmitry Shmidt [Tue, 9 Nov 2010 18:08:27 +0000 (10:08 -0800)]
net: wireless: bcm4329: Enable KEEP_ALIVE feature

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agonet: wireless: bcm4329: Fix watchdog termination after 'driver stop'
Dmitry Shmidt [Tue, 9 Nov 2010 18:07:48 +0000 (10:07 -0800)]
net: wireless: bcm4329: Fix watchdog termination after 'driver stop'

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
13 years agotegra sdhci: Enable/disable SDCLK source in set_clock host_op
Todd Poynor [Mon, 11 Oct 2010 22:31:42 +0000 (15:31 -0700)]
tegra sdhci: Enable/disable SDCLK source in set_clock host_op

Now with 100% more LP0 suspend support.  sdhci_resume_host accesses
the SDHCI controller, so enable the sdmmc<n> clock at resume, and
let the MMC card layer tell us (later on) whether SDCLK is needed or
not.

Change-Id: Ia66e54e93f607d03053315fdc3b9a0e9bea29b68
Signed-off-by: Todd Poynor <toddpoynor@google.com>
13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Dima Zavin [Mon, 8 Nov 2010 22:53:44 +0000 (14:53 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agomedia: video: tegra: add ref count for remote clock requests
Dima Zavin [Mon, 8 Nov 2010 21:55:34 +0000 (13:55 -0800)]
media: video: tegra: add ref count for remote clock requests

Change-Id: I824f9a27bfefe86211bc71d5f79ea798052b98b7
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoMerge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Dima Zavin [Mon, 8 Nov 2010 07:55:59 +0000 (23:55 -0800)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36

13 years agoARM: tegra: make vcp/bsea/vde clocks be owned by the AVP
Dima Zavin [Mon, 1 Nov 2010 21:29:31 +0000 (14:29 -0700)]
ARM: tegra: make vcp/bsea/vde clocks be owned by the AVP

Change-Id: Ic0c3b1dc5cdccf5220d8c6cc8c7ef7883b28a4d1
Signed-off-by: Dima Zavin <dima@android.com>
13 years agoARM: tegra: add avp platform_device
Dima Zavin [Mon, 1 Nov 2010 21:31:05 +0000 (14:31 -0700)]
ARM: tegra: add avp platform_device

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