From: Matthias Brugger <matthias.bgg@gmail.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
nfraprado@collabora.com, rex-bc.chen@mediatek.com,
zhiyong.tao@mediatek.com
Subject: Re: [PATCH v4 0/5] MediaTek PMIC Wrap improvements and cleanups
Date: Tue, 17 May 2022 15:34:51 +0200 [thread overview]
Message-ID: <99ed8d4e-8139-851f-47ff-7968822713da@gmail.com> (raw)
In-Reply-To: <20220517104712.24579-1-angelogioacchino.delregno@collabora.com>
On 17/05/2022 12:47, AngeloGioacchino Del Regno wrote:
> This series is meant to improve the mtk-pmic-wrap driver;
> that's done by removing the custom pwrap_wait_for_state() function
> and correctly using the readx_poll_timeout macro instead, which is
> doing exactly the same as the former.
>
> As also shown in a patch [1] by Zhiyong Tao (MediaTek), performing
> a tight loop is not desired: because of the operation timing in the
> SPMI PMICs on these platforms, it makes more sense to wait for some
> microseconds before trying to read again, reducing CPU busy time
> around these state waits. For this purpose, a ~10uS delay was chosen.
>
> While at it, I also took the occasion to tidy up this driver a
> little by optimizing its probe() function.
>
> [1]: https://patchwork.kernel.org/project/linux-mediatek/patch/20220329115824.13005-2-zhiyong.tao@mediatek.com/
>
> Changes in v4:
> - Avoided moving call to platform_get_irq in patch 3/5
> - Dropped Nicolas' tags from patch 3/5 as it's different now
> - Added newline for readability in comment on patch 5/5
>
Whole series applied, thanks!
Matthias
> Changes in v3:
> - Added two more cleanup patches (4/5, 5/5)
>
> Changes in v2:
> - Fixed a critical typo in patch 1/5. Thanks Nicolas!
>
> AngeloGioacchino Del Regno (5):
> soc: mediatek: pwrap: Use readx_poll_timeout() instead of custom
> function
> soc: mediatek: pwrap: Switch to
> devm_platform_ioremap_resource_byname()
> soc: mediatek: pwrap: Check return value of platform_get_irq()
> soc: mediatek: pwrap: Move IO pointers to new structure
> soc: mediatek: pwrap: Compress of_device_id entries to one line
>
> drivers/soc/mediatek/mtk-pmic-wrap.c | 225 ++++++++++++---------------
> 1 file changed, 97 insertions(+), 128 deletions(-)
>
prev parent reply other threads:[~2022-05-17 13:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-17 10:47 [PATCH v4 0/5] MediaTek PMIC Wrap improvements and cleanups AngeloGioacchino Del Regno
2022-05-17 10:47 ` [PATCH v4 1/5] soc: mediatek: pwrap: Use readx_poll_timeout() instead of custom function AngeloGioacchino Del Regno
2022-05-17 10:47 ` [PATCH v4 2/5] soc: mediatek: pwrap: Switch to devm_platform_ioremap_resource_byname() AngeloGioacchino Del Regno
2022-05-17 10:47 ` [PATCH v4 3/5] soc: mediatek: pwrap: Check return value of platform_get_irq() AngeloGioacchino Del Regno
2022-05-17 10:47 ` [PATCH v4 4/5] soc: mediatek: pwrap: Move IO pointers to new structure AngeloGioacchino Del Regno
2022-05-17 10:47 ` [PATCH v4 5/5] soc: mediatek: pwrap: Compress of_device_id entries to one line AngeloGioacchino Del Regno
2022-05-17 13:34 ` Matthias Brugger [this message]
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=99ed8d4e-8139-851f-47ff-7968822713da@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=nfraprado@collabora.com \
--cc=rex-bc.chen@mediatek.com \
--cc=zhiyong.tao@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox