Commit graph

304600 commits

Author SHA1 Message Date
Naseer Ahmed
3cee1c824a msm_fb: display: add per stage alpha drop detection
Currently, alpha drop detection is done per frame which
means multiple blending stages share same alpha drop status
which does not reflect the alpha effect truly on each blending
stage. This patch enforces that the alpha drop detection
is done per blending stage so that alpha effect is applied
properly at each blending stage.

Change-Id: I2f456623c696192cf3388a635584a4a49d4720a0
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-07 15:21:39 -08:00
Naseer Ahmed
220607f0d6 msm_fb: display: remove background invert alpha option for alpha drop pipe
When the blended background pipe has dropped alpha and it is going to
be blended with foreground pipe on the next stage,
MDP4_BLEND_BG_ALPHA_FG_CONST is taken. Foreground alpha constant is
0xFF, so we need to use this alpha value to show background, instead
of its inverted value.

Change-Id: I9412141b28a46ed3b58079a56969e79dea4ed57c
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-07 15:21:35 -08:00
Naseer Ahmed
c96cee414e msm_fb: display: Consolidate commit ioctls
Overlay commit and display commit were two separate
ioctls doing similar things. This change consolidates
the two into one display commit ioctl. With this, we
can use the RGB0 pipe with an IOMMU framebuffer.

Change-Id: I2b51e16a6678e6cec1bd3e56a00a476addb1296f
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-07 15:21:33 -08:00
Naseer Ahmed
f65d4ebb64 msm_fb: display: do not use ION_IOMMU_UNMAP_DELAYED
Since iommu buffers will be unmapped after two newer commits
had passed, there is no need to request iommu driver to further
delay unmapping an iommu buffer.

Change-Id: I8cf8d406cf509908035d12c9a04f0add12f3c7c7
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-07 15:21:33 -08:00
Naseer Ahmed
3b9db53973 msm_fb: display: add fput_light to frame buffer
Frame buffer's (fb0) ref_count's need to be balanced. overlay_play()
increases fb0's ref_count (fget_light). This patch will decrease fb0's
ref_count by calling fput_light after commit.

Change-Id: I352da1fce99b344c059f615a6fe88cc6e7387d89
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-07 15:21:32 -08:00
Ashay Jaiswal
960b0c273a diag: Add support for QSC restart
Add cleanup of SMUX port once disconnect event is
received by diagfwd driver.

CRs-Fixed: 376401
Change-Id: I5ef07c8ccbfcc4ad6c5e41b3d985bdea434ab9ce
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>

Conflicts:

	drivers/char/diag/diagchar.h

Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:32 -08:00
Shalabh Jain
e29443aadc diag: Add missing "get log mask" command
DIAG service responds to "get log mask" command sent by tools.
This was typically responded to by modem. On modem less devices,
this command still needs response. Adding support on Linux processor
for this command.

CRs-Fixed: 388740
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>

Change-Id: I4516acd1196a1459a56175df19a3bca19389cc83
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:31 -08:00
Shalabh Jain
c8c02efa88 adiag: Add new entry in message mask table
DIAG driver maintains a table of F3 masks. This table
has to be in sync with modem mask information. Modem
updates are not synchronized with Linux code updates.
Hence, sometimes modem and Linux go out of sync. This
results in missing F3 messages.

Adding this entry will resolve the dependency of manual
syncing and will make mask updates dynamic.

Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>

Change-Id: I37f163aa1560048249da8aa66842a3852bb81ddd
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:31 -08:00
Devin Kim
014c77fcd6 msm: display: check get_unused_fd_flags return val
Not checking the error code, which might be negative, will cause us to wrongly
reference fdt[fd] by using the error code, causing kernel panic in fd_install.

Change-Id: I1f8e68e74bdbdd5b81bc3450f7d93b5cd96c9439
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-07 15:21:30 -08:00
Ken Zhang
4a0aea3355 msm: display: Increase timeout value for fence waiting
In some benchmark use case, graphic engine is extremely
busy, need increase the fence waiting timeout value.

Change-Id: I3c483f98fa86030b283edd8a79e7b70fa1c06335
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-07 15:21:30 -08:00
Naseer Ahmed
cd83ee23ff msm_fb: display: Enable scaling bit while setting x-flip bit
To enable left-right flip x-scaling bit should be set for
MDP 4.2 and above versions. This fixes the issue when RGB layer
pipes are not properly rotated.

Change-Id: I0afae4aecde39ce3ac4dcbefc0bda93510e7d18a
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-07 15:21:29 -08:00
Santosh Mardi
0facfd9f66 ASoC: msm: Enhance multi channel pcm driver to support SYNC and ASYNC
Enhance the multi channel pcm platform driver to support SYNC and
ASYNC mode

Change-Id: Ieca18864ce68055f7806be487b487d305bee2af8
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2013-03-07 15:21:29 -08:00
Ajit Khare
9ebff212cd ASoc: msm: Add amr-wb/wb+ tunnel playback support
Update compress audio platform driver
to support amr-wb/wb+ tunnel mode playback.

Change-Id: I98d087db490441c57c8e2d4fe03a7e91b28e67fc
Signed-off-by: Ajit Khare <ajitk@codeaurora.org>
2013-03-07 15:21:29 -08:00
Phani Kumar Uppalapati
3fb13a4e2c ASoC: msm8974: fall back to have AFE port started at prepare
After upgrading to kernel 3.4, there is 5 second delay
at the closing of PCM playback. The delay is due to missing
EOS from QDSP6 audio session manager causing pcm close function
of PCM platform driver to wait for 5 seconds. The root cause
for missing EOS is that ALSA dynmic PCM shutdown sequence has
changed. Now, trigger stop is called on the back-end DAI-LINK.
Furthermore, back-end trigger stop is called before front-end
trigger stop. Since sink stops rendering data, data at source
will never get consumed. EOS event will not arrive. As trigger
operation has to be atomic, it is very difficult to guarantee
sequence on shutting down various modules in QDSP6. The decision
is to abandon starting and stopping QDSP6 AFE port in trigger
function. This decision is considered acceptable as playback
and capture over SLIMBUS is no longer subject to strict sequence
which Q6 AFE port must be started after CODEC configuration.

Change-Id: Ief351168b08d5cca0a76405834cf3d6aa14a3941
Signed-off-by: Phani Kumar Uppalapati <phanik@codeaurora.org>
2013-03-07 15:21:28 -08:00
Krishnankutty Kolathappilly
671c670fb7 ASoC: msm: implement drain command in compress platform driver
Currently, at the end of compress audio playback, session is
terminated without ensuring compressed audio stream is completely
rendered. Use ioctl drain to drain out all the data before EOS is
signalled and session is closed. This is to make sure all the
data is played out by DSP.

CRs-Fixed: 390897
Change-Id: I3e39b210a8924180de9eb4453c6f6f6435ded0ee
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
2013-03-07 15:21:28 -08:00
Subhash Chandra Bose Naripeddy
e5096b309f ASoC: msm: Add 8-channel L-PCM TX support
There is use case that the HDMI input goes through MI2S TX
interface to ADSP. Add 8-channel L-PCM TX support for this
use case.

Change-Id: Iaf10ec357a25fe4cf80e36a2ceba3d113e9b0416
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
2013-03-07 15:21:27 -08:00
Sudhir Sharma
8939f38015 Revert "Revert "Bluetooth: Disable BlueZ driver/stack""
This reverts commit 4d593053f182a2d5ec2dbd2582955e0911cd29e2.

Change-Id: I3a5558c74e996e2738f370ab29945f8189cad28a
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:27 -08:00
Sagar Gore
fdc11de84d msm: camera:: Concurrent camera stability stop issue fix
Signed-off-By: Sagar Gore <csgore@codeaurora.org>
(cherry picked from commit 45b72f251027d980b4cd0f7521f51374c1aa249e)

Change-Id: I9c91a95758e79c06b529a4976585e9a0e0c1fb1a
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:27 -08:00
Sagar Gore
8571f8fe34 msm: camera: Fix for Concurrent camera bus overflow
Signed-off-By: Sagar Gore <csgore@codeaurora.org>
(cherry picked from commit 5af68060348859ca8b40b90d930b6d323356f06d)

Change-Id: I2484e6a366080e8d1134abb8682ee3acd0aa12cb
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:26 -08:00
Azam Sadiq Pasha Kapatrala Syed
f4146eb358 msm: camera: Dynamically register domain and attach to device.
Starting with B family chips, the IOMMU client is responsible
for registering a domain (page table) and attaching it with
the corresponding device context when required.

Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>

Conflicts:

	include/media/videobuf2-msm-mem.h

Change-Id: I2105f3cdd94a5e42c09a46e32ed615a35615485d
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:26 -08:00
Azam Sadiq Pasha Kapatrala Syed
65dd30a2e8 Camera Bring-up MR1.
Change-Id: I25be173c875491bd8f409fe50a958d96de0efe1a
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:25 -08:00
Sudhir Sharma
bea6dbbe98 Revert "Camera Bring-up MR1."
This reverts commit 5cf67b1a1f82e20e9659a4a120c67abe4f918893.

Change-Id: If4e182553f46918e5b7a84e9f915039a52541ebb
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:25 -08:00
Sudhir Sharma
5861b2e9b8 Revert "msm: camera: Dynamically register domain and attach to device."
This reverts commit c6918059882f4808a95add25bf33925a86a43fef.

Change-Id: I0989d176e87b6464176d4e26e0c63e456451de51
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:24 -08:00
Sudhir Sharma
aa47e76b5e Revert "msm: camera: Fix for Concurrent camera bus overflow"
This reverts commit beb8bc8b8e46f9321e36e12f3792ce5a85350da0.

Change-Id: I655e7ca514b36f23bda4a03c2b53693d9f568101
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:24 -08:00
Sudhir Sharma
06363cbe7b Revert "msm: camera:: Concurrent camera stability stop issue fix"
This reverts commit be733bbd3ad828f76b3146fe476005c846e71126.

Change-Id: Ie993cab8199e47eb0e461cde4516eab31807632a
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:23 -08:00
Bhakthavatsala Raghavendra
9b78ed6db1 Revert "Bluetooth: Disable BlueZ driver/stack"
This reverts commit 181fc587a179363624b9a3b47bcd0c04c05a8553

Reverting as Bluez stack need to be supported

Change-Id: I057586ea30381cf9ef0fa0bdcb26f9fc734b1423
2013-03-07 15:21:23 -08:00
Sagar Gore
5d09a1cada msm: camera:: Concurrent camera stability stop issue fix
Change-Id: I75606ca0ad3f1cfd1c4d56c7feb6f8b5e1fb39a7
Signed-off-By: Sagar Gore <csgore@codeaurora.org>
(cherry picked from commit 45b72f251027d980b4cd0f7521f51374c1aa249e)
2013-03-07 15:21:23 -08:00
Sagar Gore
b5ea098d50 msm: camera: Fix for Concurrent camera bus overflow
Change-Id: I78ebd490f3b74eef63278d48b48602993bfb6ae1
Signed-off-By: Sagar Gore <csgore@codeaurora.org>
(cherry picked from commit 5af68060348859ca8b40b90d930b6d323356f06d)
2013-03-07 15:21:22 -08:00
Matt Wagantall
d42d5cc612 msm: acpuclock-krait: Disable secondary clock source gating during switches
To workaround a Krait errata on 8064, disable secondary clock source
gating during the MUX switch. This errata was already worked around
in msm-krait-l2-accessors.c in a different way, but that will soon
be removed in favor of this and some power-collapse changes.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>

Change-Id: Iffe42ee7216c9b9c4a4e68ddfe80fbc03b0413b0
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:22 -08:00
Patrick Daly
c57174ee8f msm: acpuclock: Add PVS data for 8960ab
Add data for all seven PVS bins.

Change-Id: Iadb010dd4ce83400eeb540318f6f9e7f166f0f47
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2013-03-07 15:21:21 -08:00
Patrick Daly
eb55aa3da8 msm: acpuclock-8064: Add support for multiple speed and PVS bins.
Add support for 1.7 GHz and 2.0 GHz parts and their corresponding
L2 and memory bandwidth votes.

Support selecting different PVS tables based upon EFUSE speed bin
across all krait targets.

Signed-off-by: Patrick Daly <pdaly@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/acpuclock-8064.c

Change-Id: I560371c3c5476f72444a8f2a88b9c441f3451ae1
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:21 -08:00
Matt Wagantall
b2889476eb msm: acpuclock-krait: Keep the secondary MUX input fixed
With use of the QSB clock source recently eliminated, only one
input of the secondary clock MUX is used on any target. Since
there is overhead involved reprogramming this MUX when changing
the CPU and L2 frequencies, change the code to just program the
MUX at boot.  Most noticeably, this removes a 1us delay from
every CPU and L2 frequency switch.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/acpuclock-8064.c

Change-Id: I404913cec05f8893e08bf3f8d0c0f691c8d0f7d9
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:20 -08:00
Matt Wagantall
a47c251927 msm: acpuclock-8974: Increase max CPU and L2 frequencies to 1.5GHz
Devices appear stable at these increased rates, even on early
hardware. Raise the frequency limit from 1.0GHz to 1.5GHz.

Change-Id: Ic0b5e8193a94d39c53721350b966656d5f734e33
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2013-03-07 15:21:20 -08:00
Stephen Boyd
e5a6bf23c0 msm: acpuclock-8960: Port AVS hooks to acpuclock-8960
When AVS support is available, it must be disabled during any
CPU frequency or CPU voltage changes. Add the hooks to do this.
Since AVS isn't supported on all variants of Krait that
acpuclock-krait supports, have a flag indicating if AVS is
enabled and only configure AVS if the tables support an AVS
setting.

Change-Id: Ide542596b51af18dece4c062b38173ce6e1bc2a0
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-03-07 15:21:19 -08:00
Matt Wagantall
bef7e9773a msm: acpuclock-krait: Fix PTE efuse address for acpuclock-8974
Correct the efuse address base and offset for 8974. Since the offset
is now different on 8974 than on other Krait-based targets, it's no
longer possible to hard-code it in acpuclock-krait.c. Instead, move
it into the QFPROM address passed from SoC specific files.

Since the PTE EFUSE is not yet used on 8974 to select different
frequency/voltage tables, this change should have no current
functional effect.

Change-Id: I26de7c9ce84e2873b883123f9fe420b3cb14e364
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2013-03-07 15:21:19 -08:00
Patrick Daly
5e45426f3d msm: acpuclock-8960ab: Set power collapse rate
This line was somehow left out when initially copying the
acpuclock-8960 file over to the acpuclock-8960ab file.

Without this line, power collapse leaves the Krait PLL enabled,
causing failures upon resume.

Change-Id: I1339192d59d8b7f4135b32dcb5807bfc4dababfc
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2013-03-07 15:21:19 -08:00
Neha Pandey
53f8651b0f Revert "msm: acpuclock-krait: Fix PTE efuse address for acpuclock-8974."
This reverts commit 3f7590f2a66ecfdc902e8ca37785dba462ad995f.

Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:18 -08:00
Azam Sadiq Pasha Kapatrala Syed
4ad0bdf4ed msm: camera: Dynamically register domain and attach to device.
Starting with B family chips, the IOMMU client is responsible
for registering a domain (page table) and attaching it with
the corresponding device context when required.

Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>

Conflicts:

	include/media/videobuf2-msm-mem.h

Change-Id: I98f97805a67d597da55780f8c6739c9734a19a14
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:18 -08:00
Azam Sadiq Pasha Kapatrala Syed
ded2688a9d Camera Bring-up MR1.
Change-Id: I84d3b4d7ff4147506fdfc81cd26b0aa9cfb72467
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:17 -08:00
Sudhir Sharma
25b8e819f7 Revert "msm: board-8930: Reduce the PMEM size for audio"
This reverts commit 515395dfdea14e878782430057b8b2c0a9034e18.

Change-Id: I131b5aa625fd64c0b8294e0dda2d6906894ca247
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:16 -08:00
Sudhir Sharma
307b446d76 Revert "msm: board-8930: Remove HDMI clocks from MDP GDHS data"
This reverts commit d8110ebfa9520ed18d13f79b1d34efaf1a7280bd.

Change-Id: I1bc8338eca722f83e14fbb6a42083787c20b1d56
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:21:16 -08:00
Maya Erez
821bb10c51 mmc: Revert all packing related patches
The version of packing support excepted by the linux community is
slightly different from the one that was merged. This revert is needed
in order to upload the latest version from the linux community.

This patch reverts the following commits:
1.mmc: card: Add eMMC4.5 write packed commands unit-tests
2.mmc: card: Fix packing control enabling algorithm
3.mmc: block: Add MMC write packing statistics
4.mmc: msm_sdcc: enable the write packing control
5.mmc: msm_sdcc: Enable write packing capability
6.mmc: block: Add write packing control
7.mmc: core: Support packed write command for eMMC4.5 device
8.mmc: core: Add packed command feature of eMMC4.5

(cherry picked from commit f94cf3da103b344b13fa4d6665fd21dad1b95ead)

Change-Id: I2efc6dc8d8f6d5cc7e9efa99ec74914ffff96fcd
  commit:  9b54d88c6a11ebfe069b7fdebcb521da21754c3f
  commit: e2ecb58a6c5011549aac3e86fb1c13e7b7c65104
  commit: e544d700e2dac1584a8172c4dc347d81ede203bd
  commit: 8afe8d2a98a1bbf3804162ff5c95a56226935f5a
  commit: 25e2261a556c4393f79d58bce814bb3df34b9549
  commit: 63c61d6d8b8f37c71b4162b3affffdf72ac06811
  commit: 968c774ea6466fa7adbf2eac333220132acda306
  commit: 516994eee39282b8648b509e449ff83b49833209.
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
(cherry picked from commit 31fe84d6edae65f9df5663538e528697897be86e)

Signed-off-by: Maya Erez <merez@codeaurora.org>
2013-03-07 15:21:16 -08:00
Maya Erez
0375b15d28 mmc: msm_sdcc: Enable eMMCv4.5 BKOPS support
Set MMC_CAP2_INIT_BKOPS. This will set the BKOPS_EN bit in the
ext_csd register. The BKOPS_EN bit is one time programmable.

(cherry picked from commit b7f382b25fbd363c43af2332b4ff490e13aab6e4)

Change-Id: Ie913561b2b82ff28366ffe564ffcafe8fc19a96a
Signed-off-by: Maya Erez <merez@codeaurora.org>
(cherry picked from commit 2d29e0d34e3304d976291d3ab29c7c893c12d740)
2013-03-07 15:21:15 -08:00
Maya Erez
1a6cf520af mmc: core: Add the ability to enable BKOPS
If the card and the host support BKOPS, and BKOPS is not enabled
yet, set the BKOPS_EN bit to enable BKOPS.
This bit is one time programmable.

(cherry picked from commit e966c1ca32d118b26ca6e26267f0c13c9c0e0052)

Change-Id: I2b97898857bed676021fe56a6f6e49762cf609fa
Signed-off-by: Maya Erez <merez@codeaurora.org>
(cherry picked from commit 5ebe331e59e9c30bffead8e3030e3581ee699895)
2013-03-07 15:21:15 -08:00
Jaehoon Chung
7b952b0dda mmc: support BKOPS feature for eMMC
Enable eMMC background operations (BKOPS) feature.

If URGENT_BKOPS is set after a response, note that BKOPS are required.
Immediately run BKOPS if required.  Read/write operations should be
requested during BKOPS(LEVEL-1), then issue HPI to interrupt the
ongoing BKOPS and service the foreground operation.
(This patch only controls the LEVEL2/3.)

When repeating the writing 1GB data, at a certain time, performance is
decreased.  At that time, card triggers the Level-3 or Level-2.  After
running bkops, performance is recovered.

Future considerations:
 * Check BKOPS_LEVEL=1 and start BKOPS in a preventive manner.
 * Interrupt ongoing BKOPS before powering off the card.
 * How do we get BKOPS_STATUS value (periodically send ext_csd command)?
 * If using periodic bkops, also consider runtime_pm control.

(cherry picked from commit 6807769f7bf68984a5aeda4b9b521f1167cbaf00)

[merez@codeaurora.org: core.c: release_host when stopping BKOPs for
non SDIO cards in suspend]
(cherry picked from commit c1a56a1247341d13af7c8f84d5ac1211a3c4b376)

Change-Id: I5ac2ac909222e2b4e94cd97ce7da79f4488f06f0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
(cherry picked from commit 653abe2434532e4d2886d27dfdc3f42ae1c7ade1)
2013-03-07 15:21:14 -08:00
Maya Erez
e61e77a3b6 mmc: Revert BKOPs feature
A newer version of BKOps should be picked from the community.
Therefore the old support is reverted.
Revert the following commits:
9db69fca22bd2970f6b14b50cf8533a1edb64364
8ac659eb3d96e31b8bb6b8d09143ddd6eb83ae19
f886c80ee2f4c29aeaab2d76c9303c00263bb428

(cherry picked from commit 3402d2b725a5af16bc62a2e788913a46d3f7e54a)

Change-Id: I5df105753bef7ee10215526006187673b85bb0c1
Signed-off-by: Maya Erez <merez@codeaurora.org>
(cherry picked from commit b5763af04035cd5e3264225f40270d175985adc5)
2013-03-07 15:21:14 -08:00
Sreenivasulu Chalam Charla
606fb22e97 Revert "touchscreen: cyttsp-i2c-qc: Add low power mode functionality"
This reverts commit 304d9f5172c8c0210e2e29b175e8f68ea8257f69.
low power mode changes are causing issues like,delay in reponse to
touch , and controller is not recognizing the touch events as its
scan rate is also low in low power mode state . since controller is
not recognizing the touch in low power mode state , so only way
for the controller to come out of low power mode is to do multi-touch
and controller responds randomly to one of the touches and comes out
of the low power mode.

Signed-off-by: Sreenivasulu Chalam Charla <sreeniva@codeaurora.org>

Change-Id: I35e0797f819cfbce6630d70af443b96546eacfb5
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:14 -08:00
Abhijeet Dharmapurikar
b40e28051a power: pm8921-charger: fix EOC worker not starting
There are situations when we observe that charging is in progress
but the end of charge (EOC) worker is not running. This leads to
problems like
-never detecting end of charge
-not adjusting vddmax
-not preventing suspend while charging.

The reason is that the bootloader could have started charging already,
causing a fastchg interrupt to not happen. If the fastchg interrupt is
missed the driver will never start EOC worker.

Check the real time status of the fastchg interrupt and if it is fast
charging invoke the handler so that the eoc worker could be
started.

(cherry picked from commit 7f1d97fd69c3afe66577e731105207e5db544ab2)

CRs-Fixed: 393301
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>

Change-Id: I5c0ba3b8f0653c5f9d64f35346601763c059505a
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:13 -08:00
Eric Holmberg
6c047d74e0 msm: smsm: Add processor AWAKE signaling
This processor-awake signaling can be used by remote processors to
determine if the Apps processor is asleep and if so, if it wants to send
data to the Apps processor that would trigger a wakeup sequence.

Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>

Change-Id: Ifef10ead33297697c6cb1726bff21798a11caa97
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:13 -08:00
Pavankumar Kondeti
3f6d1669f3 USB: android: Don't disable configuration for every adb close
Certain ADB commands like "adb usb" and "adb root" restart the
adb daemon running on the device.  These commands require USB
bus reset, otherwise adb commands on the host side would stuck
for ever.

USB bus reset can be forced from device side by re-enabling the
same composition.  Earlier, configuration is disabled when adb
daemon closes /dev/android_usb device file.  The configuration
is enabled again after adb daemon opens the device file. This
approach solves the "adb usb" problem with the below side effects.

1. When USB cable is disconnected, the Rx request is flushed and
an error code is returned to user space.  The adb daemon is simply
restarted in this case which cause an unnecessary rebinding of
all functions.
2. The above scenario can happen if host reset the bus when device
is in configured state.  If device disable pull-up during, bus
reset, USB CV CH9 test cases are failing.

The commit d9b1897 (USB: android: Avoid re-enabling the same
configuration) fixed the above side effects. But silently ignores the
original "adb usb" problem.

This commit is another attempt to solve all the above mentioned problems
by forcing re-enumeration only when device is in connected state.  That
means, "adb usb" and "adb root" commands force usb bus reset where as
plugging out a cable does not.

(cherry picked from commit 1aa235a6c0a3d67bff24609766baf5a7d5d8e3e4)

(cherry picked from commit 81fefe664ab6333f05209bed959a599a47baf71f)

Change-Id: Id3a40f62dd51aba6ec690d3326ed67ced32b946a
CRs-Fixed: 407882
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>

Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:12 -08:00