From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 29 Jul 2013 13:21:10 +0200 (CEST) Received: from nbd.name ([46.4.11.11]:53105 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6818993Ab3G2LVIMriG9 (ORCPT ); Mon, 29 Jul 2013 13:21:08 +0200 Message-ID: <51F64E9B.8070306@phrozen.org> Date: Mon, 29 Jul 2013 13:14:35 +0200 From: John Crispin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Florian Fainelli CC: linux-mips@linux-mips.org Subject: Re: [PATCH] MIPS: add proper set_mode() to cevt-r4k References: <1375091743-20608-1-git-send-email-blogic@openwrt.org> <51F6495D.9000008@phrozen.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 37388 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: john@phrozen.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips >> 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?