]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make pre-production detection use direct revid comparison
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 13 Jul 2021 19:36:25 +0000 (12:36 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 15 Jul 2021 00:35:59 +0000 (17:35 -0700)
commitd416f9c7c8f877d88e51327cde490ff4fe6c91ec
tree97d0e9163fe7c55947ad26d73433834b02d2f18c
parent389eaf89b90425b3b8f69aa47bb071049f262d4c
drm/i915: Make pre-production detection use direct revid comparison

Although we're converting our workarounds to use a revid->stepping
lookup table, the function that detects pre-production hardware should
continue to compare against PCI revision ID values directly.  These are
listed in the bspec as integers, so it's easier to confirm their
correctness if we just use an integer literal rather than a symbolic
name anyway.

Bspec: 13620, 19131, 13626, 18329
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210713193635.3390052-3-matthew.d.roper@intel.com
drivers/gpu/drm/i915/i915_drv.c