Commit graph

882,728 commits

Author SHA1 Message Date
Linyu Yuan
18730691a5 usb: misc: nb7vpq904m: rework to work with ucsi framework
receive notification from ucsi glink,
and read orientation from gpio which output from pmic.

Change-Id: I076829ad74423b49359271c9f9a3e5d5b3898be9
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
2020-05-02 08:25:54 +08:00
David Collins
98d345a332 clk: qcom: gdsc-regulator: correct gdsc_disable() success return value
Currently gdsc_disable() can return a value of 1 upon
successfully disabling a GDSC if it has a parent supply.
Correct this so that 0 is always returned on success.

Change-Id: I37ade1bf62b4e8b2f3446b9072674935579d75dd
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-05-01 17:23:36 -07:00
qctecmdr
0efb13a580 Merge "defconfig: lahaina: Enable LEDS_TRIGGER_TIMER" 2020-05-01 14:31:15 -07:00
qctecmdr
c04054d971 Merge "iommu/arm-smmu: Fix tbu_ids type in qsmmuv500_tlb_sync_timeout()" 2020-05-01 14:31:15 -07:00
qctecmdr
685a17ec78 Merge "soc: qcom: mem-buf: Fix NULL pointer dereference when assigning memory" 2020-05-01 14:31:15 -07:00
qctecmdr
3b4dcbd4ef Merge "input: qcom-hv-haptics: set auto resonance when loading effects" 2020-05-01 14:31:14 -07:00
qctecmdr
22eaf508c7 Merge "Revert "ASoC: msm: fix integer overflow for long duration offload playback"" 2020-05-01 14:31:14 -07:00
qctecmdr
c16557c4cf Merge "mhi: core: remove duplicate timesync sysfs functions" 2020-05-01 14:31:14 -07:00
qctecmdr
0ee1d44884 Merge "msm: adsprpc: allow only unsigned offload for untrusted apps" 2020-05-01 14:31:13 -07:00
Mao Jinlong
c92524b8a9 coresight: add sw usb mode support for tmc
Add SW USB mode support for TMC to use software interface
to send data from TMC to USB.

Change-Id: I8e4dee6cfd037d8bb81ea27ad2ed996e9980720c
Signed-off-by: Shaoqing Liu <shaoqingliu@codeaurora.org>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-05-01 02:37:00 -07:00
Vignesh Kulothungan
aaf411aa91 ASoC: update uapi header for upstream compliance
Fix uapi header to work with KERNEL_HEADER_TEST and UAPI_HEADER_TEST.

Change-Id: I1ad9ded45b95f9abf3a5543f5aa21cfe7541a9cd
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-04-30 23:41:50 -07:00
Tingwei Zhang
d107ab8fbd coresight: tmc: clear has_iommu flag when smmu is bypassed
When SMMU works in bypass mode, set has_iommu to false.  ETR
can use SG mode.

Change-Id: Ic7a6814cace92098473e4b5302408034e662058d
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-05-01 12:43:06 +08:00
Stephen Dickey
92735374a1 devfreq: memlat: track cpu during ipi to cluster
Will aid debugging lockups in perf_event_read_value()
track the cpu being ipi'd.

Change-Id: Ia948f31bb2d91bca6144c0c50f8f66bd9c1459fe
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
2020-04-30 17:12:42 -07:00
qctecmdr
2a8de75724 Merge "sched/walt: Remove fixup_walt_sched_stats sched_class method" 2020-04-30 13:38:47 -07:00
Raghavendra Rao Ananta
ad116db6e6 soc: qcom: service-locator: Add soft-dependency on QRTR
QRTR needs to be functional before service locator is up. Hence,
add a soft-dependency on the QRTR to ensure this happens when
these drivers are built as modules.

Change-Id: I1919ffc03f8eb215c21724a46c1250787ba2067c
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-30 13:24:10 -07:00
qctecmdr
c58342fceb Merge "smcinvoke: Port smcinvoke driver changes" 2020-04-30 12:47:32 -07:00
qctecmdr
303f69ea7a Merge "hvc: haven: Move CONSOLE_OPEN before hvc_instantiate" 2020-04-30 12:47:32 -07:00
qctecmdr
1389989ffa Merge "usb: gsi: Add NULL pointer check" 2020-04-30 12:47:32 -07:00
qctecmdr
b2cb5d11d4 Merge "arm64: defconfig: Enable Haven ctrl for Lahaina" 2020-04-30 12:47:31 -07:00
qctecmdr
2d22a3a07e Merge "cpufreq: qcom: Add sysfs to reflect the limit frequency" 2020-04-30 12:47:31 -07:00
Raghu Ananya Arabolu
8a723102e3 Revert "arm64: defconfig: Insert Adreno default governor in gki defconfig"
This reverts commit 624d012216. KGSL driver
requires CONFIG_QCOM_ADRENO_DEFAULT_GOVERNOR to be set to msm-adreno-tz
in QGKI builds. CONFIG_QCOM_ADRENO_DEFAULT_GOVERNOR is set to the required
value for GKI and QGKI builds by the KGSL Kconfig.

Change-Id: I63b447409c7446376744bd5d9d7c850f0e7dcdc1
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-04-30 11:30:29 -07:00
Edgar Flores
8096421565 msm: adsprpc: remove excesive logging from debugfs during smmu probing
During smmu probing same debugfs file is being created for each probe.
Move debugfs file creation from smmu probing to device init call.

Change-Id: Iebb6450744d507278d4f5c3283638399987d2a29
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2020-04-30 11:00:41 -07:00
Mohammed Siddiq
a8e095c1f3 cnss2: Add code to update cnss soc info
Add code to update cnss soc info from the info
received as part of target capability response.

Change-Id: I6b88192d772dd30a8aaeb90725141c7c38b2c50c
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-04-30 10:15:05 -07:00
Lina Iyer
ce085df1b0 drivers: qcom: rpmh_master_stat: remove stub function definition
In order to support early merge of code, a vestigial definition for
qcom_smem_get() was added. This was accidentally merged in. Let's remove
it and allow the RPMH master stats to be read from the memory.

Change-Id: I89dc45c6edd8fb0df01416f7d9fb95feb1dfacc2
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-04-30 10:39:32 -06:00
Linyu Yuan
409af606eb ucsi: ucsi_glink: notify partner information
On QRD redriver will use this information to configuration.

Change-Id: Icf077136fbc4473e58e45ce55ca542f99233d506
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
2020-04-30 21:21:57 +08:00
Jishnu Prakash
26d09019b7 regulator: rpm-smd-regulator: Add support for proxy consumers
Add support to enforce proxy consumer requests defined in device
tree for rpm-smd-regulator devices.  These can be used to ensure
that regulators are not accidentally disabled or scaled down
before all consumers have had a chance to make their own requests.

Change-Id: I25569808b2026f800f3a43124cf1bf2d8b58c14b
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-04-30 03:49:03 -07:00
Jishnu Prakash
c2f05ed6b5 regulators: rpm-smd: Remove unused exported functions
Remove all exported functions as clients need to use only
functions exported from core regulator framework.
Change rpm-smd config to tristate to ensure it can be
loaded as a module.

Change-Id: I3f72a19b23fb2b97e0a13fd93fad5eade15ff535
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-04-30 15:37:40 +05:30
Mao Jinlong
75d0b9f7e9 Rest replicator registers when enabling it first time
Replicator register value could be reset when it's disabled and
clock is off. Reset the register to all ports disabled when enabling
it first time to avoid all ports to be enabled by default.

Change-Id: I29973d38eb7f836fabe22757f98db62afbe6a4c3
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-04-30 01:20:44 -07:00
Jishnu Prakash
b441dd88d1 regulator: rpm-smd: Add snapshot of rpm-smd regulator driver
Add snapshot of rpm-smd regulator driver from msm-4.19.
This snapshot is taken as of msm-4.19 commit 15bff51c0329
("smcinvoke : Add locking to shared variables").

Change-Id: I96cd163e490f811c0564dbdf30fb250156cffc85
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-04-30 10:22:19 +05:30
Linyu Yuan
94d1501dee usb: phy: qmp: support multiple function of portselect
On QRD device we want to read pmic CC output through gpio function,
thus request and release phy pinctrl state here,
it allow other function driver request gpio pin state.

Change-Id: I9901e3019656691d1f4ae17cd55ef2cd6784a330
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
2020-04-30 11:38:47 +08:00
Fenglin Wu
ec870b7d84 input: qcom-hv-haptics: set auto resonance when loading effects
Set auto resonance when loading effect according to the effect
settings.

Change-Id: I8dc9ac99a57e396d67da28ae7b1eb31813ab3362
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-04-30 11:14:20 +08:00
Fenglin Wu
a7b2b418ea input: misc: qcom-hv-haptics: check nvmem before using it
Currently, nvmem device is used to store closed loop brake settings. If
nvmem-cells is not specified for closed loop brake, then nvmem device
can be NULL. For such case, skip updating closed loop brake settings by
not writing to the nvmem device.

Change-Id: I18d455814f3731af519949f21a3a553bd1692548
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-04-30 09:21:39 +08:00
qctecmdr
1c730ce06f Merge "clk: qcom: gcc-holi: Add GCC support for HOLI" 2020-04-29 18:21:33 -07:00
qctecmdr
744e6ae9a6 Merge "tmc-etr: Add ETR status check in usb_notifier" 2020-04-29 18:21:33 -07:00
qctecmdr
9a5ca1eeec Merge "input: qcom-hv-haptics: add RC clock calibration for FIFO mode" 2020-04-29 18:21:33 -07:00
Himateja Reddy
9d43774cd2 msm: adsprpc: allow only unsigned offload for untrusted apps
Restrict untrusted third-party applications to only unsigned PD
offload on the remote subsystem. This is done by comparing PID at
the time of process create with the one stored during device open
as the fastrpc device will be opened by DSP HAL service on behalf
of third-party applications.

Change-Id: Ibaead21a429e6bffe8f0808eebf93bf71d1db7ab
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-04-29 16:16:32 -07:00
Bhaumik Bhatt
9298cd3636 mhi: core: remove duplicate timesync sysfs functions
Remove duplicate timesync sysfs functions as they have moved to
a different file.

Change-Id: Ia1988f32eb6bf16914564977d09ba7ee81022335
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-29 14:37:47 -07:00
Bhaumik Bhatt
34e46f48e9 mhi: core: add asynchronous time request support in sysfs
Add support to request time from device using the asynchronous
method in ticks and microseconds using sysfs entries.

Change-Id: Idb661ad6db9f1cc4cd594c96755986ece4961b03
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-29 14:37:41 -07:00
Guru Das Srinagesh
185c25ef79 defconfig: lahaina: Enable LEDS_TRIGGER_TIMER
Enabling "timer" LED trigger allows for LED blinking to occur with
user-defined intervals of on and off time. This is achieved by writing
to "delay_on" and "delay_off" parameters under the sysfs directory of
the LED.

Change-Id: I313288a455088dee435ce878edd8bd5000a3b40e
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-04-29 13:28:05 -07:00
Yue Ma
ed35aa4349 cnss2: Fix a few issues during platform reboot or shutdown
Make unregister driver work unkillable to avoid WLAN host driver
handling issues after it is killed by platform reboot or shutdown.
Also add proper handlings and checks for platform reboot or shutdown
to avoid unnecessary asserts for calibration cases.

Change-Id: Ide137dc351ca48ef23573abb325db011b8460f54
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-29 11:55:53 -07:00
qctecmdr
2104c7da74 Merge "drivers: lpm-levels: use correct CPUHP notifications for QoS" 2020-04-29 11:27:21 -07:00
qctecmdr
3ad6a3f532 Merge "soc: qcom: eud: Define dummy set_temios and get_mctrl callbacks" 2020-04-29 11:27:21 -07:00
qctecmdr
97b2f5ea8f Merge "mmc: sdhci-msm: Port fixes from previous qcom SoCs to Lahaina" 2020-04-29 11:27:21 -07:00
qctecmdr
9b45d45187 Merge "mhi: core: Add support to re-try requesting firmware image" 2020-04-29 11:27:20 -07:00
qctecmdr
6326cc9757 Merge "iommu/arm-smmu: Fix transaction flags in qsmmuv500_iova_to_phys" 2020-04-29 11:27:20 -07:00
Raghavendra Rao Ananta
e1084c1fa9 defconfig: arm64: Enable SDCARD_FS for Lahaina
As of commit <2e72d8932e> (Merge android-5.4.24 (ce5de62) into
msm-5.4) SDCARD_FS was disabled via gki_defconfig. Hence, re-enable
it in Lahaina's configurations for backward compatibility.

Change-Id: Ib71fbbc45c4564f6f3ffec8f318efd065c542820
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-29 09:29:57 -07:00
Jeevan Shriram
adeb86b7bd ARM: msm: Add board config support for 32 bit SDXLEMUR
This change add initial board config support to enable build 32 bit kernel
for SDXLEMUR.

Change-Id: Ib5f1d06b33ba0264242a76572abc862bbe1daeab
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-04-29 04:41:33 -07:00
Colin Cross
d3cddb0cac ARM: convert build of appended dtb zImage to list of dtbs
Allow CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE_NAMES to specify
a space separated list of dtbs to append to the zImage,
and name the resulting file zImage-dtb.

Change-Id: Ied5d0bafbd1d01fc1f109c15c4283de7029903c9
Signed-off-by: Colin Cross <ccross@android.com>
Git-commit: 9bb8731d87eba59fe7f0e504f11f5dc995ae1166
Git-repo: https://android.googlesource.com/kernel/common
[jshriram@codeaurora.org: Fixed minor merge conflicts]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-04-29 04:41:26 -07:00
Erik Gilling
f1102b8027 ANDROID: ARM: add config option to build zImage/dtb combo
Allows a defconfig to set a default dtb to concatenate with a zImage
to create a zImage-dtb.<dtb name>.

Change-Id: I34b643b1c49228fbae88a56e46c93c478089620d
Signed-off-by: Erik Gilling <konkers@android.com>
Git-commit: 23a70d4e7b8864cf405f997d3608de65a82cf87d
Git-repo: https://android.googlesource.com/kernel/common
[jshriram@codeaurora.org: Fixed minor merge conflicts]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-04-29 04:38:53 -07:00
qctecmdr
6d967e6db5 Merge "arm64: defconfig: Enable CONFIG_HH_MEM_NOTIFIER" 2020-04-29 03:27:32 -07:00