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
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
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
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
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
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
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, 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
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
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
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
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
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
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
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
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
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
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
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
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 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 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
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 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
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
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
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
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
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
: 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
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
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
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
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
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
)
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
module is enabled, keep OVP fault interrupt disabled for 10 ms to
account for soft start delay.
Signed-off-by: Kiran Gunda
---
.../bindings/leds/backlight/qcom-spmi-wled.txt | 7 +-
drivers/video/backlight/qcom-spmi-wled.c | 83 ++
2 files changed, 87 insertions
interrupts are seen frequently
thereby it tries to fix the sink configuration.
Signed-off-by: Kiran Gunda
---
.../bindings/leds/backlight/qcom-spmi-wled.txt | 5 +
drivers/video/backlight/qcom-spmi-wled.c | 304 -
2 files changed, 306 insertions(+), 3 deletions
WLED driver provides the interface to the display driver to
adjust the brightness of the display backlight.
Signed-off-by: Kiran Gunda
---
.../bindings/leds/backlight/qcom-spmi-wled.txt | 90
drivers/video/backlight/Kconfig| 9 +
drivers/video/backlight/Makefile
Handle the short circuit(SC) interrupt and check if the SC interrupt
is valid. Re-enable the module to check if it goes away. Disable the
module altogether if the SC event persists.
Signed-off-by: Kiran Gunda
---
.../bindings/leds/backlight/qcom-spmi-wled.txt | 22
drivers/video
) and the SC (short circuit protection)
interrupts. It also has the auto calibration algorithm support to
configure the right strings if the user specified string configuration
is in-correct.
Kiran Gunda (4):
qcom: spmi-wled: Add support for qcom wled driver
qcom: spmi-wled: Add support for short
Check the irq ownership in the irq_request_resources callback
instead of checking it during the irq mapping. This can prevent
installing the flow handler for the interrupt that is not owned by the EE
and allow the irq translation during the gpio driver probe.
Signed-off-by: Kiran Gunda
---
V2
Check the irq ownership in the irq_request_resources callback
instead of checking it during the irq mapping. That we can prevent
installing the flow handler for the interrupt that is not owned by the EE
and allow the irq translation during the gpio driver probe.
Signed-off-by: Kiran Gunda
The peripheral ownership check is not necessary on single master
platforms. Hence, enforce the peripheral ownership check optionally.
Signed-off-by: Kiran Gunda
Tested-by: Shawn Guo
---
v2:
Fixed the commit message.
Added Shawn's 'Tested-by' tag.
v1:
Thi
The peripheral ownership check is not necessary on single master
platforms. Hence, enforce the peripheral ownership check optioanlly.
Signed-off-by: Kiran Gunda
---
This patch depends on the below patch series. Please take this patch
along with this series.
[PATCH V2 00/12]: spmi: pmic-arb
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
Reviewed-by: Stephen Boyd
---
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
Clean up the pmic_arb_find_apid() by using the local
variables to improve the code readability.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b
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.
Fixes: 111a10bf3e53 ("spmi: pmic-arb: rename spmi_pmic_arb_dev to
spmi_pmic_arb")
Signed-off-by: Kiran Gunda
Reviewed-by: St
Optimize the qpnpint_irq_set_type() by using a local variable
to hold the handler type. Also clean up other variable usage.
Signed-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
drivers/spmi/spmi-pmic-arb.c | 24
1 file changed, 12 insertions(+), 12 deletions
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 2f9875a..f8900d3 100644
--- a
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 3f46445..ca9bdd3 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers
-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
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 bc68e08..3f46445 100644
--- a
pport for HW version 5
Fenglin Wu (1):
spmi: pmic-arb: Remove checking opc value not less than 0
Kiran Gunda (10):
spmi: pmic-arb: remove the read/write access checks
spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other cleanup
spmi: pmic-arb: clean up pmic_arb_find_apid function
spmi
Allocate the correct memory size (max_pmic_peripherals) for the
mapping_table that holds the apid to ppid mapping. Also use a local
variable for mapping_table for better alignment of the code.
Fixes: 987a9f128b8a ("spmi: pmic-arb: Support more than 128 peripherals")
Signed-off-by: K
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
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 | 93
Clean up the pmic_arb_find_apid() by using the local
variables to improve the code readability.
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 15 +++
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic
Allocate the correct memory size (max_pmic_peripherals) for the
mapping_table that holds the apid to ppid mapping. Also use a local
variable for mapping_table for better alignment of the code.
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 11 +--
1 file changed, 5
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 | 93
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 01559d7..8ab3f6d 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers
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 fed2883a..e8c08c0 100644
--- a
-off-by: Kiran Gunda
Reviewed-by: Stephen Boyd
---
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 c585e06..01559d7 100644
--- a
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
Optimize the qpnpint_irq_set_type() by using a local variable
to hold the handler type. Also clean up other variable usage.
Signed-off-by: Kiran Gunda
---
drivers/spmi/spmi-pmic-arb.c | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/spmi
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
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
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
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
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:
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
.
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
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
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/
: 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
1 - 100 of 155 matches
Mail list logo