Commit graph

873,117 commits

Author SHA1 Message Date
Ashok Vuyyuru
c43c35122e msm: ipa3: Fix to race condition in updating current polling state
Configure the callback mode only one time after starting the channel
otherwise observing IEOB interrupt received before configure callback
mode second time. It was leading race condition in updating current
polling state.

Change-Id: I35cdf77ee564ca82d9ff3e0cc6a58a88e8cbb471
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2019-11-12 16:03:16 +05:30
qctecmdr
6959573834 Merge "spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq" 2019-11-05 03:39:05 -08:00
qctecmdr
5c0346b227 Merge "spmi: pmic_arb: add a print in cleanup_irq" 2019-11-05 02:52:08 -08:00
qctecmdr
0eab2b4f32 Merge "spmi: pmic-arb: instantiate spmi_devices at arch_initcall" 2019-11-05 02:12:34 -08:00
qctecmdr
96d88a9dda Merge "spmi: pmic-arb: Use asynchronous probe" 2019-11-05 01:34:05 -08:00
qctecmdr
0690498f5c Merge "arm64: defconfig: Enable SPSS GLINK driver on Lahaina" 2019-11-04 23:17:50 -08:00
qctecmdr
2d981d128a Merge "defconfig: lahaina-gki: enable USB_DWC3_MSM" 2019-11-04 22:33:32 -08:00
qctecmdr
c4322dbb0e Merge "bluetooth: Add bluetooth slimbus slave drivers" 2019-11-04 21:24:32 -08:00
qctecmdr
2f017747a9 Merge "clk: qcom: Add cam cc clock driver for Lahaina" 2019-11-04 20:40:23 -08:00
qctecmdr
fbd3d320a7 Merge "msm: adsprpc: Don't check for NULL before ipc_log_string()" 2019-11-04 20:00:20 -08:00
qctecmdr
c8bffd65df Merge "usb: dwc3: Fix string format warnings" 2019-11-04 19:16:16 -08:00
qctecmdr
e69521989b Merge "iommu/arm-smmu: Fix string format warnings" 2019-11-04 18:35:54 -08:00
qctecmdr
dab37a02fd Merge "regulator: Fix formatting warnings in rpmh-regulator" 2019-11-04 15:49:45 -08:00
Jay Jayanna
0b32d1ebc5 arm64: defconfig: Enable SPSS GLINK driver on Lahaina
Enable glink driver for SPSS on Lahaina.

Change-Id: Ifdb3df82dcddb557a269ed271ef8c0d51abad07b
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
2019-11-04 11:20:24 -08:00
Raghavendra Rao Ananta
566cf3462f soc: qcom: SSR: Fix registration order for wakeup source
wakeup_source_register() expects a registered struct device *.
But in the subsys_register() path, device_register() is called
after wakeup_source_register(), which is incorrect. Hence,
flip the order of registrations. Also as an extension, reorder
the error-handling path of subsys_register() and the cleanup
sequence in subsys_unregister().

Change-Id: I976951ddcf5635ec7931253bfcda834ef30c3898
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2019-11-03 09:56:03 -08:00
Vivek Aknurwar
cccaebcf74 clk: qcom: Add cam cc clock driver for Lahaina
Add camera clock driver to support camera
peripheral clocks.

Change-Id: I9d87129e9b08c884f75f0625d0edd83e339a4f9d
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2019-11-02 16:14:09 -07:00
qctecmdr
812f0991f0 Merge "msm: ipa : Fix update of buffer recycle stats" 2019-11-02 04:16:39 -07:00
qctecmdr
31de1b639a Merge "scsi: qcom-ufs: Add support for bus voting using ICB framework" 2019-11-02 03:28:15 -07:00
qctecmdr
a45dd7ba9b Merge "coresight: byte-cntr: Add support for streaming interface for ETR" 2019-11-02 01:40:31 -07:00
qctecmdr
e62fdd4a18 Merge "Coresight: byte-cntr: Don't read byte-cntr when etr is diasbled" 2019-11-02 00:53:49 -07:00
qctecmdr
c517e81542 Merge "coresight: Add snapshot of Coresight byte counter driver" 2019-11-02 00:14:04 -07:00
qctecmdr
1693a05458 Merge "coresight: tmc: migrate byte counter to new tmc framework" 2019-11-01 23:26:52 -07:00
qctecmdr
1f695d7a99 Merge "coresight: tmc: Read the TMC mode register only if clk is enabled" 2019-11-01 22:47:53 -07:00
qctecmdr
706967db49 Merge "serial: msm_geni_serial: Double clock-divider for kona based hw" 2019-11-01 22:11:43 -07:00
qctecmdr
2b7be99444 Merge "clk: qcom: Set BRANCH_HALT_SKIP for clocks controlled by PMU" 2019-11-01 21:32:08 -07:00
qctecmdr
7ac2a92541 Merge "clk: dt-bindings: gcc: Add PCIE AXI clocks" 2019-11-01 20:53:44 -07:00
qctecmdr
0e46785388 Merge "clk: qcom: Update gcc clk parent mappings and hw ctrl flag" 2019-11-01 20:06:43 -07:00
qctecmdr
b58a50349a Merge "msm: ipa: Retry gsi channel stop for producer channels" 2019-11-01 19:21:06 -07:00
qctecmdr
c2157915a1 Merge "msm: ipa: Disable csum offload and status for ODL pipe" 2019-11-01 18:37:35 -07:00
qctecmdr
2b33271cfb Merge "dcc_v2: Remove duplicate function" 2019-11-01 17:55:20 -07:00
qctecmdr
f15a282d80 Merge "msm:ipa: unvote PCIe clock only if it was voted before" 2019-11-01 17:08:28 -07:00
qctecmdr
cd32660da5 Merge "msm: ipa: fix race condition between USB connect and modem SSR" 2019-11-01 16:23:41 -07:00
qctecmdr
ab15b23ddd Merge "msm: gsi: Set cookie correctly for GCI channel TREs" 2019-11-01 15:38:23 -07:00
qctecmdr
db2c2903f4 Merge "msm: ipa3: Change smmu mapping logs to low priority" 2019-11-01 14:55:59 -07:00
Bojun Pan
791e8ab19a msm: ipa : Fix update of buffer recycle stats
The stats for tmp allocs should be updated only if additional
buffers are available.

Change-Id: Ic064f87a54e37ef046d6761c79664e1ea830d04c
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-11-01 14:49:31 -07:00
Subbaraman Narayanamurthy
3d5821adf6 spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq
Currently, cleanup_irq() is invoked when a peripheral's interrupt
fires and there is no mapping present in the interrupt domain of
spmi interrupt controller.

The cleanup_irq clears the arbiter bit, clears the pmic interrupt
and disables it at the pmic in that order. The last disable in
cleanup_irq races with request_irq() in that it stomps over the
enable issued by request_irq. Fix this by not writing to the pmic
in cleanup_irq. The latched bit will be left set in the pmic,
which will not send us more interrupts even if the enable bit
stays enabled.

When a client wants to request an interrupt, use the activate
callback on the irq_domain to clear latched bit. This ensures
that the latched, if set due to the above changes in cleanup_irq
or when the bootloader leaves it set, gets cleaned up, paving way
for upcoming interrupts to trigger.

With this, there is a possibility of unwanted triggering of
interrupt right after the latched bit is cleared - the interrupt
may be left enabled too. To avoid that, clear the enable first
followed by clearing the latched bit in the activate callback.

Change-Id: If126d6f6cdf6c944ca513c53a71a91e225ee63e2
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
[collinsd@codeaurora.org: fix merge conflict]
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-11-01 14:08:58 -07:00
qctecmdr
ec0f991d2f Merge "msm: ipa: Add stats for page recycling" 2019-11-01 14:06:04 -07:00
Abhijeet Dharmapurikar
84d765b0da spmi: pmic_arb: add a print in cleanup_irq
The cleanup_irq() was meant to clear and mask interrupts that were
left enabled in the hardware but there was no interrupt handler
registered for it. Add an error print when it gets invoked.

Change-Id: Iccf0daadeb82b0fca29829424439ac225e2b3b88
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-11-01 14:03:59 -07:00
Abhijeet Dharmapurikar
4c8cc75386 spmi: pmic-arb: instantiate spmi_devices at arch_initcall
The spmi arbiter device spawns spmi_devices which in turn spawn
platform_devices for pmic peripherals.

Move the arbiter's driver init to arch_initcall so that the subsequent
devices it spawns get instantiated earlier.

Change-Id: Ib96937f274745549ee86f758673aab4db97acbaf
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
[collinsd@codeaurora.org: added module exit function]
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-11-01 13:55:22 -07:00
qctecmdr
f78ce2b92c Merge "arm64: defconfig: Enable gpu cc clock driver for Lahaina" 2019-11-01 12:38:59 -07:00
qctecmdr
1ad17f1d16 Merge "clk: qcom: Add gpu cc clock driver for Lahaina" 2019-11-01 11:43:54 -07:00
Jack Pham
748c82f7a5 defconfig: lahaina-gki: enable USB_DWC3_MSM
Enable USB dwc3-msm controller driver.

Change-Id: Ie916d7d60efb1d7676cc06f57fadfe91a9580bfb
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-01 11:25:14 -07:00
Patrick Daly
f4031a6aa1 spmi: pmic-arb: Use asynchronous probe
A spmi controller may have many child devices, which together may take
a signifigant amount of time to register and probe. Reduce this effect
by probing asynchronously.

After:
[    0.277217] calling__software_resume+0x0/0x24c_@_1
Before:
[    0.319295] calling__software_resume+0x0/0x24c_@_1

Change-Id: I95704a2ae7aae98e23dc9f29c7d023867d60388d
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org>
2019-11-01 11:11:12 -07:00
qctecmdr
727f8a7022 Merge "clk: dt-bindings: gcc: Add USB PIPE clocks" 2019-11-01 10:09:03 -07:00
qctecmdr
6eaa9bf7dd Merge "techpack: Fix uapi headers_install" 2019-11-01 08:40:50 -07:00
qctecmdr
76af7ae5db Merge "i2c: i2c-msm-geni: Add I2C GENI driver snapshot" 2019-11-01 07:55:53 -07:00
qctecmdr
07714cda66 Merge "dmaengine: gpi: add GPI dmaengine driver snapshot" 2019-11-01 06:58:21 -07:00
qctecmdr
8745f6ecc5 Merge "clk: qcom: clk-alpha-pll: Remove zonda pll set rate delay" 2019-11-01 05:19:13 -07:00
qctecmdr
8e4b26ff82 Merge "media: v4l2-core: Enable VIDIOC_DQBUF ioctl functionality" 2019-11-01 04:27:18 -07:00
qctecmdr
8e02afb87a Merge "clk: qcom: clk-alpha-pll: Add support for controlling zonda5lpe PLL" 2019-11-01 03:52:02 -07:00