Date: | 2011-07-07 00:08:27 (12 years 4 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 206feca691aa938d6f659ac9041d4c4ef8001b0a |
Message: | atusb: initially disable the interrupt delivery tasklet This prevents is from firing the interrupt before the driver is ready to handle it. We therefore don't need the work-around in at86rf230.c anymore. Signed-off-by: Werner Almesberger <werner@almesberger.net> |
Files: |
drivers/ieee802154/at86rf230.c (1 diff) drivers/spi/atusb.c (3 diffs) |
Change Details
drivers/ieee802154/at86rf230.c | ||
---|---|---|
796 | 796 | if (rc) |
797 | 797 | goto err_irq; |
798 | 798 | |
799 | { | |
800 | uint8_t val; | |
801 | at86rf230_read_subreg(lp, RG_IRQ_STATUS, 0xff, 0, &val); | |
802 | } | |
803 | 799 | return rc; |
804 | 800 | |
805 | 801 | err_irq: |
drivers/spi/atusb.c | ||
---|---|---|
403 | 403 | return retval; |
404 | 404 | } |
405 | 405 | |
406 | static void atusb_irq_ack(struct irq_data *data) | |
407 | { | |
408 | struct atusb_local *atusb = irq_data_get_irq_chip_data(data); | |
409 | ||
410 | printk(KERN_INFO "atusb_irq_ack\n"); | |
411 | atusb_arm_interrupt(atusb); | |
412 | } | |
413 | ||
414 | 406 | static void atusb_irq_mask(struct irq_data *data) |
415 | 407 | { |
416 | 408 | struct atusb_local *atusb = irq_data_get_irq_chip_data(data); |
... | ... | |
427 | 419 | tasklet_enable(&atusb->task); |
428 | 420 | } |
429 | 421 | |
422 | static void atusb_irq_ack(struct irq_data *data) | |
423 | { | |
424 | struct atusb_local *atusb = irq_data_get_irq_chip_data(data); | |
425 | ||
426 | printk(KERN_INFO "atusb_irq_ack\n"); | |
427 | atusb_arm_interrupt(atusb); | |
428 | } | |
429 | ||
430 | 430 | static struct irq_chip atusb_irq_chip = { |
431 | 431 | .name = "atusb-slave", |
432 | 432 | .irq_mask = atusb_irq_mask, |
... | ... | |
588 | 588 | board_info.irq = atusb->slave_irq; |
589 | 589 | |
590 | 590 | tasklet_init(&atusb->task, atusb_tasklet, (unsigned long) atusb); |
591 | tasklet_disable(&atusb->task); | |
591 | 592 | atusb_arm_interrupt(atusb); |
592 | 593 | |
593 | 594 | if (atusb_get_and_show_revision(atusb) < 0) |
Branches:
ben-wpan
ben-wpan-stefan
5396a9238205f20f811ea57898980d3ca82df0b6
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9