Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp874361pxb; Tue, 1 Feb 2022 12:11:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhriER7ERXWotTKIoGCVrQ2hZfuKd6rBytiT20hG8PIWx9v235Whu4fGiDXJTzxEW7DlMm X-Received: by 2002:a17:902:d482:: with SMTP id c2mr27133490plg.85.1643746319000; Tue, 01 Feb 2022 12:11:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643746318; cv=none; d=google.com; s=arc-20160816; b=nDoMJPwBp5Fj3rOUrg6uVd9FyxwyzSOyzxMN4NPS08kNUqor0klbQbfCnEAZrP9IXS 6gbn531eGGBSC+8ePIQUlxSh8kxz5VAGL3HjyloYoYQhUqNVU997XxoP2yooGxCHNpip myY+NRk0tdVrweDRpI+eF2k9KyU7/A//a8bOww00oGjyreLdDSWC5c1Zc14iMztg6zO2 wMyEwHMhDGdsYr+ae5k485LKKsAEItQTkmtz0oZxmjcp0OY4Ve0v0eYK6jvCEON2QW8i lKZPdSUR1KhxliC24SEiQ0QlVxffvBuyiU9PvOejBvAapG69hVLDzvXqyjeICdLJG8Jr cHyw== 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=24h1KnvHz1A5N6RLJZR1gqJfFDBRGVrLpO7Z//DNcYs=; b=U7OtOnNB2IULl7XgfA/2/ZR2rkAFxxvsnG87Qa6BL9Xip8MQsz57MABRG0TLJDJeWO fAdc6bah/VzmJOcHQX59/UjAl0OW+DtTXE7pknKtdpqA/9Yz0r9c8yItysZTSKNew1Fs S4okApGG0YaNMMQRqC5dV6+9fgjDjk7KKU34D++qCpqXkhfPBg5wT2/uOcnhA+e39zvx yXBSxSMYxWDiB57F6/HHbdAWdJ71mp8OTE9HbK8KY3UsOXwtBBsrUl12hN1ubsScWwk5 hmtHC5Z767IM1i5ADzt7TqKVT4kwW7L+cEsqS1Ex1QlJwkp5V/jmlyXWQaZdLBFw7ryo 2tyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mfn1d0Bg; 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 x1si16676175pgk.279.2022.02.01.12.11.47; Tue, 01 Feb 2022 12:11:58 -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=Mfn1d0Bg; 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 S1378505AbiAaLsf (ORCPT + 99 others); Mon, 31 Jan 2022 06:48:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377608AbiAaLgo (ORCPT ); Mon, 31 Jan 2022 06:36:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2AFBC08C5FE; Mon, 31 Jan 2022 03:24:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7A3C8B82A61; Mon, 31 Jan 2022 11:24:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD802C36AE3; Mon, 31 Jan 2022 11:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643628297; bh=rYGaHByqYJDUZ44c0fnl0gDVIASjO25cAfhwqHt8L6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mfn1d0Bgjde62UjGJXEl2GIrVyVONiiv8TpwIva7Z+OgwLkX/RJIF26+Q7P4B4QJ6 f5rd1ct8xhZd+40o0v4UJiYmNF812ByKyooy52Q3wTtjG6795CJLmJ5J6VDGfoNUXT 76eOXVwVvmVz/LWJyxC6n0Qb+1yIhwlI0N/4rT38= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sander Vanheule , Marc Zyngier , Sasha Levin Subject: [PATCH 5.16 187/200] irqchip/realtek-rtl: Map control data to virq Date: Mon, 31 Jan 2022 11:57:30 +0100 Message-Id: <20220131105239.828805478@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220131105233.561926043@linuxfoundation.org> References: <20220131105233.561926043@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: Sander Vanheule commit 291e79c7e2eb6fdc016453597b78482e06199d0f upstream. The driver assigned the irqchip and irq handler to the hardware irq, instead of the virq. This is incorrect, and only worked because these irq numbers happened to be the same on the devices used for testing the original driver. Fixes: 9f3a0f34b84a ("irqchip: Add support for Realtek RTL838x/RTL839x interrupt controller") Signed-off-by: Sander Vanheule Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/4b4936606480265db47df152f00bc2ed46340599.1641739718.git.sander@svanheule.net Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/irqchip/irq-realtek-rtl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/irqchip/irq-realtek-rtl.c +++ b/drivers/irqchip/irq-realtek-rtl.c @@ -62,7 +62,7 @@ static struct irq_chip realtek_ictl_irq static int intc_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw) { - irq_set_chip_and_handler(hw, &realtek_ictl_irq, handle_level_irq); + irq_set_chip_and_handler(irq, &realtek_ictl_irq, handle_level_irq); return 0; }