regulator: mt6359: add read check for PMIC MT6359
Subsystems (2)
PATCH v2 1/1 regulator: mt6359: add read check for PMIC MT6359
Add hardware version read check for PMIC MT6359
---
Change in v1:
Fix: this should be if (ret)
[Sen Chu <[email protected]>]
---
--- drivers/regulator/mt6359-regulator.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/regulator/mt6359-regulator.c +5 -2
@@ -951,9 +951,12 @@ static int mt6359_regulator_probe(struct platform_device *pdev)struct regulator_config config = {};struct regulator_dev *rdev;struct mt6359_regulator_info *mt6359_info; -int i, hw_ver; +int i, hw_ver, ret; + + ret =regmap_read (mt6397->regmap,MT6359P_HWCID , &hw_ver); +if (ret) +return ret; -regmap_read (mt6397->regmap,MT6359P_HWCID , &hw_ver);if (hw_ver >=MT6359P_CHIP_VER ) mt6359_info = mt6359p_regulators;else
Signature · 1 line
2.18.0
Il 18/05/23 06:06, Sen Chu ha scritto:
Quoted 3 lines
Add hardware version read check for PMIC MT6359
Signed-off-by Sen Chu <[email protected]>
Quoted 7 lines · AngeloGioacchino Del Regno
Il 18/05/23 06:06, Sen Chu ha scritto:
Quoted 3 lines
Add hardware version read check for PMIC MT6359
Signed-off-by Sen Chu <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>
No fixes tag?
AngeloGioacchino Del Regno
maintainerIl 18/05/23 11:47, Chen-Yu Tsai ha scritto:
Quoted 11 lines
Quoted 7 lines · AngeloGioacchino Del Regno
Il 18/05/23 06:06, Sen Chu ha scritto:
Quoted 3 lines
Add hardware version read check for PMIC MT6359
Signed-off-by Sen Chu <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>No fixes tag?
You're right. This one needs a fixes tag.
The right tag is
Cheers,
Angelo
Mark Brown
maintainerQuoted 3 lines · Sen Chu
Add hardware version read check for PMIC MT6359
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: mt6359: add read check for PMIC MT6359
commit: a511637502b1caa135046d0f8fdabd55a31af8ef
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark