drm/i915/opregion: fix version check
authorJani Nikula <jani.nikula@intel.com>
Fri, 8 Feb 2019 18:42:52 +0000 (20:42 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 11 Feb 2019 11:32:49 +0000 (13:32 +0200)
commit98fdaaca9537b997062f1abc0aa87c61b50ce40a
tree671f64256431f4cfffd0be5a000f91c0a45a431a
parent312c4ba1bb71d666f924f84afd5bdc775b71278f
drm/i915/opregion: fix version check

The u32 version field encodes major, minor, revision and reserved. We've
basically been checking for any non-zero version.

Add opregion version logging while at it.

v2: Fix the fix of the version check

Fixes: 04ebaadb9f2d ("drm/i915/opregion: handle VBT sizes bigger than 6 KB")
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190208184254.24123-1-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_opregion.c