GSI Driver get the usage count in work handler when set_alt 1 happens
and this counter will decrement in disconnect work due to cable disconnect
or in gsi_suspend for suspended state.
In this case set alt to 0 came for MBIM interface and clear the
data_interface_up flag. After that suspend happens and does not decrement
the counter in gsi_suspend. This causes a mismatch of usage count and
usb not entering to low power mode.
Fix this by checking for USB_PROT_GPS_CTRL instead of data_interface_up.
Change-Id: Iaabf3de46ed72e33980d1e3e386e8ca0ae651c74
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Remove debug measure support for clocks that are not registered with the
clock framework. While at it update the external clocks in debugcc to
measure only clocks.
Change-Id: Icd6d59a098d116074403d24d9bc990fdebd7bdd7
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
Currently, certain controllers with lower core clock rates, takes
more than 32ms to set the halted bit. This results in XHCI halt
timeout.
Fix this by increasing the timeout to 48ms.
Change-Id: I2f2715a11a947e01303c659e257ef0cabb311cac
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
This changes avoids device crash if Rf card is not present
in device.
Change-Id: I4b22ad0023a38e5b3ef49d6bf0e404b00c608115
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
Return EACCESS instead of EIO when link access is not
allowed at prevent l1, so client driver will procced
based on the return value.
Change-Id: Iee3b9a65609db1272be550089948d07527c7e134
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
UFS controller in the newer target supports UFS HCI specs
version 3.0. Hence Adding UFS3.0 in UFS HCI version check
to avoid logging the error message.
Change-Id: Ibbbb482a26a3ffd50667615bf2795404381a4111
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
The hw->init is no longer valid after the HW clock is registered with
the clock framework, thus clean up the clock enable/disable. While at it
update the list register offset.
Change-Id: I965cd1d5c14efd2bea8cc220f2b19ed1f3ddfb8c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
There can be cases where the clock providers have multiple regmaps and
directly registers to the clock framework. The clk regmap ops like list
registers/clk rate max would be registered only if the provider is added
to the regmap list node.
Thus expose this API for those providers to add to the list.
Change-Id: I1463c12eeed431d30e96404f2162dd75d202d4b9
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Enable arm smmu driver so that clients can use.
Change-Id: Ia1838b2d97e95c5fe224f735e42ce3e5bdbf008a
Signed-off-by: Saurabh Ambulkar <sambulka@codeaurora.org>
Add support for debug clock controller to measure
frequency of APCS mux clock.
Change-Id: I951c420c52aa62eb6a3cbfc0ccea9d244de6bb06
Signed-off-by: Rakesh Kota <kotarake@codeaurora.org>
Currently the platforms using SNPS SSPHY do not suspend it so as
to receive SS wakeup events via pwr_event_irq. But certain
telematics platforms do not need SS wakeup in system suspend
scenario.
USB wakeup from PM suspend/hibernation is not a requirement for
automotive/telematics platforms. Use enable_wakeup parameter in
dwc3_msm_suspend call to allow SSPHY suspend to happen and also
to keep the IRQs enabled/disabled.
Change-Id: I691585e15539490e63a345fe2b3aacf182352399
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
Currently the PM handling power collapses the core and issues
reset-resume for all the connected devices, both during system
suspend-resume and hibernation-restore scenarios. But certain USB
interconnect platforms want the connected device to not undergo
reset-resume on system resume.
Modify the operations to keep the core powered up, PHY resources
ON and xhci_resume with hibernated flag as 'false' so that
suspend-resume of the connected device is done on resume from
system suspend. Keep the hibernation operation as is.
Also change the DT flag to 'qcom,ignore-wakeup-src-in-hostmode'.
Change-Id: I661494595a3e270890174e0952a67985db58706d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>