msm: mdss: Debug log for assertive display inputs

Log updates to ambient and strength inputs on assertive display.

Change-Id: Ie96baf2cb6f4af4c74e154322b870f4eb58cbfb2
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
msm: vidc: send video cmd opcode in apr packets to Q6

Q6 expects video command opcode in apr command packets
sent to it,  instead of the individual command id.
Also remove redundant Q6 functions.

Change-Id: I0239f88791af28ee9ba2975d841394e3c6fa9805
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
ARM: dts: msm: Update QoS settings for msm8226

Update the QoS settings to the new values recommended
after performance evaluations.

Change-Id: Id02448da681550624659b43f7a3a8311f3d6fcd2
Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org>
ARM: dts: msm: Utilize PMI8962 devices on msmsamarium-sim

The msmsamarium simulator utilizes the PMI8962 boost-bypass
regulator as the parent for several PMA8084 regulators.  Capture
this relationship in the msmsamarium-sim device tree.

Change-Id: I39adad04e7f8de1a4c43bc835073719b9d9e3d4e
Signed-off-by: David Collins <collinsd@codeaurora.org>
slim_ngd: Make sure transaction is not dereferenced after it's freed

Every read transaction over slimbus is a set of one transmit and one
receive. Receive part frees meta-data for the read transaction since
it is no longer needed, and the transaction-ID can be reused.
Make sure that the transmit function doesn't try to dereference the
transaction meta-data after possibly receiving a response.

CRs-fixed: 515802
Change-Id: Id736ad368d4944a6aabc89f4ff295d664bc5efa0
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
usb: usb_bam: Code quality checking fix

Fixed a code-quality checking issue:
In the usb_bam_store_inactivity_timer() function, the timer variable
is initalized by the 'strsep()' function return value and there is not
no check whether NULL has been returned. Added an if statement for
verifying non-NULL value before dereferencing this variable.

Change-Id: I9d976cb03aae81e7c25923ee84868279896d8b03
Signed-off-by: Daniel Segal <dsegal@codeaurora.org>
regulator: qpnp-regulator: Add support for reading all possible voltages

Extend the voltage range configuration data so that it fully
describes all possible set point values for each regulator type
in addition to specifying which range to use in the case of
overlap.

Change-Id: Ifdef83720f1c9ef6f74e64ce27ec5e7e27ccba9f
Signed-off-by: David Collins <collinsd@codeaurora.org>
tty: n_smux: Add separate close notification

New SMUX events SMUX_LOCAL_CLOSED and SMUX_REMOTE_CLOSED sent to clients
during close operation.

Change-Id: I838d99069a3575be371976700bc92b64b32959af
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
ARM: dts: msm: select external rsense for msm8226-dvt-v2 QRD

Since external rsense is used instead of internal one,
use-external-rsense should be enabled in the device tree.

Change-Id: I105c1bf66e67ab4f2a44c46c73aa49927e35185d
Signed-off-by: Xu Kai <kaixu@codeaurora.org>
ARM: dts: msm: select external rsense for msm8226-skuf-v2 QRD

Since external rsense is used instead of internal one,
use-external-rsense should be enabled in the device tree.

Change-Id: Ifd573c46c7892bc52e6a88dc1b5c47e98de24b03
Signed-off-by: Xu Kai <kaixu@codeaurora.org>
camera_v1/v2: Fix multiple JPEG integer overflow issues

Fixes multiple issues in the gemini and jpeg 1.0 cores when parsing
hw commands:

1. Fixes integer overflow issue when calculating the length of the
command buffer.
2. Fixes signedness issue with the command count.

CRs-fixed: 504640
Signed-off-by: Kamen Kirov <kkirov@codeaurora.org>
Change-Id: I0a701c67b93cc97af119b31639db699e5ae58489
power: qpnp-charger: Fix corner cases for soc based resume

Currently SoC based resume only triggers when SoC is queried. This
does not happen when the charger is inserted/removed, so sometimes
when the battery is almost full and the charger is inserted, charging
will not resume even though SoC is below the set resume limit. Fix
this by scheduling work to read the SoC when usb is inserted.

Also, SoC based resume only checks for battery status to be full.
However if charging never finished, there can be a case where battery
status reads discharging but the charger is connected. In this case
SoC based resume should restart charging. Fix this by checking for
battery status to be not charging instead of full.

Change-Id: I74d318ac4a9b45f0de31c885319c38f6e2732060
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
msm: camera: Fix various small issues in cci driver

Remove some unused ioctl exposed, Also add
some bound checks for ioctl user params.

Change-Id: Ifdd441fdb25fd20b005c4e4e1ebe4e203f1216ac
CRs-Fixed: 511382
Signed-off-by: Hariram Purushothaman <hpurus@codeaurora.org>
arm/dt: msmsamarium: Add SMP2P entries for the modem

Add the input and output GPIO nodes to allow the modem
subsystem restart driver to use the associated SMP2P
bits.

Change-Id: I44e5003ecf4671b4780244066149e658aaa0f8f5
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
diag: Remove unsupported smd control channel code

The diag smd control channel implementation only supports
a single data buffer for processing data. Remove stale code
that tries to access a second buffer.

CRs-Fixed: 521621
Change-Id: I9dc0224d9f4d0b9cb0a836cf2bd33459c15cc2a7
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
defconfig: 8610: disable mousedev for defconfig and perf-defconfig

Disable mousedev from defconfig to avoid it being
opened by the native sensors hal library.

There are occasions when it does not return from the open
system call on its node /dev/input/mice and android boot
hangs in system_server process indefinitely.

Change-Id: I05c15eb424e22c697dfc5cc308e716aa3e2b7a78
Signed-off-by: Sanrio Alvares <sanrioalvares@codeaurora.org>
mmc: core: Refactor bus speed selection code

The bus speed selection code in mmc_card_init() is convoluted, refactor
the code to simplify this and make it simpler for adding new bus speed
capabilities.

Change-Id: I1ee5365eaad42298a053d0b2d64b87b64bd05c5e
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
msm: mdss: Compensate for low VBP in MDP clock calculations

MDP latency is 4 lines with CAF and when the panel's vertical
Back porch value is lower than 4, the MDP clk rate needs to
be increased by 25% to compensate for the latency.

Change-Id: I732de52b4f5387d5c7992e893ea7cad5c6951811
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
ARM: dts: msm: Add SPMI PMIC arbiter device for MSMKRYPTON

Add the basic attributes in the device tree for the SPMI PMIC Arbiter
and the QPNP interrupt controller.

Change-Id: I1d2f69b3e394f646765bbc88f3c5e537c3d992fb
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
ARM: dts: msm: Add msm-pmd9635.dtsi for PMD9635 PMIC devices

Add the msm-pmd9635.dtsi PMIC file. This file will contain PMD9635
PMIC devices.

Change-Id: I0434fe66823b1948029e9851fe1e299f33901001
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>