Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4302908pxu; Tue, 1 Dec 2020 01:20:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzctCYugqxsjU2p44yKlz8AeOweWLSOa14+5o3h219Rv86bJmSCrXhVeLnNHD9hnmCUvm9V X-Received: by 2002:a17:906:4705:: with SMTP id y5mr2052983ejq.112.1606814410293; Tue, 01 Dec 2020 01:20:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606814410; cv=none; d=google.com; s=arc-20160816; b=i/H+bDVjnUOqZSUBg4fbTSIFOWJVXCfUkl0CbotlWbsChq8Rft58YYs5z7PmOXymWS YfX5WahbOkbFslvtgGPgcY95ZSZOgF+Gvt4wZoGa+sEDNyw8bQW7rACbDgDSi0uh5O68 vtmS7dmDeUDS6LbHb/b93+yJmS68KMdaxxCGR/SH9vy1sH/oR7yr+O+wXuGsYwevidmM HNQ8MNRmXmZ+cv9NDAkXsX3hKBdd6hoFobmY9hLyRLmPPbaXtwuFaFma8HwOKcjzB9kh TxrOtriUqm8kbeDXvPtJYBtwSVno3GcAyTbyIAtFp1eaOPV7VyZuqyDkGbnpvTvB6rb0 17Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HR1oWvwz3mxNeS29YbWVX+tVY7YY+9agLJCRCiA1B4s=; b=vW7azOOGfC3kFL1DjpgKakLZQ6YAw1U7Bzguq0im8fyAtlIqyOaE3Or6uV/kXM1P0G ErGdJ0un1T9knqDhVku9Hsj26uyihWe39WfiFOdui9jLNyohz0tPaJb4UcmTPgnqEtpt OH9s8qUYa6ViD6UFNsbtgVSpfYVnk/xz6dE5MJTFhSqS4iTtlAUoZg9nze5sL8I06/7U GwNCseQW+hW1BDgKGwV7GaCLuGJgc1dxT8ycYrWZc7CuU2IerB+ykkomk3Z+YDeLKAjo 1Ywi7GuiBVuAmaeaGifoZgRdKLwl0jJl9GvZujeka9naaWO/HvBgveHXRGOuU0e/QiYG Jucg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2hOhXrH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si562290ejm.200.2020.12.01.01.19.47; Tue, 01 Dec 2020 01:20:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2hOhXrH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390502AbgLAJPj (ORCPT + 99 others); Tue, 1 Dec 2020 04:15:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:54048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390424AbgLAJPM (ORCPT ); Tue, 1 Dec 2020 04:15:12 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 793C621D7F; Tue, 1 Dec 2020 09:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606814072; bh=PGMjPs3kovMg+0Qndby3acphdD/4Zb9vuLi9PMjCAew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2hOhXrH4nFRcexUR8rgauNzs5oVOuV1R2MYrXDO8DpTABDXkZuK0ACpL5stuWqexv +AvBXe5GuA++ZIKZcjmu4rgbmpThMw8+OS+6d0eIhwVESiVjBMjQ9BGgJEWnxN1yC9 VsNnK3E0kwUirNf5Z67gTruRWHzjxJZrg3/sztUk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen Baozi , Marc Zyngier , Ard Biesheuvel Subject: [PATCH 5.9 147/152] irqchip/exiu: Fix the index of fwspec for IRQ type Date: Tue, 1 Dec 2020 09:54:22 +0100 Message-Id: <20201201084731.100672043@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084711.707195422@linuxfoundation.org> References: <20201201084711.707195422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen Baozi commit d001e41e1b15716e9b759df5ef00510699f85282 upstream. Since fwspec->param_count of ACPI node is two, the index of IRQ type in fwspec->param[] should be 1 rather than 2. Fixes: 3d090a36c8c8 ("irqchip/exiu: Implement ACPI support") Signed-off-by: Chen Baozi Signed-off-by: Marc Zyngier Acked-by: Ard Biesheuvel Link: https://lore.kernel.org/r/20201117032015.11805-1-cbz@baozis.org Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/irq-sni-exiu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/irqchip/irq-sni-exiu.c +++ b/drivers/irqchip/irq-sni-exiu.c @@ -136,7 +136,7 @@ static int exiu_domain_translate(struct if (fwspec->param_count != 2) return -EINVAL; *hwirq = fwspec->param[0]; - *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; + *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; } return 0; }