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>
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>
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>
This change is for general scheduler improvement.
Change-Id: Id19f38a2b9a67b130876cb8df1e88c6a56aa6aad
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This change is for general scheduler improvement.
Change-Id: I30b3899e191d880e741f922323d0826b5c292498
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This change is for general scheduler improvement.
Change-Id: I616acbe5bfdb0e1bf88e923d98b4a3d54d26d942
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>