Skip to content

Commit b5006dc

Browse files
Rajesh Borundiadavem330
authored andcommitted
qlcnic: fix ocm window register offset calculation
OCM window register offset was calculated incorrectly for pci function greater than zero. Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c75822a commit b5006dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/qlcnic/qlcnic_hdr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ enum {
621621
#define PCIX_INT_MASK (0x10104)
622622

623623
#define PCIX_OCM_WINDOW (0x10800)
624-
#define PCIX_OCM_WINDOW_REG(func) (PCIX_OCM_WINDOW + 0x20 * (func))
624+
#define PCIX_OCM_WINDOW_REG(func) (PCIX_OCM_WINDOW + 0x4 * (func))
625625

626626
#define PCIX_TARGET_STATUS (0x10118)
627627
#define PCIX_TARGET_STATUS_F1 (0x10160)

0 commit comments

Comments
 (0)