mfd: PM8018: Add GPIO digital voltage level definitions

PM8018 GPIOs need default voltage level to initialize.
The voltage level is used during the defalut configuration
setup during boot up and at any time when gpio needs to be
reconfigured.

Add these voltage level definitions so that they can be used
for such PM8018 GPIO voltage level configuration.

Change-Id: Ifc5e77e976826e3493a972f9b0f6a412709acb33
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
msm: serial: Add check for c_cflag with NULL in set_termios

Serial console doesn't work when shell on console functionality
is disable and resuming from system suspend. termios values are
seen with zero when shell on console is not enabled and resuming
uart from suspend which is putting UART controller in abnormal
state. Hence check for c_cflag value in set_termios for NULL,
and doesn't proceed with changing the UART controller register
with wrong values.

Change-Id: I0e049eec6379ba23a02c2831c20d33e28e1b24f1
CRs-Fixed: 356097
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
msm: copper: Disable devices not supported on RUMI

Set the status to disable for all devices that are not
supported on RUMI.

Change-Id: I41e1cc173242d36e605f6052be3428c3ff249d7a
Signed-off-by: Sathish Ambley <sambley@codeaurora.org>
msm: qdss: use spinlock instead of mutex for the etb driver

In preparation for subsequent changes that will provide an api
path into the etb driver which can be called from atomic context,
change mutex based mutual exclusion to spinlock.

Change-Id: I40c91124933b30ca8c5db6aa4c77a0f21884ccf9
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
msm: qdss: provide an api to force disable qdss sink

Introduce a new api (qdss_disable_sink) that can be called from atomic
or non-atomic context to force disable the current qdss sink(s).

This api will be used as a way to force stop the sink (eg. etb) from
accepting any more trace data and hence avoid being polluted with trace
data that is uninteresting after an event of interest (eg. userspace
process crash) has occured.

Change-Id: I2a474ba9f51275aa3fa77ee35c39149663dfb03c
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
ASoC: msm: Remove support for apq8064 simulator

apq8064 simulator is not supported any more. Clean up the code.

Change-Id: Id9f9f7822f012ac0fc952248c92cba5e0b594b28
Signed-off-by: Jin Hong <jinh@codeaurora.org>
ASoC: msm7x27a: Add mixer command to configure device volume.

The mixer to configure device volume is needed to control volume
for device during voice call.

Change-Id: I7b4c16896bd9b6e81d05f0fd84589c90492a30a8
CRs-Fixed: 351918
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
msm: smsm: define new bit - SMSM_ERR_SRV_READY

SMSM_ERR_SRV_READY indicates when the hardware watchdog and error handling
modules on the remote subsystem are initialized and active.

Used by the subsystem restart framework to determine if a remote restart
has been sucessful within the time limit allowed.

Change-Id: I579e49a6e66a72a4daad2ab97681112dc0bcf2ea
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
msm-camera: update default mount-angle of 8x30 camera sensor.

Preview on 8x30 MTP camera is being displayed rotated by 90
degrees. Corrected the default mount-angle of s5k3l1yx so that
it displays properly on MTP.For CDP, the angle is set to 0.

Change-Id: I0fad525c7e3ab95fb4cb487b1f5c6b3a50189af6
Signed-off-by: Bikas Gurung <bgurung@codeaurora.org>
msm: sysmon: Introduce sysmon_get_reason() for querying failure reasons

The sysmon_get_reason() API queries a subsystem that has crashed for
the reason of the failure and returns it as string.  Common code between
this new API and sysmon_send_event() is refactored into sysmon_send_msg().

Change-Id: I1e4fda7794f493ee286346ade7b1e779a43d1e4c
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: camera: Fix for ZSL and RAW snapshot issue

AXI configuration is failed for ZSL(Zero Shutter Lag) mode,
and for RAW snapshot cases, because these cases are not handled
in camera driver. Update camera driver with ZSL and RAW
snapshot cases to handle axi configurations for these modes.

Change-Id: I880f8ef9059017a012299a3c153af6d510469b3d
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: kgsl: expand axi error logging

Read and log the gpu virtual and physical address that MH thinks
caused the AXI error from the debug bus.

Change-Id: I2c381845f3e1e4f82bc42732c46a8ffa14658a92
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
usb: gadget: Add remote wakeup support to f_rmnet BAM-BAM

On USB suspend, f_rmnet with BAM-BAM transport will register for BAM
wakeup notification. Upon wakeup event from the BAM, the u_bam will
trigger a USB remote wakeup.

Change-Id: I1d1be987f225c0b2edf5bf9af75e2dd15f8c045a
Signed-off-by: Amit Blay <ablay@codeaurora.org>
msm: usb_bam: Fix null pointer reference in connect_pipe

This change fixes a potential null pointer reference issue.

The sps_pipes array should hold references to allocated pipes.
But in connect_pipe, after the pipe is allocated, the reference
to the pipe is not saved in this array. So the array will always
hold NULL pointers. If a code will try to access a pipe reference
stored in this array, it will crash.

Change-Id: I166ce7b5506eeed99f0dfd65beb7db1e97a5d2e0
Signed-off-by: Amit Blay <ablay@codeaurora.org>
usb: gadget: HSIC wake from suspend workaround

For some MSM targets, there is an HW limitation that doesn't
allow wakeing up from USB bus suspend, when certain USB core
clocks are turned off as part of runtime suspend.
When this workaround is turned ON, the clocks that are mandatory
will not be disabled on runtime suspend.

Change-Id: Iab397c4f3b2918a5aa5eef7a60123bf7ede58d81
Signed-off-by: Amit Blay <ablay@codeaurora.org>
msm: camera: Change MT9M114 clock setting

8930 uses cam0_clk for back sensor and cam1_clk for front sensor.
Change MT9M114 to use cam1_clk on 8930 since it is front sensor.

Change-Id: I2d2924a148fe6726233a070956d213a52c823654
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
vidc: Flush the cached buffer only if the buffer is valid.

Before flushing the cached buffer check for the following
- When buffer allocation fails, do not flush the buffer
  report error and return.
- Check if the buffer handle is valid, before flushing the
  buffer.

CRs-Fixed: 358873
Change-Id: I58b869d2d2eb72f991649d62a5186c7b0f5adcf4
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
defconfig: 9615: Enable android configs

These configs are needed to enable adb logcat
and adb tcp forwarding.

Change-Id: I6f5bf2328b23dd121347199ddf2ce46ff5e7f1d6
Signed-off-by: Sridhar Parasuram <sridhar@codeaurora.org>
ks8851: Update link status during link change interrupt

If a link change interrupt comes in we just clear the interrupt
and continue along without notifying the upper networking layers
that the link has changed. Use the mii_check_link() function to
update the link status whenever a link change interrupt occurs.

Change-Id: I71f7405418dd4af003dfc263733133bbe529c212
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
msm: timer: add stub function for msm_timer_get_sclk_time

This function is used in drivers shared across 8960 and 8974, so provide
a stub function to allow it to compile.

Change-Id: Ifc6cfe051c121726ddb6ef5ea62e874d34c75501
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>