msm: acpuclock-8064: Lower max L2 speed to 1134MHz

There are some testing showing that L2 at 1188MHz may cause
some stability issue. Therefore, lower the max speed to 1134MHz
unitl the root cause is found.

Change-Id: Ie38b96958d07d7a09ac8ef4eb1793970b5563776
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
arm/dt: msm8610: Enable GPIO Keys

Enable GPIO key support to device tree for camera
snapshot, camera focus and volume up keys.

Change-Id: Idde5c9e7d4db99e165313636b9c4a316516dd802
Acked-by: Chun Zhang <chunz@qti.qualcomm.com>
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
msm: mdss: Fix incorrect check for error

Error is reported even when mdss_register_irq is successful.
Fix check to report error case.

Change-Id: I09ce1d9d70016cc2bfdb237877112a053c6fa8c1
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: mdss: Fix typo while continuous splash dt parsing.

Fix typo while continuous splash dt parsing.

Change-Id: I7c4d4d874a1e2580fb05f42b0fcb1ba3d0b0d9be
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Revert "Revert "ARM: 7169/1: topdown mmap support""

This reverts commit f27e4f0e730b99ca4dabed0b408d96dbf73a8fac.

An alternate fix has been proposed where userspace programs
set ADDR_COMPAT_LAYOUT. Bring back the topdown mmap support.

Change-Id: Ibd6e74d406db3a5ddb609e2d2a7a6e9dc2080eca
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
defconfig: 8610: Add perf defconfig

Add support for msm8610 performance config.

Change-Id: Id2cfa67300ed0dec302957e6d1986af8f385427a
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
defconfig: Enable crypto device driver on 8226

Enable crypto device driver on this device.

Change-Id: I0a45652ffbc454dc0367f793f8820f3101a7f515
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
arm/dt: msm8226: Add a new LUN as CD-ROM in mass-storage

Add a new LUN(lun0) which will be exposed as a CD-ROM.

CRs-Fixed: 432310
Change-Id: I1bb327083948c4aea190d40f61ff3407792a6aea
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
USB: ci13xxx_udc: Fix kernel panic during composition switch

The control endpoint requests are not nuked properly during
composition switch.  The stale request is getting completed
during enumeration of the new composition.  Kernel panics if
completion handler access already freed data.  This is happening
with RNDIS interface.

The Android composite driver dequeue the control request before
removing the composition.  The current code returns immediately
if the queue is empty.  The control endpoint queues are handled
differently.  The EP0 IN endpoint is only exposed to the composite
driver.  The controller driver takes care of queuing the request
on EP0 IN or EP0 OUT based on control transfer direction.  When
the composite driver dequeue request on control endpoint, check
both direction endpoints queues.

When USB bus is reset, nuke the control endpoints.  Flushing the
endpoint will not call completion handler.

Test endpoint queue list, request list, endpoint descriptor and
soft pull up status under spinlock to prevent any races between
dequeue and queue paths.

CRs-Fixed: 474578
Change-Id: I3d7ca4be4d6cee65707879c6c9b501f442e53018
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
msm: mdss: hdmi: request DDC GPIOs when cable presence is confirmed

Currently GPIOs required for DDC transaction are requested when hpd
circuitry is turned on. But these GPIOs are needed only for EDID fetch
and HDCP authentication which can happen only when cable presence has
been confirmed. Create new DDC power module in order request these
GPIOs only when cable presence is confirmed. This change enables
alternate use of these GPIOs in non-hdmi debug use-cases.

CRs-Fixed: 478955
Change-Id: I67229d88eb92e39bc82fca0397fa9e13ad51c87b
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
msm: kgsl: Turn on timestamp based IOMMU clocking for IOMMU-v1

Turn on timestamp based clocking for IOMMU-v1. This was turned
off due to global timestamps not being updated correctly. Since,
global timestamp updates are now fixed turn this feature on.

Change-Id: I26a0b10b4b3982882ef304bae68b24b1d876bc7d
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
msm: kgsl: Fix the offset of FSYNR1

Define the offset of FSYNR1 IOMMU register correctly for IOMMU-v0.

Change-Id: Ibcbc863e1be02da3be22dd1a9cfe4a41e043d503
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
arm/dt: pm8110: add devices for gpio and mpps

Add devices for the 4 GPIOs and 4 MPPs on the pm8110.

Change-Id: I2c895b20fb8b3bb50416972b88b5f1b28209c45b
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
msm: kgsl: Report cff dump virtual address range correctly

When IOMMU is used then the vitual address can range from the base
address used when per process pagetable is disabled upto the last
address that can be assigned to a kgsl allocated memory region.
Report this range correctly in CFF.

Change-Id: Ib1798434b60f1e3cd4c0570456bf4b075ffa2afd
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
arm/dt: msm-pm8941: Update reverse scaling function for die_temp

Update reverse scaling function to use for setting the pmic
die_temperature.

Change-Id: I3a3cb5974379e8c2211ef6c11ab331ae0153fe3f
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
thermal: qpnp-adc-tm: Add die_temp debug logs

Add more die_temp debug logs and fix the units for
converting millidegC to K during reverse calibration.
Also add bound checks in the status read to prevent
spurious interrupts.

Change-Id: I888216383ae9e8aed83bc5b22b4e36499b500c11
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
msm: clock-9625: Remove V2 test only clocks from the common table

The v2 test only clocks are left in the common measurement mux table while
introducing the common and v2 test only tables. Therefore, remove them in
this patch.

Change-Id: I2dcd61f92e1cb0fa32f0d5da3b2d9439570bef95
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
diag: Add notification that diag supports feature mask

diag does not currently set the bit in the feature mask denoting
that APSS diag supports the sending/receiving of the feature mask.
Without this, the diag on the peripiherals are unsure whether APSS
diag supports this feature. Make modifications to set the bit in
the feature mask so that diag on the peripherals will know whether
APSS diag supports feature mask sending and receiving.

Also, the function diag_dci_exit is not being called. Add appropriate
calls to diag_dci_exit.

Change-Id: I7cb67a96d6f10af1702bab4e0458bce55e437678
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
msm: mdss: Implement basic assertive display functionality

Provides starting control logic and register access for initialization,
configuration, and input to assertive display (AD) feature. AD allows for
several modes of operation that can be used to increase display visibility
under various viewing conditions.

Change-Id: I5db510e36c6b9394626e8efe8160d792c8bdda01
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
msm: mdss: Move assertive display calculation to workqueue

Removes the possible case of delaying display_commit completion. AD_input
ioctl returns with last strength/backlight values calculated to aid in
management of AD feature from userspace.

Change-Id: I4c9a2941deece8f406b19b6b206c9fadf4f7250a
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>