Add an exported function which can map an SPMI address to the
physical address range of the registers used to write to that
SPMI address.
The feature can be used by consumer drivers that need to lock
down access to certain PMIC peripherals temporarily for certain
secure use cases.
Change-Id: Ib477778346df29ee90661d2e07d2d3a5d160ae87
Signed-off-by: David Collins <collinsd@codeaurora.org>
This is a snapshot of the vibrator LDO driver as of msm-4.19
'commit c527cd5c987ac (Merge "mhi: cntrl: qcom: allow printing
large strings to IPC logs")' with the following modifications:
- Replace snprintf with scnprintf.
Change-Id: Id58fbcc33607c309366104fe72282c09c86a3227
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
smmu_domain logger is freed as part of error handling in
arm_smmu_init_domain_context. But smmu_domain->logger is still non null.
This cause smmu_domain->logger to be accessed during domain free. Fix
this.
Fixes: f1746fc8a009 ("iommu: qti: Track iommu domains")
Change-Id: I82a7f9121b78ca9338d202694dbc0a98150f0c92
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
BAM endpoint TRB ring has usage of 2 TRBs (normal and LINK), and
completion API (dwc3_msm_req_complete_func()) currently only
increments dequeue pointer by 1 assuming that dwc3_gadget_giveback()
does increment dequeue pointer for normal TRB. With newer changes
in dwc3 gadget framework, it moves requests to cancelled list with
usb_ep_dequeue() and reclaim those TRBs on end transfer command
completion. Reclaiming TRB back to trb pool is done only when
req->num_trbs is non zero. dwc3_msm_ep_queue() API checks for
enqueue and dequeue pointers, and on mismatch of it error out.
This results into no BAM2BAM communication after trying to use USB
as sink with QDSS usecase. Fix this issue by incrementing req->num_trbs
with dwc3_msm_ep_queue() API for normal TRB so dequeue pointer is
incremented with dwc3_gadget_ep_cleanup_cancelled_requests() API.
Change-Id: I0777aea7c6add7fb6fea7ea74056786e33435427
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Modify the GMU AO clockgating value for A660.
Change-Id: I35ea9ecae951c966c76ace14c1b24e588065dd83
Signed-off-by: Nitheesh Muthuraj <nmuthuraj@codeaurora.org>
Using weak keyword in function declarations with CFI may lead to
undesired results, remove it.
Change-Id: Idc683e47ef3ce42c694b713d6c88dce5485863c8
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Registering the cooling device from the probe, can result in the
execution of get_property() function, before the probe is complete.
To avoid this, register the cooling device from a workqueue, instead of
registering in the probe.
Change-Id: Ic9279fd5ca5476df66baa6e0f302a7f3bd6b899b
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>