netxen: fix caching window register
CRB window register is not per pci-func for NX3031, so caching can result in incorrect values. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2227bae22b
commit
7e43cd66d3
@@ -1159,9 +1159,6 @@ netxen_nic_pci_set_crbwindow_2M(struct netxen_adapter *adapter, ulong off)
|
|||||||
|
|
||||||
window = CRB_HI(off);
|
window = CRB_HI(off);
|
||||||
|
|
||||||
if (adapter->ahw.crb_win == window)
|
|
||||||
return;
|
|
||||||
|
|
||||||
writel(window, addr);
|
writel(window, addr);
|
||||||
if (readl(addr) != window) {
|
if (readl(addr) != window) {
|
||||||
if (printk_ratelimit())
|
if (printk_ratelimit())
|
||||||
@@ -1169,7 +1166,6 @@ netxen_nic_pci_set_crbwindow_2M(struct netxen_adapter *adapter, ulong off)
|
|||||||
"failed to set CRB window to %d off 0x%lx\n",
|
"failed to set CRB window to %d off 0x%lx\n",
|
||||||
window, off);
|
window, off);
|
||||||
}
|
}
|
||||||
adapter->ahw.crb_win = window;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __iomem *
|
static void __iomem *
|
||||||
|
Reference in New Issue
Block a user