Commit graph

882,289 commits

Author SHA1 Message Date
qctecmdr
21045cf753 Merge "soc: qcom: Add support for proxy consumers on of_devlink" 2020-04-17 15:54:45 -07:00
qctecmdr
2062bd224e Merge "msm: cvp: fixed cache operation func param issue" 2020-04-17 15:54:45 -07:00
qctecmdr
5bcf7e3ec6 Merge "usb: gadget: composite: Support more than 500mA MaxPower" 2020-04-17 15:38:17 -07:00
qctecmdr
ab470e82dd Merge "sched: Improve the scheduler" 2020-04-16 16:49:31 -07:00
qctecmdr
f205d5a440 Merge "cnss2: Enable time sync feature for QCA6490" 2020-04-16 16:49:31 -07:00
qctecmdr
ba398e7818 Merge "interconnect: qcom: lahaina: Use the correct binding for qnm_pcie" 2020-04-16 16:49:30 -07:00
qctecmdr
00e20a4709 Merge "netfilter: Include alarm type timer in idletimer" 2020-04-16 16:49:30 -07:00
qctecmdr
04c75d5d9f Merge "defconfig: holi: Enable holi pinctrl" 2020-04-16 16:49:29 -07:00
qctecmdr
0f383d5ad2 Merge "cnss2: Remove improper runtime PM enablement checks" 2020-04-16 16:49:29 -07:00
qctecmdr
1ddf3853b2 Merge "defconfig: Enable header tests for Lahaina GKI" 2020-04-16 11:22:40 -07:00
qctecmdr
8c3d768ae8 Merge "msm: cvp: Fix NULL pointer error when DEBUG_FS is disabled" 2020-04-16 11:22:40 -07:00
qctecmdr
8e57ec125a Merge "mhi: core: Cache last processed event ring element" 2020-04-16 11:22:39 -07:00
qctecmdr
79cec43dde Merge "mhi: core: Add OOB and DB mode event IPC log and count" 2020-04-16 11:22:39 -07:00
qctecmdr
64091379ee Merge "msm: kgsl: Don't populate the OPP table if it already exists" 2020-04-16 01:40:57 -07:00
qctecmdr
c11b140de7 Merge "ASoC: compress: Avoid race condition in compress drain" 2020-04-16 01:40:57 -07:00
qctecmdr
232c301b54 Merge "usb: f_fs: Clear OS Extended descriptor counts to zero in ffs_data_reset()" 2020-04-16 01:40:57 -07:00
qctecmdr
69c989254f Merge "dt-bindings: clock: Update clock ids of GCC for SHIMA" 2020-04-16 01:40:56 -07:00
qctecmdr
b9651440c2 Merge "usb: dwc3-msm: Revert back to power_supply_by_name() lookup" 2020-04-16 01:40:56 -07:00
qctecmdr
6f2e87c346 Merge "sched: Improve the scheduler" 2020-04-16 01:40:54 -07:00
qctecmdr
37d0a368db Merge "clk: qcom: clk-alpha-pll: Add support for Fabia print registers" 2020-04-15 20:35:59 -07:00
qctecmdr
b448ce7bd1 Merge "arm64: defconfig: Enable LLCC driver" 2020-04-15 20:35:59 -07:00
qctecmdr
6e44585f72 Merge "defconfig: Add initial defconfig fragments for Holi" 2020-04-15 20:35:58 -07:00
qctecmdr
13aa3f4764 Merge "msm: sps: Fix the SPS_DBG macro definitions" 2020-04-15 20:35:58 -07:00
qctecmdr
f4464ff43e Merge "ANDROID: serdev: restrict claim of platform devices" 2020-04-15 20:35:58 -07:00
qctecmdr
5d44961440 Merge "memshare: Rectify sourcing memshare driver for compiling" 2020-04-15 20:35:57 -07:00
Yu SI
27b17819b2 msm: cvp: fixed cache operation func param issue
param offset and size were switched in the function signature

Change-Id: Ice7b9b6c2651940648a95bdf8fa331b62c577378
Signed-off-by: Yu SI <ysi@codeaurora.org>
2020-04-15 17:13:40 -07:00
qctecmdr
6dfa423a35 Merge "phy: ufs: Add set_mode callback for RUMI UFS PHY driver" 2020-04-15 15:21:57 -07:00
qctecmdr
1abff4a10a Merge "cnss2: Add SRAM mem dump for debug" 2020-04-15 15:21:57 -07:00
qctecmdr
2b861979ae Merge "msm: adsprpc: retrieve table index directly from context ID" 2020-04-15 15:21:56 -07:00
qctecmdr
1ab68dd612 Merge "dt-bindings: iio: Update PMIC5 ADC support" 2020-04-15 15:21:56 -07:00
qctecmdr
c4687c841e Merge "trace: Make ion.h work with KERNEL_HEADER_TEST" 2020-04-15 15:21:56 -07:00
qctecmdr
7bafe03443 Merge "cnss2: Avoid blocking target to reboot or shutdown" 2020-04-15 15:21:55 -07:00
Raghavendra Rao Ananta
7a02db5182 soc: qcom: Add support for proxy consumers on of_devlink
A target may contain multiple defconfigs, but only one device-tree
configuration. Such a target may have device-drivers that are
only enabled in a particular defconfig, while disabled in the
others. For the kernel that boots up with disabled configuration,
since the device-tree node exists, the of_devlink logic expects
the driver to be probed, which is not possible. As a result, the
sync-state remains incomplete.

Hence, add support for a proxy consumer driver that shows a
proxy-presence of the main driver to satisfy the sync-state.

Change-Id: Ica8c2599fb66420c67e6a72e9b35e7afc0ae3220
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-15 10:14:30 -07:00
Jordan Crouse
789e044344 msm: kgsl: Don't populate the OPP table if it already exists
If we query the OPP table when it doesn't exist we get an error. If
we populate it again with the same operating points we get an error.
So just skip the table create if it already exists and go with
whatever we have.

Change-Id: Ic0dedbad3d5bd24b35867a82873a6ece555d8314
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-04-15 08:58:40 -06:00
qctecmdr
7e5cfaa6da Merge "net: Indicate whether a socket is a transparent socket" 2020-04-15 04:57:01 -07:00
qctecmdr
172d9b116d Merge "msm: cvp: Re-classification of traces for CVP_DBG" 2020-04-15 04:57:00 -07:00
qctecmdr
fc6304ea75 Merge "defconfig: Enable voltage cooling device for lahaina" 2020-04-15 04:56:59 -07:00
qctecmdr
df03fe156f Merge "um: x86_64: Remove the FRAME_WARN config option" 2020-04-15 04:56:59 -07:00
qctecmdr
2cb2471819 Merge "irqchip: add snapshot of msm_show_resume_irq" 2020-04-15 04:56:58 -07:00
qctecmdr
7367818d85 Merge "usb: dwc3-msm: Use PROP_INPUT_CURRENT_LIMIT to for vbus_draw" 2020-04-15 04:56:57 -07:00
Alistair Delva
09f64ec442 ANDROID: serdev: restrict claim of platform devices
Make the fallback path for claiming platform devices trigger only if a
new module parameter is specified:

  serdev_ttyport.pdev_tty_port=ttyS2

Bug: 146517987
Change-Id: Ibf331ad6e6d8712a405921530f217f7122428b13
Signed-off-by: Alistair Delva <adelva@google.com>
Git-commit: 3a97aabe4f
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-04-15 09:59:14 +05:30
Can Guo
4ebbe15e53 phy: ufs: Add set_mode callback for RUMI UFS PHY driver
This change adds the missing set_mode callback for RUMI UFS PHY driver.

Change-Id: Ib67ebf63690a1d01172d4e9c9a0c253a8595f5fb
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-04-14 18:44:45 -07:00
Hemant Kumar
d8c5bb77e0 mhi: core: Add OOB and DB mode event IPC log and count
Add IPC verbose log to print OOB and DB mode event and
the door bell ring status. Include the DB ring status
in data channel queue API. Add OOB/DB mode counter.
This helps to identify how long MHI host took to ring
the doorbell and how many times these events are getting
triggered. Reset mode_change count in debugfs show API
in order to track this for a given use case.

Change-Id: I2215554bff6d66098a8c7d01f587c1d726443181
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-14 18:00:25 -07:00
Hemant Kumar
10f4c14b87 mhi: core: Handle RSC minimum credit requirement
After getting OOB driver checks for transfer ring empty
condition and rings the channel ring doorbell without
making sure if there are minimum 8 TREs queued for
GSI to perform DMA. Otherwise there is a possibility of
Host ringing doorbell after OOB with same write pointer
which was already processed in polling mode.

Change-Id: Idda28aadbd1af9b5857db71d98237ef4761427bd
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-14 18:00:11 -07:00
Bhaumik Bhatt
855fb63bd5 mhi: core: remove firmware loader worker thread
Remove unused firmware loader worker thread as MHI has moved
on to using pre-existing worker thread in order to serialize
the process.

Change-Id: I71349c97680ec1c0bf17e8f37ef8b046487a2b19
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-14 18:00:07 -07:00
Bhaumik Bhatt
0bba6b1af5 mhi: core: check for special events at mission mode entry
In some cases, the special purpose event scheduler may not run
if the interrupt comes close to mission mode entry point and if
no suspend/resume activity follows. Do a check to see if any
pending events need to be processed.

Change-Id: Ic3bf22562f250ec4bb46c14f58617c3b0d5de883
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-14 17:59:58 -07:00
Bhaumik Bhatt
e3dc5ad381 mhi: core: prioritize handling special purpose events
Some device requested special purpose events can take a long
time to get processed on host. Fix that by moving to dedicated
worker thread.

Change-Id: Ibfe7c56b85cb58b9ee67e41ea1139702d475ffee
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-14 17:59:47 -07:00
Hemant Kumar
b5aa51711d mhi: core: Handle firmware load through state worker
Upon power up driver queues firmware worker thread if ee is in PBL.
Firmware worker is blocked with a timeout until state worker gets a
chance to run and unblock firmware worker. In case state worker gets a
chance to run after firmware worker timed out results into endpoint
boot up failure. Fix this issue by directly handling firmware loading
from state worker thread.

Change-Id: Id28c5a3eaa3b8075a7eb0185f7e08f21174e1d0d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-14 17:58:38 -07:00
Jack Pham
876ce3a3d9 usb: gadget: composite: Support more than 500mA MaxPower
USB 3.x SuperSpeed peripherals can draw up to 900mA of VBUS power
when in configured state. However, if a configuration wanting to
take advantage of this is added with MaxPower greater than 500
(currently possible if using a ConfigFS gadget) the composite
driver fails to accommodate this for a couple reasons:

 - usb_gadget_vbus_draw() when called from set_config() and
   composite_resume() will be passed the MaxPower value without
   regard for the current connection speed, resulting in a
   violation for USB 2.0 since the max is 500mA.

 - the bMaxPower of the configuration descriptor would be
   incorrectly encoded, again if the connection speed is only
   at USB 2.0 or below, likely wrapping around U8_MAX since
   the 2mA multiplier corresponds to a maximum of 510mA.

Fix these by adding checks against the current gadget->speed
when the c->MaxPower value is used (set_config() and
composite_resume()) and appropriately limit based on whether
it is currently at a low-/full-/high- or super-speed connection.

Because 900 is not divisible by 8, with the round-up division
currently used in encode_bMaxPower() a MaxPower of 900mA will
result in an encoded value of 0x71. When a host stack (including
Linux and Windows) enumerates this on a single port root hub, it
reads this value back and decodes (multiplies by 8) to get 904mA
which is strictly greater than 900mA that is typically budgeted
for that port, causing it to reject the configuration. Instead,
we should be using the round-down behavior of normal integral
division so that 900 / 8 -> 0x70 or 896mA to stay within range.
And we might as well change it for the high/full/low case as well
for consistency.

N.B. USB 3.2 Gen N x 2 allows for up to 1500mA but there doesn't
seem to be any any peripheral controller supported by Linux that
does two lane operation, so for now keeping the clamp at 900
should be fine.

Change-Id: I37032c83be6403004ee8d107cb8d7cae04fa0ffa
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-04-14 17:51:29 -07:00
Jack Pham
8f6813196f usb: dwc3-msm: Revert back to power_supply_by_name() lookup
commit af34613293 ("usb: dwc3-msm: Get usb power_supply from
device tree") changed the power_supply_get_by_name() to
get_by_phandle(), however this does not work if the device
pointed to by the phandle registers multiple power_supply
objects (including battery & wireless as is the case for
QTI PMICs) as we are not guaranteed to get back the USB psy.

Hence revert back to using power_supply_get_by_name() for
the named "usb" psy. We can keep using the "qcom,usb-charger"
DT property but just treat it as boolean instead so that we
can support USB controllers that may not be tied to a charger.

Change-Id: Ic7e4c58b096b0d6210cd55f1ff6edf21ffc5b4b1
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-04-14 17:43:50 -07:00