From: Peng Fan <peng.fan@oss.nxp.com>
To: David Lechner <dlechner@baylibre.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>,
Julien Stephan <jstephan@baylibre.com>,
u-boot@lists.denx.de, Macpaul Lin <macpaul.lin@mediatek.com>,
Ryder Lee <ryder.lee@mediatek.com>,
Weijie Gao <weijie.gao@mediatek.com>,
Chunfeng Yun <chunfeng.yun@mediatek.com>,
Igor Belwon <igor.belwon@mentallysanemainliners.org>,
GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,
Peng Fan <peng.fan@nxp.com>, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v2 0/8] power: pmic: mtk-pwrap: add more capability flags
Date: Wed, 29 Apr 2026 10:18:38 +0800 [thread overview]
Message-ID: <afFqfjAMzFDg7Nsp@shlinux89> (raw)
In-Reply-To: <16a5c572-ba55-4481-82a3-013e4dd0b772@baylibre.com>
On Mon, Apr 27, 2026 at 06:15:55PM -0500, David Lechner wrote:
>On 4/9/26 3:30 PM, David Lechner wrote:
>> 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>
>>
>
>Hi Jaehoon,
>
>Is it OK if I take this through the MediaTek tree? We need to
>pick this up for v2026.07 to make sure the boards we added recently
>are working correctly.
>
Feel free to take it through MTK tree.
Regards
Peng.
next prev parent reply other threads:[~2026-04-29 2:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2026-04-28 14:46 ` Julien Stephan
2026-04-29 14:23 ` David Lechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=afFqfjAMzFDg7Nsp@shlinux89 \
--to=peng.fan@oss.nxp.com \
--cc=GSS_MTK_Uboot_upstream@mediatek.com \
--cc=chunfeng.yun@mediatek.com \
--cc=dlechner@baylibre.com \
--cc=igor.belwon@mentallysanemainliners.org \
--cc=jh80.chung@samsung.com \
--cc=jstephan@baylibre.com \
--cc=macpaul.lin@mediatek.com \
--cc=peng.fan@nxp.com \
--cc=ryder.lee@mediatek.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=weijie.gao@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.