The page_mapcount_reset function was renamed from
reset_page_mapcount when back-porting zsmalloc from 3.10 kernel.
Revert this change to enable compilation of zsmalloc.
Change-Id: Iba09fc3f0294dae746d2e2b026e0015711c22f01
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Earlier, we were releasing all the MDP clocks during
lk to kernel transition. We only need to release
the mdp dsi clock.
Change-Id: Iafa43afc1194e5f7cb50445a9542a21b16ffaef5
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
In the command mode panel, all the clocks can be voted off if
there is no display update. To support this feature, every
operation which requires h/w access will be guarded with clock
vote on and off.
Change-Id: If56a656b9965a6044c38de5aa85969256d581121
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
When the BMS detects that the charger is in constant voltage (CV)
charging, it will start SoC based on average current. This can cause
issues however, if the charging current suddenly spikes low when the BMS
is reading it from the IADC. There has been instances where current is
reduced by 100mA while charging without any drop in battery voltage when
SoC calculations are being done. When this happens, the charging
adjustment algorithm will make SoC jump high.
Fix this by using iavg, the average current over the last calculation
period calculated from the coulomb counter. This value is a much better
representation of the actual charging current and is less prone to
sudden drops.
Change-Id: I75adfffedfa19370e9c3e4355bd03fa1f59c4f50
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
In some platforms such as fsm9900, multiple instances of qce50 hw
may be supported. Each qce50 HW has an ndp-bam. Each qce50 HW
can support multiple instances of qce_dev platform device.
Each qce_dev has its own configured pipe set and associated qce50 HW,
defined by crypto-base and bam-pipe-pair fields in the device tree files.
This patch based on io address, it decides to create a new qce50 hw
instance or use the existing known instance at device probe time.
Furthermore, this patch does iomap for only once for each HW BAM instance
to avoid issue with bam driver. If modprobe, and rmmod of qcedev,
and qcrypto are not in first in last out order, kernel may crash in
bam driver in the last rmmod.
This saves virtual space for IO if multiple instances of qcedev
share the same instance of HW BAM.
Change-Id: I1565b1976981b0512832ff793e0adb29c4be3ccc
Acked-by: Chemin Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
DSI clock and data lanes should be in LP11 state before
enabling the hardware reset line for some panels. These
panels might need initialization delay after DSI host and slave
in LP11 state to reach functional. No data traffic
is allowed for such panels during this master delay.
CRs-fixed: 572179
Change-Id: I6a004f55a117f1adfbfbfce85231ef45997e4e6f
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
On an error, the list of pages is walked and destroyed. Since the list
is being destroyed, use list_for_each_safe to avoid list corruption.
Change-Id: Ia397a11d2d890b3458745820c79df2adaa088ade
CRs-Fixed: 565183
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Enable msm_sharedmem UIO driver on targets which use RemoteFS
(over QMI) and RFSA.
CRs-Fixed: 477427
Change-Id: I63d95aa0fcbbdc17d64fb7749ed50c3890551dce
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Add new devices which need to maintain the shared memory
address for RemoteFS and RFSA
CRs-Fixed: 477427
Change-Id: Id5f3ea2a827d5a30b06d872d7a72468f1fd7718f
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Add new device driver to provide a standard interface for its
clients (like RemoteFS and RFSA) to be able to memory map their
respective allotted shared memory address in the client's address space.
The shared memory (a transport buffer) address is unique for each
individual client and is made available to the driver via device tree.
This driver uses the existing UIO framework to facilitate the clients
mmap requirements. Each individual client will be able to use a unique
UIO device for this purpose.
CRs-Fixed: 477427
Change-Id: If07b88086b5f1b87845962818094644575629fcf
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
- Only AMRWB format is supported in compress capture
path, use default codec.id(SND_AUDIOCODEC_AMRWB) if
request codec id is invalid.
- Use fixed band mode and dtx mode since these are the
only supported parameters for AMRWB format
Change-Id: I45a48952a5833c3e85588b515d38d311064cd7fb
Signed-off-by: Mingming Yin <mingming@codeaurora.org>
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
Change filter->priority to unsigned int. Since it was defined as integer,
it may have had negative value and cause accessing an array outside
of its region
CRs-Fixed: 561802, 561825
Change-Id: Ie72aa09b07e79b0b67081b74e3b2057de30f03d0
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>