linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* EDAC: simplify total memory calculation
@ 2017-06-06 23:54 Chris Packham
  2017-06-06 23:54 ` [PATCH v2 1/3] EDAC: mv64x60: calculate memory size correctly Chris Packham
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Packham @ 2017-06-06 23:54 UTC (permalink / raw)
  To: bp, linux-edac; +Cc: mchehab, mpe, linuxppc-dev, linux-kernel, Chris Packham

This take the approach used by cell_edac.c to obtain the total memory from
the devicetree and applies it to mv64x60_edac.c, altera_edac.c and
cpc925_edac.c which were all manually parsing the reg property. In the case
of mv64x60 this actually fixes cases where #address/size-cells != 1. For
altera and cpc925 this is just a cleanup.

Chris Packham (3):
  EDAC: mv64x60: calculate memory size correctly
  EDAC: altera: simplify calculation of total memory
  EDAC: cpc925: simplify calculation of total memory

 drivers/edac/altera_edac.c  | 24 ++++++++----------------
 drivers/edac/cpc925_edac.c  | 32 ++++++++++----------------------
 drivers/edac/mv64x60_edac.c | 17 +++++++++++------
 3 files changed, 29 insertions(+), 44 deletions(-)

-- 
2.13.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-06-14 11:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06 23:54 EDAC: simplify total memory calculation Chris Packham
2017-06-06 23:54 ` [PATCH v2 1/3] EDAC: mv64x60: calculate memory size correctly Chris Packham
2017-06-06 23:54 ` [PATCH v2 2/3] EDAC: altera: simplify calculation of total memory Chris Packham
2017-06-12 18:34   ` Thor Thayer
2017-06-14 11:50     ` Borislav Petkov
2017-06-06 23:55 ` [PATCH v2 3/3] EDAC: cpc925: " Chris Packham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).