Commit Graph

120091 Commits

Author SHA1 Message Date
Jay Chokshi
0c220cd9bc mfd: pm8xxx-pwm: Add support for PM8038
Adapt the driver to take into consideration LPG
architecture of pmic 8038 and 8922. It does not
support 7-bit mode yet.

Change-Id: Ibfca90aae6fd9c90025af5364e1dcaf4a8bb3033
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2012-01-30 11:23:49 -08:00
Willie Ruan
b10be97df4 mfd: pm8xxx-pwm: add pre-divide=6 and update macros
Add pre-divide=6 and update the max period based on new pre-divide.
Also update pre-divide related macros for better readability.

Change-Id: I5298c373c78f8723dab9a735e4d94f89798800d5
Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2012-01-30 11:23:49 -08:00
Mayank Rana
91f597e409 USB: OTG: Update vbus_is_on variable for pdata based vbus power routine
vbus power routine can be different based on platform. If vbus power
sequence is provided using platform data(pdata), disconnect of OTG cable
doesn't turn off the VBUS related regulators and required other
interfaces. This issue is seen as vbus_is_on variable remains always zero
for pdata based vbus routine, and msm_hsusb_vbus_power(motg, 0) doesn't
invoke the required vbus power routine. Hence update the vbus_is_on
variable based on return value of pdata based vbus routine. With this
change, it is mandatory that pdata based vbus routine should return the
success/failure result.

CRs-Fixed: 332434
Change-Id: I4c7ce48057f65227b09aac788d0ad24d0f30ed7e
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2012-01-30 19:41:39 +05:30
Linux Build Service Account
38278d807a Merge "msm: camera: Reorganize power up functions for sensors" into msm-3.0 2012-01-30 01:45:52 -08:00
Linux Build Service Account
f9687aa1f0 Merge "base: genlock: Check for instances where handle is NULL" into msm-3.0 2012-01-30 01:45:52 -08:00
Linux Build Service Account
2e645bdb43 Merge "radio: iris: Return proper antenna type for get antenna IOCTL" into msm-3.0 2012-01-30 01:45:52 -08:00
Linux Build Service Account
61c6f4ae01 Merge "msm: kgsl: remove unneeded idle calls from context create" into msm-3.0 2012-01-29 23:55:05 -08:00
Srinivasa Rao Uppala
2f51a97c59 radio: iris: Return proper antenna type for get antenna IOCTL
FM TX UI turns off due to the invalid return value in response
to GetAntenna on FM TX Restart.Save the type of the antenna that
is set as part of SetAntenna.Return that in response to getAntenna.

Change-Id: I35cf0ca36ed60a3c94b4bc98e020053763b24c88
CRs-Fixed: 332432
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2012-01-30 09:46:29 +05:30
Kevin Chan
eb6b607464 msm: camera: Reorganize power up functions for sensors
Moving regulators and gpio to board file
GPIO and regulators are usually different for OEM projects.
This will give them the flexibility to support multiple
devices without changing the driver.

Change-Id: I37549d2eaf3a6c31c1b7cf81270c2b22dde30011
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2012-01-29 17:28:45 -08:00
Linux Build Service Account
25774b80e5 Merge "mfd: pm8xxx-irq: mask non requested interrupt" into msm-3.0 2012-01-29 09:27:41 -08:00
Linux Build Service Account
118e7b8b0f Merge "Camera: Fix for gemini crash due to clock disable" into msm-3.0 2012-01-29 09:27:41 -08:00
Linux Build Service Account
45ef21545f Merge "radio: iris: Fix the AF jump issue" into msm-3.0 2012-01-29 09:27:41 -08:00
Linux Build Service Account
516d60e24a Merge "usb: gadget: Add HSIC Peripheral over SPS support" into msm-3.0 2012-01-29 07:55:46 -08:00
Linux Build Service Account
626c55089c Merge "msm_fb: HDMI: Switch device node for HDMI" into msm-3.0 2012-01-29 05:11:49 -08:00
Linux Build Service Account
6bd669efb5 Merge "diag: Apps only polling command response when modem is up" into msm-3.0 2012-01-29 05:11:49 -08:00
Adrian Salido-Moreno
94c8a2c7f3 msm_fb: display: perform staging updates on a single vsync
Store all staging updates locally and write to hw on a single vsync
only when changes are detected, this allows a smooth transition
from using multiple overlays to framebuffer for UI

Change-Id: I2cd61d858e74d450b8ad515b75008518274bd15e
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
2012-01-29 02:36:31 -07:00
Linux Build Service Account
720735fb4e Merge "mmc: msm_sdcc: vote against IDLE power collapse" into msm-3.0 2012-01-29 00:06:43 -08:00
Linux Build Service Account
4d1acb8fe4 Merge "USB: OTG: Notify the charger type to the PMIC driver" into msm-3.0 2012-01-29 00:06:43 -08:00
Linux Build Service Account
7664d6b9e8 Merge "USB: u_bam: Avoid workqueue for data received from BAM DMUX layer" into msm-3.0 2012-01-29 00:06:43 -08:00
Ofir Cohen
010009b830 usb: gadget: Add HSIC Peripheral over SPS support
Add support in HSIC peripheral(device)
over SPS.
Only one USB core can be use - currently HSUSB
is enabled by default.
To enable HSIC core defconfig file should be changed.

Change-Id: I256aecd9e6dfd8bfd71719c32beed8b24225e11c
Signed-off-by: Ofir Cohen <ofirc@codeaurora.org>
2012-01-29 09:03:19 +02:00
Linux Build Service Account
1a8e8dff34 Merge "gpu: ion: Limit scope of local functions" into msm-3.0 2012-01-28 22:19:22 -08:00
Linux Build Service Account
7766bcb781 Merge "usb: gsmd: Handle SMD Closing Delay Retry" into msm-3.0 2012-01-28 22:19:22 -08:00
Linux Build Service Account
6af6b368f0 Merge "platform-drivers: msm: sps: migrate to new clock API" into msm-3.0 2012-01-28 22:19:22 -08:00
Linux Build Service Account
3991fcecb5 Merge "video: msm: change normal operation prints to pr_debug" into msm-3.0 2012-01-28 22:19:22 -08:00
Chiranjeevi Velempati
e510592d98 USB: u_bam: Avoid workqueue for data received from BAM DMUX layer
BAM DMUX driver gives the data to the USB in work context and USB
is once again scheduling work for sending the data to the host.
This change avoid's the double work queue scheduling for the data
received from BAM DMUX, which might reduce the cpu usage and improve
the throughputs.

Change-Id: Ib66bc7f46f9436704e0d28b72771de50462ddf4b
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
2012-01-29 08:43:34 +05:30
Chiranjeevi Velempati
39f9b95d62 USB: OTG: Notify the charger type to the PMIC driver
Till now, we are communicating only the amount of the current that
should be drawn by the PMIC for charging from the OTG driver through
power supply class driver. With this change, we notify the type of the
charger connected as well, so that userspace can benefit for dispalying
the charger type in the UI.

CRs-Fixed: 329868
Change-Id: Ibe92c4450bc9b4b023b9aceab57b624bde39a4fe
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
2012-01-29 08:27:05 +05:30
Olav Haugan
0fa9b60cc8 gpu: ion: Limit scope of local functions
Several functions that should not be used outside of
the ion.c file does not have static keyword. In
addition two of the functions should not be exported.

Add static keyword to functions that are local to the
translation unit and remove EXPORT_SYMBOL declarations
that are not needed.

Change-Id: Ia1ef54e3670d361c9a6d684f789be2129facb04d
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2012-01-28 17:05:16 -08:00
Subhash Jadavani
933e6a6abb mmc: msm_sdcc: vote against IDLE power collapse
During the SDCC DMA transfer, if DMA transfer time is
long enough to do IDLE power collapse then system may
go into IDLE power collapse and once SDCC DMA transfer
is completed, system wakes up from Idle Power Collapse
due to SDCC DMA interrupt. But delay for waking up
from Idle Power collapse could be as large as 5 ms which
really degrades the overall read & write throughputs
for SD/eMMC/SDIO cards.

For example, following are the performance numbers with
eMMC card on MSM8960 platform with and without Idle Power
Collapse.

Idle Power collapse enabled:
	LMDD Read throughput = ~14 MB/s
	LMDD Write throughput = ~6 MB/s

Idle Power Collapse disabled:
	LMDD Read throughput = ~25 MB/s
	LMDD Write throughput = ~8 MB/s

So this change votes against the Idle power collapse by registering
with PM QOS about it's acceptable DMA latency when SDCC transfer is
active. This latency value is one more than the latency of SWFI
which means system can go into SWFI but not in any of the other
low power modes (including Idle power collapse).

CRs-fixed: 327751
Change-Id: Iae5e12cade383544243f17c448346dd5d0faa60e
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2012-01-29 02:03:03 +05:30
Linux Build Service Account
7927d50224 Merge changes I92fff75b,I9d7e536f,I418df8c3,I684da4bd into msm-3.0
* changes:
  Input: atmel_mxt_ts: Add a debugfs attribute to show all objects
  board: 8960: Add config data for mXT1386E touch controller
  input: atmel_mxt_ts: Add support for object PROCI_SHIELDLESS_T56
  input: atmel_mxt_ts: Support runtime selection of config data
2012-01-28 04:49:08 -08:00
Linux Build Service Account
03c669ab8c Merge "qup_i2c: Move to new clock APIs" into msm-3.0 2012-01-28 04:49:08 -08:00
Linux Build Service Account
8794b582d6 Merge "spi_qsd: Move to new clock APIs" into msm-3.0 2012-01-28 04:49:08 -08:00
Eric Holmberg
e72b2d43ff usb: gsmd: Handle SMD Closing Delay Retry
Add a retry to handle the case where the SMD port is
closed and a re-open is attempted before the SMD port
close event has been processed by the remote processor.

CRs-Fixed: 327710
Change-Id: I112dc3ff3712d2a8900e4e02bcd296b50dfe0b24
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2012-01-28 02:49:15 -07:00
Linux Build Service Account
58a3cd78f8 Merge "power: pm8921-charger: Allow setting -ve cool/warm temperature" into msm-3.0 2012-01-27 21:57:57 -08:00
Linux Build Service Account
cf9ddedcce Merge "slimbus: Support more than 1 clients to use a channel" into msm-3.0 2012-01-27 21:57:57 -08:00
Linux Build Service Account
906b78ce27 Merge "usb: smd: Always call smd_close upon cable disconnect" into msm-3.0 2012-01-27 21:57:57 -08:00
Linux Build Service Account
2e6375df9c Merge "hwmon: pm8xxx-adc: Fix reading sysfs for vbatt" into msm-3.0 2012-01-27 21:57:57 -08:00
Dixon Peterson
b46bb9907e diag: Apps only polling command response when modem is up
Respond to the apps only polling command with an error
response when the modem is up.

Change-Id: Ifd9ae10a57339bf405a117cacfd987dec1875cd7
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2012-01-27 17:39:52 -07:00
Jignesh Mehta
f7bbe1f84c Camera: Fix for gemini crash due to clock disable
Change footswitch sequence for gemini
The correct sequence is,
regulator_enable, clk_enable
clk_disable, regulator_disable

Change-Id: I4fcf00c531dfca51612883a2e3cad1ef0063b98b
Signed-off-by: Jignesh Mehta <jigneshm@codeaurora.org>
2012-01-27 13:34:04 -08:00
Jing Lin
6cfc00e091 Input: atmel_mxt_ts: Add a debugfs attribute to show all objects
The sysfs attribute show method (mxt_object_show) is limited to show
object information up to (PAGE_SIZE - 1) bytes. We need a way to get
the complete information of all objects. The object information can
be obtained from <debugfs-mount>/atmel_mxt_ts/object.

Change-Id: I92fff75b37ba0cba19b137460c2144fe847c6343
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
2012-01-27 08:44:12 -08:00
Jing Lin
c7fc405613 input: atmel_mxt_ts: Add support for object PROCI_SHIELDLESS_T56
The mXT1386E touch controller supports a new signal processing object
PROCI_SHIELDLESS_T56. This object is both readable and writable.

Change-Id: I418df8c3f05dc5265a1e7581d9c7e654a9fd3c4c
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
2012-01-27 08:42:21 -08:00
Jing Lin
dc4413c370 input: atmel_mxt_ts: Support runtime selection of config data
Add support for dynamic configuration data update if the target can
support more than one Atmel chip. Platform data contains an array of
supported config data along with family ID, variant ID and firmware
version. Driver searches for matching family ID, variant ID and
firmware version, and uses the corresponding config data to program.

Change-Id: I684da4bdef56a3445acab3bb8fe47dd5279bebe5
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
2012-01-27 08:40:53 -08:00
Jeremy Gebben
2794ab6dfe msm: kgsl: remove unneeded idle calls from context create
These idles were necessary when the context switch code
preserved PM_OVERRIDE registers. That was removed some time
ago so now the idles are not needed.

CRs-Fixed: 331325
Change-Id: I90d4e1685f213a5720bf6da4e6d4a187d1eb0689
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2012-01-27 08:25:56 -07:00
Jordan Crouse
a73ed09742 base: genlock: Check for instances where handle is NULL
Check for the possibility of NULL handles passed into the
in-kernel API functions and return error where appropriate.
There is a non-zero chance that the private_data will be
cleared while the FD is still active, so check in the ioctl()
function as well.

CRs-fixed: 332835
Change-Id: Ic0dedbada2713080fef79ca188a87c578bec6d2f
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2012-01-27 08:16:34 -07:00
Linux Build Service Account
ffec7399bb Merge "input: cyttsp-i2c: Don't set mode on unsettable regulators" into msm-3.0 2012-01-27 02:51:38 -08:00
Linux Build Service Account
07366d6961 Merge "vidc: Fix cleanup error after a failure when importing ion fd." into msm-3.0 2012-01-27 02:51:38 -08:00
Linux Build Service Account
8f5c66d7dc Merge "USB: f_rmnet: Drop DTR on host suspend" into msm-3.0 2012-01-27 02:51:38 -08:00
Linux Build Service Account
154236e26c Merge "msm_fb : Check the validity of Histogram start/stop ioctls." into msm-3.0 2012-01-26 22:41:11 -08:00
Abhijeet Dharmapurikar
9d10de3ef3 mfd: pm8xxx-irq: mask non requested interrupt
When a non requested interrupt triggers, the genirq ends up calling
mask or mask_ack callback. This callback is expected to mask that
interrupt so it doesn't trigger us further.

There is a bug in the pm8xxx-irq driver where config[] entry for an
unrequested irq remains empty. So the mask or the mask_ack callback
ends up masking 0th interrupt.

Fix the mask and mask_ack callback to check if config[] is empty, if
so fill it in right then and mask the irq.

Change-Id: I85d3bfff92c52a1c3eb8123a9c3757660e20fac6
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2012-01-26 21:22:00 -08:00
Siddartha Mohanadoss
402673e9a0 hwmon: pm8xxx-adc: Fix reading sysfs for vbatt
The memory where the sysfs attribute is stored on
initialization gets overwritten causing invalid length
on the vbatt sysfs reading. Fix it by removing the
dynamic memory allocation for BTM parameters.

Change-Id: If8b88c9460b0018a159688b5ba28798d97e0b0b6
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2012-01-26 17:26:45 -08:00
Linux Build Service Account
ad4b25a942 Merge "gpu: ion: Add EXPORT_SYMBOL to functions" into msm-3.0 2012-01-26 16:02:11 -08:00