lkml.org 
[lkml]   [2022]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [Patch V2] memory: tegra: Add MC error logging on tegra186 onward
From
20.01.2022 12:02, Ashish Mhetre пишет:
> + default:
> + status_reg = MC_ERR_STATUS;
> + addr_reg = MC_ERR_ADR;
> +#if defined(CONFIG_ARCH_TEGRA_194_SOC) || \
> + defined(CONFIG_ARCH_TEGRA_234_SOC)
> + addr_hi_reg = MC_ERR_ADR_HI;
> +#endif

I'd add new "has_addr_hi_reg" field to struct tegra_mc_soc and use it
instead of the ifdefs.

if (mc->soc->has_addr_hi_reg)
addr_hi_reg = MC_ERR_ADR_HI;

\
 
 \ /
  Last update: 2022-01-20 14:08    [W:0.081 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site