[Xenomai] Gpio-core question

2017-11-23 Thread Greg Gallagher
Hi, I'm finishing up my work on a patch to add a RTDM gpio driver for the zynq-7000 platform. I ran into a situation where I needed to call gpio_request in gpio-core because the zynq gpio driver uses the gpio_request function to enable the gpio pins on the board. A side effect that I found w

Re: [Xenomai] Gpio-core question

2017-11-24 Thread Philippe Gerum
On 11/24/2017 06:37 AM, Greg Gallagher wrote: > Hi, > I'm finishing up my work on a patch to add a RTDM gpio driver for > the zynq-7000 platform. I ran into a situation where I needed to call > gpio_request in gpio-core because the zynq gpio driver uses the > gpio_request function to enable the

Re: [Xenomai] Gpio-core question

2017-11-28 Thread Greg Gallagher
Hi, I was testing out my changes and came across some strange behaviour. I tried two approaches for my changes one where I add two ioctrl commands to request and release a pin and another where the driver requests and releases the pin without the user having to make a call to ioctl. For the seco

Re: [Xenomai] Gpio-core question

2017-11-29 Thread Greg Gallagher
Hi, Sorry for the formatting in the last email I'm not sure what happened in my editor. I've had some time to look into this issue. For my case that is outlined above it looks like we insert the fd into the tree in create instance, then when we fail the call to dev->ops.open, the fd is cleaned u

Re: [Xenomai] Gpio-core question

2017-11-30 Thread Philippe Gerum
On 11/29/2017 09:40 PM, Greg Gallagher wrote: > Hi, > Sorry for the formatting in the last email I'm not sure what > happened in my editor. I've had some time to look into this issue. > For my case that is outlined above it looks like we insert the fd into > the tree in create instance, then whe

Re: [Xenomai] Gpio-core question

2017-11-30 Thread Greg Gallagher
Sure sounds good, I'll start tonight.   Original Message   From: r...@xenomai.org Sent: November 30, 2017 3:50 AM To: g...@embeddedgreg.com; xenomai@xenomai.org Subject: Re: [Xenomai] Gpio-core question On 11/29/2017 09:40 PM, Greg Gallagher wrote: > Hi, >   Sorry for the formatting