Commit graph

894,770 commits

Author SHA1 Message Date
Sarthak Garg
9f1a2e9ded mmc: core: Set the correct frequency when scaling down to DDR mode
When scaling down to DDR mode we are passing 52Mhz to mmc_set_clock.
The SDHC requires internal clock frequency to be double the actual clock
that will be set for DDR mode. The controller uses the faster
clock(100/400MHz) for some part of SDHC internal h/w logic and send
the actual required clock (50/200MHz) to the card.
So in sdhci_msm_set_clock we multiply the clock by 2 for DDR modes.

Finally when we set host clk rate to 104Mhz then it scales to the nearest
equal or larger value which is 192Mhz for sdcc1_apps clk as per clk
drivers.
High frequency of 192Mhz for DDR52 mode leads to CRC errors for some
targets.

Hence Set the frequency to 50Mhz instead of 52Mhz.

Change-Id: I1d536db1dec4dfe16f41fd66362819c6db362901
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-02-10 00:02:22 +05:30
Pratham Pratap
162914b355 usb: composite: Return status zero if remote wakeup is not supported
Currently composite driver is calling get_status for the function
drivers which supports remote wakeup capability. Instead of this
have another judgement to check whether the device is advertising
remote wakeup capability.

Change-Id: I6e907b2a05ea64e04aa50ee90c4eb53b86b027d4
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-02-09 03:52:06 -08:00
Venkata Rao Kakani
9979634b32 gen_headers: add gen_headers file for auto targets
Add a new gen_headers file for auto targets to avoid
conflicts with mobile targets.

Change-Id: I95b59d8cb34b2d45c76eff42a5709fb905dff7ce
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2021-02-09 13:19:26 +05:30
Kamal Agrawal
2d04a808c6 ANDROID: ABI: update allowed list for QCOM
Update the android/abi_gki_aarch64_qcom with recent symbol additions.

Simple change and no need to update the .xml file, as no new symbol
addition.

Bug: 179747683
Signed-off-by: Neeraja P <neerp@codeaurora.org>
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Change-Id: I1d5252ed623f83611a5b064a8e0e33e4f0d188c5
2021-02-09 12:57:28 +05:30
Kishore Sri venkata Ganesh Bolisetty
acfaa3c73b binder: update low_latency selection for binder transactions
The changes enables low latency for 120 priority FG binder
transactions in the rendering path.

Change-Id: I5736611c7f139362c54d0f0e73f07dfe078c8848
Signed-off-by: Kishore Sri venkata Ganesh Bolisetty <bsrivenk@codeaurora.org>
2021-02-08 15:27:51 -08:00
Zhiqiang Liu
676d6f86bb dt-binding: clock: add 7nm/14nm display pll headers for Gen3
Add 7nm/14nm display pll clock headers for Gen3 platforms.

Change-Id: I5b77a9d8d243eca25264fabbee12207c374908cc
Signed-off-by: Zhiqiang Liu <zhiqliu@codeaurora.org>
2021-02-08 13:44:50 -08:00
Manu Gautam
c6585c886a usb: f_gsi: Allow user to specify MAC address for RNDIS/ECM
Currently driver uses random MAC address which gets changed
across composition switches or reboots. Allow user to specify
MAC address using configfs parameter to fix this.

Change-Id: I96710b3419ff7c016b931195a80ce77cd8c9038c
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2021-02-08 15:11:21 +05:30
qctecmdr
db5f5ed622 Merge "sched/walt: Move scheduler techpack to kernel" 2021-02-07 22:42:28 -08:00
qctecmdr
14507f613f Merge "cnss2: Use CONFIG_PCI_MSM to protect MSM PCIe APIs" 2021-02-07 22:42:28 -08:00
Mike Tipton
0022172cdd clk: qcom: Add properties for marking clocks as critical
Some clocks are critical only on specific boards, i.e. clocks used to
interface with external PMICs over I2C. Which clocks are critical depend
on which I2C bus is chosen to connect the PMICs. To support this, add
properties to set QCOM_CLK_IS_CRITICAL on a per-board basis.

The qcom,critical-clocks property can be used to set
QCOM_CLK_IS_CRITICAL on individual clocks.

The qcom,critical-devices property can be used to set
QCOM_CLK_IS_CRITICAL on all clocks used by specified devices.

Change-Id: I42d61ec13225026ba7d0b78079cf7a2ab67339f2
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2021-02-07 21:14:41 -08:00
Vivek Pernamitta
122c22e618 msm: pcie: Dump PCIe registers for hang event
Dump limited set of pcie PARF, DBI and PHY registers for
hang event.

Change-Id: I626bb25abac19a9194669532cc8bc77dbfad119d
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2021-02-08 10:32:16 +05:30
Mike Tipton
16f59d369a clk: qcom: Add QCOM_CLK_IS_CRITICAL flag
Add QCOM_CLK_IS_CRITICAL, which can be used to enable a clock by default
in HW and to skip registering it with the framework.

Change-Id: I803a447fae742ca2e20973046090d2b8331ab598
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2021-02-08 10:16:20 +05:30
qctecmdr
0667a1b5dc Merge "usb: dwc3: Issue ENDTRANSFER cmd on ep0 unconditionally" 2021-02-07 15:30:41 -08:00
qctecmdr
b80f916238 Merge "drivers: soc: qcom: rimps_memlat: check cpu in idle path" 2021-02-07 11:45:28 -08:00
qctecmdr
aeeaa66033 Merge "input: touchscreen: focaltech: use proper dev" 2021-02-07 11:45:27 -08:00
qctecmdr
baeb717e11 Merge "net: cnss: add snapshot of cnss platform driver" 2021-02-07 11:45:27 -08:00
qctecmdr
5b34e22e77 Merge "usb: phy: qusb: Use scm call to update LVL_SHIFTER register" 2021-02-07 11:45:26 -08:00
qctecmdr
c1813e9149 Merge "cnss2: Update qdss config file name" 2021-02-07 11:45:26 -08:00
Nagireddy Annem
013b2bbb1b defconfig: Enable Socinfo and gpio sysfs for monaco
Enable Socinfo and GPIO sysfs configs for monaco.

Change-Id: I45a45fbbae2dac3e558dc3cb9e8f33b734187efd
Signed-off-by: Nagireddy Annem <nannem@codeaurora.org>
2021-02-07 05:16:24 -08:00
qctecmdr
86401a1787 Merge "arm64: defconfig: enable qcom_scm/fastscvp on gen3auto" 2021-02-06 22:12:47 -08:00
qctecmdr
238b1e37b4 Merge "perf: Add exclude_idle support for armv7 PMU" 2021-02-06 05:10:46 -08:00
qctecmdr
68fd89baf1 Merge "leds: leds-qti-tri-led: Don't print error log for -EPROBE_DEFER" 2021-02-06 05:10:46 -08:00
qctecmdr
9e93c40032 Merge "usb: phy: snps: Ensure SIDDQ is disabled for proper functioning" 2021-02-06 05:10:46 -08:00
qctecmdr
46bb8e6b35 Merge "pinctrl: add restore function for sx150x" 2021-02-06 05:10:45 -08:00
qctecmdr
ac5c618ac5 Merge "net: qrtr: fix tx flow memory leak" 2021-02-06 05:10:45 -08:00
qctecmdr
dc655ccb0e Merge "soc: qcom: Reset watchdog before setting bite time" 2021-02-06 05:10:44 -08:00
qctecmdr
fec650e1be Merge "cnss2: Fix error case print for dev_boot debugfs" 2021-02-06 05:10:44 -08:00
Laisheng Hu
6152c18649 arm64: defconfig: enable qcom_scm/fastscvp on gen3auto
enable qcom_scm and fastcvpd for vidc driver.

Change-Id: Idb17a079e1472e1d2a853d2ea68da6933768d7e1
Signed-off-by: Laisheng Hu <laisheng@codeaurora.org>
2021-02-06 04:33:58 -08:00
Pratham Pratap
42a90ced12 usb: dwc3: Issue ENDTRANSFER cmd on ep0 unconditionally
Consider a case where ep0 is not in setup stage and composition
switch happens. Currently DWC3_DEPCMD_ENDTRANSFER command is not
issued on ep0 which means that the transfers are not flushed out
and driver clears the run/stop bit hence stopping the controller.
Now as soon as driver sets the run/stop bit controller tries to
access the trb from the previous session which is already unmapped
resulting in SMMU fault.

Fix this by unconditionally issuing DWC3_DEPCMD_ENDTRANSFER
command on ep0. Although it is not specified in the data book
but if we know for sure that we are anyway going to stop the
controller then we can issue ENDTRANSFER command on ep0.

Change-Id: Ic6ee570acc8926897d3b6042181a501a47438d92
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-02-05 22:31:13 -08:00
qctecmdr
9a855e1c71 Merge "pci: switch: Add snapshot of PCIe switch driver" 2021-02-05 18:01:29 -08:00
qctecmdr
47d8e027d9 Merge "usb: dwc3: core: Select UTMI clock before core_soft_reset" 2021-02-05 18:01:28 -08:00
qctecmdr
64f86ae513 Merge "pci: msm: msm_pcie_iatu_config API clean" 2021-02-05 18:01:28 -08:00
qctecmdr
9d0e285207 Merge "msm: pcie: provide client the ability to control PCIe target_link_speed" 2021-02-05 18:01:28 -08:00
qctecmdr
d8ba3161ed Merge "cnss2: Add support for PCI wake GPIO" 2021-02-05 18:01:27 -08:00
Yue Ma
2dc22bc62d cnss2: Use CONFIG_PCI_MSM to protect MSM PCIe APIs
This can ease the complexity to port CNSS2 driver to non-MSM
platforms while still be able to maintain the compatibility.

Change-Id: I268cdd90c59085b34aa2fe3c3b845d60c4e2a417
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-05 17:31:07 -08:00
Yue Ma
dc0ecaca75 cnss2: Set initial target PCIe link speed to Gen2 for QCA6490
Since there may be link issues if QCA6490 device boots up with Gen3
link speed, always set initial target PCIe link speed to Gen2. Device
is able to change it (back) later at any time if needed.

Change-Id: I9d617d71926fe98e59e67aff772984878e0a2689
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-05 17:30:27 -08:00
Dennis Cagle
878506879e defconfig: sdxlemur: Remove slub debug config
Remove CONFIG_SLUB_DEBUG_ON from debug variant for performance
reasons. Also remove redundant HARDENED_USERCOPY from debug config
since this gets copied over from the standard config.

Change-Id: I7c6fc8620290cf126ced046f82811e9e39bc2a60
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
2021-02-05 14:35:31 -08:00
Anson Huang
9533cdc100 BACKPORT: clk: composite: Export clk_hw_register_composite()
Export clk_hw_register_composite() to support user built as module.

ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko]
undefined!

(cherry picked from commit d7d7518fdcc8f43da69fb40073273e77f24be24f)
[Jindong: Resolved minor conflict in drivers/clk/clk-composite.c ]
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Change-Id: I54496d44d4bf6599af3a3ec9c40c02556d55cf17
2021-02-05 21:39:00 +00:00
Tony Truong
d0cb56ec45 msm: pcie: provide client the ability to control PCIe target_link_speed
There are usecases where clients want to change the maximum GEN
speed that PCIe can link up with. Provide clients the ability to
control the maximum PCIe GEN speed to for such usecases.

Change-Id: I834bee2063133546c9b0ebac2d5328ffbc5ceac6
Signed-off-by: Tony Truong <truong@codeaurora.org>
2021-02-05 12:54:14 -08:00
Manikandan Mohan
a95b7ebf3b cnss2: Add WLAN device OTP version debug print
Rearrange target capability debug print message to provide WLAN
device OTP version.

Change-Id: Id68ff83eb55f4dd3ba3851006f8fc04faa91bc52
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2021-02-05 12:15:23 -08:00
Elson Roy Serrao
eabbb7f853 usb: dwc3: core: Select UTMI clock before core_soft_reset
In HS Only mode of dwc3 controller version 1.9A, UTMI clock needs
to be selected before core soft reset as per the HPG sequence.
Or else the core soft reset fails, leading to enumeration
failure. Hence select UTMI clock before performing
SOFT_RESET operation.

Change-Id: I12d4a992872eecbfc38825282559cd4d592c3896
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2021-02-05 11:12:16 -08:00
Zhiqiang Liu
e72f0db3bf defconfig: gen3auto: enable PCA954x & SX150X driver for sa8155/sa8195
Enable i2c mux chip PCA954x driver and pinctrl chip SX150X driver for
DSI-to-DP bridge chip ANX7625 driver on platform sa8155/sa8195.

Change-Id: I081c1f8a6e7e84ff40bb3e17034f9df6f7ad44ce
Signed-off-by: Zhiqiang Liu <zhiqliu@codeaurora.org>
2021-02-05 16:07:46 +08:00
qctecmdr
47f285b88f Merge "cfg80211: Indicate support for configuring PMKSA timer params" 2021-02-04 23:09:29 -08:00
qctecmdr
40fb7865c8 Merge "defconfig: Configure MaxPower to 900mA on sdxnightjar" 2021-02-04 23:09:28 -08:00
qctecmdr
a38ac852dc Merge "Revert "cnss2: Dump mhi debug regs on receiving mhi WAKE event cb"" 2021-02-04 23:09:28 -08:00
qctecmdr
c390f8a32f Merge "regulator: qpnp-lcdb: remove workaround for LCDB regulation issue" 2021-02-04 23:09:28 -08:00
qctecmdr
9a5704feb8 Merge "ANDROID: GKI: Enable DRM_GEM_SHMEM_HELPER" 2021-02-04 23:09:27 -08:00
qctecmdr
5a47f69464 Merge "clk: qcom: clk-rpmh: Fix overflow in BCM vote" 2021-02-04 23:09:27 -08:00
Sarthak Garg
a57e717910 mmc: defconfig: Enable IPC logging for lahaina consolidate defconfig
Enable IPC logging for lahaina consolidate builds for debug info. 

Change-Id: I29a36fd0694d7d483e697fb63fc1ebe2e0d22433
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-02-05 12:29:33 +05:30
Yue Ma
ea814047ba cnss2: Add support for PCI wake GPIO
For non-MSM platforms, PCI wake GPIO may not be handled by PCI root
complex driver so add support to handle it in device driver.

Change-Id: Ief6bc6b25bdc5b93887af1cc626acc721f9fa85a
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:28:28 -08:00