qpnp: pwm: Amend the GPLED LPG channel boundary check

There should be an "AND" condition instead of "OR" to check
for GPLED LPG channel boundary check. Amend the bug.

Change-Id: I8430a5b5fa0b9b20dc1ec23e42ab39f45866addd
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
diag: Fix writing of error message for mode command

Currently, when a mode command that is not the mode reset command
is sent, a kernel error message is written. This is wrongfully written.
Make changes so that when a mode command is sent that is not the
mode reset command, an error message is not wrongfully written.

Change-Id: I07666d5cda3c63804cc1dffc7cf1672915c02c1f
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
msm: Fix compile error due to incorrect include path

Trace header file location moved under <mach> to
fix cross compilations error.

Crs-fixed: 447863
Change-Id: Icb00dc6ebdba715ad1c432e2a8a9b34fcf3a08bd
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
msm: ipc_logging: Replace spinlock_t with rwlock_t

Currently with the spinlock, all drivers are serialized(SMD_PKT,
BAM_DMUX etc.) when they try to log into the IPC logging even though the
drivers log into their own context space. The read/write lock will
enable multiple drivers to log into their context space in parallel.
This will help more in the case of drivers which are
performance-critical like BAM_DMUX.

ipc_log_context_list is read often and updated rarely so replace the
usage of spinlock_t with rwlock_t.

Change-Id: I91f18ef67b80edf6f045f93f51ad2f48e46b3bb4
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
usb: gadget: bam: config endpoint before enable

All endpoints must be configured before enable,
otherwise they fail to be enabled.
This change adds missing configuration of endpoints.

Change-Id: I3cfb51d12dba3fe45a29a14205a1659bfa9258d4
Signed-off-by: Anna Perel <aperel@codeaurora.org>
arm/dt: apq8074: Add device tree for apq8074 v1

Add device tree file for apq8074 v1 with information of
memory reserved for other images not accessible by the
kernel and the size and address of the qseecom node.

Change-Id: Iab3f2615f206f8a5dde35fb2efc9c8479f26e82b
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
usb: usb_bam: Check null callback pointer before call.

When BAM IRQ fires to wake up system from power collapse,
usb_bam_work is called.
If bus resume occurs before usb_bam_work is scheduled,
bam_data_resume will set the callback to NULL.
This change prevents call of null pointer callback.

CRs-Fixed:480707
Change-Id: I5241d0507df82667b201e6f1a376e3036c1b424a
Signed-off-by: Anna Perel <aperel@codeaurora.org>
crypto: msm: Add failure logs

When SPS driver reports a failure to process a request,
we need to output the sps_iovec_contents that was issued
to the SPS driver.

Change-Id: I84d48880cade41e5b9ce652f4dba1a84b857fb72
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
msm: clock-8974: Don't clear the sleep enable voting register

Bootloaders or the RPM setup certain clocks to turn off
during Krait power collapse using the sleep-enable
branch voting register. Ensure that this register isn't
touched.

Change-Id: I4fe80d05c1979ef563ad7d738cbedf1cd78dc4dc
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
ASoC: msm: qdsp6v2: Remove FENS and WideVoice Kcontrol

WideVoice and FENS is associated with device calibration.
FENS and WideVoice is enabled and disabled using device
calibration in ACDB data. Remove kcontrols for these
features.

Crs-fixed: 455917
Change-Id: I58581e91cead0fab5abc28d390058dea29621fce
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
msm: qpnp-power-on: Support PON major revision 1 reset sequence

With PON major revision 1, there is now a new register at offset
0x5B that is responsible for enabling the reset enable. Support
this new major revision spec while maintaining compatability for
revision 0.

CRs-Fixed: 481677
Change-Id: I10793ca48236c04a25c2f05572f94de2d02ee621
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
ASoC: msm8x10: Add support for Voice2

Add front-end DAI Voice2 to enable a second voice path in the DSP
for calls from the second modem.

Change-Id: I6223a5319ebd42450395e7f047a9c82a78be5b9d
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
mmc: sdhci-msm: fix issue with power irq

SDCC controller reset (SW_RST) during probe may trigger power irq if
previous status of PWRCTL was either BUS_ON or IO_HIGH_V. So before we
enable the power irq interrupt in GIC (by registering the interrupt
handler), we need to ensure that any pending power irq interrupt status
is acknowledged otherwise power irq interrupt handler would be fired
prematurely.

CRs-Fixed: 487962
Change-Id: If4693869210bc8b361dadb2b68a47b6ac8707e0f
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
arm/dt: dragonboard: enable i2c_1 node

Enable i2c node for touch screen to work.

Change-Id: I51cd63522b6ad4e0b167abd5c2b403e1cb414439
Signed-off-by: Asaf Penso <apenso@codeaurora.org>
block: Remove "requeuing urgent req" error messages

It is possible for URGENT request to be requeued/reinserted if it was
fetched during the creation of a packed list. This end case is rare and is
not handled at the moment.
This patch changes the messages notifying of the above to debug level
(instead of error) in order to clear the dmesg log.

Change-Id: Ie8bc067e61559a6f702077b95c5dbcc426404232
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
mdss: dsi: Control MDSS bus clocks from within DSI driver

DSI driver needs to ensure that the MDSS AHB and AXI bus
clocks are enabled before accessing any registers or
sending DSI commands, to avoid potential unclocked register
accesses or DMA timeouts.

Change-Id: I69cf48d7f8228e8a15a6335912f712555cb641eb
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
usb: gadget: storage: Prevent race condition from stalling thread

Parts of the mass storage gadget driver are prone to race conditions
which could leave the main worker thread in an unwakeable state.
This will lead to the function to not be responsive to the host's
command requests and will result in a host-issued reset. Protect
concurrent accesses to certain state variables via spinlock to
prevent this from happening.

CRs-Fixed: 480025
Change-Id: I5232d9367ff311817f63f8bfbea0c78ef2b5a4db
Signed-off-by: Jack Pham <jackp@codeaurora.org>
arm/dt: msm8974: Add /cpus node

Add the /cpus device tree node and populate it with
CPU-specific information to comply with the Device Tree
specification.

Change-Id: I6b9fd5fa4e2aa6b66145b3062559cf341b2cea1e
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm: camera: Fix memory leak in camera close op

Delete and free residual entry of command ack while closing camera.

Change-Id: Ica0f8934f3faa2079570730723df0d74e10784e8
Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
msm: kgsl: Add support for coresight

Adding support for Coresight debug bus to work with the GPU,
including registering graphics core with Coresight and a coresight
interface to GPU through sysfs.

Change-Id: I9508659ca7d7d67e8a8becba41d06be76360c570
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>