Add new target type and hw version for WCN3990.
Change-Id: Iba891c8a25321d986d24120db8e0988f7df56dc5
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Remove bus specific dependencies from CE layer to have
common CE layer across multiple targets.
Change-Id: Ieb6a80b359eed820653215bbf98148ce15634e87
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Cluster capacities should reflect differences in efficiency of
different clusters even in the absence of cpufreq. Currently
capacity is updated only when cpufreq policy notifier is received.
Therefore placement is suboptimal when cpufreq is turned off. Fix
this by updating capacities and load scaling factors during cluster
detection.
Change-Id: I47f63c1e374bbfd247a4302525afb37d55334bad
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
When we have only 1 CPU in the system always report a CPU as not
isolated.
Change-Id: I009b3e7c2499da07b167c603107b1c50b096c6b6
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Bus clocks are managed via bus apis and hence move to using them for
enabling bus clocks. The previous method could enable a bus clock at a
higher than required frequency, wasting power.
The power on sequence is regulator on, bus vote, and then enable
remaining clocks.
Remove all clocks which are of RPM_SMD type (including mmssnoc_axi_clk)
since these are managed by the bus driver. Using an active-only bus vote
instead should save power when APPS is power collapsed.
Keep the mmss_mnoc_ahb_clk because it is a branch clock type which is
not managed by the bus driver. No active-only mode is available for this
clock.
Change-Id: I3b35d81098b8bd5299b27e85d27aa959e7cf415a
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
If no clocks are present in devicetree, ensure that smmu->num_clocks is
set to zero instead of an error value.
Change-Id: Ibc3ede250419dd0235f3aa481218e3a91cdb3630
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Maximum QMI packet size is 4KB. As a result with current
ep0 buffer size of 1KB driver is overstepping the buffer
memory when QMI packet of more than 1KB size is received
from usb host.
Change-Id: Id162ed23dfa855fd7e11d43b32627b577c0c2dd4
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Remove the check on sample rate when searching for the correct ADM
topology. The ADM topology is not dependent on sample rate and the
sample rate is not set by calibration in the ADM topology calibration
information header. Therefore, it is invalid data and should not be
used to determine the ADM topology.
Change-Id: Iea0a53409ae95c89b6a984a679374cab19cc5602
Signed-off-by: Siena Richard <sienar@codeaurora.org>
CRs-fixed: 1110369
A misplaced return statement causes an early return from disabling OTG.
If OTG is enabled when a source is attached then Type-C detection will
fail. Therefore, OTG should never be blocked from being disabled.
Remove all of the early returns that could potentially block the
register write which disables OTG.
Change-Id: I4645210233c7490cf3e1b8f6a629fec60399b250
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Update copyright line to "The Linux Foundation" and
year.
Change-Id: I1bdd64bebb77f41555f1057132ad3a060874bb11
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Currently there is no easy way to detect the device name based on
the bus or device sysfs properties.
Implement MODEL_NAME property to identify the parallel charger.
Change-Id: I8134b415a2b36e249b098f4b61d4dd8415008cfa
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
release app list entry when __qseecom_get_fw_size() returns error.
Change-Id: I82406c39a2def87395811f442f39b57201766091
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
The PMIC alarm type sensor is named wrong in the sensor information.
This will prevent thermal-engine from monitoring this sensor.
Update the sensor information to specify the right sensor name for
msm8998.
Change-Id: Ic11a37031e085e29c2f19be6f80f1a7c9ed4b79c
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
If the rate of the clock being measured changes at the same
time clock_debug_measure_get() is called, there can be a
miscalculation of the value of the divider between the
measurement circuitry and clock output. Acquiring the prepare
lock fixes the race since it prevents clock rate changes during
measurement.
CRs-Fixed: 1109789
Change-Id: I51050379a45a51c22109a06bc4758d767f361da1
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Bus driver requires to set the QoS parameters like QoS mode
and priorities, so enable the QoS parameter programming and
also add the required clocks for QoS register access.
Change-Id: Ie2f4e054f4fc16b5c33233321e8761f999db7c46
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Add changes to support aptx decoder in offload mode.
Add support to set BT device address and add new mixer control
to set license key.
CRs-Fixed: 1106128
Change-Id: Idd4ec8ab829883ef4848be8b686e24101ccbed60
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
Try to allocate pages from lower order mempools incase
if requested memory size order does not match with the
available mempools.
Change-Id: Idbe4dae3b8bb2a3165199b6959ad4fbf36559964
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
During GPU snapshot dump path, a5xx_snapshot() tries to
capture preemption record without really checking on the
availability of preemption feature.
Add a check for preemption feature and then proceed.
Change-Id: I6ee23a1d8006ba18a25fb341bb88d8944ff054b7
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Fix spinlock usage in bam2bam_data_resume_work handler that could
cause error reported by static analysis tool.
Change-Id: I15bbb5abc98452fcfed2d98547a859a355a391d9
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
A512 GPU clock plan is revised hence need to adjust IB
bus votes for respective GPU power levels. Update GPU
bus votes as per new GPU clock plan for SDM660.
Also adjust GPU IB votes as per dual channel DDR
recommendation.
Change-Id: Ia68bd5dee8bf9d037510877c647c5c3a74bdce99
Signed-off-by: Mihir Patel <mihirp@codeaurora.org>
This patch fixes the possible deadlock during processing
of feature mask between different peripherals.
CRs-Fixed: 1101672
Change-Id: I4d4223275c03017ef367bafa8e55be1803b9a750
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
Remove redundant check for port in qti_ctrl_write() which is not
required.
Change-Id: I8825b52156d722772759d2ae10f2b8bbd4d18417
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Currently opts variable in rndis_qc_set_alt() is used without
initializing it. This could cause error reported by static analysis
tool. Hence fix this by initializing the variable before accessing it.
Change-Id: I77a42464e351f4e9886250315423ae355ff43617
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
There is a chance that completion handler and ep disable race each other
and it might happen that completion handler gets called after driver_data
is set to NULL as part of function disable. This results in crash. Hence
add check in completion handler to check if driver_data is NULL or not
to fix the issue.
CRs-Fixed: 891650
Change-Id: I79ce3967533d2a7cb7591ccfe50b095a540e9884
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Reverting the changes provided to improve small transfer rate.
Change-Id: Ifc1ae0ccbd0f991523f4715fbb1ff9951b268986
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
There is a chance that completion handler and ep disable race each other
and it might happen that completion handler gets called after driver_data
is set to NULL as part of function disable. This results in crash. Hence
add check in completion handler to check if driver_data is NULL or not
to fix the issue.
Change-Id: I3496811f52af79e8dccb701b2753a81f5d5a2340
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>