Commit Graph

120054 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Linux Build Service Account
d2064cfab2 Merge "diag: Add support for 9615, 8260A, and 8974 targets" into msm-3.0 2012-01-26 16:02:11 -08:00
Linux Build Service Account
530d7b0643 Merge "mfd: pm8921-core: Add support for PMIC PM8917 chip" into msm-3.0 2012-01-26 16:02:11 -08:00
Linux Build Service Account
d862129674 Merge changes Ie69b7aeb,I7b80a00a,Ia7e1be18,I54c9fa02,I2303f623 into msm-3.0
* changes:
  usb: msm_otg: vote and unvote for CXO_CLK instead of D0
  wcnss: Enable CXO for PMU accesses
  msm: pil-riva: Enable CXO clock to access PMU
  msm: pil-q6v4: Proxy vote for L23
  msm: pil-riva: Proxy vote for L23
2012-01-26 16:02:11 -08:00
Linux Build Service Account
236c38d9b2 Merge changes Ic0dedbad,Ic0dedbad into msm-3.0
* changes:
  msm: kgsl: Add a constant for adreno_ringbuffer_issuecmds flags
  msm: kgsl: Add GPU snapshot support
2012-01-26 16:02:11 -08:00
Linux Build Service Account
f43501e9e1 Merge "msm: camera: Fix spinlock init issue" into msm-3.0 2012-01-26 13:56:26 -08:00
Luis GarciaCalderon
49a21e0f09 vidc: Fix cleanup error after a failure when importing ion fd.
An invalid value in the kernel address variable causes an
ion unmap error when attempting to clean up after a failure
occurs when importing the ion fd in the function
vidc_insert_addr_table().

When an ion import fd failure occurs, cleanup is not required.
During failure we now go directly to bail out and the cleanup
code is skipped.

CRs-Fixed: 332841
Change-Id: I3aa99a278806b8f8031c1618ab067391909105c7
Signed-off-by: Luis GarciaCalderon <luisgc@codeaurora.org>
2012-01-26 13:24:45 -08:00
Abhijeet Dharmapurikar
bc38f636fa power: pm8921-charger: Allow setting -ve cool/warm temperature
The current code assumes that the cool or warm battery temperature
can only be +ve numbers. Remove this restriction by allowing -ve
temperature settings.

Change-Id: I3c54b854a8fdf934efcf1ff21b36c7a0f763692a
CRs-Fixed: 320660
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2012-01-26 12:10:52 -08:00
Jeff Ohlstein
5ff17d5dcf input: cyttsp-i2c: Don't set mode on unsettable regulators
Currently during boot, and every suspend and resume, we call
regulator_set_optimum_mode on every touchscreen regulator. However,
some regulators don't support this function, and this will cause
set_optimum_mode to print an error when this occurs. Correct this by
checking if it is valid to call set_optimum_mode on a given regulator
before doing so.

Change-Id: I71f0f14b16d9f333bd409d9d5150f11a7ccd8fdf
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
2012-01-26 11:58:32 -08:00
Sagar Dharia
4ec2ff4a32 slimbus: Support more than 1 clients to use a channel
There is a possibility that 2 or more clients can use the same
channel, one as producer and the other(s) as sink.
The slim_query_ch API gives the ability for a client to specify
channel number it needs to use.
Reference counting is used to make sure channel is not deallocated
until the last caller deallocates it.
Another counter (def) is used to keep track of channel definition and
removal. Channel definition is sent to hardware when the producer
and/or consumer(s) connects ports to the channel. Channel is only
removed when all clients indicate they want to remove channel.

Change-Id: Ic5084680419e16ee238d2e62c02e5430170b387d
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
2012-01-26 11:24:09 -07:00
Jordan Crouse
e0ea762600 msm: kgsl: Add a constant for adreno_ringbuffer_issuecmds flags
Use a #define constant instead of a bare constant for the flags
parameter of adreno_ringbuffer_issuecmds.

Change-Id: Ic0dedbadecabe396a51201859a444e68ba64c53d
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2012-01-26 10:38:54 -07:00
Jordan Crouse
156cfbc7c3 msm: kgsl: Add GPU snapshot support
Add support for snapshotting the state of the GPU in a binary format. The
snapshot can be pulled from sysfs and parsed off-target.  The advantage is
that far more information can be encapsulated in a snapshot then can be
printed on the console during a hang.  Snapshots are automatically created
during a hang, or can be manually triggered by writing 'trigger'
in /sys/class/kgsl/kgsl-<n>/snapshot where n is either the 2D or 3D device.
Snapshot data can be pulled from 'dump' in the same directory.

Change-Id: Ic0dedbad1c8473b3b109582b95a8771b0d341f05
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2012-01-26 10:38:53 -07:00
Linux Build Service Account
6ceb71d67a Merge "driver: libra: qcomwlan_pwrif: Add support to put regulator in LPM mode" into msm-3.0 2012-01-26 09:29:49 -08:00
Stephen Boyd
48a32916f3 usb: msm_otg: vote and unvote for CXO_CLK instead of D0
The D0 clock buffer is ignored by the RPM and thus the RPM turns
off D0 even when Linux has requested it. Vote on CXO_CLK instead
until the RPM properly handles D0+CXO_CLK resources.

Change-Id: Ie69b7aebabf9638878a75026a99be76eeed7ecd8
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2012-01-26 09:28:41 -08:00
Stephen Boyd
98a82edeb4 wcnss: Enable CXO for PMU accesses
The PMU registers are clocked from CXO out of power on reset.
Turn on the CXO clock so that these registers are accessible.

Change-Id: I7b80a00a3bd592f24d6604f0f05b3ed1f5172139
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2012-01-26 09:28:41 -08:00
Olav Haugan
bd2b6925de gpu: ion: Add EXPORT_SYMBOL to functions
Several functions in the ion interface is missing
EXPORT_SYMBOL. This is needed to allow clients to
use these functions from kernel modules.

Add EXPORT_SYMBOL to functions that are supposed
to be exposed.

Change-Id: Ieb2810d85205a7492b8fe28536fb20ea090e830f
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2012-01-26 09:18:18 -08:00
Padmanabhan Komanduru
207b565179 msm_fb : Check the validity of Histogram start/stop ioctls.
Histogram start/stop ioctls are called now without checking
if the panel is on or not. Add check to validate the ioctl
calls in this aspect.

CRs-fixed: 327910
Change-Id: Idc110408841c1b813dd2331a63cafe80243baeac
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2012-01-26 08:45:31 -07:00
Linux Build Service Account
6d9e5dc21b Merge "msm_fb: display: Cleanup log messages for ION buffer management" into msm-3.0 2012-01-26 04:44:49 -08:00
Linux Build Service Account
8804e3599a Merge "msm: camera: Add support to V4L2 architecture" into msm-3.0 2012-01-26 01:35:30 -08:00
Linux Build Service Account
53ece89d43 Merge "vidc: check for ION flags." into msm-3.0 2012-01-26 01:35:30 -08:00
Ravishangar Kalyanam
62f887ce4c msm_fb: display: Add LVDS display driver support for Chimei WXGA
Add LVDS display driver support for Chimei WXGA LVDS display panel

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Change-Id: If8830295814d0e27f49dfffdeb96db63f73809ba
2012-01-25 22:53:06 -08:00
Suresh Vankadara
055cb8ecdd msm: camera: Add support to V4L2 architecture
New targets are following V4L2 architecture for
camera. Update 7x27a camera drivers to support
new V4L2 architecture to unify all camera drivers
in the same architecture.

Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
Change-Id: Ie23ac982375041c06b68537d5784d8cdbbc9bf04
2012-01-26 07:35:24 +05:30
Jack Pham
c02d481cd4 usb: smd: Always call smd_close upon cable disconnect
During subsystem restart, SMD_EVENT_CLOSE is sent via callback,
which the DUN and RMNET control modules mistakenly interpret as the
channel being closed automatically. This causes a problem when the
modem comes back online and notifies via SMD_EVENT_OPEN: the gadget
driver now has a handle to an open SMD channel even without a USB
connection. Then when the USB cable is reconnected, due to disconnect
being called first, it accidentally closes the re-opened channel,
causing the following smd_open() to fail because it is busy being
closed.

Instead, simply always call smd_close() on actual disconnect,
so that the subsequent connect will successfully be able to open the
channel.

CRs-fixed: 327710
Change-Id: Ia7b3e52638f9bdc96c083cb16e0231e7af7ff884
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2012-01-25 17:10:35 -08:00
Shalabh Jain
10f5f4351b diag: Add support for 9615, 8260A, and 8974 targets
Also re-structures the code so that adding new target
support will be easier.

Change-Id: I5ad9100932da5454afbf1c996d71a6338dc59dbb
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2012-01-25 15:34:38 -08:00
Ravishangar Kalyanam
cb6b2e9c9e msm_fb: display: Add external display PM suspend support
Remove PM suspend registration from HDMI driver and add it in
MSM framebuffer driver

Change-Id: Ibd15ce1de541d2fe4dae24fc0d2f580328915fc0
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2012-01-25 15:16:39 -08:00
Ravishangar Kalyanam
8562e7893e msm_fb: display: Remove HDMI PHY power settings for proper PLL locking
Remove HDMI PHY power settings for controlling PHY along with HDMI PLL
in clock driver for avoiding random PLL lock detect failures

Change-Id: I4016d5711b06785be3dd47782a187196d61445de
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2012-01-25 15:15:41 -08:00
Willie Ruan
5106035d9a mfd: pm8921-core: Add support for PMIC PM8917 chip
The PMIC PM8917 chip is very similar to the PM8921 chip. Modify
the pm8921-core driver so that it can also handle PM8917 chip
which has different number of gpios and mpps, and no LPG/PWM,
no LEDs and no vibrator.

Change-Id: I252adc2ddc4bcd9bb8b8fb5113444356ba7c969e
Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2012-01-25 14:21:54 -08:00
Linux Build Service Account
240fc0f57b Merge changes I8a26c5d2,Ia93a8940,Ibc48a0f7 into msm-3.0
* changes:
  board: 7x30: Specify the correct min/max touch coordinates
  input: tsc2007: Specify max/min coordinates from platform data
  board: 7x30: Specify the correct min/max touchscreen coordinates
2012-01-25 12:21:14 -08:00
Linux Build Service Account
0f4134b0ff Merge "msm_fb: display: increase wfd resolution to 720p" into msm-3.0 2012-01-25 12:21:14 -08:00
Harini Jayaraman
9fffe017e5 qup_i2c: Move to new clock APIs
Replace use of clk_enable() and clk_disable() with calls to
clk_prepare_enable() and clk_disable_unprepare(), respectively.

Change-Id: Ib29b5e4340f1a8cbde85efe3d129470788cbf0cd
Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
2012-01-25 10:47:51 -07:00
Ravishangar Kalyanam
175d1281a5 msm_fb: display: Cleanup log messages for ION buffer management
Cleanup log messages for ION buffer allocation and de-allocation
functions

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Change-Id: I87f44273a9de1899fdb7c30e90a8a1a5715c4dc5
2012-01-25 05:57:45 -07:00
Linux Build Service Account
280d904cda Merge changes I10e7c171,I784ffca6 into msm-3.0
* changes:
  usb: rmnet: Add timestamps for SKB life cycle in UL and DL directions
  usb: mdm_bridge: Reduce number of interrupts in TX Data Path
2012-01-25 04:54:51 -08:00
Linux Build Service Account
0b6f5655dd Merge "ssbi: add remote spinlock support" into msm-3.0 2012-01-25 04:54:51 -08:00
Linux Build Service Account
f3002121e8 Merge "msm: rc: Add support for MSM GPIO TSOP IR Reciever driver." into msm-3.0 2012-01-25 02:20:43 -08:00