pointer dereference
spmi: pmic-arb: instantiate spmi_devices at arch_initcall
David Collins (1):
spmi: pmic-arb: add support for HW version 5
Kiran Gunda (1):
spmi: spmi-pmic-arb: enable the SPMI interrupt as a wakeup source
Subbaraman Narayanamurthy (1):
spmi: pmic-arb: do not ack and clear
ber of data_channel supported.
This new protection is functional on hw v2.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 84 +++-
1 file changed, 83 insertions(+), 1 deletion(-)
diff --git a/drivers/s
function and the code is much
cleaner without it.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 29 +++--
1 file changed, 3 insertions(+), 26 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi
-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 144 ++-
1 file changed, 88 insertions(+), 56 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 7201611..6320f1f 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b
interrupt. That
IRQF_PENDING state indicates an edge transition happened while
the interrupt was being handled and the handler is called again.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 6 ++
1 file changed, 6 insertions(+)
diff --git
indeed enabled before calling the apid handler.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index ad34491
From: Abhijeet Dharmapurikar
PMIC bus arbiter v3 supports 512 SPMI peripherals. Add the v3 operators to
support this new arbiter version.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 133 +++
1
-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 248 ++-
1 file changed, 224 insertions(+), 24 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 412481d..b755c24 100644
--- a/drivers/spmi/spmi-pmic-arb.c
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.
Signed-off-by: Subbaraman Narayanamurthy
Signed-off-by:
Currently the SPMI interrupt will not wake the device. Enable this
interrupt as a wakeup source.
Signed-off-by: Nicholas Troast
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic
igned-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 767bd2c..069799c 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers/spmi/spmi-pmic-arb.c
@@ -1
From: Abhijeet Dharmapurikar
If "core" memory resource is not specified, the driver could end up
dereferencing a null pointer.
Fix this by returning -EINVAL when core resource is missing.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic
interrupt region.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 101 ++-
1 file changed, 43 insertions(+), 58 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index
: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 14 --
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index bc03737..1d23df0 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b
n registers offset by its
corresponding apid.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 68 ++--
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/s
a bit mask. Replace it with the BIT() macro.
Signed-off-by: Abhijeet Dharmapurikar
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 164 +--
1 file changed, 82 insertions(+), 82 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers
Update the bindings with the new properties used for
PMI8998.
Signed-off-by: Kiran Gunda
Reviewed-by: Bjorn Andersson
Reviewed-by: Rob Herring
Acked-by: Daniel Thompson
---
Changes from V3:
- Removed the default values.
- Removed pmi8998 example.
Changes from V4:
- modified qcom
Restructure the qcom-wled bindings for the better readability.
Signed-off-by: Kiran Gunda
Reviewed-by: Bjorn Andersson
Reviewed-by: Rob Herring
Acked-by: Daniel Thompson
---
Changes from V3:
Added Reviewed-by and Acked-by tags.
Changes from V4:
None
.../bindings/leds/backlight/qcom
Handle the short circuit interrupt and check if the short circuit
interrupt is valid. Re-enable the module to check if it goes
away. Disable the module altogether if the short circuit event
persists.
Signed-off-by: Kiran Gunda
Reviewed-by: Bjorn Andersson
---
Changes from V3:
- Added
: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/thermal/qcom-spmi-temp-alarm.c | 92 ++
1 file changed, 71 insertions(+), 21 deletions(-)
Changes from [V1]:
Rebased on top of 4.17-rc6
diff --git a/drivers/thermal/qcom-spmi-temp-alarm.c
b/drivers
The FSC (Full scale current) setting is not updated properly due to the
wrong register toggling for WLED5. Also the ILED_SYNC toggle and MOD_SYNC
toggle sequence is updated as per the hardware team recommendation to fix
the FSC update and brightness update issue.
Kiran Gunda (2):
backlight
Currently, for WLED5, after FSC register update MOD_SYNC_BIT
is toggled instead of SYNC_BIT. MOD_SYNC_BIT has to be toggled
after the brightness update and SYNC_BIT has to be toggled after
FSC update for WLED5. Fix it.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 25
Currently the FSC SYNC_BIT and MOD_SYNC_BIT are toggled
from 1 to 0 to update the FSC and brightenss settings.
Change this sequence form 0 to 1 as per the hardware team
recommendation to update the FSC and brightness correctly.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c
The FSC (Full scale current) setting is not updated properly due to the
wrong register toggling for WLED5. Also the ILED_SYNC toggle and MOD_SYNC
toggle sequence is updated as per the hardware team recommendation to fix
the FSC update and brightness update issue.
Kiran Gunda (2):
backlight
Currently the FSC SYNC_BIT and MOD_SYNC_BIT are toggled
from 1 to 0 to update the FSC and brightenss settings.
Change this sequence form 0 to 1 as per the hardware team
recommendation to update the FSC and brightness correctly.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c
Currently, for WLED5, after FSC register update MOD_SYNC_BIT
is toggled instead of SYNC_BIT. MOD_SYNC_BIT has to be toggled
after the brightness update and SYNC_BIT has to be toggled after
FSC update for WLED5. Fix it.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 25
adopting the common wled3_sync_toggle() for WLED5 and
introducing new code to the brightness update path to compensate.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 25 +++--
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/drivers/video
the cover letter.
2. Updated the description of the patches as per Daniel's suggestion.
Kiran Gunda (2):
backlight: qcom-wled: Fix FSC update issue for WLED5
backlight: qcom-wled: Correct the sync_toggle sequence
drivers/video/backlight/qcom-wled.c
guarantee such a transition
regardless of the previous register state.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/video/backlight/qcom-wled.c
b/drivers/video/backlight/qcom-wled.c
index
n Boyd
- Added "Acked-for-MFD-by" tag from Lee Jones
Kiran Gunda (2):
mfd: qcom-spmi-pmic: Convert bindings to .yaml format
mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l
.../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 --
.../devicetree/bindings/mfd/qco
Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs
found on SC7180 based platforms.
Signed-off-by: Kiran Gunda
Acked-for-MFD-by: Lee Jones
Reviewed-by: Stephen Boyd
---
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 2 ++
drivers/mfd/qcom-spmi-pmic.c
Convert the bindings from .txt to .yaml format.
Signed-off-by: Kiran Gunda
---
.../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 --
.../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 117 +
2 files changed, 117 insertions(+), 80 deletions(-)
delete
guarantee such a transition
regardless of the previous register state.
Signed-off-by: Kiran Gunda
Reviewed-by: Daniel Thompson
---
drivers/video/backlight/qcom-wled.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/video/backlight/qcom-wled.c
b/drivers/video
adopting the common wled3_sync_toggle() for WLED5 and
introducing new code to the brightness update path to compensate.
Signed-off-by: Kiran Gunda
Reviewed-by: Daniel Thompson
---
drivers/video/backlight/qcom-wled.c | 25 +++--
1 file changed, 19 insertions(+), 6 deletions(-)
diff
Updated the cover letter with "set" and "clear" terminology
instead of "1" and "0".
Changes from V1:
1. Updated the cover letter.
2. Updated the description of the patches as per Daniel's suggestion.
Kiran Gunda (2):
ba
Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs
found on SC7180 based platforms.
Signed-off-by: Kiran Gunda
---
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 2 ++
drivers/mfd/qcom-spmi-pmic.c | 4
2 files changed, 6 insertions
Convert the bindings from .txt to .yaml format.
Signed-off-by: Kiran Gunda
---
.../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 -
.../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 127 +
2 files changed, 127 insertions(+), 80 deletions(-)
delete mode
This patch series does the following:
1. converts the qcom,spmi-pmic bindings from .txt to .yaml format
2. Sorted the compatible strings
3. Adds PM6150 and PM6150L subtypes.
Changes from V2:
- Addressed Stephen Boyd and Rob Herring comments.
Kiran Gunda (2):
mfd: qcom-spmi-pmic: Convert
comments.
Kiran Gunda (2):
mfd: qcom-spmi-pmic: Convert bindings to .yaml format
mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l
.../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 -
.../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 129 +
drivers
Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs
found on SC7180 based platforms.
Signed-off-by: Kiran Gunda
---
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 2 ++
drivers/mfd/qcom-spmi-pmic.c | 4
2 files changed, 6 insertions
Convert the bindings from .txt to .yaml format.
Signed-off-by: Kiran Gunda
---
.../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 -
.../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 127 +
2 files changed, 127 insertions(+), 80 deletions(-)
delete mode
order to guarantee such a transition
regardless of the previous register state.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/video/backlight/qcom-wled.c
b/drivers/video/backlight/qcom
t; terminology
instead of "1" and "0".
Changes from V1:
1. Updated the cover letter.
2. Updated the description of the patches as per Daniel's suggestion.
Kiran Gunda (2):
backlight: qcom-wled: Fix FSC update issue for WLED5
adopting the common wled3_sync_toggle() for WLED5 and
introducing new code to the brightness update path to compensate.
Signed-off-by: Kiran Gunda
Reviewed-by: Daniel Thompson
---
drivers/video/backlight/qcom-wled.c | 25 +++--
1 file changed, 19 insertions(+), 6 deletions(-)
diff
patch 1/2.
2. Updated the patch 2/2 description with "set" and "clear"
terminology instead of "1" and "0".
3. Updated the cover letter with "set" and "clear" terminology
instead of "1" and "0".
Changes from V
adopting the common wled3_sync_toggle() for WLED5 and
introducing new code to the brightness update path to compensate.
Signed-off-by: Kiran Gunda
Reviewed-by: Daniel Thompson
---
drivers/video/backlight/qcom-wled.c | 25 +++--
1 file changed, 19 insertions(+), 6 deletions(-)
diff
guarantee such a transition
regardless of the previous register state.
Signed-off-by: Kiran Gunda
Reviewed-by: Daniel Thompson
---
drivers/video/backlight/qcom-wled.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/video/backlight/qcom-wled.c
b/drivers/video
Add PM6150 and PM6150L compatibles for Qualcomm SC7180 platfrom.
Signed-off-by: Kiran Gunda
---
Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt | 4
1 file changed, 4 insertions(+)
diff --git
a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt
b
Add support for PM6150/PM6150L regulators. This ensures
that consumers are able to modify the physical state of PMIC
regulators.
Signed-off-by: Kiran Gunda
---
drivers/regulator/qcom-rpmh-regulator.c | 62 -
1 file changed, 61 insertions(+), 1 deletion(-)
diff
Correct the PMIC5 BoB min voltage from 0.3V to 3V. Also correct
the voltage selector accordingly.
Signed-off-by: Kiran Gunda
---
Depends-on: This patch depends on "Add regulator support for SC7180"
drivers/regulator/qcom-rpmh-regulator.c | 4 ++--
1 file changed, 2 insertions(+), 2
Add regulator devices for SC7180 as RPMh regulators. This ensures
that consumers are able to modify the physical state of PMIC
regulators.
Signed-off-by: Kiran Gunda
---
arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi | 210 +
1 file changed, 210 insertions(+)
create
Add PM6150/PM6150L peripherals such as PON, GPIOs, ADC and other
PMIC infra modules.
Signed-off-by: Kiran Gunda
---
arch/arm64/boot/dts/qcom/pm6150.dtsi | 82 +++
arch/arm64/boot/dts/qcom/pm6150l.dtsi | 47
2 files changed, 129 insertions
Add PM6150/PM6150L peripherals such as PON, GPIOs, ADC and other
PMIC infra modules.
Signed-off-by: Kiran Gunda
---
arch/arm64/boot/dts/qcom/pm6150.dtsi | 85 +++
arch/arm64/boot/dts/qcom/pm6150l.dtsi | 47 +++
2 files changed, 132 insertions
Add regulator devices for SC7180 as RPMh regulators. This ensures
that consumers are able to modify the physical state of PMIC
regulators.
Signed-off-by: Kiran Gunda
---
arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi | 210 +
1 file changed, 210 insertions(+)
create
Add support for the PM6150 and PM6150L GPIO support to the
Qualcomm PMIC GPIO binding.
Signed-off-by: Kiran Gunda
---
Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 4
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 ++
2 files changed, 6 insertions
damaged.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 400 +++-
1 file changed, 394 insertions(+), 6 deletions(-)
diff --git a/drivers/video/backlight/qcom-wled.c
b/drivers/video/backlight/qcom-wled.c
index 658b1e0..33b6007 100644
--- a
WLED4 peripheral is present on some PMICs like pmi8998 and
pm660l. It has a different register map and configurations
are also different. Add support for it.
Signed-off-by: Kiran Gunda
Reviewed-by: Bjorn Andersson
---
drivers/video/backlight/qcom-wled.c | 263
)
interrupts. It also has the auto calibration algorithm support to
configure the right strings if the user specified string configuration
is in-correct. These three features are added in this series for PMI8998.
Kiran Gunda (5):
qcom: wled: Rename pm8941-wled.c to qcom-wled.c
backlight: qcom
pm8941-wled.c driver is supporting the WLED peripheral
on pm8941. Rename it to qcom-wled.c so that it can support
WLED on multiple PMICs.
Signed-off-by: Kiran Gunda
---
.../bindings/leds/backlight/{pm8941-wled.txt => qcom-wled.txt}| 2 +-
drivers/video/backlight/Kcon
module is enabled, keep OVP fault interrupt disabled for 10 ms to
account for soft start delay.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 118 +++-
1 file changed, 116 insertions(+), 2 deletions(-)
diff --git a/drivers/video/backlight/qcom
Handle the short circuit interrupt and check if the short circuit
interrupt is valid. Re-enable the module to check if it goes
away. Disable the module altogether if the short circuit event
persists.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 134
WLED4 peripheral is present on some PMICs like pmi8998
and pm660l. It has a different register map and also
configurations are different. Add support for it.
Signed-off-by: Kiran Gunda
---
.../bindings/leds/backlight/qcom-wled.txt | 172 -
drivers/video/backlight/qcom-wled.c
interrupts
are seen frequently thereby it tries to fix the sink configuration.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 302
1 file changed, 302 insertions(+)
diff --git a/drivers/video/backlight/qcom-wled.c
b/drivers/video/backlight
: Rename pm8941-wled.c to qcom-wled.c
Kiran Gunda (5):
backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c
backlight: qcom-wled: Add support for WLED4 peripheral
backlight: qcom-wled: Add support for short circuit handling
backlight: qcom-wled: Add support for OVP interrupt handling
pm8941-wled.c driver is supporting the WLED peripheral
on pm8941. Rename it to qcom-wled.c so that it can support
WLED on multiple PMICs.
Signed-off-by: Kiran Gunda
---
.../bindings/leds/backlight/{pm8941-wled.txt => qcom-wled.txt}| 2 +-
drivers/video/backlight/Kcon
WLED4 peripheral is present on some PMICs like pmi8998
and pm660l. It has a different register map and also
configurations are different. Add support for it.
Signed-off-by: Kiran Gunda
---
.../bindings/leds/backlight/qcom-wled.txt | 172 -
drivers/video/backlight/qcom-wled.c
module is enabled, keep OVP fault interrupt disabled for 10 ms to
account for soft start delay.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 118 +++-
1 file changed, 116 insertions(+), 2 deletions(-)
diff --git a/drivers/video/backlight/qcom
interrupts
are seen frequently thereby it tries to fix the sink configuration.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 302
1 file changed, 302 insertions(+)
diff --git a/drivers/video/backlight/qcom-wled.c
b/drivers/video/backlight
Handle the short circuit interrupt and check if the short circuit
interrupt is valid. Re-enable the module to check if it goes
away. Disable the module altogether if the short circuit event
persists.
Signed-off-by: Kiran Gunda
---
drivers/video/backlight/qcom-wled.c | 134
: Kiran Gunda
---
drivers/thermal/qcom-spmi-temp-alarm.c | 92 ++
1 file changed, 71 insertions(+), 21 deletions(-)
diff --git a/drivers/thermal/qcom-spmi-temp-alarm.c
b/drivers/thermal/qcom-spmi-temp-alarm.c
index f502419..a5e17ba 100644
--- a/drivers/thermal/qcom
Stephen Boyd. Please take this series after taking this patch
in to the tree.
https://patchwork.kernel.org/patch/9810723/
Kiran Gunda (5):
spmi: pmic-arb: remove the read/write access checks
spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other code cleanup
spmi: pmic-arb: replace the
should be fixed in those locations.
Hence, remove the access mode checks from the driver.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 75 +++-
1 file changed, 5 insertions(+), 70 deletions(-)
diff --git a/drivers
Replace the writel_relaxed with __raw_writel to avoid byte swapping
in pmic_arb_write_data() function. That way the code is independent
of the CPU endianness.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 2 +-
1 file changed, 1 insertion(+), 1
q_to_*().
- Clean up qpnpint_irq_set_type() and pmic_arb_find_apid()
functions.
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 453 +--
1 file changed, 226 insertions(+), 227 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/
the irq_set_wake callback.
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 416b404..25589d6 100644
--- a/drivers/spmi/spmi-pmic-arb.c
function instead of passing the sid and addr.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 82 +---
1 file changed, 40 insertions(+), 42 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi
Modify the pmic_arb version ops to return an __iomem pointer
to the address instead of an offset. That way we do not need to
care about the base address changes in the new HW version.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 87
not less than 0
Kiran Gunda (2):
spmi: pmic-arb: return __iomem pointer instead of offset
spmi: pmic-arb: fix a possible null pointer dereference
drivers/spmi/spmi-pmic-arb.c | 327 +++
1 file changed, 267 insertions(+), 60 deletions(-)
--
The Qual
If "core" memory resource is not specified, then the driver could
end up dereferencing a null pointer. Fix this issue.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers
Wu
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index d992634..5114264 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers
-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 234 +++
1 file changed, 216 insertions(+), 18 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index c7b54a6..d992634 100644
--- a/drivers/spmi/spmi-pmic-arb.c
spmi: pmic-arb: add support for HW version 5
Fenglin Wu (1):
spmi: pmic-arb: Remove checking opc value not less than 0
Kiran Gunda (2):
spmi: pmic-arb: return __iomem pointer instead of offset
spmi: pmic-arb: fix a possible null pointer dereference
drivers/spmi/spmi-p
If "core" memory resource is not specified, then the driver could
end up dereferencing a null pointer. Fix this issue.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers
Modify the pmic_arb version ops to return an __iomem pointer
to the address instead of an offset. That way we do not need to
care about the base address changes in the new HW version.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 87
Wu
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 5297aa4..c2dd001 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers
-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 235 +++
1 file changed, 217 insertions(+), 18 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index c7b54a6..5297aa4 100644
--- a/drivers/spmi/spmi-pmic-arb.c
the irq_set_wake callback.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 4795092..4824820 100644
--- a
q_to_*().
- Clean up qpnpint_irq_set_type() and pmic_arb_find_apid()
functions.
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 453 +--
1 file changed, 226 insertions(+), 227 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/
.
https://patchwork.kernel.org/patch/9810723/
Kiran Gunda (5):
spmi: pmic-arb: remove the read/write access checks
spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other code cleanup
spmi: pmic-arb: replace the writel_relaxed with __raw_writel
spmi: pmic-arb: return the value instea
function instead of passing the sid and addr.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 82 +---
1 file changed, 40 insertions(+), 42 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi
Replace the writel_relaxed with __raw_writel to avoid byte swapping
in pmic_arb_write_data() function. That way the code is independent
of the CPU endianness.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 2 +-
1 file changed, 1 insertion(+), 1
should be fixed in those locations.
Hence, remove the access mode checks from the driver.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 75 +++-
1 file changed, 5 insertions(+), 70 deletions(-)
diff --git a/drivers
el.org/patch/9822609/
https://patchwork.kernel.org/patch/9822613/
David Collins (1):
spmi: pmic-arb: add support for HW version 5
Fenglin Wu (1):
spmi: pmic-arb: Remove checking opc value not less than 0
Kiran Gunda (2):
spmi: pmic-arb: return __iomem pointer instead of offset
spmi: pmic-arb:
If "core" memory resource is not specified, then the driver could
end up dereferencing a null pointer. Fix this issue.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers
Modify the pmic_arb version ops to return an __iomem pointer
to the address instead of an offset. That way we do not need to
care about the base address changes in the new HW version.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 87
-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 236 +++
1 file changed, 214 insertions(+), 22 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 156f776..d51329e 100644
--- a/drivers/spmi/spmi-pmic-arb.c
Wu
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index d51329e..49abfa7 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers
should be fixed in those locations.
Hence, remove the access mode checks from the driver.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 75 +++-
1 file changed, 5 insertions(+), 70 deletions(-)
diff --git a/drivers
_*().
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 418 +--
1 file changed, 209 insertions(+), 209 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 7531519..530fa11 100644
--- a/drivers/spmi/s
reviewed by Stephen Boyd.
* This series depends on the below patch uploaded by Stephen Boyd
https://patchwork.kernel.org/patch/9810723/.
David Collins (1):
spmi: pmic-arb: add support for HW version 5
Fenglin Wu (1):
spmi: pmic-arb: Remove checking opc value not less than 0
Kiran Gunda (10
1 - 100 of 155 matches
Mail list logo