]> git.dujemihanovic.xyz Git - linux.git/commit
EDAC/versal: Read num_csrows and num_chans using the correct bitfield macro
authorShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Fri, 15 Dec 2023 05:33:52 +0000 (11:03 +0530)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 15 Dec 2023 12:01:27 +0000 (13:01 +0100)
commit9483aa44912f26da2b69dade6099c2bf4b50a8c3
tree5471005218f692b81ca1a73fd74f8ea45f9fb144
parenta39b6ac3781d46ba18193c9dbb2110f31e9bffe9
EDAC/versal: Read num_csrows and num_chans using the correct bitfield macro

Fix the extraction of num_csrows and num_chans. The extraction of the
num_rows is wrong. Instead of extracting using the FIELD_GET it is
calling FIELD_PREP.

The issue was masked as the default design has the rows as 0.

Fixes: 6f15b178cd63 ("EDAC/versal: Add a Xilinx Versal memory controller driver")
Closes: https://lore.kernel.org/all/60ca157e-6eff-d12c-9dc0-8aeab125edda@linux-m68k.org/
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231215053352.8740-1-shubhrajyoti.datta@amd.com
drivers/edac/versal_edac.c