driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IDBQ74 ---------------------------------------------------------------------- Firstly, all register operations and polls are guraded by the spinlock, so operations of registers in parallel is not possible. Thus, the polling for completion before removing all locks is redundant. Fixes: e6ecc3b028b8 ("soc cache: Add framework driver for HiSilicon SoC cache") Signed-off-by: Yushan Wang <wangyushan12@huawei.com> Signed-off-by: Hongye Lin <linhongye@h-partners.com> --- drivers/soc/hisilicon/hisi_soc_l3c.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/soc/hisilicon/hisi_soc_l3c.c b/drivers/soc/hisilicon/hisi_soc_l3c.c index 3e0c6686da0e..0aec6766b34b 100644 --- a/drivers/soc/hisilicon/hisi_soc_l3c.c +++ b/drivers/soc/hisilicon/hisi_soc_l3c.c @@ -352,9 +352,6 @@ static void hisi_soc_l3c_remove_locks(struct hisi_soc_l3c *soc_l3c) guard(spinlock)(&soc_l3c->reg_lock); xa_for_each(&soc_l3c->lock_sets, regset, entry) { - timeout = hisi_l3c_lock_ctrl_wait_finished(soc_l3c, regset, - HISI_L3C_LOCK_CTRL_UNLOCK_DONE); - ctrl = readl(base + l3c_lock_reg_offset(HISI_L3C_LOCK_CTRL, regset)); ctrl = (ctrl | HISI_L3C_LOCK_CTRL_UNLOCK_EN) & -- 2.33.0