From patchwork Mon Apr 10 14:53:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juergen Schindele X-Patchwork-Id: 749221 X-Patchwork-Delegate: scottwood@freescale.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w22t824VXz9s84 for ; Tue, 11 Apr 2017 07:11:28 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3w22t817YPzDqHV for ; Tue, 11 Apr 2017 07:11:28 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org X-Greylist: delayed 629 seconds by postgrey-1.36 at bilbo; Tue, 11 Apr 2017 01:03:55 AEST Received: from dmz-mail.nentec.de (gate.nentec.de [213.218.23.37]) by lists.ozlabs.org (Postfix) with SMTP id 3w1tk30sPpzDq7Z for ; Tue, 11 Apr 2017 01:03:53 +1000 (AEST) Received: from (unknown [153.92.64.119]) by dmz-mail.nentec.de with smtp id 7a5e_a81a_6bcc0f32_1dfd_11e7_b5a0_000c29a8555f; Mon, 10 Apr 2017 16:53:12 +0200 Received: from localhost (localhost [127.0.0.1]) by zimbra.nentec.de (Postfix) with ESMTP id BEE3317E0DC2 for ; Mon, 10 Apr 2017 16:44:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at nentec.de Received: from zimbra.nentec.de ([127.0.0.1]) by localhost (zimbra.nentec.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LxcvB7L_7o0k for ; Mon, 10 Apr 2017 16:44:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.nentec.de (Postfix) with ESMTP id A47AC17E0EF8 for ; Mon, 10 Apr 2017 16:44:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at nentec.de Received: from zimbra.nentec.de ([127.0.0.1]) by localhost (zimbra.nentec.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id n27iB4d4MppH for ; Mon, 10 Apr 2017 16:44:05 +0200 (CEST) Received: from sherry.localnet (sherry.nentec.de [153.92.64.8]) by zimbra.nentec.de (Postfix) with ESMTPS id 8EE2017E0DC2 for ; Mon, 10 Apr 2017 16:44:05 +0200 (CEST) From: Juergen Schindele To: linuxppc-dev@lists.ozlabs.org Subject: Freescale mpc8315 IRQ0 setup Date: Mon, 10 Apr 2017 16:53:18 +0200 Message-ID: <2666241.ms6yMRjznt@sherry> Organization: PSI NenTec User-Agent: KMail/4.14.10 (Linux/3.16.7-42-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: -5000 X-NAI-Spam-Version: 2.3.0.9418 : core <5995> : inlines <5796> : streams <1740761> : uri <2407201> X-Mailman-Approved-At: Tue, 11 Apr 2017 07:10:21 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: schindele@nentec.de Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Dear mailing list, i found out on our platform with freescale mpc8315 SOC that in linux kernel code the setup of IRQ0 which we use is not correct. One should be able to use falling EDGE interrupt capabilities like on IRQ1-IRQ7. These setups are fixed in "arch/powerpc/sysdev/ipic.c" The internal interrupt number of IRQ0 is not like IRQ1-IRQ7 in one block but on number 48. To verify details please consult MPC8315ERM.pdf developpers manual. To correct these "EDGE" capabilities of IRQ0 i suggest the following patch: please consider integrating it to your patches. Thank you for your attention --- arch/powerpc/sysdev/ipic.c (Revision correct) +++ arch/powerpc/sysdev/ipic.c (Arbeitskopie) @@ -316,6 +316,7 @@ .prio_mask = 7, }, [48] = { + .ack = IPIC_SEPNR, .mask = IPIC_SEMSR, .prio = IPIC_SMPRR_A, .force = IPIC_SEFCR,