edac: Move grain/dtype/edac_type calculus to be out of channel loop