Hi, I managed to connect the rf230 chip (using one Module from the Atmel RZ600 Kit) to an Raspberry Pi with some success. One problem I had with this, is that GPIO Interrupt for the rf230 must be set to IRQ_TYPE_EDGE_RISING. Without setting the type the bcm2708 GPIO code doesn't activate the interrupt.
My question is, where is the correct place to setup this interrupt type? At the moment I think the right place would be the probe function of the at86rf230 driver, since the driver has the knowledge, that the interrupt handler should be called with the rising edge of the signal. I added a patch below, showing how I modified the driver. Do you think, that is the right way to do this, or should this setup go somewhere else? diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index a4a62e1..fb1a108 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c @@ -31,6 +31,7 @@ #include <linux/spi/spi.h> #include <linux/spi/at86rf230.h> #include <linux/skbuff.h> +#include <linux/irq.h> #include <net/mac802154.h> #include <net/wpan-phy.h> @@ -892,6 +893,10 @@ static int at86rf230_probe(struct spi_device *spi) if (rc) goto err_gpio_dir; + rc = irq_set_irq_type(spi->irq, IRQ_TYPE_EDGE_RISING); + if (rc) + goto err_gpio_dir; + rc = request_irq(spi->irq, at86rf230_isr, IRQF_SHARED, dev_name(&spi->dev), lp); if (rc) Thanks in advance, Sascha Herrmann ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel