Commit graph

884,342 commits

Author SHA1 Message Date
Mayank Rana
3e583e6cee usb: phy: Reset and initialize HSPHY in host mode when EUD is enable
EUD HUB functionality is relevant into USB device mode only. Hence when
using USB host mode, continue performing reset and initialization
functionality with HSPHY even though EUD is enable. If EUD is enable
while starting host mode, re-enable EUD whie exiting host mode.

Change-Id: Ifc2a105d8a02511dd2fc58be5fbc788d46546ba0
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-06-04 12:21:41 -07:00
Mayank Rana
a05993824c dwc3-msm: Move override usb speed functionality outside edev check
Currently usb speed override functionality doesn't work as expected
when usb role switch based notification is used. Hence move usb speed
override functionality out side edev check within dwc3_resume_work()
API. Also update maximum_speed as max hw supported speed out side
edev check.

Change-Id: I69b066721490277b77333d2caf820b6c87703501
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-06-04 12:08:56 -07:00
Elliot Berman
9f125adcf2 sched: Compile cpu_isolated_mask in SCHED_WALT only
cpu_isolated_mask can only be used when SCHED_WALT is enabled. The
addition of the cpu_isolated_mask causes ABI to break. Thus, compile
references to cpu_isolated_mask only when SCHED_WALT is enabled.

Change-Id: I0982f6431abca807168dbabc4aca74771819565c
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-06-04 11:42:49 -07:00
Jeevan Shriram
09a7c66654 arm64: configs: Disable DCC console for Lahaina
Disable ARM JTAG DCC console for Lahaina platform.

Change-Id: Iadd3fc939401d47662ab0ed72411d7fa37b27f6b
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-06-04 10:58:45 -07:00
Taniya Das
6f76b42f79 defconfig: arm64: Enable Global clock controller for HOLI
Enable clock controller for HOLI.

Change-Id: Ib3f2f73dc08a530597a52cab202602ace8da6139
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-04 23:15:52 +05:30
qctecmdr
766163e7f1 Merge "qbt: Add support for touch events from input framework" 2020-06-04 10:39:49 -07:00
qctecmdr
e47a4e0e2f Merge "bluetooth: Vote VREG_L7E_2P8 from BT driver" 2020-06-04 10:39:49 -07:00
qctecmdr
b6ea26a756 Merge "cnss2: Allow WLAN driver register after cold boot calibration" 2020-06-04 10:39:48 -07:00
qctecmdr
8066095330 Merge "msm: camera: Add camera dt binding definitions" 2020-06-04 10:39:48 -07:00
qctecmdr
277df4ce60 Merge "msm: ADSPRPC: Fix to avoid race condition and use after free" 2020-06-04 10:39:48 -07:00
Taniya Das
d72d303946 Revert "defconfig: holi: Add support for Global clock controller"
This reverts commit 8ae959a72f.

Change-Id: I04df95da8726f7f415844754b17c0f168d6787fb
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-04 23:09:24 +05:30
Mike Tipton
75656695f4 clk: qcom: gcc-lahaina: Add USB force_mem_core_on clocks
The FORCE_MEM_CORE_ON bits default to 0 and this is fine for most use
cases. However, USB needs FORCE_MEM_CORE_ON=1 to properly retain its
memories when USB APM switches from CX to MX. This can't just be a
one-time setting since the FORCE_MEM_CORE_ON bits need to be set/cleared
upon USB cable connect/disconnect for power optimization. Add fake
clocks to allow the USB client to control them.

Change-Id: Ic7aac944feaa6a956a8892e0cf1f4dd465659302
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-06-04 10:18:41 -07:00
Mike Tipton
8d1bdc46b2 dt-bindings: clock: Add USB FORCE_MEM_CORE_ON bindings
Add clock bindings to control the USB FORCE_MEM_CORE_ON bits.

Change-Id: I406e98e1be5b4d6702636c3bfdf738ae9ff12198
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-06-04 10:16:46 -07:00
Murali Nalajala
419405ce33 arm64: defconfig: change VA bits to 39 from 48
VA bits of 48 gives more virtual address space for virtual machine.
This much of virtual space is not required for virtual machine.
Configure less virtual address that is of 39 bits.

Change-Id: Iac343d8c6dd1667abfedc1613aaa4f517008ac83
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-06-04 09:19:50 -07:00
qctecmdr
732a1ae2a0 Merge "soc: qcom: dcc: avoid memory access violation" 2020-06-04 06:22:35 -07:00
qctecmdr
5f981341c1 Merge "msm: adsprpc: Fix error code for invalid ioctl" 2020-06-04 06:22:34 -07:00
qctecmdr
a6ec47d805 Merge "haven: touch: add touch notify tag for memory sharing" 2020-06-04 06:22:34 -07:00
qctecmdr
d8294b028a Merge "sched: Improve the scheduler" 2020-06-04 06:22:34 -07:00
qctecmdr
791feec767 Merge "cpufreq: qcom: Set the register for GT Limits Management interrupt" 2020-06-04 06:22:33 -07:00
qctecmdr
f95353fb89 Merge "scripts: gki: Add generic configuration options for defconfig" 2020-06-04 06:22:33 -07:00
qctecmdr
862190e8f9 Merge "clk: qcom: Add API to query corner voltage on given clk frequency" 2020-06-04 06:22:33 -07:00
Sanjana B
377a05f99e kernel: sound: update codec options with block size
Add block size for dsd in codec options.

Change-Id: I2653cc85ca5a526917d12ef5b2f5d5fa776945a2
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-06-04 18:18:16 +05:30
himta ram
2d10ff8328 radio: RTC6226: implement file read for rtc6226 driver
FM app is using the VIDIOC DQBUF ioctl to read the
event from rtc6226 driver. VIDIOC DQBUF ioctl needs
the v4l2buf type as V4L2_BUF_TYPE_PRIVATE and it
is Deprecated and not recommend to use in latest
kernel version.Also upstream kernel code doesn't
have the VIDIOC DQBUF as a valid ioctl. 
Implement file read functionality to read the events
from rtc6226 driver.

CRs-Fixed: 2702667
Change-Id: I747411e362e319ff8f45e9005e0c677eeef854dc
Signed-off-by: himta ram <hram@codeaurora.org>
2020-06-04 16:06:59 +05:30
Shyam Kumar Thella
e95753db9b leds: qti-flash: Do not enable flash without the timeout
When the user strobes a flash LED device with a timeout of 0, configure
the safety timer with default timeout to avoid turning flash ON for
long duration. Also clear different parameters of flash/torch device
like current, timeout when the device is disabled.

Change units of min, max, step of flash timeout to micro seconds as
flash LED class expects in micro seconds.

Change-Id: I780fb2639a1beda38e391e1e0818176f147175ef
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-06-04 15:34:09 +05:30
Shyam Kumar Thella
fdc40b1cb9 hwmon: Add QTI AMOLED ECM driver
AMOLED ECM (Embedded Current Measurement) is a method to measure OLED
display power consumption with a time granularity in sub-frame or
multiple frames of image data. ECM can be for a short period or for a
longer period.

Change-Id: I7ea0b7d8d5961ec015c5a79ee2037ff36329f775
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-06-04 14:51:15 +05:30
Raghavendra Rao Ananta
a6ba293d8a abi: Update qcom whitelist for cnss and netif
Add netif_receive_skb_list and cfg80211_external_auth_request to qcom
whitelist to avoid failure in the wlan.

CRs-Fixed: 2699380
Change-Id: Ib09a79c107adc0f4a3260f5e6561cde8534f221f
Signed-off-by: Tiger Yu <tfyu@codeaurora.org>
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-06-04 01:01:42 -07:00
Maulik Shah
ffedc6cbb5 cpuidle: lpm-levels: Track and predict next rescheduling ipi
Add changes to track and predict next rescheduling ipi
based on past history. Add a module param to control enabling
it.

Change-Id: Ie495d8906288ee410708693ee15ed51643aefb44
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-06-03 23:50:44 -07:00
Surendar Karka
dfb2b57cdb uapi: sound: add support for TTP render mode
TTP render mode is used to enable TTP module
in DSP. Add macro for TTP render mode.

Change-Id: I6afb3cf3e5169603b1befec69807d80fb028b437
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2020-06-03 23:36:33 -07:00
Mohammed Nayeem Ur Rahman
39bab9b845 msm: ADSPRPC: Fix to avoid race condition and use after free
Current mmap and munmap use same mutex but munmap_fd does not
use the same. This can introduce race condition between mmap
and munmap_fd. Also there is a use after free scenario in get_args
and init_process as only mmap_create is protected and the map can
be freed after this. Unifying mutex to avoid race condition.
Restricting munmap_fd only for persist bufs to avoid this.

Change-Id: I2adf631b1e61c2274a14a3645a5e555f5d248645
Acked-by: Ekansh Gupta <ekangupt@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-06-03 22:06:16 -07:00
Suresh Vankadara
a32228d0c9 msm: camera: Add camera dt binding definitions
Define camera OPE cpas path definitions to be used in
device tree and driver for bandwidth consolidation.

Change-Id: Iedc8157c1ac999999152588acdab44fecc7f1aeb
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
2020-06-04 07:42:25 +05:30
Sai Harshini Nimmala
e2ac811691 sched/walt: Consolidate WALT parameters
Create specific structures to hold all WALT related parameters used in the
scheduler.
This is to separate WALT functionality from scheduler code for GKI
purposes.

Change-Id: I6013883c00f2089dba3e5d0890c9abf5f57b3da6
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-06-03 17:19:06 -07:00
Sai Harshini Nimmala
3804c2a592 sched/walt: Create WALT specific datatype
Consolidate WALT variables present in the
task_struct in a separate WALT specific datatype.

Change-Id: I6efd71d9f8cfeeb4d1417a6cdcac6cbda2175999
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-06-03 17:19:05 -07:00
Sai Harshini Nimmala
d318d39f9c sched/walt: Cleanup cpu_util_freq
Minor cleanup involving the cpu_util_freq_walt/pelt function to help
simplify consolidation of WALT parameters for GKI.
Currently, we have a cpu_util_freq function that calls cpu_util in non-WALT
cases and cpu_util_freq_walt with an additional parameter for WALT cases.
The additional parameter is a WALT related structure. This change removes
the dependency of a non-WALT function on a WALT parameter.

Change-Id: Id2fa2b36abcd019c902b530304e58f85b1c70234
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-06-03 17:18:45 -07:00
qctecmdr
0f30cf7e56 Merge "drivers: irqchip: mpm: Add QTI SoC interrupt controller" 2020-06-03 17:08:18 -07:00
qctecmdr
b1d9b568be Merge "msm: kgsl: Add a flag for guard page allocation" 2020-06-03 17:08:18 -07:00
qctecmdr
92fe4104ee Merge "msm: kgsl: 'qcom,kgsl-3d0' device does not need to get regulators" 2020-06-03 17:08:17 -07:00
qctecmdr
3fbf87d4db Merge "msm: kgsl: Add GPU_RBBM_GBIF_CLIENT_QOS_CNTL to powerup register list" 2020-06-03 17:08:17 -07:00
qctecmdr
623d5c8266 Merge "clk: qcom: clk-rcg2: Fix possible dereference of clk parent for dfs clocks" 2020-06-03 17:08:17 -07:00
Yu SI
927d34f7ac msm: cvp: poll on cvp lpi status during power down
polling on cvp lpi status check during power down

Change-Id: I21129746cd4841af7e7a577946c543146bc9d6fc
Signed-off-by: Yu SI <ysi@codeaurora.org>
2020-06-03 16:16:08 -07:00
Raghu Ananya Arabolu
9d0942b552 msm: kgsl: Disable UCHE dual command queue
UCHE dual command queue configuration is resulting in a GPU hang.
Set UCHE_CMDQ_CONFIG to disable dual command queue.

Change-Id: I67daf5cbda1c170c5658c1e2308b8c0fd00540d6
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-06-03 15:29:13 -07:00
Bao D. Nguyen
ff32c4b41f mmc: sdhci_msm: keep a reference to the sdhc host instance
Keep a reference to the sdhc host instance to retrieve all the
necessary data structures in case of a crash for debugging.

Change-Id: I151b160ffbd6a02edea022ae7b970241dedce031
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-06-03 15:23:29 -07:00
Manikandan Mohan
f6efedba75 cnss2: Allow WLAN driver register after cold boot calibration
When cold boot calibration is enabled, it is the first step in
WLAN initialization. Cold boot calibration is started post file
system mount from init.target.rc and wlan driver is
loaded after that.
This update is to reject wlan driver register if it is loaded
before cold boot calibration is complete. This ensures WLAN
init sequence triggered from init.target.rc is followed and wlan
driver load from early boot is rejected.

Change-Id: Id2d7b6f9ceed0d6d648012ad6d0c24bba4d09854
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-06-03 14:48:47 -07:00
qctecmdr
b89d97ac1d Merge "scsi: ufshcd: Move to ufshcd core" 2020-06-03 12:43:50 -07:00
qctecmdr
77b4d787a9 Merge "arm64: defconfig: Add support for Global clock controller for SHIMA" 2020-06-03 12:43:50 -07:00
qctecmdr
043aeefccb Merge "NFC: Add support for LDO voting" 2020-06-03 12:43:49 -07:00
qctecmdr
bfaa5be36f Merge "ion: Use kthread_run for ion heap pool kworker threads" 2020-06-03 12:43:49 -07:00
qctecmdr
ff7503297c Merge "drivers: qcom: rpmh_master_stat: Remove unused size for SMEM item" 2020-06-03 12:43:49 -07:00
qctecmdr
058b018317 Merge "soc: qcom: mem-buf: Fix compilation errors when hotplug is disabled" 2020-06-03 12:43:49 -07:00
qctecmdr
66d77773c6 Merge "config: Enable TOS and DSCP target support" 2020-06-03 12:43:48 -07:00
Mahesh Kumar Sharma
c37f9da43d bluetooth: Vote VREG_L7E_2P8 from BT driver
Vote to enable L7E as switchable extractor
in RF card requires 2.7V on HP01.

Change-Id: I489aa7fca4bbeb4f53a7f9762cd092e35a5d79c2
Signed-off-by: Mahesh kumar sharma <smahesh@codeaurora.org>
2020-06-03 10:45:33 -07:00