In Hibernate mode, the HW and SW state may go out of sync, as the HW is
turned off, but SW state is preserved. This may cause the irqs to not
work properly after the Hibernate exit.
To avoid this issue, in the Hibernate exit path, free and re-request the
interrupts, to make sure that the HW state is restored.
Change-Id: I1b38acd6b76f1629d0ed76066b0b5f2ae500a0ce
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
Enable base memory modules for Seraph by enabling configs and adding
relevant modules to first stage loading.
Change-Id: Ic42bed15207d86065671c558c893cca42ec8f837
Signed-off-by: Dibakar Singh <quic_dibasing@quicinc.com>
Signed-off-by: Jaskaran Singh <quic_jasksing@quicinc.com>
This change adds PHY msm usb driver which handles PHY initialization,
clock management, and workarounds required after resetting the
hardware and power management.
This snapshot is taken from Kernel-5.4,
'commit a8682b6e9ab7f ("usb: phy: Add snapshot of
PHY msm usb driver")'
Add phy-msm-usb driver to kernel tree via Kconfig
and Makefile.
This change also replaces bus-voting APIs with the ICB APIs.
Adding New APIs
iccs_get()
iccs_put()
msm_otg_update_bus_bw().
Removed below APIs as new compiler treating these unused
functions as errors:
msm_otg_bus_clks_enable()
msm_otg_bus_clks_disable().
Removed dbg_event() support, to improvise it later.
Changed
struct icc_path *icc_paths[1] to struct icc_path *icc_paths.
Change-Id: I5bfbd1325faa37a3ed3f0f3a83850a1cf797fa09
Signed-off-by: Roja Rani Yarubandi <quic_ryaruban@quicinc.com>
Signed-off-by: Sandeep Maheswaram <quic_sandmahe@quicinc.com>
Add place marker for Link Up, driver probe start to probe end,
first packet received/send to measure the KPI value.
Change-Id: I3a644a0d3f7df1133b2fc79f28103fe80baea369
Signed-off-by: Suraj Jaiswal <quic_jsuraj@quicinc.com>
hgsl shall return directly if it's unable to get the hab channel
during clean up, this usually means critical error happens in
graphic backend. Also, it could be very dangerous if release those
buffers directly, since GPU could still access those buffers.
Change-Id: I06e75ea059a1a1adab649d800b12bfe41acacb60
Signed-off-by: Hui Li <quic_hul@quicinc.com>
Enable bootmarker proxy driver & add module to bazel module list for
autogvm.
Change-Id: If6bdebe4d127f7ac1f39c89418fcc404ac15f94e
Signed-off-by: Konkumutti Sai Ram <quic_ksairam@quicinc.com>
gh_vm_table is an array of size GH_VM_MAX. With present index bound
checks, it is possible to access the array with index GH_VM_MAX. This
will lead to out-of-bounds access since the valid index should range
between 0 and GH_VM_MAX-1.
Change-Id: I1ce7f1bb06f4528d03413ceb86625a0e3ea1d3f1
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
Add support to update battery calibrated resistance values into the
BQ27XXX's internal NVM memory, when config
(CONFIG_BATTERY_BQ27XXX_RESIST_TABLE_UPDATES_NVM) is enabled.
With this change, update bq27xx_parse_dt function to return error code
when number of elements does not match with the fixed resistance array
length.
Change-Id: Ibbb0e4543b410a319343c625e43727207e739c0b
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
Update max size for vq buffer to avoid OOB issue when BE
tries to write MSG info onto ACK sized buffer.
Change-Id: I33fe2932e898ef0fd4a4f4ecd43daa51989cef1f
Signed-off-by: Meenu Raja Sundaram <quic_mrajasun@quicinc.com>
Add CLK_DONT_HOLD_STATE flag to gcc_usb2_0_clkref_en clock,
so that proxy voting is not done for the clock.
Change-Id: Id16cc5d97ea0cbc0a75da842fc0d6985b075d4a4
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
Enable Dynamic PHY detection on sa8775 LA for different board
and PHY types.
Change-Id: I87888ca1e191db072ebdcf64fe596c39fe95f57b
Signed-off-by: Srinath Pandey <quic_srinpand@quicinc.com>
Add a new sanity check for the input memory range. It finds the vma
of the given start address and reports error if the given memory
range is out of the vma.
It can detect the invalid uva or size input from HAB export interface.
Change-Id: Ic874f13675a1e864e4cc19b3a416d6e69b93ad88
Signed-off-by: lixiang <quic_lixian@quicinc.com>
The wait_event_interruptible_timeout api can return ERESTARTSYS if the
calling thread is signalled. Update the qmp_send API so that this error
is propagated back to the client so they can decide whether the call
needs to be retried.
Change-Id: I40794a30bc54ceb2f027c19179dbca7f4ed28bcc
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
(cherry picked from commit 8375788117)
Fix tlmm-function groups and pins added for Seraph.
Change-Id: I52000924772cf1cd3a49ad979835165da8f1a5d8
Signed-off-by: Navya Vemula <quic_nvemula@quicinc.com>
Address the name conflict between the
virtualized interface and the passthrough interface
to ensure that the interface name is independent
of the driver probe order.
Change-Id: I305b22cbd3860b0df3346ccb89aed4c879cef864
Signed-off-by: Shashank Shekhar <quic_sshe@quicinc.com>
As the scenes become more complex, there will be more and more
memory nodes. At this time, the efficiency of using list to
track them will become worse and worse, so introduce rb tree
to improve the efficiency of finding specific memory nodes.
Change-Id: I984c866eaa1c877ce70803b31f1119f8ce4ae621
Signed-off-by: Hui Li <quic_hul@quicinc.com>