2013/7/29 John Crispin <john@xxxxxxxxxxx>: > >>> the actual problem is not the irq sharing but that the cevt-r4k registers >>> the irq when the cevt is registered and not when it is activated. i >>> believe >>> that the patch fixes this problem >> >> >> Your patch certainly does what you say it does, but that is kind of an >> abuse of the set_mode() callback. > > > well there are 2 modes "run as oneshot timer and dont run. i dont see how > this is an abuse? What you are doing here should be done in some sort of open() call to the device, not in some sort of ioctl() like interface in my opinion, I agree that this is your only choice here though. How about my former proposal to hook your specific use case in plat_time_init(), does not that work for you? -- Florian