]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC/ie31200: Fallback if host bridge device is already initialized
authorJason Baron <jbaron@akamai.com>
Thu, 16 Jul 2020 18:25:11 +0000 (14:25 -0400)
committerTony Luck <tony.luck@intel.com>
Mon, 10 Aug 2020 18:13:06 +0000 (11:13 -0700)
commit134253cf311f5dd77c5593f61bdf79494b5c3ebe
tree79c03bd4cb7c9649bab3f46984a0fb4b780a52d1
parentb92f5638f6b2a951df651336c407f005d347983a
EDAC/ie31200: Fallback if host bridge device is already initialized

The Intel uncore driver may claim some of the pci ids from ie31200 which
means that the ie31200 edac driver will not initialize them as part of
pci_register_driver().

Let's add a fallback for this case to 'pci_get_device()' to get a
reference on the device such that it can still be configured. This is
similar in approach to other edac drivers.

Signed-off-by: Jason Baron <jbaron@akamai.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-edac <linux-edac@vger.kernel.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/1594923911-10885-1-git-send-email-jbaron@akamai.com
drivers/edac/ie31200_edac.c