Re: [PATCH v12 3/7] iommu/mediatek: Adjust mtk_iommu_config flow

From: Alexandre Mergnat
Date: Tue Jun 06 2023 - 10:00:17 EST


On 02/06/2023 11:02, Yong Wu wrote:
If there are many ports in a infra master, current flow will update
the INFRA register many times. This patch saves all ports to portid_msk
in the front of mtk_iommu_config(), then update only once for the IOMMU
configure. After this, we could avoid send too many SMC calls to ATF in
MT8188.

Prepare for MT8188, also reduce the indention without functional change.

Reviewed-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>

--
Regards,
Alexandre