Received: by 10.192.165.156 with SMTP id m28csp1116113imm; Wed, 11 Apr 2018 12:44:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48VpRRnMQBqYKKSsxYtLAjEDPc6FcALOWlU7Xcw+8Kam1rMnhX8J3BvF77Bd+DmolSMZyNF X-Received: by 10.101.78.132 with SMTP id b4mr4438488pgs.311.1523475860865; Wed, 11 Apr 2018 12:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523475860; cv=none; d=google.com; s=arc-20160816; b=NVnazjIR+RWJGx0GEdcqRTUWqLwhWHsBsKAGuQxJxDpEOD+FR91ywOmdSdX1eKuxGv yPnaIrlJ7bIuivedkK5qhdmRe10QcgA5secljfG82GgG3cRzkGf8clo1G3JDrTHuZ5j6 0pxyyir6vgHmHb1WVSv1x92tLbie9GCLTaAjYozvgG2OQz1KYzHVOW4MpnuKHLCaN+Xz ZH4PpO/cLEhXdtsAHLYK+ECiW45NmalE8ks6leWlApbfSsR9eannhX1fxpN9Y8Zqoy48 WfV4YjOWW4qJvPshnllN/D6iRip0jJmCyUyGgkZ1cgAgptgjpwoYjmoNGiE2tB78UB8F FE4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ioFQAf+E6XYzZQOvhNnS0iB0AyPmVjRsYLMoynVCbXE=; b=Nmc7Z+Bptp0CPvO3WG6ygj4Nu7abdg1X9pDgrrg6dbjUFhK32gyO3IE/rw5DCdpcln cG2J/USquy//DT5+rnuJNztJ0NMTs3HUbq4EKEx13VgZdrJWuFKSXPTTJjGydBxmU19q 6kXCtzFQNRwTHtrzYeUhYdlkFJdlayty1c+Umb9ZNgNoTZG7W9eGvSV9fuIDxp82b72S DprviEtUgBlEnSl1lfBCMtZd90D6xkh8rMzRYYkSYTitT6kyVBKK+zIFxtV8A2HyvMBq GMEykYVwTKVULnWVA0vr/9INzwTzAGcwB7k8hgH3ZaOf7m879mvB6tK1ui3Jx5INWS0/ meCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e28si1167471pgn.621.2018.04.11.12.43.44; Wed, 11 Apr 2018 12:44:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756942AbeDKTlB (ORCPT + 99 others); Wed, 11 Apr 2018 15:41:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38032 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934171AbeDKTBE (ORCPT ); Wed, 11 Apr 2018 15:01:04 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5F0C6DAC; Wed, 11 Apr 2018 19:01:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 4.9 185/310] powerpc/8xx: fix mpc8xx_get_irq() return on no irq Date: Wed, 11 Apr 2018 20:35:24 +0200 Message-Id: <20180411183630.571149557@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christophe Leroy [ Upstream commit 3c29b6038828c1f4c9ecbfec14d4fc5e25f1c947 ] IRQ 0 is a valid HW interrupt. So get_irq() shall return 0 when there is no irq, instead of returning irq_linear_revmap(... ,0) Fixes: f2a0bd3753dad ("[POWERPC] 8xx: powerpc port of core CPM PIC") Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/sysdev/mpc8xx_pic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/sysdev/mpc8xx_pic.c +++ b/arch/powerpc/sysdev/mpc8xx_pic.c @@ -79,7 +79,7 @@ unsigned int mpc8xx_get_irq(void) irq = in_be32(&siu_reg->sc_sivec) >> 26; if (irq == PIC_VEC_SPURRIOUS) - irq = 0; + return 0; return irq_linear_revmap(mpc8xx_pic_host, irq);