Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3729
b: refs/heads/master
c: 5f13e7e
h: refs/heads/master
i:
  3727: 371a4d4
v: v3
  • Loading branch information
David Brownell authored and Jeff Garzik committed Jun 28, 2005
1 parent 675905c commit dabb9cf
Show file tree
Hide file tree
Showing 3 changed files with 15 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: a5fe736eaf9bae1b45317313de04b564441b94f2
refs/heads/master: 5f13e7ec5c1d98f4a63a3a79e66b2b121051f5ac
2 changes: 1 addition & 1 deletion trunk/drivers/net/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1998,7 +1998,7 @@ static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr)
if (retval)
goto err_out;

set_irq_type(dev->irq, IRQT_RISING);
set_irq_type(dev->irq, SMC_IRQ_TRIGGER_TYPE);

#ifdef SMC_USE_PXA_DMA
{
Expand Down
13 changes: 13 additions & 0 deletions trunk/drivers/net/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,16 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)
#define SMC_insl(a, r, p, l) readsl((a) + (r), p, l)
#define SMC_outsl(a, r, p, l) writesl((a) + (r), p, l)

#include <asm/mach-types.h>
#include <asm/arch/cpu.h>

#define SMC_IRQ_TRIGGER_TYPE (( \
machine_is_omap_h2() \
|| machine_is_omap_h3() \
|| (machine_is_omap_innovator() && !cpu_is_omap150()) \
) ? IRQT_FALLING : IRQT_RISING)


#elif defined(CONFIG_SH_SH4202_MICRODEV)

#define SMC_CAN_USE_8BIT 0
Expand Down Expand Up @@ -300,6 +310,9 @@ static inline void SMC_outsw (unsigned long a, int r, unsigned char* p, int l)

#endif

#ifndef SMC_IRQ_TRIGGER_TYPE
#define SMC_IRQ_TRIGGER_TYPE IRQT_RISING
#endif

#ifdef SMC_USE_PXA_DMA
/*
Expand Down

0 comments on commit dabb9cf

Please sign in to comment.