Require any code path which intends to touch the hardware
to take a reference on active_cnt with kgsl_active_count_get()
and release it with kgsl_active_count_put() when finished.
These functions now do the wake / sleep steps that were
previously handled by kgsl_check_suspended() and
kgsl_check_idle().
Additionally, kgsl_pre_hwaccess() will no longer turn on
the clocks, it just enforces via BUG_ON that the clocks
are enabled before a register is touched.
Change-Id: I31b0d067e6d600f0228450dbd73f69caa919ce13
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
The block layer implements a mechanism for verifying that the device
driver won't be notified of an URGENT request if there is already an
URGENT request in flight. This is due to the fact that interrupting an
URGENT request isn't efficient.
This patch fixes the above described mechanism in case the URGENT request
was returned back to the block layer from some reason: by requeue or
reinsert.
CRs-fixed: 473376, 473036, 471736
Change-Id: Ie8b8208230a302d4526068531616984825f1050d
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Changing channel id offset in IPA properties of WWAN interfaces
to the correct offset.
Change-Id: Ib07a87713e9f5a2dc21e4d72bf3655ab5e6b47fd
Signed-off-by: Vladislav Mordohovich <vmordoho@codeaurora.org>
Corrupted section data should not be notified to the application,
TS packets holding sections with transport error indicator (TEI)
are discarded.
CRs-Fixed: 473875
Change-Id: I43f500a8cde86ad970360a7f1b50615f16fb7a89
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Back and front cameras are mounted at different angles with respect
to reference plane on 8226 CDP, MTP and QRD. Change mount angle
property to offset it. Create new dtsi file for CDP since the mount
angle is different for CDP and QRD. Remove length field in reg
property since the register address corresponds to i2c slave address.
Change-Id: If69a2489a982de3b203effa5f7fb225ea9916727
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
Add secure demux API allowing to set log level verbosity.
Log level can be set from user-sapce via a debugfs entry.
Default is no logging.
Change-Id: I80f3900f1788f54f02904fc7a4b317cc7c06a6db
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Since this rcg is used by both the qseecom and scm drivers, a
voter clock is necessary to provide the greater of the two requested
rates.
Change-Id: I67dde8e1e06ea917aebb36d4cd741e2d8172bd10
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Increase the period size in proxy driver to allow ten millisecond
worth data for capturing multichannel content.Add kcontrol to
allow configuring the proxy backend to six channels.
Change-Id: I1a3c7bf2cde686134f22d2a9a1737909cb2c3729
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
Enable the QPNP bms driver.
This driver controls the battery management system and will report
state of charge.
Change-Id: Ib206be0eb6a44ba6652d5882096ed72ecba39fa8
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
Add support for the Battery Management System driver in MTPs and
FLUIDs by enabling the status of the BMS node.
The BMS will report the state of charge of the battery.
Change-Id: Iea1d2e7440052ec2a6b894d823f10410956d3b32
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
When the required property "qcom,low-voltage-threshold" was added to
the BMS driver, it was not included in the pm8226 devicetree. Add it
back in in order to allow BMS to probe.
Change-Id: If7575bdfba57d135e77d786c753a663791c493c8
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
Only enable L2 redirect of IOMMU page tables for targets
that support this. msm8610/msm8226 does not support this
feature.
Change-Id: I09ebfaccf4e4e4de52f1f0be638bc5a8dc0dc586
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Add MSM8x12 to socinfo and remove dummy socinfo handling for
MSM8x10 as it is no longer needed.
Change-Id: Id75ba26bb6e5c8d7519e0fc1818cf50b82bbbc4a
Signed-off-by: David Ng <dave@codeaurora.org>
Update the physical location of shared memory for new memory map.
Change-Id: I3e66b70c0d7724f2061b2169025ad0aaff966720
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
All the log messages need a \n so that they can be posted
properly in the kernel log output.
Change-Id: I91c12351bb1c92841373aa539c93870619605258
Signed-off-by: Yan He <yanhe@codeaurora.org>
This change is to enable frame buffers lock between multiple processes
through genlock.
Genlock is a in-kernel API and optional userspace interface for a generic
cross-process locking mechanism.
Change-Id: If07f024092caee4a257cd70d79799f4231a2cf46
Signed-off-by: Alex Wong <waiw@codeaurora.org>
Add new API to get the file descriptor reference to a lock suitable for
sharing with other processes.
Change-Id: I1b61f44b6d5745a628eb98dfdc876767c46552ea
Signed-off-by: Alex Wong <waiw@codeaurora.org>
The logic to write a value to mbhc scaling mux register
first and then update a bit got reversed. This update of
bit is codec specific and should be done after the common
register write else it will get overwritten.
Change-Id: I21ccb88ef69b96420b9e8a671b8e97202eefb47f
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
USB is accessing an invalid memory which results in EBI error.
To find the endpoint information and the address being accessed,
dump all the usb request info required for debugging memory access
violation issue from APP's proc using the trace framework.
CRs-Fixed: 430455
Change-Id: Ie99c31f43dfa9858a9ec2756903574888629e341
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>