[PATCH 0/3] power: pmic: mtk-pwrap: add more capability flags
David Lechner
dlechner at baylibre.com
Fri Mar 27 20:03:15 CET 2026
After using the mtk-pwrap driver a bit, we noticed that there were a few
places where it was writing to registers that were not defined on all
platforms. The undefined registers are treated as 0, which is the DONE2
register on the affected platforms. This could cause the DONE2 register
to have an incorrect value, which could cause Linux to re-initialize the
PMIC unnecessarily.
To avoid this issue and ensure that we only write to registers that are
defined on a given platform, we can add some more capability flags to
conditionally call any register writes that aren't common to all
platforms.
Signed-off-by: David Lechner <dlechner at baylibre.com>
---
David Lechner (3):
power: pmic: mtk-pwrap: add init capability flag
power: pmic: mtk-pwrap: add PWRAP_CAP_WDT_SRC flag
power: pmic: mtk-pwrap: drop PWRAP_SLV_CAP_DUALIO on mt6359
drivers/power/pmic/mtk-pwrap.c | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
---
base-commit: 80a4c49a4ab2ad06fa84a8b7bdf6e33b3b5101bf
change-id: 20260317-mtk-pmic-fixes-c1523b1b0dad
Best regards,
--
David Lechner <dlechner at baylibre.com>
More information about the U-Boot
mailing list