EDAC, sb_edac: Readd accidentally dropped Broadwell-D support
authorTony Luck <tony.luck@intel.com>
Thu, 2 Jun 2016 17:58:08 +0000 (10:58 -0700)
committerBorislav Petkov <bp@suse.de>
Fri, 3 Jun 2016 15:28:21 +0000 (17:28 +0200)
commit665f05e0b836d46b22f0b712eb76d8b7f69a5ea0
tree3d9a03cd9ab37e2be3922807b8b4d96e0fc23065
parentfbedcaf43fba35677c01a4ae51e6f79edf4049ba
EDAC, sb_edac: Readd accidentally dropped Broadwell-D support

In commit

  2c1ea4c700af ("EDAC, sb_edac: Use cpu family/model in driver detection")

we switched from using PCI ids to determine which platform we are
running on to using CPU model instead.

I forgot that Broadwell-DE has its own distinct model number different
from Broadwell-EP or -EX.

Fixing this isn't just adding a line to the array of cpuids - the
exising code assumed a 1:1 mapping between entries in that array and the
"enum type" values. Added the type to pci_id_table structure to remove
this dependency and allows two Broadwell cpu models.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: Aristeu Rozanski <arozansk@redhat.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Fixes: 2c1ea4c700af ("EDAC, sb_edac: Use cpu family/model in driver detection")
Link: http://lkml.kernel.org/r/b3cffe40dec6dfe0235a5d52a504f0ba86a07ce7.1464902605.git.tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/sb_edac.c