[PATCH] shpchp: fix improper reference to Mode 1 ECC Capability" bit
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Thu, 24 Nov 2005 02:35:05 +0000 (11:35 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 Jan 2006 20:13:16 +0000 (12:13 -0800)
The hpc_get_mode1_ECC_cap() function of SHPCHP driver seems to refer
the wrong bit for refering the "Mode 1 ECC Capability" bit. This bug
seems not to cause any problem so far. But I think this should be
fixed. This patch fixes this bug.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/shpchp_hpc.c

index 3c1d3b4b0408ed765b50c5f16ca3d0f6fa1c63fd..f5a8bf374634a11f871f4fda1a92133768b21663 100644 (file)
@@ -604,7 +604,7 @@ static int hpc_get_mode1_ECC_cap(struct slot *slot, u8 *mode)
        sec_bus_status = readw(php_ctlr->creg + SEC_BUS_CONFIG);
 
        if (pi == 2) {
-               *mode = (sec_bus_status & 0x0100) >> 7;
+               *mode = (sec_bus_status & 0x0100) >> 8;
        } else {
                retval = -1;
        }