Commit graph

304572 commits

Author SHA1 Message Date
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
Girish Mahadevan
056186dca8 msm: devices-8930: Change start address for RPM RBCPR stats
Modify the start address of RPM RBCPR stats in RPM MSG RAM to
match the address being used by RBCPR driver on RPM. This change
is needed to allow reading of RBCPR stats from RPM MSG RAM.

(cherry picked from commit ea1a1d78c1617cc62af5f0ea3fe836d4d9b87191)
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>

Change-Id: Id5d6b08dca4f56687fff506e676bfe12845acef9
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:12 -08:00
Deepa Madiregama
23495c9c2e msm: audio: qdsp6v2: Fix the issue of memory unmap
- Target freeze observed during monkey run.
- Memory unmap getting called from interrupt context,
  which is causing scheduling during atomic operation.
- Avoid calling memory unmap from interrupt context.

(cherry picked from commit a64fae9ba272ba2f689f30bc7b33c8a1fe4445e5)
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>

Change-Id: Iab9372ba1b2d560c7e161f39483478f0342ac30a
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:11 -08:00
Tianyi Gou
c265eed0da msm: acpuclock-8064: Lower VDD_DIG voltage vote for L2 at 384MHz
New characterization data shows that vdd_dig voltage for L2@384MHz
can be lowered to 0.95v. Update the data in this patch.

Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
(cherry picked from commit 7a904ecd4f43f228cd1b3ea0d8ef4054b69cdb35)

Change-Id: I7f38657930231ce8969bd16e793b57e606fcd162
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:11 -08:00
Stephen Boyd
e9001bcd0d msm: clock-8960: Lower frequency requirements of fpb active votes
We have an active set vote for the multimedia fpb and chip fpb so
that the registers are accessible whenever the processor is
awake. Unfortunately these requests are at the highest rate
supported which is not really necessary to ensure that the buses
are clocking. Lower the rate requests to the fastest speed that
doesn't require increasing voltages to allow the chip to hit low
voltages when the processor is awake.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
(cherry picked from commit 9e497f042d8525e57e11d417e9e37c2932a18dbf)

Change-Id: I3ee4926da0d953e7e31c3c64dffd11f6ee5edb72
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:10 -08:00
Vijayavardhan Vennapusa
982a7b99a1 USB: ci13xxx_udc: Fix ENDPOINT PRIME failure issue
while queueing requests to USB HW, waiting till EP PRIME bit
get cleared after setting it leads to wathdog timeout. Fix
this by implementing timer based solution instead of infinite
PRIME check loop.
(cherry picked from commit 9e4a5053b0f25cb18ed394fa517be620db673d44)
(cherry picked from commit dcfe03cd167f1b4916de85ce0a0a5516191741cc)
CRs-Fixed: 397907
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>

Change-Id: Iad7504c77c02870d9fa3b7b9decf13afcf2c9e12
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:10 -08:00
Hemant Kumar
2fbb801899 usb: mdm_bridge: Increase the number of rx urbs
Due to higher HSIC interrupt threshold value, sometimes
driver is running short of enough rx urbs queued to HSIC
HW to receive IP packets from mdm device. In this case
driver is busy processing large number of completed rx
urbs and left with fewer pending urbs with HW. This causes
occasional throughput drops on rx data path. Hence increase
number of rx urb from 50 to 100, to keep HSIC HW busy in
pulling data from mdm device while completed urbs are getting
processed.

(cherry picked from commit e8f691f60db39b50951148c3e68ae35c89cdd397)
CRs-Fixed: 397809
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>

Change-Id: I590c203551c5ac83a71b8628d195f2a15840edf1
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:09 -08:00
Joonwoo Park
52f55e9f1e ASoC: wcd9310: Resend edge triggered GPIO IRQ
If MBHC GPIO IRQ for mechanical headset detection asserted while power
management's suspend call chain is being called, wcd9xxx_lock_sleep will
fail to wait for system's resume since power management interface has
to finish suspend in order to resume system.
In this case, interrupt cannot be handled as codec driver cannot
guarantee if underlying bus is awake.
Wake up system and resend the IRQ for this situation.

(cherry picked from commit ecf379cd17b7fe94e6f0df0598a472b6f1828ad5)
(cherry picked from commit bdda99b93915d217150f5484f9c718c905703f1e)
CRs-fixed: 404167
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>

Change-Id: Id5970b359b80e0cd1f701b30c61ade23e0f67b9e
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:09 -08:00
Ming-yi Lin
3d170a087f msm: 8960: add ath6kl_wlan_power function to control AR6004 gpio
Add necessary functions for AR6004 to control BT related GPIO.
This change will only be used by AR6004

(cherry picked from commit 9baad179a8a7996e1912de14eb6f02f17c932e03)
(cherry picked from commit 493557fce821ae201b4cc3c6a125d703ac5de60e)
Signed-off-by: Ming-yi Lin <mylin@codeaurora.org>

Change-Id: I0fb3a59761dc3e994254bdc0241281e4bbcdf402
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:08 -08:00
Sameer Thalappil
9e6b2a57e7 wcnss: Rename riva to wcnss in SSR framework
SMD or any client for WCNSS SSR notification can use the same name
(wcnss) for both Pronto and Riva.

Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>

Change-Id: I956d9623f99855402add40b3e999bfacace7d2f3
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:08 -08:00
David Keitel
6d599dc826 power: pm8921-charger: Control CHG_USB_SUSPEND enabling boost
Toggle the CHG_USB_SUSPEND bit when utilizing the VBUS boost.
This bit controls ensures that no current is being drawn from
a USB device and the charger runs off the battery.

This makes sure that when pm8921_disable_source_current is called
the correct setting is written to the suspend bit depending
on the disable flag.

(cherry picked from commit d8878596b9b19668fd1f1b226a333d955f2218c4)
CRs-Fixed: 393498
Signed-off-by: David Keitel <dkeitel@codeaurora.org>

Change-Id: Iae390fd10e59d6ba1fe85743c1015eea35b06f7a
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:08 -08:00
Jay Wang
417c902e5a msm: board-8930: Reduce the PMEM size for audio
(cherry picked from commit 19a992314983c132d97b0d670b40e535580955da)

Signed-off-by: Jay Wang <jaywang@codeaurora.org>

Change-Id: I16af92f174ac8a9b9ac15e96cbf2b89db4de1df5
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:07 -08:00
Pavankumar Kondeti
5a30cd21f9 USB: msm_otg: Abort suspend while host mode is activated
ID ground interrupt processing and system suspend can run in parallel.
When Id is grounded, USB is brought out of low power mode(LPM) and state
machine work is run to activate host mode.  While waiting for the VBUS
valid event, device suspend callback is executed from system suspend
context.  The current code put USB in LPM, without activating host mode
completely.  Abort suspend when A_BUS_REQ is asserted which indicate
that host mode is active.

(cherry picked from commit cfe0539e389c52ec6c4d99cf1915d806d42f1abe)

CRs-Fixed: 412841
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>

Change-Id: I9ecd4f55a328d63ddbf0e415a9bcff1158874203
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:07 -08:00
Rohit Vaswani
ea95f756ea msm: 8930-gpiomux: Reduce drive strength for CDC_MCLK
8MA drive strength is causing GSM DCS/PCS RX band desensitization.
Hence, the GSM subsystem needs the drive strength to be 2MA for this gpio.

(cherry picked from commit 7a026522ee2d2436de37b43051a6530a39b8421a)
CRs-Fixed: 401569
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>

Change-Id: I4c39e3c62b6eb9faa8d227d3e146b1189109ec9c
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:06 -08:00
Saket Saurabh
7b9d429194 msm_serial_hs_hwreg.h: Correcting the even parity and odd parity bits
Currently parity bits are defined to be used with UART_DM_MR2
register with PARITY_MODE Bit as below :
EVEN_PARTIY = 1 and ODD_PARITY = 2
With these values, UART functionality doesn't work after enabling parity.
Hence adding correct used PARITY_MODE bits value as
EVEN_PARITY = 2 and ODD_PARITY = 1
after confirming with UART hardware programming guide.

CRs-Fixed: 410377
Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
(cherry picked from commit fd40e5f6313fbc74e8897927be1004faa5d9df08)

Change-Id: I56f1a46ab56a7976ad00fc1329ad766b1182cb4e
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:06 -08:00
Aravind Venkateswaran
59856291c1 msm: board-8930: Remove HDMI clocks from MDP GDHS data
MSM8930 with PMIC8917 does not support HDMI. This change
ensures that HDMI clock domains are not set/reset as part of the
MDP GDHS sequence for this particular configuration.

Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
(cherry picked from commit 66fae64b1d7f66541b75675fe2c24c69e1bd87cf)

Change-Id: Ie7ea77abf97b0857a72e32af6dbdb118038df620
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:06 -08:00
Bhalchandra Gajare
e11f472d33 ASoC: WCD9304: Fix pop level during start of recording
When recording is started, it is observed that the pop level is
much higher than expected. Fix this issue by enabling the High
Pass Filter on microphone path with a cut off frequency of 150Hz
when recording starts and reprogram the cut off frequency back
after a timeout of 300 millisecond.

CRs-fixed: 380966
(cherry picked from commit f9ed163835d1634a86cabc233d85bfe857f0eacf)
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>

Change-Id: If98dfaf0f9b8f14c306f2d6a59154a615752823b

Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:05 -08:00
Anji Jonnala
0b73a54445 msm: rpm_stats: Add support to read master PC stats from RPM MSG RAM.
RPM maintains PC stats for each master in MSG RAM and it allocates
256 bytes for this use. No of masters differs for different targets.

Initialize the resources for rpm_master_stat platform device.

Signed-off-by: Anji Jonnala <anjir@codeaurora.org>

Change-Id: I0a44b083fd01a852ba214ecf1d2e6d953c154ed5
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:05 -08:00
Anji Jonnala
9ae712dd89 msm: rpm_stats: Debugfs support to display master PC stats.
rpm maintains stats on power collapses and the list of active cores
for each master in its msg ram. Provide support to display it
through debugfs.
ex:-
	mount -t debugfs none /data/debug
	cd /data/debug
	cat rpm_master_stats
The above commands will display no of power collapses and active cores
for each master. Sample output on 8960 is below

	KPSS
		num_shutdowns:0
		active_cores:7
			core0
			core1
			core2
	MPSS
		numshutdowns:10
		activecores:0
	LPASS
		numshutdowns:20
		activecores:1
			core0
	RIVA
		numshutdowns:9
		activecores:0
	DSPS
		numshutdowns:90
		activecores:0

L2 cache also consider as another core in the stats.

Signed-off-by: Anji Jonnala <anjir@codeaurora.org>

Change-Id: I570335c11f744663819ab040705fe715183bda8a
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:04 -08:00
Banajit Goswami
0c7c7dc9c9 ASoC: pcm: allow backend hardware to be freed in pause state
When front-end PCM session is in paused state, back-end PCM
session will be put in paused state as well if given front-end
PCM session is the only client of the given back-end. Then,
even though the application closes front-end PCM session, DPCM
framework will not allow back-end to enter into HW_FREE state,
and hence back-end will never get shutdown completely.

(cherry picked from commit 6479fa2d82c5fa8b756a4755bc84e2ce48dad850)
CRs-fixed: 411089
CRs-fixed: 409894
Signed-off-by: Banajit Goswami <bgoswa@codeaurora.org>

Change-Id: I4d4f856a0401ff96cef98d374c1d12b10e124528
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:04 -08:00
Matt Wagantall
dafd65c912 msm: sysmon: Handle races between probe/removal and API calls.
It is possible that clients of the sysmon may call its APIs
before the associated device has probed, after it has been
removed, or while it is in the process of being added or
removed. Handle these scenarios and return -ENODEV when
external APIs are called at illegal times.

(cherry picked from commit 9319017b803cca3fd479e589db3d8d3560e19511)
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>

Change-Id: Idb7bfd410957efe63ab4917d9481922de25287c4
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:04 -08:00
Mohan Pallaka
26fd8a8046 input: pm8xxx-pwrkey: Update key press status during probe
Power key could be in pressed state during boot. Set the flag
to track the press status properly by reading press irq status.

(cherry picked from commit bd38250554df6e70657e6ff42ad63415dbd53f1a)
CRs-fixed: 404018
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>

Change-Id: I1b604b63e53803483d3cc2a7bae0a5e7ed98285b
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:03 -08:00
Girish Mahadevan
80c3557ab5 msm: event_timer: Support to add event timers.
Add support to allow drivers to specify future events
that need to be treated as hard deadlines. Upon event timer
expiry the driver will be notified by callback function
that the driver provides.
The pm code can query the earliest event and modify
the event timer accounting for the back off based on the
latency of the low power mode being entered.

(cherry picked from commit 388c308cebef8e9cdbd80608a032abc810d46e62)
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>

Change-Id: I461e2c31c285b93588aa56dd25905efab020e0c8
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:03 -08:00
Girish Mahadevan
b9b22edd40 msm: defconfig: Enable event timer
Enable Event timer feature. This feature enables PM
code to monitor events that require the core to be ready
to handle the event.

(cherry picked from commit 19d00d50f5b09a25712133ed0b329cc9c5c3d1d8)
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>

Change-Id: Ib56e49edd00bea35ab7395bb038a627f43187f57
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:21:03 -08:00
Girish Mahadevan
77dfb708ae msm: pm: Adjust for events with hard wakeups
Get the next event and setup a new timer to expire
earlier than the next event after accounting for the
latency of the low power state being entered. This
will ensure that the core is active to handle the event
when it arrives.

(cherry picked from commit dc318fd0c3d04f7af9720af50c0eb0c6ed2653e9)
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>

Change-Id: I6609a886df227c68ce78e270ef7d235e07725d44
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:20:59 -08:00
Nagender Telkar
04fa9b8a93 build: strip debug symbols from installed kernel modules
Debug symbols in installed kernel modules consume space
in the target filesystem, so strip them. Modules with
debug symbols should be present in the KERNEL_OBJ
location for debug purposes. 

(cherry picked from commit bb77a75767f5dbb7327ab05f4ec4462b6ad62b10)
CRs-fixed: 400053
Signed-off-by: Nagender Telkar <ntelkar@codeaurora.org>

Change-Id: I4353e3733455e01cbe97c023d36b9bd3b7b8adf2
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:20:58 -08:00
Jayasena Sangaraboina
26f9e0e9d1 ASoc: msm8930: Add fix for Unsupported Proxy backend sample rates
- AFE does not support sampling rate 44.1k
- This fix addresses the issue by setting backend proxy device
sampling rate to 48k

(cherry picked from commit 69ab7356a72981032d5d403ec1508dcfaeb7075f)
CRs-fixed: 413871
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>

Change-Id: Ic067178f9d4cdb51b8fee5292b960922088c8539
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:20:58 -08:00
Eric Holmberg
a1463d9af3 rmnet_smux: Wake netif queue after low-watermark notification
Currently, RMNET will restart the TX queue after receiving a
low-watermark notification from SMUX.  This just clears the XOFF bit,
but does not reschedule the TX thread in the Linux TCP/IP stack.  This
means that the next TX operation will not take place until the thread is
scheduled by some other means which may take up to 5 seconds.

Instead, wake the queue which clears the XOFF bit and schedules the TX
thread to allow transmission to continue immediately.

(cherry picked from commit 4d8fb2ecb3a9cdab3e9d605280256c6b46773dd0)
CRs-Fixed: 412758
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>

Change-Id: I1f169547f3ff518baada632d5a3f766b5795c697
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:20:58 -08:00
Mohan Kumar Gubbihalli Lachma Naik
834dc00ef1 msm: vidc: Set dpb count for smooth streaming
The min_dpb required for smooth streaming is set for the
max requirement of 1080p playback session. This is set in
vidc platform data in the device file.

(cherry picked from commit 885fcc57354cd309f5ed0356da486d1e130b9ad7)
CRs-fixed: 408738
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>

Change-Id: I38c3c9931f573cb029871bd48fd161f2158e139e
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:20:57 -08:00