HW timers question (clocksource vs event)

2013-09-04 Thread Drasko DRASKOVIC
Hi all, I'd like to install one timer that provokes IRQ on timeout to measure IRQ latencies. I can see that in dw_apb_timer.c Linux driver that there is clocksource and event type of timers. Can someone please explain me what is really the difference between clocksource and event type of timers?

HW timers question (clocksource vs event)

2013-09-04 Thread Drasko DRASKOVIC
Hi all, I'd like to install one timer that provokes IRQ on timeout to measure IRQ latencies. I can see that in dw_apb_timer.c Linux driver that there is clocksource and event type of timers. Can someone please explain me what is really the difference between clocksource and event type of timers?

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-09 Thread Drasko DRASKOVIC
On Tue, Oct 9, 2012 at 2:00 PM, Linus Walleij wrote: > On Fri, Oct 5, 2012 at 3:16 PM, Drasko DRASKOVIC > wrote: >> [Me] >>> If I understand correctly the below more or less exports >>> struct irq_chip to userspace, >>> trying to hide it by instead ex

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-09 Thread Drasko DRASKOVIC
On Tue, Oct 9, 2012 at 2:00 PM, Linus Walleij linus.wall...@linaro.org wrote: On Fri, Oct 5, 2012 at 3:16 PM, Drasko DRASKOVIC drasko.drasko...@gmail.com wrote: [Me] If I understand correctly the below more or less exports struct irq_chip to userspace, trying to hide it by instead exposing

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-07 Thread Drasko DRASKOVIC
Hi Grant, Thomas, do you see any potential problems with this patch? It adds sysfs interface to change / set-up trigger edge from the kernel (currently not possible). BR, Drasko On Fri, Oct 5, 2012 at 3:16 PM, Drasko DRASKOVIC wrote: > On Fri, Oct 5, 2012 at 2:40 PM, Linus Walleij >

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-07 Thread Drasko DRASKOVIC
Hi Grant, Thomas, do you see any potential problems with this patch? It adds sysfs interface to change / set-up trigger edge from the kernel (currently not possible). BR, Drasko On Fri, Oct 5, 2012 at 3:16 PM, Drasko DRASKOVIC drasko.drasko...@gmail.com wrote: On Fri, Oct 5, 2012 at 2:40 PM

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
On Fri, Oct 5, 2012 at 2:40 PM, Linus Walleij wrote: > On Fri, Oct 5, 2012 at 2:20 PM, Drasko DRASKOVIC > Why not put the above text into the patch commit blurb? OK, I can add this easily. Makes sense. > If I understand correctly the below more or less exports > struct irq_chip

[PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
Sep 17 00:00:00 2001 From: Drasko DRASKOVIC Date: Fri, 5 Oct 2012 11:59:47 +0200 Subject: [PATCH] [PATCH][GPIO] Add IRQ edge setter to gpiolib Signed-off-by: Drasko DRASKOVIC --- Documentation/gpio.txt |3 ++ drivers/gpio/gpiolib.c |

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
Hi Mark, thanks. I'll re-send it as a plain text in a separate e-mail. BR, Drasko On Fri, Oct 5, 2012 at 1:50 PM, Mark Brown wrote: > On Fri, Oct 05, 2012 at 01:09:13PM +0200, Drasko DRASKOVIC wrote: >> Looping GPIO maintainers... > > Please follow the patch sub

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
Looping GPIO maintainers... On Fri, Oct 5, 2012 at 12:45 PM, Drasko DRASKOVIC wrote: > Hi all, > please find a patch that adds IRQ edge set-up mechanism to sysfs that > can be called from the kernel. > > This functionality can be very useful for embedded systems, as it > pe

[PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
Hi all, please find a patch that adds IRQ edge set-up mechanism to sysfs that can be called from the kernel. This functionality can be very useful for embedded systems, as it permits kernel to do GPIO set-up during boot stage. Configuration which defines pins behavior is often kept in NVRAM, and

[PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
Hi all, please find a patch that adds IRQ edge set-up mechanism to sysfs that can be called from the kernel. This functionality can be very useful for embedded systems, as it permits kernel to do GPIO set-up during boot stage. Configuration which defines pins behavior is often kept in NVRAM, and

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
Looping GPIO maintainers... On Fri, Oct 5, 2012 at 12:45 PM, Drasko DRASKOVIC drasko.drasko...@gmail.com wrote: Hi all, please find a patch that adds IRQ edge set-up mechanism to sysfs that can be called from the kernel. This functionality can be very useful for embedded systems

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
Hi Mark, thanks. I'll re-send it as a plain text in a separate e-mail. BR, Drasko On Fri, Oct 5, 2012 at 1:50 PM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: On Fri, Oct 05, 2012 at 01:09:13PM +0200, Drasko DRASKOVIC wrote: Looping GPIO maintainers... Please follow the patch

[PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
00:00:00 2001 From: Drasko DRASKOVIC drasko.drasko...@gmail.com Date: Fri, 5 Oct 2012 11:59:47 +0200 Subject: [PATCH] [PATCH][GPIO] Add IRQ edge setter to gpiolib Signed-off-by: Drasko DRASKOVIC drasko.drasko...@gmail.com --- Documentation/gpio.txt |3 ++ drivers/gpio/gpiolib.c

Re: [PATCH][GPIO] Add IRQ edge setter to gpiolib

2012-10-05 Thread Drasko DRASKOVIC
On Fri, Oct 5, 2012 at 2:40 PM, Linus Walleij linus.wall...@linaro.org wrote: On Fri, Oct 5, 2012 at 2:20 PM, Drasko DRASKOVIC Why not put the above text into the patch commit blurb? OK, I can add this easily. Makes sense. If I understand correctly the below more or less exports struct