/* This function enables the bus protection bits for disabled power domains so that the system does not hang when some unit accesses the bus while in power down.  */
static int mtk_infracfg_set_bus_protection(void __iomem *infracfg, u32 mask)
/* This function enables the bus protection bits for disabled power domains so that the system does not hang when some unit accesses the bus while in power down.  */
static int mtk_infracfg_set_bus_protection(void __iomem *infracfg, u32 mask)
{
	u32 val;
	clrsetbits_le32(infracfg + INFRA_TOPAXI_PROT_EN, mask, mask);
	return readl_poll_timeout(infracfg + INFRA_TOPAXI_PROT_STA1, val,
				  (val & mask) == mask, 100);
}