Skip to content

Fix issue when using devm_of_regulator_put_matches and add compatiblity for both fixed and adjustable LDO VOUT

Alina Yu linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4regulator: rtq2208: Fix invalid memory access when devm_of_regulator_put_matches is calleddrivers/regulator/rtq2208-regulator.c+12 -100 replies
2/4regulator: rtq2208: Fix LDO to be compatible with both fixed and adjustable voutdrivers/regulator/rtq2208-regulator.c+31 -60 replies
3/4regulator: rtq2208: Add fixed LDO VOUT property and check that matches the constraintsdrivers/regulator/rtq2208-regulator.c+9 -20 replies
4/4regulator: dt-bindings: rtq2208: Add specified fixed LDO VOUT propertyDocumentation/devicetree/bindings/regulator/richtek,rtq2208.yaml+10 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RESEND 0/4] Fix issue when using devm_of_regulator_put_matches and add compatiblity for both fixed and adjustable LDO VOUT

Hi,

There are two types of LDO VOUT: fixed voltage mode and adjustable voltage mode.

As the fixed voltage for the LDO is outside the range of the adjustable voltage mode, the constraints for this scenario are not suitable to represent both modes. Therefore, A property is added to specify the fixed LDO VOUT.

In this version, a software bug has been fixed.
rtq2208_ldo_match is no longer a local variable.
It prevents invalid memory access when devm_of_regulator_put_matches is called.

Alina Yu (4):
regulator: rtq2208: Fix invalid memory access when
devm_of_regulator_put_matches is called
regulator: rtq2208: Fix LDO to be compatible with both fixed and
adjustable vout
regulator: rtq2208: Add fixed LDO VOUT property and check that matches
the constraints
regulator: dt-bindings: rtq2208: Add specified fixed LDO VOUT property

 .../bindings/regulator/richtek,rtq2208.yaml        | 11 +++-
 drivers/regulator/rtq2208-regulator.c              | 66 ++++++++++++++++------
 2 files changed, 60 insertions(+), 17 deletions(-)
Signature · 1 line
2.7.4