Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117787
b: refs/heads/master
c: 319edaf
h: refs/heads/master
i:
  117785: 65c52da
  117783: d8377a6
v: v3
  • Loading branch information
Catalin Marinas authored and Jeff Garzik committed Oct 22, 2008
1 parent 68209f8 commit e28b96e
Show file tree
Hide file tree
Showing 3 changed files with 10 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: bd2c4972fff2d621383bc2c3389a7b1ac7eca8f1
refs/heads/master: 319edafef64406c971035c56bd68480e5a82b581
11 changes: 8 additions & 3 deletions trunk/drivers/net/smc911x.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static void PRINT_PKT(u_char *buf, int length)
static void smc911x_reset(struct net_device *dev)
{
struct smc911x_local *lp = netdev_priv(dev);
unsigned int reg, timeout=0, resets=1;
unsigned int reg, timeout=0, resets=1, irq_cfg;
unsigned long flags;

DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__);
Expand Down Expand Up @@ -252,7 +252,12 @@ static void smc911x_reset(struct net_device *dev)
* Deassert IRQ for 1*10us for edge type interrupts
* and drive IRQ pin push-pull
*/
SMC_SET_IRQ_CFG(lp, (1 << 24) | INT_CFG_IRQ_EN_ | INT_CFG_IRQ_TYPE_);
irq_cfg = (1 << 24) | INT_CFG_IRQ_EN_ | INT_CFG_IRQ_TYPE_;
#ifdef SMC_DYNAMIC_BUS_CONFIG
if (lp->cfg.irq_polarity)
irq_cfg |= INT_CFG_IRQ_POL_;
#endif
SMC_SET_IRQ_CFG(lp, irq_cfg);

/* clear anything saved */
if (lp->pending_tx_skb != NULL) {
Expand Down Expand Up @@ -2054,7 +2059,7 @@ static int __init smc911x_probe(struct net_device *dev)
*/
static int smc911x_drv_probe(struct platform_device *pdev)
{
struct smc91x_platdata *pd = pdev->dev.platform_data;
struct smc911x_platdata *pd = pdev->dev.platform_data;
struct net_device *ndev;
struct resource *res;
struct smc911x_local *lp;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/smc911x.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
struct smc911x_platdata {
unsigned long flags;
unsigned long irq_flags; /* IRQF_... */
int irq_polarity;
};

#endif /* __SMC911X_H__ */

0 comments on commit e28b96e

Please sign in to comment.