msm: mdss: fix pipe buffers setup

There are cases in which updates can happen on pipes but back buffer is
not updated. In these case updates should be reflected on pipe with the
current buffer being displayed.

Change-Id: I3bf5d7ec86a6169e76203de76c98721320c73e66
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
wfd: Remove ion_handle_get_flags API

The ion_handle_get_flags API is being deprecated. Currenly, only
uncached IOMMU mappings are supported anyway so remove the call
to get the ion flags.

Change-Id: I83b8f8c8899ad771d26a3ffc3346a1ad3d3aa3b5
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
arm/dt: msm8226: lower minimum voltage for S2

Allow 1.05 V requests for S2.

Change-Id: I6acd6378d9d566888641b93d8ac26c86364e2beb
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
arm/dt: msm8226: Enable uart in qrd device tree

Enable qrd platform uart to have console and logs.

Change-Id: Ic6af08b8f3bcff71f619ca6408a94173db0cde67
Signed-off-by: aiquny <aiquny@codeaurora.org>
FM: Add iris_fm device to device tree

Remove the device from board file and moved it to
device tree.
Add device tree documentation for iris_fm platform
driver.

Change-Id: I8eb89d0da9966b0a007d4fe31161da9f48f6cd24
CRs-fixed: 424360
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
usb: gadget: Implement ECM over IPA

Add bam transport parameter for u_bam_data interface to
support two types of data transfer - over bam2bam and over ipa.
Add required calls for ecm_ipa driver which will handle the
transfer of data over IPA.

Change-Id: I3fd73b159676f5475c527bf52208533e65dddb1d
Signed-off-by: Anna Perel <aperel@codeaurora.org>
Signed-off-by: Amit Blay <ablay@codeaurora.org>
msm: ipa: a2_service: Handle A2 power collapse and embedded data

A2 service component is responsible for connecting the embedded
and tethered pipes between IPA and modem, embedded data connectivity
and A2 power collapse.
A2 service transports the data to/from the modem through IPA.

Change-Id: Idbd4ae622f52afa5818a1a2f6b00c7b9649904bd
Signed-off-by: Vladislav Mordohovich <vmordoho@codeaurora.org>
USB: HSIC SMSC HUB: Add check before hub_vbus regulator disable

According to the DT binding documentation hub_vbus regulator
is optional, it could be irrelevant for a particular platform.

Change-Id: Ib68555b9d2ede181d718b3183abaafbe6e30bc4b
Signed-off-by: Eugene Yasman <eyasman@codeaurora.org>
arm/dt: msm9625: move bam_dmux entry

The bam_dmux entry only applies to the v1 version of msm9625, so move the
entry out of the version independent dtsi and into the v1 specific dtsi.

Change-Id: I5bdabff78fa866f4091b813e3f04e8607228ecc2
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
power: qpnp-bms: Fix CC conversion precision

In a previous patch, the precision of the coulomb counter conversion
was reduced. Fix this by converting the CC value to picovolt-hours
before dividing by r_sense_uohm to convert back to microvolt-hours.

CRs-Fixed: 451755
Change-Id: I53f99365b1c5008bd11f2c509d5ee5ba25cd67a5
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
power: qpnp-bms: clean up vbatt functions

Currently the BMS has multiple functions for reading VBAT_SNS from
VADC. There is no reason for this. Change them all to use only one
function and delete the rest.

Change-Id: I5438907537b86a296d8564a491a98f50ba937b90
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
msm: wfd: Fix mapping into incorrect domain

The type of domain should be int, not bool. Previously, we were getting
lucky because MDP's domain would either be 0 or 1.

Change-Id: If569a93fa2a6863da4410a716c473e722481ed33
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
hwmon: vadc: fix compilation errors

Fix some typos which cause compilation errors when
VADC is not selected in defconfig.

Change-Id: Idb4b532bfa3ef9e33866c9e196b9f78489c462a9
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
msm: sps: enable a pipe only when it is disabled

BAM HW may publish the number of available bytes to the peripheral multiple
times if we enable the same pipe for multiple times. And some peripherials
may overestimate the available bytes by summing the sizes. Thus, enable a
pipe only when the pipe is disabled currently.

Change-Id: I8697ba5003eaed1efbfecc10161cc6b178c43d0b
Signed-off-by: Yan He <yanhe@codeaurora.org>
msm: iomap: Align MSM_SHARED_RAM_BASE to 2MB

Align MSM_SHARED_RAM_BASE to 2MB to allow it to be mapped
using a 2MB block in an LPAE-enabled system.

Change-Id: Ie58de95e94cb9c1c8b6e5d89c6c928ad7c50ad05
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm:qseecom: Add validation checks for memory cleanup for qseecom

Add validation checks to handle memory freeing &
prevent NULL pointer access.

Change-Id: I7383b10037ca0ce3f049de060dc70f3ad4b9ca55
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
msm: Kconfig: make DLOAD mode independent of the target

DLOAD mode does not depend upon any particular target. It defaults
to n unless explicitly selected in a defconfig.

Change-Id: I6a70bee99d19454de3e00ac9fc27120045ab6d40
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
msm: 8226: enable DLOAD mode for msm8226

Enable the device to go into DLOAD mode after restarts due to
panic or watchdog bites.

Change-Id: I937e6e91aff81669bd8f1a4fdeff2021cad31304
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Merge "wfd: Remove ion_handle_get_flags API"
lib: vsprintf: Add %pa format specifier for phys_addr_t types

Add the %pa format specifier for printing a phys_addr_t
type and its derivative types (such as resource_size_t),
since the physical address size on some platforms can vary
based on build options, regardless of the native integer
type.

Change-Id: I2ba0003d689a9a2bd13f1a1e2d897b6eacc5d224
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>