Enable TSENS and different cooling device drivers for holi
to monitor junction temperature and handle different mitigations.
Change-Id: I04528379b33532cfc237fc977617aad8c8c022d2
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
As per the kernel doc for usb_ep_dequeue(), it states that "this
routine is asynchronous, that is, it may return before the completion
routine runs". And indeed the dwc3 gadget driver recently updated its
behavior to place dequeued requests on to a cancelled list to be
given back later after the endpoint is stopped.
The free_ep() was incorrectly assuming that a request was ready to
be freed after calling dequeue which results in a use-after-free
in dwc3 when it traverses its cancelled list. Fix this by moving
the usb_ep_free_request() call to the callback itself in case the
ep is disabled.
Change-Id: I51751e002ad86b226d9f0d872c66a77e94e8cab7
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Enable F_UAC2 USB ConfigFS driver as a GKI module on Lahaina.
Change-Id: I72ba962aa13832091ad78db9404bddf4c29df066
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Simply changing bool to tristate should do the trick.
Change-Id: I12916801778c4cc2150f9f2c820095a09b104851
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Add SS/SSP descriptors for the UAC2 function.
Also fix the audio quality issues by increasing the
number of USB_XFERS.
Change-Id: Ie94aee43dd52b0b711778420e485af72730dd28b
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
As per the UAC 2.0 specification, ASYNC data endpoint is required
to have feedback data endpoint. Since driver descriptor does not
include feedback data endpoint, change endpoint bmAttributes for
data endpoint to represent as SYNC instead of ASYNC. This allows
device to enumerate on windows 10 PC.
Change-Id: Ied3c2c94a8cd1cc130bb77484641f0d8d5ed642d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This function can be called to stop an endpoint handled by the
secondary execution environment just after the HCD is removed
(e.g. Type-C cable removal), after which the QMI sound driver
proceeds to unmap transfer ring buffers from DMA. However,
although the RH state indicates it is not running, the controller
may not yet be fully halted and may continue to access now
unmapped memory. Replace the HCD_RH_RUNNING(hcd) check with
xhci_check_args() which includes a check for XHCI_STATE_HALTED,
so that a Stop command can still be issued.
Change-Id: Ie17882cdcfeea13fbdf7b1cd1353296d5966c798
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Update the symbol list with APIs required by audio drivers.
Change-Id: Iee9bc353834e3384c19406dc0adfa37f75390a39
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Add support to distinguish PMIC4 BOB from PMIC5 BOB using
"qcom,regulator-hw-type" device tree property as the MODE_CTL
settings of PMIC5 BOBs are different from PMIC4 BOBs.
Change-Id: I5162e514487b255c33eb66e75a44a40fe92d50a6
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
During scan operation some channel are getting scanned
with rssi value less then the rssi threshold value.
Append the channel in scan list if it found with rssi
greater or equal to rssi threshold value.
Tune back to the original tuned frequency when scan
is cancelled in between.
CRs-Fixed: 2734678
Change-Id: Ib431ce70e9c32b2ddf3f991b41abc0c23c74e820
Signed-off-by: himta ram <hram@codeaurora.org>
Increase the socket recvbuf for the ns so control packets are not
dropped in heavy traffic situations like ssr. This change will not
actually set the recvbuf to INT_MAX but to the system defined rmem_max
for sockets.
Change-Id: If56eac164a7ea3f0857170d3966c3c174a7460ae
Signed-off-by: Chris Lew <clew@codeaurora.org>
Update cnss platform driver to use bus bandwidth voting
data as configured in device tree file.
Change-Id: I327c41613a6ca1d53550cf6d266db90b46f7bc77
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
Disable parkmode for Gen1 controllers to fix the data stall issue
in host mode.
Change-Id: I28694a533543b14f752e195b722aafcb83cc4f1d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
while testing composition switch from UI, composite driver sending
disconnect event to userspace from function unbind path or from the
bus reset. As per the none composition rules in init.msm.usb.configfs.rc
unbind should happen first and sending the disconnect event to userspace.
Userspace code will starts 1 sec timer for enumeration.
In some cases where adbd is enabled, adbd taking more than 1sec to restart
and causing delay in next composition enumeration. Another case is in RNDIS
composition switch. Where rndis function is taking more time in unbind path
and causing delay for next composition switch.
This results in userpsace timeout (1 second) causing actual composition
enumeration failure and falls back to default composition.
Workaround the issue by not sending disconnect event to userspace on
composition switch from unbind path. Instead send the disconnect event
from USB bus reset so that userspace enable timer starts from bus reset.
Change-Id: I2d1fcaa0704e369204fbba4eceb8ba9b1c525b41
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
When fd is zero, we set context fds to NULL. This will avoid
calling map create for context. Proper check is required
to avoid dereferencing of map and fd.
Change-Id: Id8d4b93d7d999e14ac1ebd8291137f799a73cf1a
Acked-by: Ekansh Gupta <ekangupt@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
During the scan operation there is no interrupt received at
rtc6226 driver for both tune and seek and time out happened.
Scan operation is not terminated when tune or seek time out happened.
This leads to a tune time out at FM App and command time out pop is
displayed. Send the hardware error event when tune/seek timed out.
So that FM app will be reset and subsequent FM functionality can
work normally.
CRs-Fixed: 2727531
Change-Id: Ia1395744b069f4e968deb09210baa748bb94c47b
Signed-off-by: himta ram <hram@codeaurora.org>
In func ufs_qcom_unvote_qos_all, err may be returned without being
initialized, so give it an initial value to avoid such case.
Change-Id: I56425601ae38d322a03af0916760ef2f166c2807
Signed-off-by: Can Guo <cang@codeaurora.org>
Currently transitions to nap state from active, slumber or aware
are not permitted. This fix allows transition from active or slumber
to nap state.
Change-Id: I889c050fb7042fefcab40ea4fa84efabef2149e8
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
If eud driver is enabled in xbl, there was a explicit need
to enable eud from hlos side also. This change enables eud
if eud_mode_manager2 register is set.
Change-Id: I72a8560a7fd8dfa4eaed7895bb423a867ab90e91
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>