diff options
| author | Mahesh Salgaonkar <[email protected]> | 2014-11-20 04:14:36 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2014-11-26 22:32:52 +0000 |
| commit | 6acbc5a1dab30aa8f7be7bf3852f343f89147ac5 (patch) | |
| tree | a734cdafb565678bfa383c249c5884ff03b038ab /drivers/tty/serial/sccnxp.c | |
| parent | powerpc/fsl_msi: mark the msi cascade handler IRQF_NO_THREAD (diff) | |
| download | kernel-6acbc5a1dab30aa8f7be7bf3852f343f89147ac5.tar.gz kernel-6acbc5a1dab30aa8f7be7bf3852f343f89147ac5.zip | |
powerpc/powernv: Fix the hmi event version check.
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: [email protected] # 3.17+
Signed-off-by: Mahesh Salgaonkar <[email protected]>
[mpe: Reword changelog]
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
