Commit graph

893,699 commits

Author SHA1 Message Date
qctecmdr
503b958af6 Merge "mmc: host: sdhci-msm: Don't clear IO_PAD_PWR_SWITCH when faking 3V support" 2021-02-01 13:34:03 -08:00
qctecmdr
bba3255a66 Merge "soc: qcom: Fixed interrupts not work on sdxnightjar" 2021-02-01 13:34:03 -08:00
qctecmdr
ba929c2d6f Merge "usb: dwc3: Set current accordingly based on type of charger detection" 2021-02-01 13:34:02 -08:00
qctecmdr
3e6e29afed Merge "usb: dwc3: Clear err_evt_seen flag on disconnect" 2021-02-01 13:34:01 -08:00
qctecmdr
08ae823c39 Merge "msm: kgsl: Add GBIF L2 CGC control with A6x CGC" 2021-02-01 13:34:01 -08:00
qctecmdr
6a8be39791 Merge "WLAN subsystem: Sysctl support for key TCP/IP parameters" 2021-02-01 13:34:01 -08:00
qctecmdr
9b3af48029 Merge "power: supply: qcom: Add support to make SMBLITE charger GKI compliant" 2021-02-01 13:34:01 -08:00
Subbaraman Narayanamurthy
d37101dfc3 power: supply: qpnp-qg: Fix some error logs
When battery_id is set to a value for which there exists no
battery profile, QG driver prints error logs frequently as
some properties doesn't exist.

[ 4305.969087] QG-K: qg_get_charge_counter: Failed to get FCC for charge-counter rc=-19
[ 4305.969123] QG-K: qg_iio_read_raw: Couldn't read IIO channel 73, rc = -19
[ 4305.976657] QG-K: qg_iio_read_raw: Couldn't read IIO channel 83, rc = -19
[ 4305.989355] QG-K: qg_iio_read_raw: Couldn't read IIO channel 84, rc = -19

Fix this by changing pr_err() to pr_err_ratelimited(). While at
it, change a pr_err() to pr_debug(). Also fix an error log to
correct that the error is for reading IIO channel and not for a
property.

Change-Id: I936409d4ffafd664c571976d17ec4baf1b8de218
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2021-01-29 14:25:15 -08:00
Ravi Joshi
39893ddd65 WLAN subsystem: Sysctl support for key TCP/IP parameters
It has been observed that default values for some of key tcp/ip
parameters are affecting the tput/performance of the system. Hence
extending configuration capabilities to TCP/Ip stack through
sysctl interface.

Change-Id: I4287e9103769535f43e0934bac08435a524ee6a4
CRs-Fixed: 507581
Signed-off-by: Ravi Joshi <ravij@codeaurora.org>
Signed-off-by: Ganesh Babu Kumaravel <kganesh@codeaurora.org>
Signed-off-by: Mohit Khanna <mkhannaqca@codeaurora.org>
Signed-off-by: Manjunathappa Prakash <prakashpm@codeaurora.org>
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2021-01-29 16:50:05 +05:30
Pratham Pratap
9bbf449b96 usb: dwc3: Clear err_evt_seen flag on disconnect
Currently err_evt_seen flag is cleared only while clearing
run/stop. Consider a case where err_evt_seen flag is set and
controller is swtiching from peripheral mode to host mode.
Now, from dwc3_gadget_pullup driver will bail out since the
flag is set. Also since softconnect flag is not set run_stop
will not get cleared from vbus_session(0), leaving the err
evt_seen flag set. If any interrupt is generated then driver
will bail out from interrupt handler without processing the
interrupt, which can lead to irq storm. Fix this by clearing
the err_evt_seen flag in disconnect and also add a judgement
in pullup so that driver can proceed with clearing run/stop
if softconnect is cleared, even with the err_evt_seen flag is
set.

Change-Id: Ib7026dca8b4e76e943832419b19cef180ca96171
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-01-29 16:07:00 +05:30
Rohith Kollalsi
f98fb1fc9e usb: dwc3: Set current accordingly based on type of charger detection
For ADSP based charger detection set the current for all
charger types as it will again be handled on ADSP side.
Other wise set current only for SDP charger which is usb
based charger. For NON ADSP based charger detection if
'iio-channel-names' is passed in the device tree, charger
detection is done through iio channel or else it is
done by power_supply_get_property.

Change-Id: I17e65448459318ad26b7a2c36742296afa5f0adf
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-01-29 14:47:38 +05:30
Sarthak Garg
31a5504f56 mmc: host: sdhci-msm: Don't clear IO_PAD_PWR_SWITCH when faking 3V support
Don't clear io pad power switch setting when 3V support is faked.
This bit has to be cleared for allowing IO pad to switch to 3V when
Vccq is really configured to 3V. But in case of faking 3V where we
configure Vccq to 1.8V only, we shouldn't clear this bit.

Change-Id: I15c7e3f49703c3ac31d59d7d4bfbd81f3c2dc028
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-01-29 11:25:24 +05:30
Ashish Chavan
e76f8318ec power: supply: qcom: Add support to make SMBLITE charger GKI compliant
SMBLITE charger drivers and their helper files use several power supply
properties on msm-4.19 which cannot be supported on msm-5.4 due to the
need for GKI compliance. Add support for main charger to register
as an IIO device with individual channels under it corresponding to
missing power supply properties from msm-4.19.

Change-Id: I397ed52d2fa822c7f93616090e15b109435d9657
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2021-01-28 18:21:30 +05:30
Hareesh Gundu
587764ea8b msm: kgsl: Add GBIF L2 CGC control with A6x CGC
GBIF L2 CGC is not covered in UCHE CGC control.
Hence handle GBIF L2 CGC settings separately.

Change-Id: I9f33b2a868a81a68c5957990f737a3eeab7cd6fc
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2021-01-28 11:59:35 +05:30
qctecmdr
73db1046f1 Merge "defconfig: gen3auto: Enable core hang detect" 2021-01-27 06:15:37 -08:00
qctecmdr
c2b0a0b731 Merge "serial: msm_geni_serial: Resolve race btw stop rx and DMA rx" 2021-01-27 06:15:37 -08:00
qctecmdr
1af5874c0f Merge "input: qpnp-power-on: Add a property to force hard-reset offset" 2021-01-27 06:15:36 -08:00
qctecmdr
9538e50587 Merge "defconfig: sdxlemur: Enable SMB1398_CHARGER" 2021-01-27 02:37:48 -08:00
qctecmdr
a1ec1e1c5f Merge "msm: kgsl: ioremap rgmu with devm_ioremap" 2021-01-27 02:37:48 -08:00
qctecmdr
99181e1a6d Merge "Update compatible string for moselle" 2021-01-27 02:37:48 -08:00
qctecmdr
4228cf8b67 Merge "serial: msm_geni_serial: Fix false warning for reset failure" 2021-01-27 02:37:47 -08:00
qctecmdr
459120198f Merge "defconfig: gen3auto: Enable devfreq support" 2021-01-27 02:37:46 -08:00
Kavya Nunna
351a6d00ba input: qpnp-power-on: Add a property to force hard-reset offset
Some (PON gen2) platforms still use legacy hard-reset offset [7:2]
of the PON_RB_SPARE register. Add a DT property to support it.

Change-Id: I8fd3434bcc064965b11aaf3e9c7fcbf694145d21
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-01-27 15:19:01 +05:30
qctecmdr
82ee11b482 Merge "usb: f_gsi: Initiate remote-wakeup if notification already queued" 2021-01-26 22:58:59 -08:00
qctecmdr
60b146e3eb Merge "mhi-dev: Fix NULL error check" 2021-01-26 22:58:59 -08:00
qctecmdr
dd00325847 Merge "defconfig: sdxlemur: Update hardening configs" 2021-01-26 22:58:59 -08:00
qctecmdr
d6880ae4e7 Merge "regulator: qpnp-lcdb: Add support for NCP symmetry with LDO" 2021-01-26 22:58:58 -08:00
qctecmdr
95f9eaf581 Merge "clk: qcom: Add GPU clock driver for SM6150" 2021-01-26 22:58:57 -08:00
Shreyas K K
e0cf47e181 defconfig: gen3auto: Enable core hang detect
Enable core hang detect support on gen3auto targets.

Change-Id: Ie5eb562a8aed9ac1b211c666876bf8c49bd39f2a
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-01-27 11:22:45 +05:30
Shreyas K K
f8a3973c70 defconfig: gen3auto: Enable PMU support
Enable PMU support on gen3auto targets.

Change-Id: Ia930cb8414728869b5438b3273fdaf438b33e57d
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-01-27 11:21:24 +05:30
Shreyas K K
971d0a5d77 defconfig: gen3auto: Enable devfreq support
Enable the devfreq governor, monitor and device
support on gen3auto targets.

Change-Id: I463d99a61b90ec15d0661c113c57cc1ca3dd53be
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-01-27 11:20:22 +05:30
Shreyas K K
8ba12d4937 defconfig: gen3auto: Enable configs for ramdump support
Enable kernel configs needed to suppot ramdump on gen3auto,
these drivers help to capture necessary debug information
in DDR and IMEM when the system crashes either after a panic
or due to any system lockup.

Change-Id: Ie4d2b0cafba363703fe9cac03e6255df3e09cd7e
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-01-27 11:19:00 +05:30
priyankar
27c507ae4c Update compatible string for moselle
Update compatible string from qcom,wcn6750 to
qcom,wcn6750-bt inorder to make it different from
WLAN compatible string.
This will help in removing probe warnings during bootup.

Change-Id: If6f938187b5f34438ee8bf5330844b839de942b9
Signed-off-by: priyankar <prigup@codeaurora.org>
2021-01-26 20:52:11 -08:00
qctecmdr
676add9521 Merge "defconfig: quinvmauto: Enable virtio i2c" 2021-01-26 19:23:22 -08:00
Hui Li
9774ab1aae msm: kgsl: ioremap rgmu with devm_ioremap
We can't use devm_ioremap_resource here because
we purposely double map the gpu_cc registers for
debugging purposes.

Change-Id: If6e60431fe54f9d647fd09e5e633d7b7edc3c62f
Signed-off-by: Hui Li <hul@codeaurora.org>
2021-01-26 18:49:54 -08:00
qctecmdr
b9fd98cf56 Merge "Merge android11-5.4.61+ (5327444) into msm-5.4" 2021-01-26 09:17:59 -08:00
Veera Vegivada
dcf1d44e01 clk: qcom: Add GPU clock driver for SM6150
Add support for the graphics clock controller found on SM6150
based devices. This should allow GPU device drivers to probe
and control their clocks.

Change-Id: Ic4dc10771a4ea79d181be38e6f1594ecc6f314d3
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-01-26 15:20:03 +05:30
Veera Vegivada
0c8678736a clk: qcom: Add display clock driver for SM6150
Add support for display clock controller found on SM6150
based devices. This would allow display device driver
to probe and control their clocks.

Change-Id: I2e5e20f5bf518d6bc1128b6c2fb26a5e0480a4a3
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-01-26 15:19:22 +05:30
Veera Vegivada
f7a5ea0098 clk: qcom: Add camera clock driver for SM6150
Add support for camera clock controller found on SM6150
based devices. This would allow camera device drivers
to probe and control their clocks.

Change-Id: Ic5b5e6e9363f0272e777c500028f876f3e79a7b8
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-01-26 15:18:42 +05:30
Veera Vegivada
4081ddd99b clk: qcom: Add GCC clock driver for SM6150
Add support for peripheral clocks controlled by
global clock controller.

Change-Id: I7717b8e32fd3918359faf3d63af2f6a82de81088
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-01-26 15:18:02 +05:30
Veera Vegivada
4757acd396 clk: qcom: rpmh: Add support for RPMH clocks for SM6150
Add clock rpmh data to communicate with RPMH clocks for SM6150.

Change-Id: I6aed48fce932923e52dc9109cca427da92375814
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-01-26 15:17:00 +05:30
qctecmdr
58fb72eeee Merge "sched/walt: Improve the scheduler" 2021-01-26 01:04:10 -08:00
Zhiqiang Tu
8163d656ac defconfig: quinvmauto: Enable virtio i2c
Enable virtio i2c driver for quinvmauto target.

Change-Id: I2c4591a7620ad52332b7fdfe5d53d0605628c98f
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2021-01-26 16:53:27 +08:00
qctecmdr
74cf4c88c8 Merge "msm: ipa: header file to support wdi 2.4G new pipe" 2021-01-25 17:09:08 -08:00
qctecmdr
fe550d926f Merge "defconfig: enable qdss component for sdxnightjar" 2021-01-25 17:09:07 -08:00
Dennis Cagle
2819977794 defconfig: sdxlemur: Update hardening configs
Add HARDENED_USERCOPY and SLUB_DEBUG to both variants. Also add
useful configs to debug variant for testing countermeasures.

Change-Id: I7d3ae4e7d26d480c7a9dcfa1683602aabddf5af0
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
2021-01-25 16:17:39 -08:00
Gauri Joshi
e793a637e2 mhi-dev: Fix NULL error check
Memory allocation for MHI client channels is failing.
Resolve it by fixing the conditional check for
NULL pointer.

Change-Id: I98a7fe085482116236703e3af69010bade0130b7
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-01-25 15:24:55 -08:00
Guru Das Srinagesh
1ce96ac9c6 defconfig: sdxlemur: Enable SMB1398_CHARGER
Enable the SMB1398_CHARGER driver corresponding to the SMB1394 PMIC
found on sdxlemur platforms.

Change-Id: Ic53687e9f71cc8ec8aeeb01ef7a25b1533775777
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2021-01-25 13:41:07 -08:00
Guru Das Srinagesh
e5e0d78137 power: smb1398: Add support for SMB1394
Add support for SMB1394, which is a a variant of SMB1398.

Change-Id: I0e508079174ae16e0aa8c5f242be3686126319ea
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2021-01-25 13:41:06 -08:00
qctecmdr
40fdf3ea74 Merge "arm64: defconfig: Enable UFS controller for SA6155" 2021-01-25 13:33:31 -08:00