[Top] [All Lists]

Re: [PATCH] MIPS: add proper set_mode() to cevt-r4k

To: John Crispin <>
Subject: Re: [PATCH] MIPS: add proper set_mode() to cevt-r4k
From: Florian Fainelli <>
Date: Tue, 30 Jul 2013 11:01:53 +0100
Cc: Linux-MIPS <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=nVbAovf8VnpIUxhSGv0BbovmTlxk4YqzzAdpu5nzeJA=; b=bMSaXIQB6iAW3KbjFIiAv5bq2bsz3MbcUZ1oaseuuFhOlu+enNAgqkGQOzfDMXrUZK EHGyUuLHKxJ3poxC0U04cG49Vu+0Sb2Wgp2R6CkB9xbs9C1I2sEpJJdiQBjRtur4rvBX EzYJPGXuNAtnWdgrJ+bFulbtY3eBMMTArcL9pKcsztFanEW11u5xvey7SWPfqMuqpRFe FbicPGvs8/yq2QeHRDyng6mBQYslW2BGPooqvQmm8Pd75MD1QZnSUNAwb/g2+lnER4es JO2VLgylbsCdZ+AG8kwXKDV/g6AXoHdaUJV1wXDGnwN6MIwhWRBfr9gx/Qy0jf2LmLxX l1pQ==
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
References: <> <> <> <> <>
2013/7/29 John Crispin <>:
>>> 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?

<Prev in Thread] Current Thread [Next in Thread>