• Luben Tuikov's avatar
    drm/amdgpu: Return result fix in RAS · cf696091
    Luben Tuikov authored
    The low level EEPROM write method, doesn't return
    1, but the number of bytes written. Thus do not
    compare to 1, instead, compare to greater than 0
    for success.
    
    Other cleanup: if the lower layers returned
    -errno, then return that, as opposed to
    overwriting the error code with one-fits-all
    -EINVAL. For instance, some return -EAGAIN.
    
    Cc: Jean Delvare <jdelvare@suse.de>
    Cc: Alexander Deucher <Alexander.Deucher@amd.com>
    Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
    Cc: Lijo Lazar <Lijo.Lazar@amd.com>
    Cc: Stanley Yang <Stanley.Yang@amd.com>
    Cc: Hawking Zhang <Hawking.Zhang@amd.com>
    Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
    Reviewed-by: default avatarAlexander Deucher <Alexander.Deucher@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    cf696091
amdgpu_ras.c 62.9 KB