QTI battery debug driver helps to get logs and debug information
by communicating with charger firmware (CHGFW) running on the
remote subsystem (e.g. DSP) over PMIC Glink. Currently, it
supports getting the device context dump of battery gauging
software which is part of CHGFW.
Change-Id: Ib192ec957ea8e85f6074d5cd80c5f5e0163eb94f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
QTI battery debug driver helps to get logs and debug information
by communicating with charger firmware (CHGFW) running on the
remote subsystem (e.g. DSP) over PMIC Glink. Currently, it
supports getting the device context dump of battery gauging
software which is part of CHGFW.
Change-Id: I7bb303cf61a97f3087f8c024fc6b37e68e5d1f1e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
As cma_get_base and cma_get_size are not intended to be used by
leaf drivers on GKI enabled build, use of_reserved_mem_lookup to
get heap base and size.
Change-Id: I91194187c89ff8c7f7d445833afce1a4716f0ea4
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
By default fastmap uses an atomic context.
On GKI builds fastmap is not supported, but we need to ensure that when
a client requests that fastmap be enabled on a GKI build that they still
use an atomic context.
Change-Id: I145e4679e973b10f666a0bef6ba104223fa5e7a9
Signed-off-by: Liam Mark <lmark@codeaurora.org>
PCI_MSM_MSI is no longer its own config option. It is bounded
with PCI_MSM so remove any dependencies for it.
Change-Id: Ic417b5e063c268f1bda73e28ffe790c4da4698e8
Signed-off-by: Tony Truong <truong@codeaurora.org>
PCIe driver needs to toggle between bi_tcxo and phy pipe
clock as part of its LPM sequence. This is done by setting
pipe_clk/ref_clk_src as parent of pipe_clk_src.
Change-Id: Ie634e6024fef3e5736793fc53d281be2d52bcbf7
Signed-off-by: Tony Truong <truong@codeaurora.org>
PCIe root complex driver needs to support enable/disable
gcc_aggre_noc_pcie*_axi_clk.
Change-Id: I044d5081692d50ae82d5ab29c4913359719e5031
Signed-off-by: Tony Truong <truong@codeaurora.org>
When building as a module, the __setup() macro is undefined and the
compiler will warn about the now unused setup function. Mark it as
__maybe_unused to avoid the compiler warning.
Change-Id: Ic0dedbad341aae7d83169517d94af3b0ea038ac9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Enable gpu_cc_cx_gmu_clk, gpu_cc_hub_cx_int_clk always.
SMMU hw voting did not tie these 2 clocks, SW needs
to explicitly enable/disable these clks. Since these two
clocks are needed in mulitple system images and are not
votable, to avoid complications always keeping them on
in HLOS. These clks will automatically turn on/off
along with the CX_GDSC so no power hit.
Change-Id: Id98cfadca69586e9c95160adb8031f50a43518a2
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
Some functions support speeds other than SuperSpeed. Add max_speed
attribute to configfs gadget allowing user to specify the maximum speed
the composite driver supports. The valid input speed names are
super-speed-plus, super-speed, high-speed, full-speed, and low-speed.
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I88aa2bee62da8af902954015437eaf9e7a158b27
Git-commit: a02497033e8e04c30501abb78c92d862982b9912
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[jackp@codeaurora.org: sprintf -> scnprintf to placate Cocci]
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Change to allocate test_virt_addr of size 1 MB when reading
test_virt_addr for the first time. This will ensure allocation
to be made when tests are exercised and this doesn't add in
static boot time allocation.
Change-Id: If8babd47f52d954fb62b7c44f51268ee9bb6b0c0
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
[isaacm@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
iommu_debug_dma_unmap_write() returns 0 instead of an error code
when the command passed to the dma_unmap debugfs node is not
in the expected format.
Change-Id: Ie4f5dfa4423edc539fec9c38554e97c79fccc6c3
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Some of user space daemon like ADB queries endpoint descriptor using
ioctl to know wMaxPacketSize value. Based on wMaxPacketSize value it
queues additional buffer to read zero length packet if expected read
buffer size is multiple of wMaxPacketSize. Currently driver is missing
handling for super speed plus case which results into sending full
speed related USB endpoint descriptor (i.e. wMaxPacketSize 64 bytes).
Hence when adbd is expecting 64 bytes packet from host, it queues one
more additional buffer. This results into mismatch of ADB command and
response when multiple ADB commands are used and causing different ADB
related stability issues. Fix this issue adding super speed plus check
with FUNCTIONFS_ENDPOINT_DESC ioctl command.
Change-Id: I9416295c07c2d98f9d32df43d7e506f975da15a2
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This change updates USB function drivers to assign SSP descriptors
using usb_assign_descriptors() API. USB SSP descriptors are needed
to enumerate these functions as different composite device in
super speed plus mode.
Change-Id: Iea4d623afb2bf572358d1cc1d0673f20f2d7d5aa
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
CONFIG_QCOM_SPMI_TEMP_ALARM is incorrectly disabled in
lahaina_QGKI.config and lahaina_debug.config. Remove this
disablement so that the SPMI temp alarm driver is compiled
in both GKI and QGKI builds.
Change-Id: I2f54dae62dabe50758974c70f39f713141d16d8f
Signed-off-by: David Collins <collinsd@codeaurora.org>
Add clock GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK for clients to be able to
request for the clock.
Change-Id: I5325608b392ce3d0cf8390d7a893322e0f051a71
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
The SMMU consumer requires to enable/disable the
GPU_CC_HLOS1_VOTE_SMMU_CLK, add support for same.
Change-Id: I1ef969bba510ea5354c213c99390a3754f0a0766
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
Update comparison logic used to figure out the headers
that need to be added or removed from the corresponding
blueprint file.
Change-Id: I1f8eeea9750074d57868593a9693c016644e3682
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Make v6 updates on ufshcd-qti.c to match the updates
in ufshcd.c. Also compile UFS crypto when using
ufshcd-qti.
Change-Id: I1799b9b7f0aeee2cb76599403ae8461457a3fcd2
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
Add configuration changes in lahaina to support MSM PCIe and MHI
HOST driver.
Change-Id: If6fbbaf3f8efb04566dba2a61a6c4f79dd391515
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This allows to compile PCIe MSM driver as one module. As part
of that remove Kconfig option PCI_MSM_MSI.
Change-Id: I225b880a01cfc7b480486d7d7db9fabe86256f52
Signed-off-by: Tony Truong <truong@codeaurora.org>
When the fastmap selftests are running, a half-baked configuration
structure is allocated on the stack for the sole purpose of exercising
the mapping and unmapping paths. This leads to issues, as the
implementation of av8l_clean_range() assumes that the configuration
structure is well-defined (i.e. the device pointer is meaningful,
and can be used for applying cache-maintenance, and is contained in an
iopgtable structure). To avoid this, change av8l_clean_range() so that
it no longer assumes that the configuration structure is contained in an
iopgtable structure, as well as update the coherency settings used for
the selftests, so that cache-maintenance is not performed. It is
pointless to perform cache-mainteance for the tests, as no device
access occurs.
Change-Id: I428b893132e57184eb9f97d656ed2357489bb230
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
DP driver needs to use both USB SS lane in some use case. Hence
to release USB SS lane, add dwc3_msm_release_ss_lane() API which
performs below operations:
i. Stop USB host mode
ii. Start USB host mode into high speed mode if USB host mode
was active.
dwc3_msm_release_ss_lane() API is blocking call, and will comeback
once above both operations are performed.
Change-Id: I56df606914a613bfe4b76298b0041a66fc74878d
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
CVP firmware introduced new feature to support releasing user
allocated persistent buffers. Added support in kernel.
Change-Id: Ifcd35c328ebfbb961247bf45e2e72222bd3e425b
Signed-off-by: George Shen <sqiao@codeaurora.org>
Since eCP will need these register writes as well, instead
of exporting a function set_secvid, move these register writes
to respective target specific functions which are common to
both eCP enabled and disabled configurations. This also helps
get rid of the register offset definitions.
Change-Id: I2faa996901c746e7277dc2fdc272b9eb76e13e9c
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
With eCP, we will no longer be using the dispatcher. And
we will have different first open functions depending on
whether eCP is enabled or disabled. Hence, move dispatcher
init to first open so that dispatcher is initialized only when
eCP is not enabled.
Change-Id: Ia65807dcfed65a4b810b886f71beb4c5ba30abb1
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
We need APRIV enabled for eCP as well. But eCP doesn't
call into a6xx_rb_start. Move it to a more generic function
which is called by eCP as well.
Change-Id: I3014bee48145ab5b7c54f01854fe520d9a6db0a6
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>