From: Suresh Reddy Date: Fri, 20 Mar 2015 10:28:25 +0000 (-0400) Subject: be2net: use PCI MMIO read instead of config read for errors X-Git-Tag: omap-for-v4.1/fixes-rc1~278^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25848c9015964d9d97dffd48bbb88b75a25d0a1b;p=pandora-kernel.git be2net: use PCI MMIO read instead of config read for errors When an EEH error occurs, the device/slot is disconnected. This condition is more reliably detected (i.e., returns all ones) with an MMIO read rather than a config read -- especially on power platforms. Hence, this patch fixes EEH error detection by replacing config reads with MMIO reads for reading the error registers. The error registers in Skyhawk-R/BE2/BE3 are accessible both via the config space and the PCICFG (BAR0) memory space. Reported-by: Gavin Shan Signed-off-by: Suresh Reddy Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed