From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 29 Jul 2013 16:53:18 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:52794 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6825603Ab3G2OxNw5gGq (ORCPT ); Mon, 29 Jul 2013 16:53:13 +0200 Date: Mon, 29 Jul 2013 15:53:13 +0100 (BST) From: "Maciej W. Rozycki" To: Florian Fainelli cc: John Crispin , Ralf Baechle , Linux-MIPS Subject: Re: [PATCH] MIPS: add proper set_mode() to cevt-r4k In-Reply-To: Message-ID: References: <1375091743-20608-1-git-send-email-blogic@openwrt.org> User-Agent: Alpine 2.03 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: 37389 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: macro@linux-mips.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 On Mon, 29 Jul 2013, Florian Fainelli wrote: > It is not clear to me whether this secondary cevt is also a r4k-cevt > device, or if it is something else? If the IRQ is shared, is there any > way to differentiate the ralink cevt from the r4k cevt, such that both > could request the same irq with the IRQF_SHARED flag? As from rev. 2 of the MIPS architecture processors are required to implement a CP0.Cause.TI bit to indicate a CP0.Count/CP0.Compare timer interrupt pending -- so it may all bail down to figuring out what MIPS architecture level this SoC implements. FWIW. HTH. Maciej