mmc: core: Clean up after mmc_pre_req if card was removed

Make sure mmc_start_req cancels the prepared job, if the request
was prevented to be started due to the card has been removed.

This bug was introduced in commit:
mmc: allow upper layers to know immediately if card has been removed

Change-Id: I737ec44941e3d8af19fc7a4c572cfb116a26809c
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-by: Per Forlin <per.forlin@stericsson.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
[asutoshd@codeaurora.org: Fixed merge conflicts]
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
msm: LPASS-8960: Retrieve LPASS failure reason

Add feature to retrieve and report LPASS subsystem reset reason.

Change-Id: I8609a0ebe42a9bcea59c8b9bba30de89b2989260
Signed-off-by: Ravishankar Sarawadi <crsaraw@codeaurora.org>
msm: board-8930-pmic: Add platform data for Speaker driver

Supply platform data for speaker driver with info of additional
speaker inputs supported. The pmic pm8038 supports one additional
input path to Speaker Power amps. Add this to pdata as part
of PMIC sub devices platform data.

Change-Id: I8045cc517a29853590b436f86cac5504557de049
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
usb: gadget: mbim: Set NtbMaxDatagrams to 0

Set ntb max datagrams count as unlimited to enable better
performance on the uplink with bursty traffic composed
of small packets.

Change-Id: I3cc29de8b3f57dac3007bfa4b2d183911dacaa33
Signed-off-by: Anna Perel <aperel@codeaurora.org>
msm: camera: Correct typos in VPE driver.

Correct the register address of VPE_AXI_ARB_2
and device name during irq request.

Change-Id: I49f89b8d1d6fc64981a9cce0efbdf7f214360cb5
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
msm: kgsl: Add SVS frequency for 8064

The lowest current frequency is still a vote for nominal voltage.
Add a frequency that allows kgsl to vote for SVS.

Change-Id: I719c3a4c3ba7909bfca1c4756ea0ae176f5f689e
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
ASoC: msm: change clk_get() to clk_get_sys() for Audiodrivers in 8660

Impact:
clk_get() expects the device information as the first parameter to
while assigning the clock.

Problem:
All the sound devices use the same interface clock. The ids of these
devices may vary depending on the target used ( ffa, surf, fluid etc)
as they are dynamically assigned in msm_snddev_init.
So, it is not possible to provide the device id for clk_get().

Change:
clk_get_sys() is used instead of clk_get() for 8660 targets.
clk_get_sys() is a drop-in replacement for clk_get() except it does
not take a device pointer as an argument. Instead, it takes an
arbitrary string that is matched against the right-most column in
the clock table.

Change-Id: I71d1e60ae3b1f958548565e749e9304c7a4e86f7
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
msm: watchdog: always manage interrupt on core 0

Previously the interrupt could end up being enabled or disabled on
either core. Since we switched to the percpu irq framework, it is a
problem if we enable the irq on one core and disable it on the other.
So, guarantee that the irq is always setup and removed on core 0.

Change-Id: Ibebbc1787171893f2115e975d6e610f446602804
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
msm: qdsp5v2: Move away from the subsystem map apis

The subsystem map APIs are no longer the prefered method for
mapping into the kernel address space. Use ioremap directly for
physical memory allocated with allocate_contiguous_memory.

Change-Id: I646a38acd97a9f8aed9ae2d41bcf561fd465d2b2
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm: vidc: Avoid reconfig if EoS is received after SPS/PPS

After core init, there is a hang if the data buffers
are not sent to the core as the core is not responding
to the STOP command. With this commit, reconfig is
avoided and EoS done message is sent to the client.

CRs-Fixed: 360438
Change-Id: I3c3d22aa2ffe37fc3b9b0cf94df9cc066a4299f2
Signed-off-by: Saikumar Kondaparthi <saikumar@codeaurora.org>
msm: smd: Export SMD initialization function

Export msm_smd_init function so that it could be called from within a
board file in order to satisfy driver probe order dependencies.

Change-Id: I5b684acbc43861dbbcb25cea5cb9eafac54d5c04
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
msm: board-copper: Initialize SMD driver during early board init

The SMD driver needs to be initialized before the RPM driver which in
turn is required by the regulators and clock drivers.

Change-Id: Ib59f747fdb88065ead36245ac6994a0c9d0c0f7e
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
arm/dt: msmcopper: Add device nodes for krait-regulators

Add devices to be used for krait regulator driver. There are four such
regulators in this configuration, each representing the supply for one
core.

Change-Id: I9686d5b44460f56ac484b4d10170916a5bc05639
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
msm: rotator: add YUV444 interleave format support

Add support for H1V1 interleave (YUV444) to rotator
in msm_rotator_get_plane_sizes().

Change-Id: I57ff5236b7e9329b72f9983da9874de938a821a2
Signed-off-by: Kyong Hwa Bae <kbae@codeaurora.org>
msm: clock-8960: Add remaining PCIE clocks for 8064

There are some PCIE clocks need to be supported. Add
them in this patch.

Note that for pcie_phy_ref_clk, it sources from an external
clock controlled by pcie driver. Therefore, only when pcie
driver is enabled and configures its source clock, this clock
can be enabled.

Change-Id: Ie91193fc00d64989dad660c79d56d49eac39ba20
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
msm: clock-pll: Use bit name macros in copper_pll_clk_enable

Replace use of the BIT() macro with #defines that are already
present for these bits.

Change-Id: If62269e3b9d089811ea28fdb0e4e7ac2aa86d00e
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: vidc: Use pre-computed frame delta values in WFD use case

In WFD use-case with frame skipping enabled, we wish to fool the core
into thinking that that the frames are coming at a consistent rate so
that we don't run into any issues with the core's rate control
mechanism.

Introduce a client-settable property that dictates what the timestamp
delta between any two frames might be.

Change-Id: Iea3f97879227b7932543d3449d311758dc4a2f59
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
ASoC: msm: add platform routing for voice call via MI2S use case

There can be board design which MI2S block is connected to external
CODEC. External CODEC can be used for voice call purpose.
Enable routing so voice call downlink, uplink, echo
cancellation can be transferred to off-chip modem.

Change-Id: Id240eb5ba4fcea52c5e261e2c09610fcbb718d65
Signed-off-by: Patrick Lai <plai@codeaurora.org>
msm: ipc: Security update to IPC Router

Allow processes belonging to "net_raw" Android group to interface with
IPC router.

CRs-Fixed: 351731
Change-Id: I6dceb98b4227675bcb5e216f5a1a78e5ecdabbef
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
msm: kgsl: Fix the pagetable comparison function for IOMMU

When kgsl_iommu_pt_equal function is called compare the actual base
addresses of the pagetable instead of comparing the domain pointer
against the pagetable base.

Change-Id: Ibebbcdc8b6cb6c10b03a79d2d640c28197034b8f
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>