ASoC: wcd9xxx: Fix incorrect error message

Error message is getting printed even though there
is no error. Change code to print only in case of
error.

Change-Id: Ic381c26e559d09538c2c7c77e7907964765ab4cb
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Configure IIR filter stages for codec sidetone

Configure IIR filter register bank to store filter
coefficients for codec sidetone operation.

Change-Id: I2301903ce7f43aaaebeda1763b993a7ea7333d40
CRs-fixed: 479113
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
misc: Remove pmem driver completely

PMEM is now completely deprecated in favor of other memory
management schemes. Remove it completely so no one ever tries
to use anything like it again. The header file is purposely
left in the tree for now until userspace applications properly
clean up references to it.

Change-Id: Ie1cd8f15098d4064b1f0f60645d2bd02008c6763
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
block: urgent: Fix dispatching of URGENT mechanism

There are cases when blk_peek_request is called not from blk_fetch_request
thus the URGENT request may be started but the flag q->dispatched_urgent is
not updated.

Change-Id: I4fb588823f1b2949160cbd3907f4729767932e12
CRs-fixed: 471736
CRs-fixed: 473036
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
msm: kgsl: Print out page fault memory usage info

Add the memory usage info in the GPU page fault error message.
This help GPU page fault debug

Change-Id: I40988e7572781a2935a099046163560edcab9432
Signed-off-by: Alex Wong <waiw@codeaurora.org>
msm: kgsl: fix kgsl_mem_entry refcounting

Make kgsl_sharedmem_find* return a reference to the
entry that was found. This makes using an entry
without the mem_lock held less race prone.

Change-Id: If6eb6470ecfea1332d3130d877922c70ca037467
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
msm: vidc: Add support to send DECODEONLY flag to client

For some CODECS, some frames are used only for decoding but
not for display. This information needs to be conveyed through
DECODEONLY flag. Add support to send this flag to client.

Change-Id: I878677bdf98692288887bb3c70e645b13f4abc85
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
msm: mdss: Add interface specific continuous splash screen support

Add continuous splash screen support for each interface i.e.
command mode and video mode.
Command mode panel do not need to keep a copy of the splash screen
once the update has been sent to the panel.

Change-Id: I75c6268fde0fcbea225a3cebe0e6ce1085130c85
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: pil-pronto: Add support for error services ready interrupt

Set up the "error services ready" IRQ so that the subsystem
framework can check for this indication as a boot up requirement
for WCNSS.

Change-Id: I3acf87a71478e9fa3fe0fae44013d31602ccaec4
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
msm: mdss: propagate error in case of panel on failure

There are cases in which panel on can fail for any reason, such as
unable to properly get and lock on to hardware resources. For such cases
the error needs to be properly propagated so that the state of MDP can
be reset and user space application can invoke some recovery mechanism.

Change-Id: I0da17038e11e6b972740dd6362c1a75bd2bd2b28
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: board-8930: Add correct regulators for isa1200 chip

The regulators used by isa1200 in 8930 are different from
schematics. So, fix the regualtor entries for isa1200.

CRs-fixed: 473633
Change-Id: I4a8edd1428f93810b7216c4b4efb878c12820925
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
msm: clock-generic: Add generic library for mux clocks

The clk_ops defined in this library can't be used directly, but they
implement majority of the code necessary to handle common clock types. The
HW specific operations are handled by calling ops implemented by the HW
specific driver. The clk structs defined in this library contain fields
that are not used by the helper library, but commonly needed by the HW
specific ops. They also provide a *priv field to store other uncommon data.

To start with, this file implement generic ops for a mux.

Change-Id: Ibc44b95934f402dbcbb1996d77a61d40d9e53f20
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
msm: clock-generic: Add generic library for divider clocks

The generic divider clock library can support fixed divider clocks and
divider clocks that can support a range of divider values.

Change-Id: I9c03a4b01abad3f7f73d56f89a9e8caef30067c3
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
msm: mdss: Free framebuffer once timing generator is off

The temporary framebuffer holding the splash screen is
freed before timing generator is turned off.
This fixes the white screen flash seen while transitioning
between the splash image and kernel frame update.

Change-Id: I23ab9ce5d8e4f22df2a39f447ce406da6ed248b8
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: gdsc: Collapse core memories during GDSC collapse on 8974

When a core is power-collapsed the contents of its internal
memories need not be retained. Collapse the memories to
save some additional power.

Change-Id: I1f9fd9a54017d24069d007b531b0a9706415a8b5
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: kgsl: add guard page support for imported memory

Imported memory buffers sometimes do not have enough
padding to prevent page faults due to overzealous
GPU prefetch. Attach guard pages to their mappings
to prevent these faults.

Because we don't create the scatterlist for some
types of imported memory, such as ion, the guard
page is no longer included as the last entry in
the scatterlist. Instead, it is handled by
size ajustments and a separate iommu_map() call
in the kgsl_mmu_map() and kgsl_mmu_unmap() paths.

Change-Id: I3af3c29c3983f8cacdc366a2423f90c8ecdc3059
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
arm/dt: msm8610: Add support for Atmel touchscreen

Add necessary GPIO, clock and DT settings for Atmel touch
controller to work on CDP & MTP.  This includes settings for
i2c, and disabling the spi bus which was configured on
the same address.

Change-Id: Ic1e8322603bf454d5772ef4fecbc57765c9c0dd9
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
configs: msm8610_defconfig: Enable Atmel touchscreen

Enable atmel touchscreen by adding configuration for
ATMEL_MXT.

Change-Id: I0f4bb40cbf5f10d23bdbb7b35653aa33fba209ec
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
msm: wfd: Convert all spinlocks to mutexes

There is no need to use spinlocks within this context, when mutexes are
enough.

Change-Id: Ibf20f6c6b80285131c9eb15af077137e11acf409
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
msm: wfd: Protect vb2 call with locks

The vb2 framework is only somewhat threadsafe.  Hence we need to
functions being called from multithreaded and preemptable contexts with
a mutex.

Change-Id: Ia31f937438540c38b2c65dd3b568981e1c526743
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>