From 7f31340d0cde9d374279d3c5b750ade29b59905f Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Thu, 19 Jun 2008 17:39:03 +0800 Subject: [PATCH] --- yaml --- r: 105173 b: refs/heads/master c: c4f0e76747e80578a8f7fddd82fd0ce8127bd2f8 h: refs/heads/master i: 105171: 31ee03c7abece674ca3fe94df66e37f8c12524a9 v: v3 --- [refs] | 2 +- trunk/drivers/net/smc91x.c | 3 ++- trunk/include/linux/smc91x.h | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8160fde5995e..b27a0146b08f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fa6d3be08538bb80274d20c7e59f9beca48fa44a +refs/heads/master: c4f0e76747e80578a8f7fddd82fd0ce8127bd2f8 diff --git a/trunk/drivers/net/smc91x.c b/trunk/drivers/net/smc91x.c index 1b19022b6c7c..de7a913c487c 100644 --- a/trunk/drivers/net/smc91x.c +++ b/trunk/drivers/net/smc91x.c @@ -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; /* @@ -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; diff --git a/trunk/include/linux/smc91x.h b/trunk/include/linux/smc91x.h index fc7682f04d89..90434db72db2 100644 --- a/trunk/include/linux/smc91x.h +++ b/trunk/include/linux/smc91x.h @@ -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; };