lkml.org 
[lkml]   [2022]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [Patch v7 2/4] memory: tegra: Add MC error logging on tegra186 onward
From
On 4/13/22 12:40, Ashish Mhetre wrote:
> +static inline u32 mc_ch_readl(const struct tegra_mc *mc, int ch,
> + unsigned long offset)
> +{

return 0 if mc->bcast_ch_regs==NULL

> + if (ch == MC_BROADCAST_CHANNEL)
> + return readl_relaxed(mc->bcast_ch_regs + offset);
> +
> + return readl_relaxed(mc->ch_regs[ch] + offset);
> +}
> +
> +static inline void mc_ch_writel(const struct tegra_mc *mc, int ch,
> + u32 value, unsigned long offset)
> +{

return if mc->bcast_ch_regs==NULL

> + if (ch == MC_BROADCAST_CHANNEL)
> + writel_relaxed(value, mc->bcast_ch_regs + offset);
> + else
> + writel_relaxed(value, mc->ch_regs[ch] + offset);
> +}

\
 
 \ /
  Last update: 2022-04-13 23:18    [W:0.176 / U:2.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site