Re: [PATCH v5 32/34] iommu/mediatek: Initialise/Remove for multi bank dev

From: AngeloGioacchino Del Regno
Date: Fri Feb 18 2022 - 07:53:06 EST


Il 17/02/22 12:34, Yong Wu ha scritto:
The registers for each bank of the IOMMU base are in order, delta is
0x1000. Initialise the base for each bank.

For all the previous SoC, we only have bank0. thus use "do {} while()"
to allow bank0 always go.

When removing the device, Not always all the banks are initialised, it
depend on if there is masters for that bank.

Signed-off-by: Yong Wu <yong.wu@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>