Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp504060rdb; Tue, 19 Sep 2023 01:48:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFI0vtFGrOp4rRvdUkOyQR54xyLLEi00pgkX27W92+9ZATi4J+8RK+8QW+tOs0QoMxDWg1d X-Received: by 2002:a05:6a20:7483:b0:158:1387:6a95 with SMTP id p3-20020a056a20748300b0015813876a95mr11558448pzd.19.1695113283445; Tue, 19 Sep 2023 01:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695113283; cv=none; d=google.com; s=arc-20160816; b=zuFnfOAHzdIfBRcKiz6P0VTvL2v5hiJeBHVqqCYKRZI4zSxmLhcsXGMDC+CtV3qpuu zKTRKJIZpTDUeAaCBQjMYNwBrTzKAvXXHU/noiBPI24UQMUfueZlUGQX7GvEWDIgBQqK 2+uETLlmopL1G+RSy8HqfbF4R0VwV/YlQOJsHdSb4D6c7x8nRk8gPi72XzoCQ989a9zY 3mmrr4vMREP9IozRec5SrxHs9TdmeZ+5mYFUi3lqF/FQDE1g4/tNWYrndl8zC7Pf1avk IKlC9X8JUoylz37AmBYbslw8Bmb4psC0LF3AOAXjg4qyip2/H9NVjr1HZ0aF4+1HbrhG z38Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=KejBrbsYeBzx2ZPEjQpJ30P6XZKpsWsbGgp9CqzkuhA=; fh=Ye60wbHyfDVmxGPvnbCYjC8fAm4v3a0M4iYA6d2rROw=; b=EpppJAq4uH/cM42QJ0qb1GkeNe6dMdKmlmeqcFJ0B2moOpvvtHzlKIqYhV2SSqhMxv 1DQd6jB6fEjfgLLmPyL+NTa737V/Ydri7FR9ZhgFVKHMHLkGvRnhX3kAk43BwPttWtQv H4Lwqf+SsUHjnrKWbg+3qWeWzdj+RocvvQYf0gl25rcXrko7Cqd9tOVvCaeRpfOMhuvy pxffz8Wt2WYJhl361j0/zk2E+45FEzQ1mHoeqSmvsqeA1N1INgvm0Q00q0lcvTJhUJ4Y Ifsw0xnFqiFuRy7rc6D8rryyCQbJb1+IAfmt4iwRESjIFHyf+fIzeLzftU6JJpVnXWXr a6rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KkBoDGIg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id p8-20020a17090a0e4800b00273e2978b8fsi6083364pja.32.2023.09.19.01.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 01:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KkBoDGIg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7496681ABAEC; Tue, 19 Sep 2023 00:13:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231649AbjISHNT (ORCPT + 99 others); Tue, 19 Sep 2023 03:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231653AbjISHNS (ORCPT ); Tue, 19 Sep 2023 03:13:18 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6277F11A for ; Tue, 19 Sep 2023 00:13:12 -0700 (PDT) Received: from [127.0.1.1] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9A1631257; Tue, 19 Sep 2023 09:11:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1695107495; bh=xZVjIvalSzQChhfXM3j4TPEPuazse+0jkiMMdkmQ7Pk=; h=From:Date:Subject:To:Cc:From; b=KkBoDGIgk38Co4MW4PgTzVY9bz0vl7XF2Ww19fked3AnfLzZfqonUAD/+ofJOScqZ TdcZrTRanp+2ef5hInKzQWpZXpjyByFolFKmWxkf7vQjzBz0RQKQis3NVLn5Y5Yvuc 6JiHncCB1qY0vieyZZJhOckJG7rA/L5rk9ZdSPNY= From: Tomi Valkeinen Date: Tue, 19 Sep 2023 10:12:50 +0300 Subject: [PATCH] drm/tilcdc: Fix irq free on unload MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230919-lcdc-v1-1-ba60da7421e1@ideasonboard.com> X-B4-Tracking: v=1; b=H4sIAPJJCWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDS0NL3ZzklGRdy1QDy1RLkzSTVEtjJaDSgqLUtMwKsDHRsbW1AMs3i6Z WAAAA To: Jyri Sarha , David Airlie , Daniel Vetter , Thomas Zimmermann , Sam Ravnborg Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tomi Valkeinen X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1151; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=xZVjIvalSzQChhfXM3j4TPEPuazse+0jkiMMdkmQ7Pk=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBlCUoFClz12Kf0TeatkDF632nSj6atk0CLo4eYi ojwO7tDmLyJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCZQlKBQAKCRD6PaqMvJYe 9eYWD/9DdFAzLQKYPEOpgXfOvjSz5wq8S4H1BjOBYiTM391/1QqLLuKta8ZsR0km0HmeayeTKkf UYN4/bpKomWgInJbdz7lFfcSVzwOB3lSTdSBltwVxFvqdMEmwv4qKJe93jfV1OBxYzaYM5DZiEr bO+Vq9KvfcDBi3O10LLfhAQ+ivEzIR+L666IU6jcxEt/0LJBX6V2cT8iEbr0CZvBIW4VBXycLhz BYjZxOjdvDAWCL/XyJGnNExuGR4xIBg4Tq+/jTjU1QuBvdBLopDz2k+DdogyWTffTlb9AQaU7jI O8zHVPZJw/pRtMCighR4UBDbgl6a5vQGxQH5rOnktRKe7RyBXEdnj54xLSkJtbujf4x0Yuu7HR+ zFhMBIowUaToZ6TeKPmlMGivYwZKeX+sUgJPVWesz4+bRsVZr2oN3Utg4t3ysXGxM2oMw8Ia4cb /Oi7XcMVhj/1fbgF7rB0iDAVXn1sElHp9/bIUHhc/rUvBDIwbyF3paro/zMmoGzilN013RG6DST 8MVbB8NKFBWUc6SYCcTwaYIuSgCfJL6IPT8sUZpXuK+rdOT5mKTxFoEwsyllq9fiCIWWYYKKj7E LcqTFbR0ueQHA8gZW5UPPbaeabDmf069NiQm+g7YTzOtkW+wuOXexUPtTN+IVybxZUycjrNvMd6 pJP1YijEgNTYUQQ== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 00:13:27 -0700 (PDT) The driver only frees the reserved irq if priv->irq_enabled is set to true. However, the driver mistakenly sets priv->irq_enabled to false, instead of true, in tilcdc_irq_install(), and thus the driver never frees the irq, causing issues on loading the driver a second time. Fixes: b6366814fa77 ("drm/tilcdc: Convert to Linux IRQ interfaces") Cc: Thomas Zimmermann Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index fe56beea3e93..83233bdc0526 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -138,7 +138,7 @@ static int tilcdc_irq_install(struct drm_device *dev, unsigned int irq) if (ret) return ret; - priv->irq_enabled = false; + priv->irq_enabled = true; return 0; } --- base-commit: 0663e1da5ba8e6459e3555ac12c62741668c0d30 change-id: 20230919-lcdc-9e09e94f4e93 Best regards, -- Tomi Valkeinen