• Borislav Petkov's avatar
    edac, mc: Improve scrub rate handling · eba042a8
    Borislav Petkov authored
    Fortify the interface to not accept negative values, remove
    memctrl_int_store() as a result. Also, sanitize bandwidth setting by
    making the argument a simple u32 instead of strange u32 pointer being
    passed around for no obvious reason. Then, fix error handling and teach
    it to return proper error values. Finally, make code more readable,
    simplify debug messages.
    
    Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
    Cc: Arthur Jones <ajones@riverbed.com>
    Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
    Acked-by: default avatarDoug Thompson <dougthompson@xmission.com>
    eba042a8
e752x_edac.c 39.7 KB