The PDO selection should be done by either the Kernel or User Space.
Setup a callback that selects the PDO based on what the Voltage Max
is set to when the function is called.
refer to https://gerrit.mot.com/1403781
Based on Gerrit https://gerrit.mot.com/#/c/1301690/
Change-Id: I54a14b47e79637c681cc24c78a75a1206ecd903e
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1770248
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The charger driver should directly call into the policy
engine and select the proper PDO. Otherwise the first PDO
is selected.
refer to https://gerrit.mot.com/1403773
Based on Gerrit https://gerrit.mot.com/#/c/1301691/
Change-Id: I73a2ef923393977e202aebc142d09c4301de4fbe
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1770246
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Export some pmic-voter interfaces for dlkm usage as well
as create access functions that are exported for dlkm to
manipulate the struct.
Change-Id: I306c65c9890bd69dc49fcd722ac0981ddb908dc6
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1200744
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1770243
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Kernel configs compose of several parts.These parts will be merged into
one final file such as "holi-qgki-debug_defconfig".
The rule of Moto-product-config files from high order is:
product debug config
platform debug config,
product config
platform config
Here is an example of product "denver" based on 4350
platform (holi):
1. factory build config list with order:
factory-holi-denver.config
factory-holi.config
moto-holi-denver.config
moto-holi.config
2. userdebug build config list with order:
debug-holi-denver.config
debug-holi.config
moto-holi-denver.config
moto-holi.config
3. user version config list with order:
moto-holi-denver.config
moto-holi.config
Change-Id: Ie7512300581337ae6768bdfa618613a797f3c10f
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1769363
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Introduce a new configuration DENVER_DTB that will allow the
target to only build denver devices.
Change-Id: I766404bb7792c217d37eecd3a543d866fc018fae
Reviewed-on: https://gerrit.mot.com/1762925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Introduce a new configuration MMI_DEVICE_DTBS that will allow the
target to only build Motorola devices.
Change-Id: I8eb2d1586dd2d99c696a3e198e5809a12cab6ad9
Reviewed-on: https://gerrit.mot.com/1762924
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Currently, metadata such as min/max block size is sent only for first
stream in FLAC gapless playback. This causes incorrect configuration
and, subsequently, framedrops in decoding of second stream and onwards
by sending these additional flac metadata, dsp receives stream-wise
metadata and decodes without dropping
Change-Id: Ibd4a9b24180622422ed719b075fd47bcd4ad0c9b
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
(cherry picked from commit feb23f7f5d63d7b890ba481d0b466b6e9a5eed15)
Reviewed-on: https://gerrit.mot.com/1752137
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Lianlu Chen <chenll4@lenovo.com>
Add out of bound check while parsing the SPI
slave-to-master fifo.
Change-Id: I14f707307fa277b2f8a7b543d3cc5e9ebac885db
Signed-off-by: Ajit Kumar <quic_kajit@quicinc.com>
For cmd close_ack or open request where rx_size is being
incrementing with respect to offset might lead to out of
bound read from rx_data.
Decrease rx_size as we process commands.
Change-Id: I492eadcbebb78386fc20f744eb9ad8db4a2914fc
Signed-off-by: Kaushal Hooda <quic_khooda@quicinc.com>
If iommu unmap fails and leaves dma or anon buffers still mapped in the
iommu, do not free them.
Change-Id: Ice0e1a59c1ac0ee7a9d62d8899966b84fa63d5ca
Signed-off-by: Lynus Vaz <quic_lvaz@quicinc.com>
Signed-off-by: Deepak Kumar <quic_dkumar@quicinc.com>
(cherry picked from commit e7c4bb239b)
Add condition check to make sure that the end address
of private entry does not go out of partition.
Change-Id: I88b3c69d86d90905b214c13a8c632b134b487a49
Signed-off-by: Sarannya S <quic_sarannya@quicinc.com>
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
(cherry picked from commit 58e401790a)
Add condition check to make sure that the end address
of private entry does not go out of partition.
Change-Id: I88b3c69d86d90905b214c13a8c632b134b487a49
Signed-off-by: Sarannya S <quic_sarannya@quicinc.com>
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
If iommu unmap fails and leaves dma or anon buffers still mapped in the
iommu, do not free them.
Change-Id: Ice0e1a59c1ac0ee7a9d62d8899966b84fa63d5ca
Signed-off-by: Lynus Vaz <quic_lvaz@quicinc.com>
Signed-off-by: Deepak Kumar <quic_dkumar@quicinc.com>
Prevent possible integer overflow by sanitizing the alloc request
size coming from the client against allottable amount of memory.
Change-Id: I74cb0f7b0808f20299586969fd5c810d44c3e576
Signed-off-by: Manoj Prabhu B <quic_bmanoj@quicinc.com>
Signed-off-by: Madhab Sharma <quic_madhshar@quicinc.com>
The timeline fence needs to remain valid for logging purposes. Take an
extra refcount on the timeline dma_fence to make sure it doesn't go
away till we're done with it.
Change-Id: I6670ef7add099a72684c1fe20ed009dff85d1f27
Signed-off-by: Lynus Vaz <quic_lvaz@quicinc.com>
Signed-off-by: Deepak Kumar <quic_dkumar@quicinc.com>
Changes for new uCP commands, and IOCTL to support this feature
Change-Id: Idd7de3f18fc557b54b3c2d965802065b3f6dd982
Signed-off-by: Krishna Nagaraja <quic_krisnag@quicinc.com>
add change to identify the wifi attach as communicated
by wlan at wdi init.
Change-Id: Iea73ce1037bdbe1064570173c0792f0fe139ac4f
Signed-off-by: Fakruddin Vohra <quic_fakruddi@quicinc.com>
Protect md_dump_slabinfo call only if SLUB_DEBUG is enabled.
Change-Id: I1f703e039517dd24fad303f830a6a30a3f32c3f7
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
Declare the ops struct and corresponding callbacks only when
SLUB_DEBUG is enabled.
Currently, the ops is defined only under
MINIDUMP_PANIC_DUMP config but the variables it uses are protected
under SLUB_DEBUG as well.
Change-Id: I11f29564e1d65edc506a50e2c12aac374dbca6d5
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
Add SOC ID to support socinfo for BLAIR LTE platform.
Change-Id: I5223272ef20eac2396e52fa910628ec8236eb1ed
Signed-off-by: Swetha Chikkaboraiah <quic_schikk@quicinc.com>
There could be chance of edl download mode written by qcom-dload-mode
driver overwritten by Scm device shutdown call as the reboot notifiers
gets called prior to device_shutdown in reboot path.
To fix this convert the reboot notifiers to restart notifiers and keep
its priority higher than scm restart handler so that warm reboot_mode
set here should be seen by SCM restart handler (priority 130).
Change-Id: I2daa41d04788e525f274323e9c815bf10cb79ed2
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>