Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183787
b: refs/heads/master
c: ce66844
h: refs/heads/master
i:
  183785: 0640fa6
  183783: f674d84
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Feb 2, 2010
1 parent 27cbf7b commit db83d3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b95a839587f40abab2f9cb3e5254dc821b9829b
refs/heads/master: ce6684433fb277406dd861fd8a17133253e7c367
6 changes: 3 additions & 3 deletions trunk/drivers/net/qlcnic/qlcnic_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@ qlcnic_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *p)
regs->version = (1 << 24) | (adapter->ahw.revision_id << 16) |
(adapter->pdev)->device;

if (adapter->is_up != QLCNIC_ADAPTER_UP_MAGIC)
return;

for (i = 0; diag_registers[i] != -1; i++)
regs_buff[i] = QLCRD32(adapter, diag_registers[i]);

if (adapter->is_up != QLCNIC_ADAPTER_UP_MAGIC)
return;

regs_buff[i++] = 0xFFEFCDAB; /* Marker btw regs and ring count*/

regs_buff[i++] = 1; /* No. of tx ring */
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,9 @@ qlcnic_detach_work(struct work_struct *work)

qlcnic_down(adapter, netdev);

rtnl_lock();
qlcnic_detach(adapter);
rtnl_unlock();

status = QLCRD32(adapter, QLCNIC_PEG_HALT_STATUS1);

Expand Down

0 comments on commit db83d3e

Please sign in to comment.