• Mahesh Salgaonkar's avatar
    powerpc/powernv: Fix the hmi event version check. · 6acbc5a1
    Mahesh Salgaonkar authored
    The current HMI event structure is an ABI and carries a version field to
    accommodate future changes without affecting/rearranging current structure
    members that are valid for previous versions.
    
    The current version check "if (hmi_evt->version != OpalHMIEvt_V1)"
    doesn't accomodate the fact that the version number may change in
    future.
    
    If firmware starts returning an HMI event with version > 1, this check
    will fail and no HMI information will be printed on older kernels.
    
    This patch fixes this issue.
    
    Cc: stable@vger.kernel.org # 3.17+
    Signed-off-by: default avatarMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
    [mpe: Reword changelog]
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    6acbc5a1
opal-hmi.c 5.26 KB