Skip to content

Commit

Permalink
[PATCH] shpchp: fix improper reference to Mode 1 ECC Capability" bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kenji Kaneshige authored and Greg Kroah-Hartman committed Jan 9, 2006
1 parent 6558b6a commit 87d6c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/hotplug/shpchp_hpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 87d6c55

Please sign in to comment.