All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] power: pmic: mtk-pwrap: add more capability flags
@ 2026-04-09 20:30 David Lechner
  2026-04-09 20:30 ` [PATCH v2 1/8] power: pmic: mtk-pwrap: fix file description David Lechner
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: David Lechner @ 2026-04-09 20:30 UTC (permalink / raw)
  To: Ryder Lee, Weijie Gao, Chunfeng Yun, Igor Belwon,
	GSS_MTK_Uboot_upstream, Jaehoon Chung, Peng Fan, Tom Rini
  Cc: Julien Stephan, u-boot, David Lechner, Macpaul Lin

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.

There are also a couple of other cleanups that we do along the way. And
in v2, I've picked up Julien's patch to add support for MT8195 and
rebased on top of this.

Signed-off-by: David Lechner <dlechner@baylibre.com>
---
Changes in v2:
- Use EOPNOTSUPP.
- Reorder patches to reduce churn.
- Added new patch to fix driver description comment.
- Added new patch to drop chip type enum.
- Picked up Julien's patches from [1] and rebased on these changes.
- Link to [1]: https://lore.kernel.org/u-boot/20260317-mt8195-add-ufs-support-v1-0-7d731ec438ae@baylibre.com/
- Link to v1: https://patch.msgid.link/20260327-mtk-pmic-fixes-v1-0-ef874ca82409@baylibre.com

---
David Lechner (6):
      power: pmic: mtk-pwrap: fix file description
      power: pmic: mtk-pwrap: add PWRAP_CAP_WDT_SRC flag
      power: pmic: mtk-pwrap: add init capability flag
      power: pmic: mtk-pwrap: drop PWRAP_SLV_CAP_DUALIO on mt6359
      power: pmic: mtk-pwrap: remove interrupt related code
      power: pmic: mtk-pwrap: use pmic compatible to select child info

Julien Stephan (2):
      power: pmic: mtk-pwrap: use tabs for alignment
      power: pmic: mtk-pwrap: add MT8195 support

 drivers/power/pmic/mtk-pwrap.c | 115 +++++++++++++++++++++--------------------
 1 file changed, 60 insertions(+), 55 deletions(-)
---
base-commit: 2a1bcefce835b827bbf88a9e112d646c5c4af9c1
change-id: 20260317-mtk-pmic-fixes-c1523b1b0dad

Best regards,
--  
David Lechner <dlechner@baylibre.com>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-04-29 14:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-09 20:30 [PATCH v2 0/8] power: pmic: mtk-pwrap: add more capability flags David Lechner
2026-04-09 20:30 ` [PATCH v2 1/8] power: pmic: mtk-pwrap: fix file description David Lechner
2026-04-09 20:30 ` [PATCH v2 2/8] power: pmic: mtk-pwrap: add PWRAP_CAP_WDT_SRC flag David Lechner
2026-04-09 20:30 ` [PATCH v2 3/8] power: pmic: mtk-pwrap: add init capability flag David Lechner
2026-04-09 20:30 ` [PATCH v2 4/8] power: pmic: mtk-pwrap: drop PWRAP_SLV_CAP_DUALIO on mt6359 David Lechner
2026-04-09 20:30 ` [PATCH v2 5/8] power: pmic: mtk-pwrap: remove interrupt related code David Lechner
2026-04-09 20:45   ` David Lechner
2026-04-09 20:30 ` [PATCH v2 6/8] power: pmic: mtk-pwrap: use pmic compatible to select child info David Lechner
2026-04-09 20:30 ` [PATCH v2 7/8] power: pmic: mtk-pwrap: use tabs for alignment David Lechner
2026-04-09 20:30 ` [PATCH v2 8/8] power: pmic: mtk-pwrap: add MT8195 support David Lechner
2026-04-27 23:15 ` [PATCH v2 0/8] power: pmic: mtk-pwrap: add more capability flags David Lechner
2026-04-29  2:18   ` Peng Fan
2026-04-28 14:46 ` Julien Stephan
2026-04-29 14:23 ` David Lechner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.