Currently interrupts are not being disabled locally
when an event callback is being used.
This can lead to a scenario where we try to acquire
the same lock as part of global irq handler when
a client callback was in progress.
Fix this by disabling the interruts locally by using
a irqsave version of spinlock when an event callback
is being used.
Change-Id: I8a2eff826e24fb32c60bd5769390faa960669eb7
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
Implement SCM calls interface to communicate with a
backend smmu-v3 driver in order to attach/detach a smmu
client and invalidate a tlb entry.
Change-Id: Ia7393e930161c9487aba93554465df407ca4fb3c
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
To guarantee the array index is valid before use it
Change-Id: If1b37777b633edf66dad8a9f5323b042cc3b9012
Signed-off-by: Kasin Li <donglil@codeaurora.org>
Signed-off-by: Ya Tang <yatang@codeaurora.org>
With support to move between LLCC TCM and DDR memory for USB RMNET
IN endpoint related data buffer, it is required to reset RMNET IN
endpoint related num_buf and buf_len while going from LLCC TCM memory
usage to DDR memory otherwise number of buffer and length remains same
as LLCC TCM based configuration.
Change-Id: Idc0aab865bd26a9824c116762be4a2a1ec89e919
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Ethernet VLAN frames are now encapsulated in IP/GRE on uplink,
while IP/GRE headers are stripped on downlink.
Change-Id: I8f8820abf390815ed1f4a3a81bf1943a1fecf310
Signed-off-by: Perry Randise <prandise@codeaurora.org>
During suspend while trusted touch is active, remove wait
for trusted touch to complete and skip i2c transfer. This
avoids delay during suspend.
Change-Id: Iec6b1eed86e841343d4ca3513f32fb892911b7d7
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
Add changes required for QC3, when QC3 is detected,
smb1351 make requests for voltages in steps of 200mv.
Change-Id: I603f6515c7529913dcff103939018e2bdc61c45d
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
Add support for UFS controller and phy driver.
Change-Id: Ic99e8a4d245cecc9e927a14e4822fa2e61ff5408
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Signed-off-by: Anjana Hari <ahari@codeaurora.org>
Currently the driver is not setting is_suspended flag for
GPS function which is leading to remote wakeup failure for
host. Also clear rwake_inprogress flag in gsi_resume before
bailing out early for GPS function so that driver can
successfully do remote-wakeup for the functions that support
this feature.
Change-Id: I73f06c8f7b128636d0421139d068c05488d2ff06
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
Sometimes cnss probe fails as pcie link training
failure, This change will retry power on + pcie link
training.
Change-Id: I3eb12efe39b3a34b86e6cc97152d7e1615cc6266
Signed-off-by: Jingxiang Ge <jge@codeaurora.org>
WLAN host driver requires this API to get SSR state, avoid doing
ramdump when SSR happen and quick restart WLAN subsys.
Add back subsys_get_restart_level() support and fix return -EIVAL
in cnss_put_hw_resources().
Change-Id: I902d81b5693ab76028ed7e97183e07ea970930c1
CRs-Fixed: 2945893
Signed-off-by: Will Huang <wilhuang@codeaurora.org>
Correctly free up resources on error during probe.
Change-Id: Ia094bfd5694d580735000d2807a30f597f06f4e5
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
PCIE ASPM control driver is compliant to PCIE specification.
Hence use this driver in powersupersave mode.
Change-Id: I02f91836a26eb3d9af279c05352bef079b56217a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>