input: atmel_mxt_ts: Add debugfs support for suspend/resume.

Debugfs entry for touch device suspend/resume test.

Change-Id: I8b6349c0b0d7f53345171978ce37210f19de47a1
Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org>
input: cyttsp-i2c-qc: Add debugfs support for suspend/resume.

Debugfs entry for touch device suspend/resume test.

Change-Id: I2d8e40059671d58bd4cfb6b74f6ba253366cb3c5
Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org>
ARM: dts: Don't put SDHC1's vdd-io regulator in lpm for msm8610 CDP/MTP

The vdd-io regulator for eMMC powers the controller inside the eMMC
device. Setting this regulator to lpm mode when the device goes to sleep
might restrict the amount of power that the card can draw. This might
lead to undeterministic behavior and thereby put the card in bad state,
hence don't set this regulator to lpm.

Change-Id: Ia0f571673fbaa9e583e8f4c3cc079e7d2fa9bbdd
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
msm: clock-pll: Remove some init markings

Some PLL related functions may be called when a
clock controller driver probes, not only during
init. Remove some init markings.

Change-Id: I9045261da710c785a1b514c9df90abc3471b06d0
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: clock-mdss-8974: Remove an init marking

The init function in the clock-mdss-8974 driver
may be called at probe time instead of just at
init time. Remove the initcall marking on this
function.

Change-Id: Iea252b70c26b745934dc6d7a48974eb123b169c0
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: camera: Handling get buf properly when buffer queue is empty

There can be a possibility that the buffer queue is empty and
we ask for a buffer. In that case the address holding the buffer queue
structure data is not NULL but the entries of the structure are
NULL.

In such a case in addition to checking if bufq address is NULL,
when we request for a buffer, we also make sure that handle is
not NULL.

CRs-Fixed: 533384

Change-Id: I78acdc0455cd187e709722a36d9943af0444eaee
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
msm: mdss: Fix slower clocks during histogram and hist LUT accesses

Slower CNOC clock rates cause histogram and hist LUT access to take
longer time. Fix CNOC clock configuration at optimum rate in order
to avoid slow accesses to histogram and hist LUT.

Change-Id: I066bae9fd0b4261b71248cffea65d8949ff6aae2
Signed-off-by: Ping Li <quicpingli@codeaurora.org>
diag: dci: Handle incoming dci buffers correctly

The incoming dci packets contain the length of the response, log or
event expected. This patch adds checks to the size of the packet received
to be greater or equal to the length mentioned in the packet.

Change-Id: I308d3fc369c6117dd8ca024e60e044f0047bb679
CRs-Fixed: 530487
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
msm: mdss: half the y offset value for s/w deinterlace

S/W deinterlaces interleaved videos by changing the original height to
the half. Y offset needs to be half as well and this half y should be
checked again to make sure it is not an odd value, which is required
by mdp h/w.

CRs-fixed: 524678
Change-Id: I429dd6e66a8c034815ab3751c31e7e60c25a8051
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm: camera: Reserve composite 2/3 for dual VFE

When dual vfe is used, both composite irq 2 & 3
are needed to trigger camss microcontroller to
update certain vfe registers. This change adds the
support to configure the irq mask based on VFE
output path. Composite 2 is used to trigger preview
path done irq and Composite 3 is used to trigger
encoder path done irq. This change also fixes the
problem where composite mask info is clear before
clearing hardware registers.

Change-Id: Ifacec4874883c51ae5b1954d64e501536b4d8e8d
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
msm: cpp: Attach/detach iommu device on open/close node

Change the iommu device attachement to happen on
cpp_open_node and detachment in cpp_close_node.
It decrease the power consumption when Camera is not
working.

Change-Id: I7f8d65e14af2949d9512191459d313ac4d3fff9c
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
msm:cpp: Fix for spurious interrupts from CPP hardware

When power up the CPP, it generates spurious interrupts
that can confuse microntroller and halt it. This fix
clears the interrupt requests from CPP before enable
Microcontroller at "Open Camera" event.

Change-Id: I3b75f2513efc30fb0f35dd086464f0b6c3a6ff9b
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
ARM: dts: msm: Update qcom,msm-id format for APQ8084

Update the APQ8084 device tree files to use the split
version of the qcom,msm-id property, and add the proper
qcom,board-id values for the APQ8084 Simulator / CDP
platforms.

Change-Id: Ie98404e6e0ed5ca834d7fe7ac9ee0f1a3c772ce0
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
ARM: dts: msm8226: Add common dts file for qrd skuf

Add common dts file for qrd skuf to avoid duplicate
modification in v1 and v2.

Change-Id: I436bb75fd3d2d526a439537cc4d63d22642fe639
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
scsi: ufs-msm: advertise deviations from UFSHCI standard spec

HIBERN8 & Interrupt aggregation feature is broken on MSM UFS controller
HW revision 1.1.0 hence this patch advertise UFSHCD_QUIRK_BROKEN_HIBERN8
& UFSHCD_QUIRK_BROKEN_INTR_AGGR quirks to standard UFSHCD driver.

Change-Id: I14f063f5802c7dce95e4fd41a9edcb2ed566caa6
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
scsi: ufs: disable interrupt aggregation if not supported

UFS host controller specification allows the interrupt aggregation for
receiving single interrupt for multiple command completions. But some of
the UFS host controller implementation might have this feature not
supported or broken for some reason and such deviation from spec. should be
specified by setting UFSHCD_QUIRK_BROKEN_INTR_AGGR quirk.

This change make sure that if UFSHCD_QUIRK_BROKEN_INTR_AGGR quirk is set
then interrupt aggregation logic would be disabled hence controller should
raise interrupt after every command completion.

Change-Id: I464cb785f755c338d4b8be1b54436e173c0b98c6
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
scsi: ufs-msm: fix UFS version register bug

Qualcomm MSM UFS controller version register (VER) wrongly advertise the
version as v1.0 though controller implementation is as per UFSHCI v1.1
specification. This patch corrects this HW behaviour with appropriate
quirk handling.

Change-Id: Idc99e8504617e7828043e06afdaecb7ddc4218f8
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
scsi: ufs: configure the attribute for power mode

UIC attributes can be set with using DME_SET command for
power mode change. For configuration the link capability
attributes are used, which is updated after successful
link startup.

Change-Id: I44474da9eb0d27f7892306e733e4b84662732843
Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Patch-mainline: linux-scsi@vger.kernel.org @ 2013/08/26, 14:40
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
arm/dt: camera:adjust mount angle for gc0339 sensor

Adjust the mount angle of gc0339 sensor from 90 degree to
270 degree.

Change-Id: If464c66e9a0f84fb9744991e90868352a9c77e81
CRs-Fixed: 532212
Signed-off-by: Wang Wenbin <wenbinw@codeaurora.org>
usb: usb_bam: disable BAM before reset BAM pipes

Resetting the BAM pipes is allowed only if the USB HW core is switch from
BAM mode to Legacy mode. So the USB HW core is de-attached from its BAM
until the BAM reset is completed.

Lack of this setting to the USB HW core may result in halted core.

Change-Id: I8ef69ccdb8a8b926e428829a42764332263ba6f3
CRs-Fixed: 526649
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>