msm: vidc: add support to set VP8 QP range

QP range differs from codec to codec. This change adds support
for VP8 QP min and max range.

Change-Id: Ia44cf885a8b6f71b7eef51076968021ae68d7a7e
CRs-Fixed: 578892
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
ARM: dts: Add new DCVS frequency on 8084

Per request changing the gpu frequencies to match the current
clock plan.

Change-Id: Ia5e29d31694aed47e4caefa1c48d5fdea56b4afb
Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>
msm: camera: Restructure ISPIF probe handler

v4l2 subdev needs to be created only if probe succeeds.
Register v4l2 subdev for ISPIF only if all resources for ISPIF
are available than creating and deleting v4l2 subdev in error case.

Change-Id: I2ef8eea5f04cdbd15207d8498b1cd8800b854436
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
drivers: phy: add generic PHY framework

The PHY framework provides a set of APIs for the PHY drivers to
create/destroy a PHY and APIs for the PHY users to obtain a reference to the
PHY with or without using phandle. For dt-boot, the PHY drivers should
also register *PHY provider* with the framework.

PHY drivers should create the PHY by passing id and ops like init, exit,
power_on and power_off. This framework is also pm runtime enabled.

The documentation for the generic PHY framework is added in
Documentation/phy.txt and the documentation for dt binding can be found at
Documentation/devicetree/bindings/phy/phy-bindings.txt

Change-Id: I02be3faa7082e3c93c14ca3ac57059569c905eed
Cc: Tomasz Figa <t.figa@samsung.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: ff764963479a1b18721ab96e531404c50fefe8b1
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
camera_v2: jpeg_10: Don't enable clock when changing rate

Only change rate, avoid two clock enables.

Change-Id: I7573bbb1b0802e000b1de80ae7c044fd642ce852
Signed-off-by: Kamen Kirov <kkirov@codeaurora.org>
ARM: dts: Add @address property for CMA nodes

Previously, the CMA devicetree bindings were set up in such a way
that having multiple nodes with the same @address property would
merge them all into one node. The CMA bindings have since been
fixed so that is no longer an issue. Add back the @address part
of the bindings to fully match with the devicetree specification.

Change-Id: I8a527c4d94c4830a45384c02f63c8a120c40114b
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
cnss: Include WCNSS Security APIs in CNSS platform driver

As a part of supporting PMF (802.11w) feature on CLD WLAN host driver;
the requirement is to implement BIP algorithm which uses AES-CMAC
encryption. For this AES-CMAC mode encryption, we need to use
crypto_alloc_cipher and crypto_free_cipher APIs.

Hence adding the equivalent WCNSS APIs in qcomwlan_secif.c and linking
this file in CNSS platform driver.

Change-Id: Id6b171d3f27e58d9d4ddad8db8870ed1a5fc0943
CRs-Fixed: 589096
Signed-off-by: Yue Ma <yuem@codeaurora.org>
scsi: ufs: remove byte count duplication in long sequential tests

The test byte count is incremented in the test-iosched framework code,
and in the ufs_long_sequential test it is again incremented.
This leads to a double amount of bytes "transferred" and therefore to
a double calculated throughput.
This patch removes the duplicate incrementation of the byte count.

Change-Id: Ieeddd7379d6e641400108892f27fc8f81ec7f245
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
usb: ehci-msm2: Fix LOW Speed device enumeration issue

Disable ULPI_TX_PKT_EN_CLR_FIX which is valid only for HSIC core.
It otherwise causes enumeration failures with low speed devices.

Change-Id: I13e750e9b5a589aca61a06c36f66d1075e863801
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Chandra Devireddy <cdevired@codeaurora.org>
msm: Rename "qcom" device tree prefix to "qti" for USB2 OTG

Rename properties and compatible strings to comply with new
naming convention.

Change-Id: I0aa2773e222a7597c8d4b0c97e6e85a3912fa6c8
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
USB: phy-msm-usb: Route HSUSB controller signals to HSPHY2

HSUSB controller can communicate to primary and secondary
PHYs based on the MUX setting which is configurable via
a TCSR register. Enable HSUSB core to communicate with
secondary PHY as primary PHY is used by USB3 core.

Change-Id: Icf2372897d9ae3904d4ce37517fddbafc4c261e9
Signed-off-by: Chandra Devireddy <cdevired@codeaurora.org>
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
ARM: dts: msm: Enable HSUSB Core in device mode and use HSPHY2

Configure usb_otg controller to use hsphy2 and enable otg-control
to user control with default mode as PERIPHERAL.

Change-Id: Ia59533fc8642639541e8b2aba96f7594664bdc53
Signed-off-by: Chandra Devireddy <cdevired@codeaurora.org>
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
media: dvb: pipe work queue optimization

Having a pipe work object for each sps callback quickly
caused queue to fill-up when playing from memory where TSPPv2
hardware processing is very fast.
Each pipe now has its own dedicated queue, and in case the same
event repeats (which is the likely scenario) the events are merged
into one work object with event count instead.

Change-Id: I00b99f3d8de3718c73a238520d49e5bdb3843545
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
msm: SSR: Add functionality to load restart groups from device tree

Subsystems on certain devices might need other subsystems to
restart when they undergo a subsystem restart.

The support to restart multiple subsystems together exists
currently. Use this feature to facilitate the restart groups
being initialized during run-time by reading the dependancy list
from the corresponding device tree entry using phandles.

Add a property called "qti,restart-group" in the respective dt
file device entries. This property is to be filled with the
phandles corresponding to the subsystems that need to restart
together.

Also, make a note that if a restart group is included for one
subsystem, the corresponding group should be included in the
other affected subsystems as well. The order of the subsystems
in the group doesn't matter.

Eg. subsys_0 has a property:
qti,restart-group = <&subsys_0 &subsys_1>;
Then, subsys_1's ssr-restart-group property should be identical:
qti,restart-group = <&subsys_1 &subsys_0>;

Change-Id: I22e3c46ab2b943b94227647d11863c4524a63005
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
msm: VPU: Avoid reading secure status register

Use alternative nonsecure register to read Firmware shutdown state.
Increase size of firmware logging queue to avoid dropping messages.

Change-Id: I559e16e465eeda0f706f784e9fd651f43236b77a
Signed-off-by: Ahmed Abdul-Salam <aabdulsa@codeaurora.org>
ARM: dts: msm: Modify bus vector for RNG client on msm8974

Modify the RNG (Random Number Generator) bus vector to use a different
originating master id, this change helps alleviate some slowdowns in boot
time noticed in targets where CPU is artificially bus throttled below a
threshold frequency.

Change-Id: Idf2a1d128f56e6aafebcbf0184ef2454d385be34
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
ASoC: msm: Add support for ASM loopback

Add ASM loopback driver. When audio path wants to use filters in DSP,
it will do a loopback in ASM.  The new ASM loopback driver enables
the loopback.

Change-Id: I84b81cab6c3b2e57855dd4b3bb5e7ed01618e4ec
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
Signed-off-by: Vimal Puthanveed <vimalp@codeaurora.org>
ARM: dts: msm: Add device tree node for ASM loopback

Add ASM loopback device tree node

Change-Id: I84e2a6d55d440fee85ddde4845a5d37c41bd31a9
Signed-off-by: Vimal Puthanveed <vimalp@codeaurora.org>
ASoC: msm: flush if prior and current backends rate not matching

It is found that during device switch from one backend
with one sample rate to another backend with another sample rate
the command to QDSP6 ADM which maps audio stream session to a
particular backend would not get carried out until pending
data of audio stream session from previous backend is either
read out or flushed. This scenario occurs when application
stops providing more buffers to retrieve captured data.
Remedy is to flush upon detection of rate mismatching.

Change-Id: I8284dd076af4c625268a9c6a5f45c3f6146e5c14
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
Signed-off-by: Vimal Puthanveed <vimalp@codeaurora.org>
ASoC: msm: Handle data loss at device switch for FM

- When device switch happens there are underflow errors
in LPASS. And there is some break in audio observed for
around 2 sec.
- To handle this, ASM run command needs to be sent again
to DSP at device switch.

Change-Id: I7d5e279796db190c454b3d1b39ad9add8f933319
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
Signed-off-by: Vimal Puthanveed <vimalp@codeaurora.org>