Commit graph

891,179 commits

Author SHA1 Message Date
qctecmdr
eb8fa2b7b0 Merge "defconfig: Enablle usb peripheral audio on sdxlemur" 2020-09-28 04:21:27 -07:00
qctecmdr
a68b98fe72 Merge "msm: kgsl: Poll GDSCR to ensure CX collapse" 2020-09-28 04:21:27 -07:00
qctecmdr
048c65bd13 Merge "usb: phy: qmp: debug value of portselect pin" 2020-09-28 04:21:26 -07:00
qctecmdr
0236484610 Merge "usb: f_fs: Fix memory leak if copy_from_iter_full fails" 2020-09-28 04:21:26 -07:00
qctecmdr
bff3607241 Merge "USB: f_fs: Set ffs->func to NULL after disabling endpoint in set_alt()" 2020-09-28 04:21:26 -07:00
qctecmdr
e2f7dca423 Merge "input: touchscreen: mxt: add callback from drm panel" 2020-09-28 00:02:02 -07:00
qctecmdr
647825cc7a Merge "input: touchscreen: mxt: irq handler return value" 2020-09-28 00:02:02 -07:00
qctecmdr
cd5ad41594 Merge "input: touchscreen: focaltech: fix return value" 2020-09-28 00:02:01 -07:00
qctecmdr
73f7912c9a Merge "sched/walt: Improve the scheduler" 2020-09-28 00:02:01 -07:00
qctecmdr
dc931543e7 Merge "msm: pcie: update PCIe internal AUX CLK from boolean to a programmable type" 2020-09-28 00:02:01 -07:00
qctecmdr
f210f412fb Merge "drm/bridge: lt9611uxc: Add video config for lt9611uxc" 2020-09-28 00:02:00 -07:00
qctecmdr
3b01263f65 Merge "Support full CONE NAT and ADDRESS RESTRICTED CONE NAT" 2020-09-28 00:02:00 -07:00
Jack Pham
df30b04c71 USB: f_fs: Set ffs->func to NULL after disabling endpoint in set_alt()
When adb root is performed, userspace will close and open ffs_epsfile.
Closing this file will call ffs_functionfs_callback() which does call
remove_config(). This will call ffs_function_eps_disable to disable
endpoints and then calls ffs_func_unbind(). Unbind() will also call
endpoint disable which might lead to disabling endpoint which is already
disabled. Hence set ffs->func to NULL after disabling endpoints in
set_alt().

CRs-Fixed: 557532
Change-Id: I3052bdee74a1793d4e003de4b991d353e5d699b0
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-09-28 10:05:27 +05:30
Jack Pham
6dec79e68c usb: gadget: f_fs: Fail waiting IO after eps disabled
Normally in epfile_io() and epfile_ioctl(), if the endpoint is
not enabled the system call will block waiting until the endpoint
is enabled. During a USB disconnect, the function's endpoints get
disabled, so that if an IO call occurs right after that, it would
perform the same blocking wait. From the kernel perspective this
is indistinguishable from an IO call happening after the function
is first initialized but not yet enabled. Hence a userspace
process would be blocked and unaware of the cable disconnection.

For userspace daemons such as ADB, this can be a problem since its
read/write threads cannot be reaped until the I/O call returns,
which won't happen until the cable is reconnected. In that case,
the previous pending read/write would proceed to get successfully
queued. In the case of a read, the previous read consumes data
meant for the new session, and in the case of a write, stale data
could be sent to the host.

To fix this, add a counter to keep track of the epfile's open status.
Upon the endpoint getting disabled mark the endpoint as invalid so as
to fail subsequent IOs until the epfile is fully closed. Returning
-ENODEV upon failure should allow the userspace process to close the
file, so that it can reopen and begin a new session.

Change-Id: I655ffdaa03485753431ff05dc521bf8d1b463ff1
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-09-28 10:04:00 +05:30
Wenjun Zhang
44272cb4f1 drm/bridge: lt9611uxc: Add video config for lt9611uxc
Add lanes number and infterface number config for lt9611uxc,
and add the code to control lt9611 power enable/disable using gpio.

Change-Id: I18e12791ac671ba1d14f0815a94068fd5ae1abf2
Signed-off-by: Wenjun Zhang <wjzhan@codeaurora.org>
2020-09-28 10:42:48 +08:00
qctecmdr
bcb3f4fc7d Merge "msm: kgsl: Enable Preemption on A660 GPU variant" 2020-09-27 08:29:34 -07:00
qctecmdr
f6ed8b3e3f Merge "edac: improve gold CPU cache way parsing" 2020-09-27 08:29:33 -07:00
qctecmdr
b362348e33 Merge "msm-perf: Added support for Perf data collection" 2020-09-27 08:29:33 -07:00
qctecmdr
e3a8eb7789 Merge "clk: qcom: gcc-shima: Enable clocks for pm8008 by default" 2020-09-27 08:29:32 -07:00
qctecmdr
f3dfd22d9b Merge "clk: qcom: cpu: Add CPU clock driver for SDXLEMUR" 2020-09-27 08:29:32 -07:00
qctecmdr
f47bea82c8 Merge "arm64: defconfig: Enable SPS driver for Holi" 2020-09-27 08:29:32 -07:00
qctecmdr
6e5219d5bc Merge "scsi: ufs: Don't skip UFS probe in emmc based bootdevice" 2020-09-26 18:44:24 -07:00
Ajay Prathi
40477dec73 arm64: defconfig: Enable SPS driver for Holi
Enable SPS driver for Lahaina GKI version.
SPS (Smart Peripheral System) enables the support of
all BAMs in the system which provide DMA
functionality to various peripherals.

Change-Id: I5eb575d594bbd2c4858f224fcd40f1c2a04643f7
Signed-off-by: Ajay Prathi <aprathi@codeaurora.org>
2020-09-26 14:57:37 +05:30
qctecmdr
da2e3647bf Merge "defconfig: lahaina: remove CONFIG_LEDS_CLASS_FLASH & CONFIG_LEDS_TRIGGER_TIMER" 2020-09-25 13:11:08 -07:00
qctecmdr
1276e88a08 Merge "icc: dt-bindings: add endpoint IDs for interconnects for YUPIK" 2020-09-25 10:11:38 -07:00
qctecmdr
6d09adc73b Merge "defconfig: msm: Enable support for SCSI Generic(Sg)" 2020-09-25 10:11:38 -07:00
qctecmdr
c1cbc356a9 Merge "msm: cvp: Avoid referencing uninitialized variable" 2020-09-25 10:11:38 -07:00
qctecmdr
f5ea7fb93e Merge "cnss2: Assert when power on retry reaches maximum" 2020-09-25 10:11:37 -07:00
qctecmdr
11cd834e3c Merge "cnss2: Log a message after assert/de-assert WLAN_EN GPIO" 2020-09-25 10:11:37 -07:00
qctecmdr
4e16ed70f3 Merge "power: qpnp-smb5: Modify the usage of INPUT_CURRENT_LIMIT in batt_psy" 2020-09-25 10:11:37 -07:00
qctecmdr
0d177e5dc6 Merge "dma-buf: Handle dentry->d_fsdata being NULL" 2020-09-25 10:11:36 -07:00
Paras Singh Jain
989de097d6 Support full CONE NAT and ADDRESS RESTRICTED CONE NAT
Adding support for Full cone NAT and Address Restricted Cone
NAT by using the NATTYPE module.

Change-Id: Ib17f87757b86fdb88bbe25bab7d7193b0530f812
Git-commit: 4d71eea17c1eb4362f9d1ae13fce53815b6c9574
Git-repo: source.codeaurora.org/quic/le/kernel/msm/commit/?h=msm-3.4
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-09-25 21:26:24 +05:30
Huadong Gao
b335340c44 input: touchscreen: focaltech: fix return value
When no touch panel, return proper value to exit driver probe.

Change-Id: I422f14ba6c942252346c46df5ccbc2f1f8be7731
Signed-off-by: Huadong Gao <huadgao@codeaurora.org>
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-09-25 14:15:05 +08:00
Fei Mao
eedb3f1f9b input: touchscreen: mxt: add callback from drm panel
Add callback function from drm panel, so touch driver can be
notified when panel is on or off.

Change-Id: Icd80ef60db3574b3eed3f9d2b8430923580baf69
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-09-25 10:39:11 +08:00
Fei Mao
4c39257324 input: touchscreen: mxt: irq handler return value
This irq is only for touchscreen, not shared with others.
When meets errors, just ignore it, and don't throw again.

Change-Id: I926f645bd1e763792386aa74cedcf649d88b18a9
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-09-24 18:34:49 +08:00
George Shen
9fcafd916f msm: cvp: Avoid referencing uninitialized variable
Initialize a local variable before referening it.

Change-Id: I469eb892b418fb1906ebf4c093ac28d249412cdd
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-09-23 16:31:04 -07:00
Yue Ma
74bb9a8d87 cnss2: Assert when power on retry reaches maximum
In order to catch the issue immediately, assert when power on retry
for PCIe resume reaches maximum.

Change-Id: Ie370e031e68721b531aae909f56bc45b9d9b59d8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-09-23 12:04:01 -07:00
Yue Ma
a3c77b62e8 cnss2: Log a message after assert/de-assert WLAN_EN GPIO
Print after successfully assert/de-assert WLAN_EN GPIO for
debug purpose.

Change-Id: I3094252cf2f14d7a5e438ea8a8983b9b30fc75ed
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-09-23 11:49:16 -07:00
Tony Truong
f6ff45ddca msm: pcie: update PCIe internal AUX CLK from boolean to a programmable type
PCIe internal AUX clock frequency used to be either 1MHz or
19.2MHz. The devicetree entry was a boolean type to determine
which frequency to program in PCIe controller. Newer chipsets
may support other frequencies such as 16.6MHz. Update the
devicetree entry so that it accepts a decimal value for the
desired frequency to be programmed in PCIe controller.

Change-Id: Idd672bfb2908a15b9ee3e72654eb4d40a6d9b624
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-09-23 11:40:44 -07:00
Pankaj Gupta
9bf0dd076a msm: kgsl: Poll GDSCR to ensure CX collapse
The regulator_is_enabled() API doesn't guarantee that CX gdsc has
collapsed at hardware. There could be a vote on the GDSC from another
subsystem like TZ. So poll the CX GDSCR register to ensure that CX has
indeed collapsed.

Change-Id: Id98c5318d5358b16f4277cb5d96027add63ad801
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
Signed-off-by: Indira Biruduraju <ibirudur@codeaurora.org>
2020-09-23 21:01:25 +05:30
Nitin Rawat
b277b51bab defconfig: msm: Enable support for SCSI Generic(Sg)
This config enable the support for scsi generic driver.

Change-Id: Ib895134d3bd1635f612b9254900162160fbd67ea
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-09-23 20:27:24 +05:30
Odelu Kukatla
1fb35297c9 icc: dt-bindings: add endpoint IDs for interconnects for YUPIK
Add master and slave ID constants for all Qualcomm Technologies, Inc.
Yupik interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.

Change-Id: I0098d170786dacc3869485b86917b1a0a7491bfc
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-09-23 06:27:55 -07:00
qctecmdr
6a91a7d54b Merge "msm: pcie: Add additional logging in msm_pcie_drv_resume" 2020-09-22 21:18:49 -07:00
qctecmdr
c112c25edc Merge "cnss2: change for fixed link speed" 2020-09-22 21:18:48 -07:00
Hemant Kumar
0211a911fe msm: pcie: Add additional logging in msm_pcie_drv_resume
Add pcie logs to identify any possible latency in enabling
regulators, clks and icc as part of DRV resume.

Change-Id: I3cb72ce22773f0b6b52c9e704c9ec9a3a1de3d8c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-09-22 16:25:36 -07:00
Manikandan Mohan
baa52351d2 cnss2: change for fixed link speed
Change for fixed link speed.

Change-Id: If2584bd534b868171d53b0b880d65cc2eeb74410
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-09-22 15:35:39 -07:00
qctecmdr
b3e8514aef Merge "cnss2: Correct platform driver state for cnss2" 2020-09-22 11:24:20 -07:00
qctecmdr
603419fc7b Merge "defconfig: Enable smb1355 in defconfig" 2020-09-22 11:24:20 -07:00
qctecmdr
5a3cf79c1a Merge "clk: qcom: Add enable/disable to clk_regmap_mux_div_ops" 2020-09-22 11:24:20 -07:00
qctecmdr
d95a0da22f Merge "defconfig: sdxlemur: Enable EXTCON_QCOM_SPMI_MISC" 2020-09-22 11:24:19 -07:00