msm: kgsl: Provide a sysfs interface to force GPU power rail on

Provide a debugging interface to keep power rail permanently
enabled. Setting the force_rail_on sysfs entry will leave the
power rail always on.

Change-Id: I10a69dbf5b8cf2e2673b0fcc5e5fb5500a388904
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
msm: smcmod: Added ioctl to decrypt PIL segment images

The new proposed ioctl will be used to decrypt images during
Google OTA update from recovery mode. It makes a request to
secure world and receives a response with status. The
decryption is executed by secure world code.

Change-Id: I667ec5f7918f271f82c1942c21f09bf3e932e874
Signed-off-by: Stanimir Varbanov <svarba@codeaurora.org>
msm: smcmod: Remove the driver dependancy to FSM9xxx

The smcmod driver will be used on MSM targets to communicate with
secure world. To make possible building of the driver on MSM targets
remove the depends on FSM9xxx from Kconfig.

Change-Id: I721d791f64d1dd48bc7264b9af545afb8818ef56
Signed-off-by: Stanimir Varbanov <svarba@codeaurora.org>
msm: vidc: Fix for fuzz issues in firmware

Firmware is reporting session error for etb/ftb
due to incorrect packet sizes being sent. Fix this
by modifying the size of zero lenth array elements
in etb/ftb packets to one.

Change-Id: I2127290b9bd7f62e524d19f2fee42691d26e6d0a
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
msm: wfd: Don't enforce FIFO ordering when buffers are returned

Buffers can be returned out of order in certain situations.  As such VSG
shouldn't be expecting buffers to returned in order.

Change-Id: I2db4baf6b2196fd084e47fcb17ac1b8ec065b58a
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
msm: subsystem_restart: Correct state transition even in absence of PIL

In case the subsystem does not use the PIL framework, make sure
that when subsystem_get() is called, the state of the subsystem
is transitioned to SUBSYSTEM_ONLINE before returning success from
that API. Otherwise, the state would remain initialized to
SUBSYSTEM_OFFLINE even though the subsystem is up and running.

Change-Id: I4e608a2d9f9463c1b7d173080e1fcb4b98dc7083
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
msm: mdss: update kernel to support autogenerated dtsi files

Changes are to support autogenerated panel/mdss dtsi files
and their corresponding format

Signed-off-by: Arpita Banerjee <cabane@codeaurora.org>
Change-Id: Id7d33190f117f29ff5aca0021517020620a7afea
ARM: dts: msm: add SMP2P devices for MSMKRYPTON

Add interprocessor, point-to-point signaling devices for Modem and ADSP.

Change-Id: I4ae472dd6d11fc7f53c1d1afbcfa4478aa421d27
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
defconfig: msmkrypton: Enable SMP2P

Enable SMSM Point-to-Point driver (SMP2P).

Change-Id: Ic1b2ec8df6175065b639e716b2456eef21b73679
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
ARM: dts: msm: Update sharp panel with autogenerated dtsi

Change updates sharp dtsi file to autogenerated file and format
for dragonboard target

Change-Id: Icfdee387caeceadb90cde544c92dc47d45daafd0
Signed-off-by: Arpita Banerjee <cabane@codeaurora.org>
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
msm: pil: Move device tree parsing code into the framework

Every driver has to repeat the code for parsing device tree nodes for the
proxy unvote IRQ. So, move this parsing code into the framework level to
avoid this duplication of code.

Change-Id: I8739af63f6f3bc95aaded74d60359256e5bd7a66
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
msm: sps: enable SPS for APQ8084

Add the support for new BAM HW features and LPAE.

1. Replace data types of physical addresses of descriptor
   and data with phys_addr_t.
2. Replace sps_transfer_one() function u32 addr argument
   to phys_addr_t addr.
3. Add new MSB registers address support for LPAE.
4. Add support for two new PIPE level ERROR IRQs which
   can be enable or disable by client.
5. Add support to read the BAM PIPEs attributed to
   specific EE.
6. Add the option for BAM Clients to specify whether
   enable or disable some HW features of their BAMs.

Change-Id: If41e3d5e7e8333d7076d924dbae06caa126a1694
Signed-off-by: Dipen Parmar <dipenp@codeaurora.org>
msm:cpp: Check number of buffers before allocate stream_info

Number of buffers used by cpp is defined by user space. In
case this number is ZERO the allocated memory space will be
pointed by ZERO_SIZE_PTR. Referencing ZERO_SIZE_PTR, causes
same type of behavior as referencing the NULL pointer

Change-Id: I42665225c7d055cda6749198c35e94c1442c6d3e
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
defconfig: msmkrypton: Enable QMI libraries

Enable QMI libraries to enable QMI communication by the kernel drivers.

Change-Id: Ic7694200216674db590e6213e40c9d75a8d15c1e
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
defconfig: msm8610: add CONFIG to mark XPU violations as fatal errors

This CONFIG enables XPU violations to be fatal errors. Add this for
the debug defconfig only.

Change-Id: Ibe91a3778d5d6123abf6624a021e35988f047f13
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
ARM: dts: Enable the PMIC MPP ADC support for Camera ID

QRD SKUF board will use MPP4 as camera2_id and MPP6 as the
camera_id pin. The LED feature should be disabled and the
ADC function will be enabled in the SKUF devicetree.

Change-Id: I1a8b46fec69ff29d723f54e69764566701337422
Signed-off-by: Jie Cheng <rockiec@codeaurora.org>
u_hsuart: Fix a bug in opening the SMUX port

commit 9fdf017a (tty: n_smux: add separate close notifications)
implemented SMUX_LOCAL_CLOSED notification for clients to know
when the port is ready for opening again.  Use this notification
and defer opening until the port is ready.  If the port is opened
before this notification is arrived, the open will fail and
rmnet/dun does not work.

CRs-Fixed: 509013
Change-Id: I18bf9f08029fb98d611679d3aa65d13b088da8bc
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
ARM: dts: msm: Enable ov5648 for 8x26

Make DTS file update to enable ov5648 for 8x26.
8x26 customer platform need ov5648 as front camera.

Change-Id: Id6d16574e1fd078281f47409665a7b70a86107aa
Signed-off-by: Liu Su <suliu@codeaurora.org>
defconfig: msm: 8226: enable ov5648 for 8x26

Enable ov5648 sensor driver compile for 8x26.

Change-Id: Ie29de4ccfb5b29cf00b43f20fc83651fb64ed611
Signed-off-by: Liu Su <suliu@codeaurora.org>
msm: camera: Add SKUF GPIO config

Add GPIO22 GPIO34 to camera gpio init array
for SKUF.

Change-Id: I4508dbc59a40e41db1e7b35d7744464d8b62d6f7
Signed-off-by: Su Liu <suliu@codeaurora.org>