camera: Increase buffer size to accomodate zoom ratio array.

Need these to pass the zoom ratio array to the user space.

Change-Id: I75e562aee9a035c3985cea14d5c1c3c1f7d6f955
Signed-off-by: Abhiruchi Birajdar <abiraj@codeaurora.org>
msm: video: setup DTV overlay polarity for low resolutions.

clk_set_rate has to be called before clk_enable.
H-Sync and V-Sync polarity are active low for low resolutions.
Add mdp_tv_clk for HDMI drivers that need this clock (8x60).

Change-Id: If76300ac4d0b6c8a66492f8e0f77b61e133ef709
Signed-off-by: Urs Muff <umuff@codeaurora.org>
misc: tsif: Make tsif_clk optional

Some platforms don't have tsif_clk, so make it optional.

Change-Id: Idcce6f0cfe4c89b654f96b4fe3e67ad4c015fe52
Signed-off-by: Lena Salman <esalman@codeaurora.org>
misc: tsif: Minor debug related changes

Various minor debug relates changes.

Change-Id: I8227f930ac9de50d506137893a6c272d879dcaec
Signed-off-by: Lena Salman <esalman@codeaurora.org>
msm_fb: display: enable irq before kick off histogram

enable the irq before kick off the histgram process and disable it
once histogram is done. when overlay is used on lcdc mode it is
disabling irq after overlay is done so we are missing histogram
interrupt handling.

Change-Id: I111394c705a43e4cc5e4861f02667a5491ae69fe
Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org>
proc: pagemap: Hold mmap_sem during page walk

In initial design, walk_page_range() was designed just for walking page
table and it didn't require mmap_sem.  Now, find_vma() etc..  are used
in walk_page_range() and we need mmap_sem around it.

This patch adds mmap_sem around walk_page_range().

Because /proc/<pid>/pagemap's callback routine use put_user(), we have
to get rid of it to do sane fix.

Changelog: 2010/Apr/2
 - fixed start_vaddr and end overflow
Changelog: 2010/Apr/1
 - fixed start_vaddr calculation
 - removed unnecessary cast.
 - removed unnecessary change in smaps.
 - use GFP_TEMPORARY instead of GFP_KERNEL

Change-Id: I87906ac3e841954501748b574cd595a499e77949
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Brian Swetland <swetland@google.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: San Mehat <san@google.com>
[ Fixed kmalloc failure return code as per Matt ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
net: wireless: bcm4329: Improve BT-coex during DHCP session

Change-Id: I55bcc21587b2cae70f9a7b2cc7c54b28a3adf47e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
net: wireless: bcm4329: Fix AP interface processing and removal

Change-Id: Ie66ed492fdfdb3c4b482658e9600213ed66967b0
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
[ARM] msm7k: hw3d: add more security checks

-- check the VMA size against the GPU-memory-region size
-- in mmap(), clear EBI and SMI memory regions before handing them to the user;
this prevents a malicious client from stealing the previous clients data by
doing a forced revoke and mmapping the GPU memory.

Change-Id: Ie07198f13a205acaebfe13fcbd60681a00b127de
Signed-off-by: Iliyan Malchev <malchev@google.com>
[lbassel@codeaurora.org: fix minor merge conflicts]
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
net: wireless: bcm4329: Fix dhd_os_wd_timer if bus is down

Change-Id: I78b274753bea0e1977658885d9836fc2998f44e3
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
Staging: android: binder: Create dedicated workqueue for binder deferred work

Some drivers flush the global workqueue when closed. This would deadlock if
the last reference to the file was released from the binder.

Change-Id: I02b57164d37cfa6471c5080b039918c5c7dcece3
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
lowmemorykiller: Don't try to kill the same pid over and over

  Under certain circumstances, a process can take awhile to
handle a sig-kill (especially if it's in a scheduler group with
a very low share ratio). When this occurs, lowmemkiller returns
to vmscan indicating the process memory has been freed - even
though the process is still waiting to die. Since the memory
hasn't actually freed, lowmemkiller is called again shortly after,
and picks the same process to die; regardless of the fact that
it has already been 'scheduled' to die and the memory has already
been reported to vmscan as having been freed.

  Solution is to check fatal_signal_pending() on the selected
task, and if it's already pending destruction return; indicating
to vmscan that no resources were freed on this pass.

Change-Id: I15a01ff0fbfa9d0274f682e06a415e98289bf9a9
Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
net: wireless: bcm4329: Add FW crash trap debug

Change-Id: Ic04b5e40b63f706113ebc5159ab2cc5fb529e01c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
[ARM] defconfig: mahimahi: Switch from CBQ -> HTB

Change-Id: I9dec4ba5ede9afbcf8f03652b10d7a603fa0c485
Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
USB: android gadget: mass storage: Fix format issue for Vista Host

As part of formating the mass storage device, Host sends the INQUIRY
scsi command. As per the standard, the command length for this
command should be 6 bytes, whereas the Vista host sends 12 bytes.

When the command length of the command is not equal to the standard
length, the device sends a phase error as part of the status phase.
When the host receives a phase error, it re-enumerates, hence the
error.

If the command is INQUIRY, and the command length is 12 bytes,
treating this as a good command and not sending the phase error
to the host fixes this issue.

Change-Id: I92097647f94fe5651bd97a0b8d764376e910d2bf
Signed-off-by: Velempati Chiranjeevi <c_cvelem@qualcomm.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
[lbassel@codeaurora.org: fix minor merge conflicts]
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
[ARM] msm: switch to the Hierarchical Token Buckets (HTB) packet scheduling algorithm.

Change-Id: I9c63507c18e71935c5bc5783f55779bf47cfd6e8
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
net: wireless: bcm4329: Add "getpower" support

Change-Id: Iec948bf31fe1b3bd4f99bec238f6eb1267520084
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
Allow CONFIG_STACKTRACE to be enabled by itself.

This allows us to get a kernel stacktrace for a thread though /proc.
Also enable it by default.

Change-Id: I2b28a41949f3c57aa06dce5e0a9111022646d91a
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>