Commit Graph

119987 Commits

Author SHA1 Message Date
Chiranjeevi Velempati
e007beddca USB: f_rmnet: Drop DTR on host suspend
Some Windows hosts are not dropping DTR during suspend, but are
setting DTR as part of resume. Hence, send DTR set to zero to
the Modem when the rmnet interface is suspended.

Change-Id: I9137021e2c4074c71e9142e7dbac2042311b3c4d
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
2012-01-25 15:35:28 +05:30
Linux Build Service Account
89a4714246 Merge "Revert "msm: kgsl: only queue work when requested state is none"" into msm-3.0 2012-01-24 11:57:06 -08:00
Linux Build Service Account
060b0d9c1a Merge "vidc: 720p: Update to new clock APIs." into msm-3.0 2012-01-24 11:57:06 -08:00
Linux Build Service Account
a689a1cc34 Merge "power: pm8921-charger: Handle cxo buffers off" into msm-3.0 2012-01-24 10:04:45 -08:00
Linux Build Service Account
8934f0f139 Merge "radio: iris: Add signal detection threshold IOCTL's" into msm-3.0 2012-01-24 08:13:07 -08:00
Linux Build Service Account
25a887ad97 Merge "radio-tavarua: Increase the RT buffer to fit the RT header" into msm-3.0 2012-01-24 08:13:07 -08:00
Anoop Kumar Yerukala
03ba25fa5b Revert "msm: kgsl: only queue work when requested state is none"
This reverts a87d51a96c
Patch causes increase in power consumption while playing a video.

CRs-fixed: 331854
Change-Id: Ic21f109ac730167539a78647d51a8051d5c9948f
Signed-off-by: Anoop Kumar Yerukala <ayeruk@codeaurora.org>
2012-01-24 12:14:47 +05:30
Linux Build Service Account
848bbb91be Merge "usb: gadget: u_data_hsic: Reduce the number of interrupts in TX data path" into msm-3.0 2012-01-23 08:31:58 -08:00
Srinivasa Rao Uppala
d09f24a89c radio-tavarua: Increase the RT buffer to fit the RT header
Current RDS RT Buffer is not sufficient to accommodate the
RT header and data. Increase the RDS Radio text buffer size to
accomidate the RT header and data.

Change-Id: I742dad912bbe6e360ffeda09f80117d47822fdc5
CRs-Fixed: 328036
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2012-01-23 21:36:53 +05:30
Srinivasa Rao Uppala
d3184a4f6a radio: iris: Add signal detection threshold IOCTL's
Add the IOCTL's to get the signal detection parameters like
SINR, SINR samples, Low detection threshold and high
detection threshold

Change-Id: I0b8f8d978bd25990098b20073fd664e649af3b49
CRs-Fixed: 322688
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2012-01-23 21:16:19 +05:30
Mallikarjuna GB
215561d045 Bluetooth: HCI SMD Increase WakeLock release timeout
Upper layers are not acquiring the locks properly, hence wakelock release
timeout is increased to 500 ms. This logic and value is derived from
the implementation for UART transport.

CRs-fixed: 325550

Change-Id: I15c39705e63ebb1fb4ccac3c42d72f0cc1e32929
Signed-off-by: Mallikarjuna GB <gbmalli@codeaurora.org>
2012-01-23 15:55:46 +05:30
Linux Build Service Account
5fd7777826 Merge "msm: thermal: Add MSM thermal sensing and limiting" into msm-3.0 2012-01-22 19:12:31 -08:00
Linux Build Service Account
04d2815859 Merge "thermal: msm8960_tsens: Read TSENS temperature" into msm-3.0 2012-01-22 16:18:53 -08:00
Linux Build Service Account
a1c31afa6c Merge "Revert "msm_fb: Handle static screen update case in CABL for MDP3.0.3"" into msm-3.0 2012-01-22 16:18:53 -08:00
Linux Build Service Account
767b30c135 Merge "usb: mdm_bridge: Do not submit subsequent tx URBs in case of -EPROTO" into msm-3.0 2012-01-22 13:09:04 -08:00
Linux Build Service Account
897ab0804b Merge "msm: kgsl: convert sg allocation to vmalloc" into msm-3.0 2012-01-22 10:26:32 -08:00
Linux Build Service Account
10d889e246 Merge "cpufreq : Fix crash input event handler on governor switch" into msm-3.0 2012-01-22 07:34:00 -08:00
Padmanabhan Komanduru
c7d7aa888a Revert "msm_fb: Handle static screen update case in CABL for MDP3.0.3"
This reverts commit ff77f57b5b.
Patch causes histogram ioctl to fail after there is no UI update
for 50 ms. Abl-daemon handles static screen update case in CABL
from now.

Change-Id: Iddcd5b4fe0b2f99fe7b8f6b296649eee2f1f0c6e
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2012-01-22 15:07:18 +05:30
Jeff Boody
28afec421e msm: kgsl: convert sg allocation to vmalloc
kmalloc allocates physically contiguous memory and
may fail for larger allocations due to fragmentation.
The large allocations are caused by the fact that the
scatterlist structure is 24 bytes and the array size
is proportional to the number of pages being mapped.

CRs-fixed: 327066
Change-Id: Ic7d15ca0399aa5c1fa01b7892cff736b3d1e4236
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
2012-01-21 22:13:39 -07:00
Linux Build Service Account
5103c3ae36 Merge "msm: bam_dmux: handle timeouts due to modem crash" into msm-3.0 2012-01-21 21:07:06 -08:00
Linux Build Service Account
d24aaeed10 Merge changes I3454e773,I1e01dc35 into msm-3.0
* changes:
  msm: kgsl: Make sure SLUMBER is the requested state
  msm: kgsl: Clarify the circumstances to enable SLUMBER state
2012-01-21 17:36:55 -08:00
Linux Build Service Account
642729a61f Merge "usb: mdm_bridge: Decrement PM-usage counter in completion handler" into msm-3.0 2012-01-21 13:03:00 -08:00
Linux Build Service Account
73312bb07d Merge "msm_fb: display: add mdp overlay1 writeback" into msm-3.0 2012-01-21 13:03:00 -08:00
Linux Build Service Account
279e22cf54 Merge "mfd: pm8xxx-misc: add an API to preload the dVdd regulator" into msm-3.0 2012-01-21 13:03:00 -08:00
Linux Build Service Account
12f522c922 Merge "USB: android: Handle error conditions in init() function" into msm-3.0 2012-01-21 04:44:57 -08:00
Rajeshwar Kurapaty
8a41a00c9a vidc: 720p: Update to new clock APIs.
Updated current clk_enable and clk_disable APIs
to clk_prepare_enable and clk_disable_unprepare
APIs respectively to be inline with the new clock APIs.

Change-Id: Ie45b620a7580ac65466b922b749b5746abbe4c20
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
2012-01-21 14:16:41 +05:30
Praveen Chidambaram
f248bb7cb0 msm: thermal: Add MSM thermal sensing and limiting
Add a thermal driver to poll and detect any thermal condition at boot
and limit max cpu frequency on a thermal condition. This driver is
intended to limit cpu thermal output until the userspace thermald
kicks in. The thermald will disable this driver and take over the
cpu thermal sensing and mitigation.

Change-Id: I2710bfdeb5bf01c864437e13da835621d1b9202c
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
2012-01-20 19:48:50 -07:00
Jeff Hugo
4838f4164c msm: bam_dmux: handle timeouts due to modem crash
If bam_dmux times out waiting for a response from the modem, we assume it
has crashed.  Therefore, prepare for modem restart if enabled, otherwise
report the error with BUG as we are in an unrecoverable state

Change-Id: I5f2419eae721a735a2396693da9fa2d28b14f122
CRs-Fixed: 331808
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
2012-01-20 17:18:17 -07:00
Siddartha Mohanadoss
ccd49854a0 thermal: msm8960_tsens: Read TSENS temperature
Add kernel API to read TSENS temperature for clients
in the kernel space. Currently the TSENS driver only
supports reading the TSENS temperature from the
thermal sys.

Split the TSENS initialization into two parts.
First is to perform the initial calibration that is
used to convert the raw ADC code to Degrees Celcius
and initialize the TSENS HW. Second is to register the
TSENS driver to the linux thermal framework and create
the temperature zones that will be accessed by the
Thermal daemon to set thresholds, read the temperature
and receive notifications.

Change-Id: Id2305a7aa755e1e9cfaecd8b5c1870ed05d9b5e9
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2012-01-20 15:36:59 -08:00
Hemant Kumar
06b7e43aa2 usb: mdm_bridge: Do not submit subsequent tx URBs in case of -EPROTO
When a write callback returns -EPROTO, treat it as if the device is
disconnected and disallow further calls to write. This will allow the
caller to gracefully handle the error until a disconnect event finally
comes and is able to notify the caller via a platform_device removal.

Change-Id: Ic780281cb5486cb5177cd642d244d2451fde1d07
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2012-01-20 15:34:16 -08:00
Linux Build Service Account
7c6b53848c Merge "pmem: Fix a possible NULL pointer dereference" into msm-3.0 2012-01-20 14:12:37 -08:00
Linux Build Service Account
3074cc33aa Merge "USB: OTG: msm: Implement data contact detection based on timeout" into msm-3.0 2012-01-20 14:12:37 -08:00
Linux Build Service Account
55379fa4b4 Merge "Bluetooth: Prioritize event packets over data packets" into msm-3.0 2012-01-20 14:12:37 -08:00
Hemant Kumar
39af737bd7 usb: gadget: u_data_hsic: Reduce the number of interrupts in TX data path
Rmnet gadget driver sets IOC bit for every request having IP packet
data in TX direction. This causes the driver to spend more time in
servicing interrupts which degrades the overall performance of the
driver. Hence reduce the number of interrupts by setting IOC bit for
certain number of requests being queued.

Change-Id: I9fa926b2a08eef2bd776f1b9943546666a8b8997
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2012-01-20 11:49:14 -08:00
David Collins
4724272b4b mfd: pm8xxx-misc: add an API to preload the dVdd regulator
Add a new API, pm8xxx_preload_dVdd, which will preload the dVdd
regulator on PMIC PM8901 chips during off state. This can help
to reduce fluctuations in the dVdd voltage during startup at the
cost of additional off state current draw.

This API should only be called if dVdd startup issues are
suspected.

Change-Id: Ic7ee60539de37a761bb9ca6c5200327a7b99da89
CRs-Fixed: 326086
Signed-off-by: David Collins <collinsd@codeaurora.org>
2012-01-20 11:34:58 -08:00
Hemant Kumar
f13358e518 usb: mdm_bridge: Decrement PM-usage counter in completion handler
mdm bridge control driver increments the PM usage counter before
submitting the tx URB, but counter was never decremented after that,
which prevents the device from entering suspend.

Change-Id: I3bf9cf0de876a53c21cc0edd8fdeeb0fe20a4905
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2012-01-20 11:26:37 -08:00
Linux Build Service Account
1aa4848c00 Merge "radio: iris: Fix the crash with get signal threshold command." into msm-3.0 2012-01-20 10:15:01 -08:00
Linux Build Service Account
96dd983b52 Merge "gpu: ion: Increment the ref count in mmap" into msm-3.0 2012-01-20 08:40:30 -08:00
Linux Build Service Account
0d8ca48152 Merge "msm: camera: Fix the VPE state machine to avoid multiple VPE disable." into msm-3.0 2012-01-20 08:40:30 -08:00
Linux Build Service Account
fb090cf1fd Merge "msm_fb: HDMI: Correct order for BKSV read operation" into msm-3.0 2012-01-20 07:14:55 -08:00
Linux Build Service Account
40a96e726d Merge "msm: kgsl: Be explicit about what states may access hw" into msm-3.0 2012-01-20 07:14:55 -08:00
Linux Build Service Account
4817058084 Merge "msm-camera: Add support for YV12 preview format" into msm-3.0 2012-01-20 05:40:26 -08:00
Linux Build Service Account
87c8d39d24 Merge "regulator: Add devm_regulator_get()" into msm-3.0 2012-01-20 04:12:37 -08:00
Linux Build Service Account
568dd5fa16 Merge "binder: Quiet binder" into msm-3.0 2012-01-20 04:12:37 -08:00
Rajkumar Raghupathy
a1df77e4b8 USB: android: Handle error conditions in init() function
When the usb_compostite_probe function fails, the USB enumeration fails.
Hence accessing the USB related sysfs entries results in null pointer
dereference crash.

This change fixes it by handling all possible error conditions and
destroy the sysfs entries in the init() function.

Change-Id: Ic9cb569eef2d4076aff1acd8fc679bc762f300f7
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>
2012-01-20 17:22:15 +05:30
Alekhya,Monika
fc81e10421 msm-camera: Add support for YV12 preview format
Enable camera driver to output preview frames in YV12 format.

Change-Id: Ib4e358460eb922c6a06314682380c4de30f81319
Signed-off-by: Alekhya,Monika <malekh@codeaurora.org>
2012-01-20 17:12:20 +05:30
Linux Build Service Account
a56f880f2b Merge "fmem: remove ASSERT_SPINLOCK macro" into msm-3.0 2012-01-19 22:42:18 -08:00
Linux Build Service Account
600490f99e Merge "msm: qdsp6v2: Invalid memory access of timpani regset array" into msm-3.0 2012-01-19 22:42:18 -08:00
Anitha Anand
3dd6509401 cpufreq : Fix crash input event handler on governor switch
When an input event and CPU1 hotplug occurs at the same
time, a race condition can happen between cpufreq and
cpu hotplug resulting in a kernel panic.
When a hotplug operation is underway on CPU1,
__cpufreq_remove_dev is called. __cpufreq_remove_dev gets
the lock, proceeds to free the policy info of the current
governor and calls the ondemand governor with a STOP event.
If an input event occurs around the same time, it waits
for __cpufreq_remove_dev to release the lock. Meanwhile,
the ondemand governor clears some of its settings, but
fails to clear its local current policy. As soon as the
input event handler acquires the lock, it now uses the
invalid ondemand current policy handle to make frequency
changes. This results in a kernel panic.

Skip making frequency changes if this condition happens.

CRs-fixed: 327622,319348
Change-Id: I78227352fc66cc3ec5ab095c45eda76a92d1ba46
Signed-off-by: Anitha Anand <anithas@codeaurora.org>
2012-01-19 19:32:05 -08:00
Pavankumar Kondeti
2d09e5fe33 USB: OTG: msm: Implement data contact detection based on timeout
Data contact can be detected by either current source or timeout
methods.  The current source method is not working for an unknown
reason.  Implement timeout based data contact detection.  The spec
allows any timeout between 300msec to 900msec.  Use 600msec.

CRs-fixed: 330217
Change-Id: I67151d1412f43ba974cc1afb164d6473f89d2dbf
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2012-01-20 08:38:57 +05:30