Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105173
b: refs/heads/master
c: c4f0e76
h: refs/heads/master
i:
  105171: 31ee03c
v: v3
  • Loading branch information
Eric Miao authored and Russell King committed Jul 12, 2008
1 parent d92e1eb commit 7f31340
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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: fa6d3be08538bb80274d20c7e59f9beca48fa44a
refs/heads/master: c4f0e76747e80578a8f7fddd82fd0ce8127bd2f8
3 changes: 2 additions & 1 deletion trunk/drivers/net/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static void smc_reset(struct net_device *dev)
* can't handle it then there will be no recovery except for
* a hard reset or power cycle
*/
if (nowait)
if (lp->cfg.flags & SMC91X_NOWAIT)
cfg |= CONFIG_NO_WAIT;

/*
Expand Down Expand Up @@ -2160,6 +2160,7 @@ static int smc_drv_probe(struct platform_device *pdev)
lp->cfg.flags |= (SMC_CAN_USE_8BIT) ? SMC91X_USE_8BIT : 0;
lp->cfg.flags |= (SMC_CAN_USE_16BIT) ? SMC91X_USE_16BIT : 0;
lp->cfg.flags |= (SMC_CAN_USE_32BIT) ? SMC91X_USE_32BIT : 0;
lp->cfg.flags |= (nowait) ? SMC91X_NOWAIT : 0;
}

ndev->dma = (unsigned char)-1;
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#define SMC91X_USE_16BIT (1 << 1)
#define SMC91X_USE_32BIT (1 << 2)

#define SMC91X_NOWAIT (1 << 3)

struct smc91x_platdata {
unsigned long flags;
};
Expand Down

0 comments on commit 7f31340

Please sign in to comment.