Commit graph

892,835 commits

Author SHA1 Message Date
Chandana Kishori Chiluveru
5fa858f5d4 usb: gadget: Send BRK signal to host on flow disable ioctl
Currently in f_cdev driver, we are not handling the TIOCM_CTS
signal generared by SIO_IOCTL_INBOUND_FLOW IOCTL. Hence we
are not able to send BRK signal to the host and it keeps
sending data leading to data loss.

Fix this by handling TIOCM_CTS in the driver.

Change-Id: If8e4774e3e0772cb7189f3400d7e53e258b7d5a3
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-17 22:01:05 -08:00
Chandana Kishori Chiluveru
4d8eb15487 usb: gadget: Mark notify_modem as NULL on usb_cser_disconnect
On some targets, f_serial switches transport path from
char_bridge to TTY in DUN+SoftAP scenario. As a part of that,
we call usb_cser_disconnect but notify_modem callback is still
marked as usb_cser_notify_modem. Then on getting a SETUP req
from host PC, usb_cser_notify_modem is called which can lead
to NULL pointer dereference because port_usb is NULL.

Fix this by marking notify_modem callback as NULL on
usb_cser_disconnect.

Change-Id: I4470030cde6f38b905f7a88e16ed9f261a8954d6
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-17 06:41:07 -08:00
Chandana Kishori Chiluveru
29d7fb35e0 usb: gadget: Send DSR linestate on DTR high from host
When the host PC sends a DTR high during DUN call,
it expects to get a DSR signal from the modem in reply.
Add necessary support for that.

Change-Id: If46c4b75fa6210c2b15cd2880bc93461fa3a4e89
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-17 06:31:38 -08:00
qctecmdr
f838988d41 Merge "sched/walt: Improve the scheduler" 2020-12-16 22:16:34 -08:00
qctecmdr
e2539ffd27 Merge "soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled" 2020-12-16 22:16:34 -08:00
qctecmdr
10159b228d Merge "usb: dt-bindings: Add USB QMP PHY registers definition" 2020-12-16 22:16:33 -08:00
qctecmdr
be3525da72 Merge "arm64: defconfig: enable CONFIG_PRINT_SUSPEND_EPOCH_QGKI" 2020-12-16 22:16:33 -08:00
qctecmdr
a2839ca38b Merge "defconfig: msm: Enable ARCH_YUPIK for genericarmv8" 2020-12-15 09:11:53 -08:00
qctecmdr
b4fabbc028 Merge "interconnect: qcom: Enable real interconnect provider for Yupik" 2020-12-15 09:11:52 -08:00
qctecmdr
9adb2b478a Merge "usb: dwc3-msm: Disable PHY wakeup IRQs on hibernation" 2020-12-15 09:11:52 -08:00
qctecmdr
f40457bbdb Merge "iio: adc: qcom-spmi-adc5: add an unique irq name" 2020-12-15 09:11:52 -08:00
qctecmdr
7827a27eea Merge "drivers: llcc: Add LLCC driver for Yupik" 2020-12-15 09:11:52 -08:00
qctecmdr
5175b74fb7 Merge "Revert "netfilter: Unlock xt_table later"" 2020-12-15 01:48:36 -08:00
qctecmdr
45140c666f Merge "firmware: arm_scmi: increase the response timeout" 2020-12-15 01:48:35 -08:00
qctecmdr
da14ef15e2 Merge "defconfig: Enable tzlog driver on sdxlemur" 2020-12-15 01:48:35 -08:00
qctecmdr
29142a00dd Merge "msm: cvp: Fix CVP BW overvoting issue" 2020-12-15 01:48:35 -08:00
qctecmdr
96bb195660 Merge "mm/ksm: Remove reuse_ksm_page()" 2020-12-15 01:48:34 -08:00
qctecmdr
4e8886ba0b Merge "Revert "topology: Add snapshot of possible sibling cpu mask changes"" 2020-12-15 01:48:34 -08:00
qctecmdr
5984d1cd28 Merge "defconfig: Enable gcc/rpm-smd/debugCC clock drivers for sdxnightjar" 2020-12-15 01:48:34 -08:00
qctecmdr
93b3ef7d0e Merge "coresight: csr: update timestamp related registers offset" 2020-12-15 01:48:34 -08:00
qctecmdr
a15fa3b052 Merge "dt-bindings: clock: Add support for clock ids for SDXNIGHTJAR" 2020-12-15 01:48:33 -08:00
Pavankumar Kondeti
862319bb85 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Id19f38a2b9a67b130876cb8df1e88c6a56aa6aad
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-12-15 14:58:36 +05:30
Pavankumar Kondeti
5a24ce9de8 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I30b3899e191d880e741f922323d0826b5c292498
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-12-15 14:58:36 +05:30
Pavankumar Kondeti
dfd45fa093 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I616acbe5bfdb0e1bf88e923d98b4a3d54d26d942
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-12-15 14:58:36 +05:30
Sibi Sankar
295e404917 soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled
If CONFIG_QCOM_COMMAND_DB=n the following compilation errors will be
seen. Fix this by including the appropriate linux headers.

./include/soc/qcom/cmd-db.h: In function ‘cmd_db_read_aux_data’:
./include/soc/qcom/cmd-db.h: error: implicit declaration of function ‘ERR_PTR’;

Change-Id: I76ed6230b00f88cefbb78e5f2ee4a534316078d7
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200227125615.4727-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Git-commit: 7ad18bb5c2c4bd50c8b83d375ee19be992022cf3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2020-12-15 12:10:04 +05:30
Santosh Mardi
79d123c5eb firmware: arm_scmi: increase the response timeout
For synchronous messages sent from the agent to platform,
agent waits for response for 30 milli seconds (max_rx_timeout)
before timing out if response gets delayed from platform.

Increase the timeout value to 1 second to minimize message
send failures in case of delays.

Change-Id: I72e9ab33a9be675b64301e904e8d43fb8bb89e50
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-12-14 17:15:41 -08:00
Murali Nalajala
2917f5e88b arm64: defconfig: enable CONFIG_PRINT_SUSPEND_EPOCH_QGKI
Enable CONFIG_PRINT_SUSPEND_EPOCH_QGKI to print epoch values
when the device enter into suspend and resume.

Change-Id: Ia2d54874405cf88f9283cdb1699f67078aa3fcbc
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-14 12:35:02 -08:00
Srinivas Ramana
f121a71abb time: sched_clock: record cycle count in suspend and resume
Record cycle count and kernel time in ns while entering suspend
and while resuming. This will help in matching up the kernel time
with external subsystems and in recording suspend time in cycles.

Change-Id: If22d9880103c7d54087d0faf4c992259e6b97f08
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-14 12:26:18 -08:00
Murali Nalajala
de2adf4656 Kconfig: print epoch values in system suspend and resume cycles
Print epoch values when the device is enter and exit out of suspend
and resume. These epoch values are useful to know how long the device
is in suspend state. These values can be used to synchronize various
subsystem timestamps and have an unique timestamp to correlate
between various subsystems.

Change-Id: Ibe04b914649db1f2ee0ae748f3950ca646323ef1
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-14 12:25:43 -08:00
Ajay Agarwal
f74b9dbcf4 usb: dwc3-msm: Disable PHY wakeup IRQs on hibernation
There might be spurious HS PHY IRQ after USB bus has gone into
hibernation which leads to dwc3_msm_resume and in_lpm flag
getting cleared. Next when the restore from hibernation happens,
dwc3_msm_resume becomes a no-op but in reality, the HW resources
are all turned off. This leads to an unclocked access from
xhci_resume.
Fix this by disabling PHY wakeup IRQs on hibernation/pm_suspend
for automotive targets.

Change-Id: I753fb3593fca31f12406b9126f73f75520dab1b0
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2020-12-11 10:28:23 -08:00
Odelu Kukatla
56a31c4cad interconnect: qcom: Enable real interconnect provider for Yupik
Introduce Qualcomm Yupik specific real provider driver using the
interconnect framework. Also add sync_state for interconenct
provider driver.

Change-Id: Ifd61a5d1d8eb1fb532b865d128b14ae673a1acdf
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-12-11 04:42:17 -08:00
Lingutla Chandrasekhar
c4e372d1f3 Revert "topology: Add snapshot of possible sibling cpu mask changes"
Cpu possible sibling cpu mask is only used by WALT for its cluster
population. And WALT is directly getting the cpu possible sibling mask.

So remove this unused cpu mask support by reverting commit:
'6df025a02c49f65("topology: Add snapshot of possible sibling
cpu mask changes")'.

Change-Id: If65842a37cad95e8b52425a1397d12c32a95dc1e
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-12-10 19:22:29 -08:00
qctecmdr
aa860b5b17 Merge "usb: f_gsi: Send zero length packet for MBIM/GPS on cable connect" 2020-12-10 16:11:03 -08:00
qctecmdr
fdf6a38b66 Merge "msm: kgsl: Properly walk the list of timeline signals in a aux command" 2020-12-10 16:11:03 -08:00
Jordan Crouse
a8e0225571 msm: kgsl: Properly walk the list of timeline signals in a aux command
Commit 36b196ce5c ("msm: kgsl: Add software timelines") didn't properly
advance the user source pointer while walking the incoming list of timeline
signals in an aux commmand which resulted in only the first listed timeline
getting signaled.

Fixes: 36b196ce5c ("msm: kgsl: Add software timelines")
Change-Id: Ic0dedbad400f276abea6b368421ccdcef1645b9e
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-12-10 14:06:05 -07:00
qctecmdr
46105a7401 Merge "mtd: msm_qpic_nand: Workaround to get the correct density for JSC part" 2020-12-10 11:38:52 -08:00
qctecmdr
016be0999a Merge "Revert "scsi: ufs: Increase ah8 idle to 10ms"" 2020-12-10 11:38:51 -08:00
qctecmdr
f7390a26b1 Merge "defconfig: Enable new file encryption framework" 2020-12-10 11:38:51 -08:00
qctecmdr
3d160e50f2 Merge "iommu: arm-smmu: skip tlb flush during unmap" 2020-12-10 11:38:51 -08:00
qctecmdr
3848433c36 Merge "phy: ufs: add UFS PHY support for SM8150 platform" 2020-12-10 11:38:51 -08:00
qctecmdr
96d15d544e Merge "netfilter: x_tables: Switch synchronization to RCU" 2020-12-10 11:38:50 -08:00
qctecmdr
f16a9db54f Merge "iommu/arm-smmu: Update the implementation defined page number macros" 2020-12-10 11:38:50 -08:00
qctecmdr
1297536962 Merge "usb: dwc3: core: Destroy ipc log context on remove" 2020-12-10 06:46:25 -08:00
qctecmdr
324146f8ba Merge "mm/madvise: remove racy mm ownership check" 2020-12-10 06:46:25 -08:00
qctecmdr
4f0abb7427 Merge "dm verity: skip verity work on I/O errors when system is shutting down" 2020-12-10 06:46:25 -08:00
qctecmdr
7c3f466a36 Merge "input: qcom-hv-haptics: fix out of bound of FIFO samples array" 2020-12-10 06:46:24 -08:00
qctecmdr
37093a2edd Merge "firmware: qcom: tzbsp_diag info not required for qsee_log" 2020-12-10 06:46:24 -08:00
qctecmdr
c81a2b0920 Merge "arm64: defconfig: Enable CRYPTO_SHA1_ARM64_CE algorithm" 2020-12-10 06:46:23 -08:00
qctecmdr
3e35a068a5 Merge "msm: pcie: Disable access to PARF register when link is disabled" 2020-12-10 06:46:23 -08:00
qctecmdr
f274bc425e Merge "defconfig: msm-5.4: Adding sfe support to sdxlemur target" 2020-12-10 06:46:23 -08:00