* iio_trigger_alloc fails on Raspberry pi
@ 2013-07-30 3:39 Jonathan Clapson
2013-07-30 22:32 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Clapson @ 2013-07-30 3:39 UTC (permalink / raw)
To: linux-iio
Hey
I'm trying to write a driver to interact with the mpu6000 imu sensor
on the raspberry pi.
I've modified the mpu6050 i2c driver in the linux kernel to use the
mpu6000's spi interface. Calls of iio_trigger_alloc fail. I've added
some debugging info to industrialio-trigger.c and from this have
narrowed it down to the irq_alloc_descs function failing to allocate
any irq's.
cat /proc/interrupts returns:
CPU0
3: 21114 ARMCTRL BCM2708 Timer Tick
32: 986019 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
65: 7 ARMCTRL ARM Mailbox IRQ
66: 1 ARMCTRL VCHIQ doorbell
75: 1 ARMCTRL
77: 6801 ARMCTRL bcm2708_sdhci (dma)
80: 30 ARMCTRL bcm2708_spi.0
83: 20 ARMCTRL uart-pl011
84: 11002 ARMCTRL mmc0
FIQ: usb_fiq
Err: 0
The call to irq_alloc_descs seems to be trying to allocate *any* two
consecutive irq's (two being the value of
CONFIG_IIO_CONSUMERS_PER_TRIGGER), the above i believe shows that this
should be possible?
Any idea's why irq_alloc_descs is failing?
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: iio_trigger_alloc fails on Raspberry pi
2013-07-30 3:39 iio_trigger_alloc fails on Raspberry pi Jonathan Clapson
@ 2013-07-30 22:32 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2013-07-30 22:32 UTC (permalink / raw)
To: Jonathan Clapson; +Cc: linux-iio
On 07/30/13 04:39, Jonathan Clapson wrote:
> Hey
>
> I'm trying to write a driver to interact with the mpu6000 imu sensor
> on the raspberry pi.
> I've modified the mpu6050 i2c driver in the linux kernel to use the
> mpu6000's spi interface. Calls of iio_trigger_alloc fail. I've added
> some debugging info to industrialio-trigger.c and from this have
> narrowed it down to the irq_alloc_descs function failing to allocate
> any irq's.
>
> cat /proc/interrupts returns:
> CPU0
> 3: 21114 ARMCTRL BCM2708 Timer Tick
> 32: 986019 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
> 65: 7 ARMCTRL ARM Mailbox IRQ
> 66: 1 ARMCTRL VCHIQ doorbell
> 75: 1 ARMCTRL
> 77: 6801 ARMCTRL bcm2708_sdhci (dma)
> 80: 30 ARMCTRL bcm2708_spi.0
> 83: 20 ARMCTRL uart-pl011
> 84: 11002 ARMCTRL mmc0
> FIQ: usb_fiq
> Err: 0
>
> The call to irq_alloc_descs seems to be trying to allocate *any* two
> consecutive irq's (two being the value of
> CONFIG_IIO_CONSUMERS_PER_TRIGGER), the above i believe shows that this
> should be possible?
>
> Any idea's why irq_alloc_descs is failing?
It has been a while since I last came across anything similar but this is probably
due to the underlying raspberry pi kernel restricting your available interrupts.
In at least some boards it is still necessary to explicitly allocate a few more
in the board config file or equivalent.
>
> Thanks
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-30 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30 3:39 iio_trigger_alloc fails on Raspberry pi Jonathan Clapson
2013-07-30 22:32 ` Jonathan Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.