]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, sb_edac: Fix Knights Landing
authorTony Luck <tony.luck@intel.com>
Thu, 14 Jul 2016 22:38:43 +0000 (15:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jul 2016 21:11:59 +0000 (06:11 +0900)
commit6ffeb564a0b0dcf64956c5b5c1a154302a158233
treeec1036fbfde78ebac111ac39bb14506e79b1346e
parentd5007ffbe0495026a057bc9c17b27673814d5422
EDAC, sb_edac: Fix Knights Landing

In commit 19f737379216 ("EDAC, sb_edac: Use cpu family/model in driver
detection") I broke Knights Landing because I failed to notice that it
called a wrapper macro "sbridge_get_all_devices_knl" instead of
"sbridge_get_all_devices" like all the other types.

Now that we include the processor type in the pci_id_table structure we
can skip the wrappers and just have the sbridge_get_all_devices() check
the type to decide whether to allow duplicate devices and controllers to
have registers spread across buses.

Fixes: 19f737379216 ("EDAC, sb_edac: Use cpu family/model in driver detection")
Tested-by: Lukasz Odzioba <lukasz.odzioba@intel.com>
Acked-by: Aristeu Rozanski <aris@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/sb_edac.c