Commit graph

303913 commits

Author SHA1 Message Date
Devin Kim
ae71d63d07 msm_fb: Fix display corruption with continuous splash screen feature
During boot up, we observe random lines on screen between the
splash_screen image and the android animation. MDP clocks
were turned off during bootup. Fix this issue by enabling
the clocks when this feature is enabled.

Add check to see that the video mode engine is not busy before
turning off the dsi controller to avoid any underruns.

CRs-Fixed: 399634

Change-Id: I8fdb50fa848362a548b8cdd53ee1817346b57716
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2013-03-04 12:46:18 -08:00
Devin Kim
830a0a0aba switch: fsa8008: do not enable uart console
earjack debugger driver can enable the uart console. so fsa8008 doesn't
need to enable the uart console. It will remove the noise.

Change-Id: I6a3880f40717329034631d4488dd7b376fff8ef6
2013-03-04 12:46:18 -08:00
taeju.park
a74eef8bc8 usb: gadget: Fix g_ether interface link status
A "usb0" interface that has never been connected to a host has an unknown
operstate, and therefore the IFF_RUNNING flag is (incorrectly) asserted
when queried by ifconfig, ifplugd, etc.  This is a result of calling
netif_carrier_off() too early in the probe function; it should be called
after register_netdev().

Similar problems have been fixed in many other drivers, e.g.:

e826eafa6 (bonding: Call netif_carrier_off after register_netdevice)
0d672e9f8 (drivers/net: Call netif_carrier_off at the end of the probe)
6a3c869a6 (cxgb4: fix reported state of interfaces without link)

Fix is to move netif_carrier_off() to the end of the function.

Change-Id: Idf42a032774d652eeb1acb83df9d90789c10e183

Cc: stable@vger.kernel.org
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-04 12:46:17 -08:00
Iliyan Malchev
312e942071 prima: release v3.2.1.3b
git://codeaurora.org/external/wlan/prima.git

2e61bd3 wlan: Release 3.2.1.3b
000442c RX async detect and reloading bug fix
ad02ec2 wlan: Release 3.2.1.3
a91fd8f Invalid WLAN driver reloading fix
a0ccd8a Handle WMM params when concurrent sessions are on the same channel
9f50814 Support for dynamic MC/BC HW filter setting
c9af20f wlan: Release 3.2.1.2
0cba033 prima: Revert log level changes
25d894e prima: p2p_discovery fails when wifi is set to 5GHz in advanced settings.
6e8d09b prima: Fix for driver crash if the nv file is old.
1872ee6 prima: Fix for scanning 5GHz upper band channels.
0cfe5a2 prima: Fix for a double free and recover logic in DXE
1e044e1 prima: Fix lock used while doing any modification on vos packet lists.
88a8d91 prima: Fixed problem of SAP stop beaconing after SSR
d405d83 prima: Enable statically linked driver to support FTM mode
ec808f6 prima: Clean the WDI global variables in shutdown method
ed6c480 prima: Handling De-auth from AP in Roaming State machines
7ca77d0 prima: CSR pre-auth timer is made larger than Lim timer
428bdf2 prima: Fix for memory corrution in TL.
624fd21 prima: Freeing the memory to avoid the memory leak
f7965a0 prima: Deregister with TL and flush all data packets prior to reassoc
56ff1f2 prima: MCC support for different beacon intervals
f3d6bac prima: Fix to avoid sleep in invalid context.
c4620d1 prima: Wlan host driver logging improvements
7b3b4a2 Changes related to BMPS workaround enable/disable dynamically
307e37b prima: Fix for crash in wlan_hdd_cfg80211_connect
18caa01 Revert "prima: Scan optimizations to support concurrency"

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:16 -08:00
Devin Kim
43a79436be mako: add the earjack debugger trigger
Only enable the uart console when detected earjack debugger.
Uart signal interferes audio signal. you might listen to noise via
headset. So this patch fixes this issue.

Change-Id: I9174f0f243043138304aced16b49c70ce317a2de
2013-03-04 12:46:16 -08:00
Naseer Ahmed
ccd2059e3c msm_fb: display: check base layer pipe at irq handler
Change-Id: Ib188d575044f5479672503508042c8c1e9c759c4
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-04 12:46:15 -08:00
Naseer Ahmed
5f2bdb1c5f msm_fb: display: add blt condition check at video/lcdc off
Blt mode may be enabled during system suspend. Need to make
sure blt overlay done  before turn off video/lcdc timig generator.

Change-Id: Iad54ee544499213bb7c9cfe60d00919f819aacb1
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-04 12:46:14 -08:00
Kinjal Bhavsar
70f7421a80 msm: display: Buffer sync point support
Add MSMFB_BUFFER_SYNC ioctl for the communication of
the acquired and released fence fd between kernel and hwc.

Wait for acquired fence before pan display.
Release the previous released fence after pan display

Change-Id: I6534aed574a025d948581e70465f06a86b46c868
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
2013-03-04 12:46:14 -08:00
Naseer Ahmed
bd7a66d33a msm: mdp: Send fake vsync only when enabled from userspace
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-04 12:46:13 -08:00
taeyol.kim
baa8a6c6e0 mako: camera: change i2c clock to 100KHz from 384KHz
fix the issue when changing camera mode between still shot mode and
record mode, preview frames are not come out sometimes.

Change-Id: I0369c72c540713cb8e938e0915ee156b41d898a5
2013-03-04 12:46:13 -08:00
Jeff Boody
f73cd6b4d2 msm: kgsl: remove unnecessary definitions for dup and has_signaled
The dup and has_signaled functions are not called outside kgsl_sync.c

Change-Id: I69d746f4e4acae9b4f5a3a2cac79ac812e5eff5c
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
2013-03-04 12:46:12 -08:00
Jeff Boody
8c2947df3f msm: kgsl: implement sync compare callback
The compare callback is required to test the order that
sync pts will signal. Failing to implement the compare
callback results in kernel panics for some use cases.

Change-Id: Ibea1497c12fd8cc66087ff52d3709a07793f215f
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
2013-03-04 12:46:12 -08:00
insup.choi
9981dd0333 camera: prevent warning in relesing interrupt on ispif
when exiting camera apk, interrupt warning is shown like this
<4>[  271.240836] ------------[ cut here ]------------
<4>[  271.240866] WARNING: at /home/insup.choi/source-ref/apq8064_jb_mako-mr1-check/android/kernel/kernel/irq/manage.c:1219 __free_irq+0x88/0x1a8()
<4>[  271.240866] Trying to free already-free IRQ 199
<4>[  271.240866] Modules linked in:
<4>[  271.240897] [<c00143a0>] (unwind_backtrace+0x0/0x11c) from [<c006f818>] (warn_slowpath_common+0x4c/0x64)
<4>[  271.240927] [<c006f818>] (warn_slowpath_common+0x4c/0x64) from [<c006f8b0>] (warn_slowpath_fmt+0x2c/0x3c)
<4>[  271.240927] [<c006f8b0>] (warn_slowpath_fmt+0x2c/0x3c) from [<c00c01d0>] (__free_irq+0x88/0x1a8)
<4>[  271.240958] [<c00c01d0>] (__free_irq+0x88/0x1a8) from [<c00c03d4>] (free_irq+0xe4/0x134)
<4>[  271.240958] [<c00c03d4>] (free_irq+0xe4/0x134) from [<c045ca48>] (msm_ispif_subdev_ioctl+0x51c/0x5e4)
<4>[  271.240988] [<c045ca48>] (msm_ispif_subdev_ioctl+0x51c/0x5e4) from [<c044e8c8>] (msm_mctl_cmd+0x9ec/0xb74)
<4>[  271.240988] [<c044e8c8>] (msm_mctl_cmd+0x9ec/0xb74) from [<c0455c4c>](msm_ioctl_config+0x6a4/0x774)
<4>[  271.241019] [<c0455c4c>] (msm_ioctl_config+0x6a4/0x774) from [<c0131588>] (do_vfs_ioctl+0x4d8/0x54c)
<4>[  271.241019] [<c0131588>] (do_vfs_ioctl+0x4d8/0x54c) from [<c0131630>](sys_ioctl+0x34/0x54)
<4>[  271.241049] [<c0131630>] (sys_ioctl+0x34/0x54) from [<c000dec0>] (ret_fast_syscall+0x0/0x30)
<4>[  271.241049] ---[ end trace a229d1aac3cbf7ea ]---
this patch is for fixing this problem.

Change-Id: Ia48b9e2825a9d95deb4eecdac8903eafcb6ad7ae
2013-03-04 12:46:11 -08:00
Kinjal Bhavsar
f3ee34125e mako: enable SW_SYNC
Signed-off-by: Kinjal Bhavsar <kbhavsar@codeaurora.org>
2013-03-04 12:46:10 -08:00
insup.choi
7e8f2a8e84 msm: camera: actuator: update driver
dw9714 is installed in imx111.
this patch make actuator(dw9714) working more sophisticated.

Change-Id: Ie35743b7d8bec04348ad3c65571b899966b300f3
2013-03-04 12:46:10 -08:00
Iliyan Malchev
5aca60b2c6 prima: revert scan optimizations to support concurrency
git://codeaurora.org/external/wlan/prima.git

commit 1a5942e30953311dce805e6b3b473bf1baea2c2d
Author: Jeff Johnson <jjohnson@codeaurora.org>
Date:   Wed Sep 19 08:54:34 2012 -0700

    prima: Scan optimizations to support concurrency

    New Features:
    1. Sessionize SME scan cache
    2. Separate beacon & porbe rsp entry for PE scan cache
    3. Enable scan break down logic in SME for multi-session

    Fixes:
    The change fixes issue with host initiated scans interferring with WFD
    connection and causing jitter in the video stream on the WFD
    connection.  This partially addresses b/7138968.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:09 -08:00
Jeff Johnson
3ccfbcf697 prima: Release 3.2.1.1
The following changes were merged in this release:

-- Scan optimizations to support concurrency:

   New Features:
   1. Sessionize SME scan cache
   2. Separate beacon & porbe rsp entry for PE scan cache
   3. Enable scan break down logic in SME for multi-session

   Fixes:
   The change fixes issue with host initiated scans interferring with WFD
   connection and causing jitter in the video stream on the WFD
   connection

-- IMPS mode, TX COMP interrupt flooding fix:

   To stop TX COMP interrupt with IMPS mode, RIVA shuld power down. But
   whatever reason, if RIVA could not power down, TX COMP INT could not
   be cleared and infinite INT may happen

-- Fix for issue RIVA does not seem to be getting into BMPS mode:

   The reason riva does not enter in to power save is because after the
   connection to the AP (Configured 40Mhz channel in 2.4Ghz) the driver
   sends the invalid cb mode in the finish scan request to the Riva if we
   are in scan window. The issue does not show up if we are not in scan
   window.

   The reason driver sends the invalid cb mode is because after receiving
   the join beacon the variable psessionEntry->htSecondaryChannelOffset
   in the function limCheckAndAnnounceJoinSuccess is over writing with
   the AP secondary offset.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:08 -08:00
Naseer Ahmed
53e65eac9e msm_fb: Clear real pipe attributes in the pipe free
Clear original pipe attributes in the pipe free call.

Change-Id: I776869e7997e5b70e4c2b102e1a394034247bbcd
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-04 12:46:08 -08:00
Jongrak Kwon
a5a9c40226 msm: dsi: use timeout for dma transfer
Use wait_for_completion_timeout instead of wait_for_completion
not to stuck in the kernel even when the DMA fails.

Change-Id: I29702c3c62f78399c173d660bbbc17a07ed27468
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:07 -08:00
Jongrak Kwon
73161d35e7 Revert "[ARM] msm: fix mipi_dsi_off"
Preserve original dsi-off sequence to remove DMA failure.  Previously the power
off sequence was modified to resolve display turn on/off issue, but the changes
were not necessary in current kernel and just caused side effects which
resulted in fb_blank being stuck due to occasional DMA failures.

This reverts commit e1a9b1bda7691e4f62728d09e1993eb9ae9db8d6.

Change-Id: Ia0a60cfdf697675d34066852f106d9e37578073d
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:07 -08:00
Jongrak Kwon
7060213779 Revert "[ARM] msm: fix mdp_off"
Preserve original mdp off sequence to remove DMA failure.  Previously the power
off sequence was modified to resolve display turn on / off issue, but the
changes is not necessary in current kernel and just causes side effects
resulting in fb_blank being stuck due to occasional DMA failures.

This reverts commit 0b3bc7e958f98432538a8537739fbaa560761434.

Change-Id: Ia82fb79b56b57f6696c55d9b079eeadebe8c40bf
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:06 -08:00
kibum.lee
0139570c10 power: battery: disable USBIN_OV_IRQ USBIN_UV_IRQ irq
Change-Id: I0c44b76056f7a778cfc4f8b651a72d2796bd4d42
2013-03-04 12:46:05 -08:00
Ajay Dudani
cdd1bf28a1 thermal: tsens8960: Fix delay in the ISR
There are more sensors on APQ8064 and MSM8930 whose status registers are to be
read and checked against enabled sensors if thresholds interrupts are crossed.
This causes delay in processing the ISR before it is returned causing other
timer events to be delayed.

Fix this by performing the status register reads for the sensors in a separate
workqueue.

CRs-Fixed: 390508
Change-Id: I7b254d0d73dfefb667e7bf9484ae704fe4ff38a8
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:05 -08:00
Jeff Boody
134e4898ee defconfig: mako: Enable sync
Used by the Android sync pt framework.

Change-Id: Ia41c735e643614beb0abd3868e4aa5cb3d5c3d8f
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
2013-03-04 12:46:04 -08:00
Jeff Boody
855ae3da46 msm: kgsl: Add support for Android's sync point framework
The Android sync point framework will replace the synchronization
previously implemented by genlock. This change implements the KGSL
component of the sync point framework by creating a fence that is
automatically signaled by KGSL when it's timestamp expires. The
fence FD is returned to the user driver so that another process
can wait for the sync point.

Change-Id: Ifee38dfde00e551f3524f7a37833938dcdb64905
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
2013-03-04 12:46:04 -08:00
Devin Kim
609c094fea switch: fsa8008: enable the debug message
monitoring the status of earjack for b/7169919

Change-Id: I1875ad7f1feffc853f3183f3bf6c53c41282414e
2013-03-04 12:46:03 -08:00
Devin Kim
c999f9a5c6 mako: vibrator: adjust vibrator amp
You can set the value of amp from 0 to 100.
If you want to vibrate inversely, you can set from 0 to -100.

Change-Id: Icdb392d1601aa61f41a9f22e3c070a86723bacfd
2013-03-04 12:46:02 -08:00
Devin Kim
bce4b3340b android_vibrator: set maximum value of amp to 100 from 127
Change-Id: I9ab61f7fe26fd2b01a510d9008bc33d88f2406f3
2013-03-04 12:46:02 -08:00
Devin Kim
ace7135a0e vibrator: tspdrv: clean up codes
Change-Id: I85ecec9fb01e21ea0cdf3fda1c43851c26c7f552
2013-03-04 12:46:01 -08:00
Devin Kim
85c85ee651 netlink: fix possible spoofing from non-root processes
Non-root user-space processes can send Netlink messages to other
processes that are well-known for being subscribed to Netlink
asynchronous notifications. This allows ilegitimate non-root
process to send forged messages to Netlink subscribers.

The userspace process usually verifies the legitimate origin in
two ways:

a) Socket credentials. If UID != 0, then the message comes from
   some ilegitimate process and the message needs to be dropped.

b) Netlink portID. In general, portID == 0 means that the origin
   of the messages comes from the kernel. Thus, discarding any
   message not coming from the kernel.

However, ctnetlink sets the portID in event messages that has
been triggered by some user-space process, eg. conntrack utility.
So other processes subscribed to ctnetlink events, eg. conntrackd,
know that the event was triggered by some user-space action.

Neither of the two ways to discard ilegitimate messages coming
from non-root processes can help for ctnetlink.

This patch adds capability validation in case that dst_pid is set
in netlink_sendmsg(). This approach is aggressive since existing
applications using any Netlink bus to deliver messages between
two user-space processes will break. Note that the exception is
NETLINK_USERSOCK, since it is reserved for netlink-to-netlink
userspace communication.

Still, if anyone wants that his Netlink bus allows netlink-to-netlink
userspace, then they can set NL_NONROOT_SEND. However, by default,
I don't think it makes sense to allow to use NETLINK_ROUTE to
communicate two processes that are sending no matter what information
that is not related to link/neighbouring/routing. They should be using
NETLINK_USERSOCK instead for that.

Change-Id: Ib1c38cb798391b51dedddf62a862346d36119ec7
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-04 12:46:01 -08:00
Devin Kim
204ebe9035 af_netlink: force credentials passing [CVE-2012-3520]
Pablo Neira Ayuso discovered that avahi and
potentially NetworkManager accept spoofed Netlink messages because of a
kernel bug.  The kernel passes all-zero SCM_CREDENTIALS ancillary data
to the receiver if the sender did not provide such data, instead of not
including any such data at all or including the correct data from the
peer (as it is the case with AF_UNIX).

This bug was introduced in commit 16e5726269
(af_unix: dont send SCM_CREDENTIALS by default)

This patch forces passing credentials for netlink, as
before the regression.

Another fix would be to not add SCM_CREDENTIALS in
netlink messages if not provided by the sender, but it
might break some programs.

With help from Florian Weimer & Petr Matousek

This issue is designated as CVE-2012-3520

Change-Id: Id4f36301d407ef5c8218c5ef9f66d299766cdf57
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Petr Matousek <pmatouse@redhat.com>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-04 12:46:00 -08:00
Devin Kim
f80be7d12e backlight: lm3530: decrease a little more backlight level
decrease backlight level to 70 nit at the charging mode

Change-Id: I3ad14dbcfc5daf5090219da21c3f348fdb97ff77
2013-03-04 12:45:59 -08:00
kyungtae.oh
5a934bae83 power: cleanup the messages of wireless charger
Change-Id: Ie86b46cb9f30fd2e795a144123eec0282ac6e664
2013-03-04 12:45:59 -08:00
Jaeseong GIM
2e6a5b0c5f msm: ssr: remove msleep in the panic handler
msleep in the panic handler causes another panic.

bad: scheduling from the idle thread!
[<c00144ac>] (unwind_backtrace+0x0/0x11c)
[<c00a4a08>] (dequeue_task_idle+0x18/0x28)
[<c009f864>] (dequeue_task+0xb0/0xc0)
[<c08294d4>] (__schedule+0xfc/0x6d4)
[<c0828294>] (schedule_timeout+0x2fc/0x358)
[<c0085804>] (msleep+0x14/0x20)
[<c0057368>] (ssr_panic_handler+0x24/0x44)
[<c082cf90>] (notifier_call_chain+0x38/0x68)
[<c082cff4>] (__atomic_notifier_call_chain+0x34/0x44)
[<c082d018>] (atomic_notifier_call_chain+0x14/0x18)
[<c081e814>] (panic+0xb0/0x1d8)
[<c0011bb4>] (die+0x1d0/0x218)
[<c081e498>] (__do_kernel_fault.part.8+0x54/0x74)
[<c082ce5c>] (do_page_fault+0x39c/0x3c0)
[<c0008524>] (do_PrefetchAbort+0x34/0x98)

this panic loop is not terminated until watchdog timer expiration.
msleep is replaced by mdelay. it should be checked if this 3 seconds
delay is reqired or not.
2013-03-04 12:45:58 -08:00
Jaeseong GIM
e03f21b7d8 msm: debug: disable JTAG debugging and tracing across power collapse
CONFIG_MSM_JTAG causes data abort in some case. for JTAG debugging
and tracing across power collapse, disable this feature.

Change-Id: I1c71dc45763a39e1dd61889ed119e8de402a7ae2
2013-03-04 12:45:58 -08:00
Jaeseong GIM
770eab19d5 msm: rtb: change msm_rtb default filter
msm_rtb default filter is changed to (1 << LOGK_READL | 1 << LOGK_WRITEL)
for storing register read/write access to rtb log.

Change-Id: Ib7c31fa298cb24c101756cfa6abf867216a3d92b
2013-03-04 12:45:57 -08:00
Devin Kim
2ca52bc100 mako: remove the pop noise on inserting earjack
Console message causes pop noise on inserting earjack. So remove it
to fix it.

Change-Id: Ibff50a189832da4dda2c6eb7f9e3697e5cbb6c42
2013-03-04 12:45:56 -08:00
Devin Kim
3880882ecf android_vibrator: improve the vibration response.
Vibration on should be always set. So even if there is pending workqueue,
it should be run. And using mutex is minimu for quick response.

Change-Id: I859fde428d2a0e8619e3f5a140bb5a33a0b05041
2013-03-04 12:45:56 -08:00
Devin Kim
5602d6dbc8 mako: vibrator: fix unbalanced calling of regulator
Vibrator uses hrtimer and workqueue concurrently for vibrator on/off.  It
sometimes causes the unbalanced calling of regulator. So use mutex to avoid the
unbalanced calling.

Change-Id: I937c331703c0db028abe88967c8256cd56d6f5a5
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:55 -08:00
Devin Kim
cfbee2951f mako: vibrator: add XO clock control for vibrator
Change-Id: I0c40c22bb160a4d0c818778471f33f99352129e2
2013-03-04 12:45:55 -08:00
Devin Kim
dd37438961 mako: vibrator: warmup delay for vibration sensitivity
Mako vibration needs warmup delay to start vibration.

Change-Id: I99b27d3b8d1803ae896a9602a5f53928c0097d4c
2013-03-04 12:45:54 -08:00
Devin Kim
be65d0bafa android_vibrator: warmup delay for vibration sensitivity
add warmup delay before vibrator off

Change-Id: Ie6dd325cc6c6b0f6d4501414442472cd40beb4df
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:54 -08:00
Devin Kim
cb9874a2ba android_vibrator: improve the vibrator-off sequence
Clean up code and improve the vibrator-off sequence

Change-Id: Id04ea0735d1817db5ec05b8cfbc9216247758892
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:53 -08:00
Ajay Dudani
4db21fea50 bluetooth: Send hardware event to userspace stack on controller reset
Bluetooth stack expects hardware error event when controller
goes in bad state. Send hardware error to the stack when BT
controller resets.

Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
2013-03-04 12:45:52 -08:00
Devin Kim
6fab76db75 power: charger: fix for incorrect detection of TA as USB
Change-Id: I81914440b8035e3f376bf75056140197a822d62f
2013-03-04 12:45:52 -08:00
choongryeol.lee
23580403bd Revert "mako: backlight: sync backlight on/off with lcd on/off"
This reverts commit af3f22de5dd769b555c018c12be837450cd59dd6.

Due to the order of backlight and lcd on/off will be guaranteed by
PowerManagerService, this patch is reverted.

Change-Id: I2e54dc14d338b5bfa1aca1bddcc37b46928a94e8
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	drivers/video/msm/msm_fb.c
2013-03-04 12:45:51 -08:00
Devin Kim
96b8c4b666 mako: EHCI: HSIC: Pass interrupt threshold value as platform data
EHCI: HSIC: Pass interrupt threshold value as platform data

Interrupt threshold value is the maximum rate at which HSIC
controller will issue interrupts to processor. Increasing
this value results in fewer interrupts which may save power
as processor has to handle fewer interrupts. Side effect of
increasing this value is higher data latency. For fusion3,
set the ITC(interrupt threshold control) to 5 and default
for other targets. Also, allow ehci stack to set ITC value
per controller basis.

CRs-Fixed: 374661
Change-Id: Ic8ad0d69f9f2b6d1a79dc5b654b5ce187dbf6a07
2013-03-04 12:45:51 -08:00
Ajay Dudani
e8cbb4da04 EHCI: HSIC: Pass interrupt threshold value as platform data
Interrupt threshold value is the maximum rate at which HSIC
controller will issue interrupts to processor. Increasing
this value results in fewer interrupts which may save power
as processor has to handle fewer interrupts. Side effect of
increasing this value is higher data latency. For fusion3,
set the ITC(interrupt threshold control) to 5 and default
for other targets. Also, allow ehci stack to set ITC value
per controller basis.

CRs-Fixed: 374661
Change-Id: I0e6bc210679ef211c2850ffbe1dfc80da2f65bf0
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
2013-03-04 12:45:50 -08:00
Iliyan Malchev
77af5d3270 msm_fsb: handle pipe-allocation errors
In mdp4_overlay_writeback_on, return -EIO is pipe allocation fails.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:49 -08:00
Ajay Dudani
475ec34506 msm_fb: Add option to enable/disable mixer commit
Adds support to enable or disable mixer commit during pipe staging operations.
Depending on the current activity, this selection can be made.

Change-Id: Ia2f5dbab58f73ef4de90abf7f278332d8d73df46
Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:49 -08:00