From: Ley Foon Tan Date: Mon, 4 May 2020 10:41:55 +0000 (+0800) Subject: cache: l2x0: Fix missing write to Auxiliary Control Register X-Git-Tag: v2020.07-rc2~9^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=653f7c44677cd13bb106673bb7c46542e217fa13;p=oweals%2Fu-boot.git cache: l2x0: Fix missing write to Auxiliary Control Register In commit f62782fb2999 ("cache: l2x0: Fix write to incorrect shared-override bit") we removed writel to regs->pl310_aux_ctrl by accident. This commit restores it back. Fixes: f62782fb2999 ("cache: l2x0: Fix write to incorrect shared-override bit") Signed-off-by: Ley Foon Tan --- diff --git a/drivers/cache/cache-l2x0.c b/drivers/cache/cache-l2x0.c index 226824c283..a1556fbf17 100644 --- a/drivers/cache/cache-l2x0.c +++ b/drivers/cache/cache-l2x0.c @@ -36,6 +36,8 @@ static void l2c310_of_parse_and_init(struct udevice *dev) if (dev_read_bool(dev, "arm,shared-override")) saved_reg |= L310_SHARED_ATT_OVERRIDE_ENABLE; + writel(saved_reg, ®s->pl310_aux_ctrl); + saved_reg = readl(®s->pl310_tag_latency_ctrl); if (!dev_read_u32_array(dev, "arm,tag-latency", tag, 3)) saved_reg |= L310_LATENCY_CTRL_RD(tag[0] - 1) |