Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp661417pxb; Tue, 5 Apr 2022 17:45:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzhJB37YFowg58SHbHlQM7M4emLl2G5A9rxNflHoAvSKvXjqXmjRImyCkUCu3e8xOh4QMI X-Received: by 2002:a17:906:b155:b0:6c9:ea2d:3363 with SMTP id bt21-20020a170906b15500b006c9ea2d3363mr5844579ejb.729.1649205920472; Tue, 05 Apr 2022 17:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649205920; cv=none; d=google.com; s=arc-20160816; b=QBoo4ZXOK25yp3Sj4vd6aPEz3oPQX+1sTgD+7ylVmqK39jIfr/939DqVASJhorl+xl jV1ehS5f62vbVQKOMcW6aT4ZBZvhLdTh6/cvV0muff9Z3aLnz0JkEgOST6899xodJbAM 0cFcZ+sLkVoPw+9HoZ8dkMbtN5GiOZqc6SvKOhP+HMVc4aOz85UD5kCcsFjt5G7hfuLH bHO0VCTRIvjhJfXqlOxPUVIOSHU87C2M4UkQVnJRpKQbVD6/SzghbDe8GzkBI5CNz0rR LSmygaU8eKOvbk/YR7omh/i7AJ6JVLCPXwuUd6rVQ+8uL8g4J4odGLtl8NC1WJkhMXTr xV2w== 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=+9OjOFGDRrn8G7LFG9EomLkXjHpknjkhQ7dlcdioav0=; b=mIv3R5QmXV8uPH/KOXc7zF2UFf1CtBTyL+fccp0NCHU00m7WiAJ3Zlw8UQ8AyretH0 ZsWiMomOtLmYlQdUEvgidqwP+iPjDesIQjSN5MWbJPBIKH200BcEZttwRygXF23fgNPP SBTae0ZFCF0F8C7BdqEtgRdqGdcbc/fwVn8DA07M0h1tUi/kLmLQUACR46KWphPy0M8g 7ttw70fA6RRCUyTX+udFvFiuUjSNgeTkCcMAS4gn7ll8wc+PIP9ixdiJ45ptr+/GNbhn wcXzQ1nPQGtYpDeWCECR6jW/rWKMdf3mTEE70MXiDqDQpptUDQaFcGLrnumQ4KrlQjXB bmBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zUMjfG53; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a1709061f0400b006e7eb9aa825si5785565ejj.416.2022.04.05.17.44.51; Tue, 05 Apr 2022 17:45:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zUMjfG53; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1387623AbiDEPTQ (ORCPT + 99 others); Tue, 5 Apr 2022 11:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346783AbiDEJp2 (ORCPT ); Tue, 5 Apr 2022 05:45:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE92DDB4BF; Tue, 5 Apr 2022 02:31:51 -0700 (PDT) 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 97250B81CC4; Tue, 5 Apr 2022 09:31:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E01AFC385A3; Tue, 5 Apr 2022 09:31:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151109; bh=eVZftVlJ42o4VmZTs29/3AwJXmVvKUpsGDEe+yjvsqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zUMjfG53+cIsN6+5nFJznzk/wSm2iGk//y0Jt2vXa9F9EhM1iOMllC9ah1+K89cHa sbvDXJVxU/TMmdYG8qy8MaW2LYrpMFqKdLeFbuL5N/UN0B7Q4Jv9GSS1QM+vgVN1kg /CPvFKAU4xgvxd0dYZ7TEA9aC+IsfypyLiUuO74w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Thompson , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.15 298/913] soc: qcom: aoss: remove spurious IRQF_ONESHOT flags Date: Tue, 5 Apr 2022 09:22:40 +0200 Message-Id: <20220405070348.789077973@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Thompson [ Upstream commit 8030cb9a55688c1339edd284d9d6ce5f9fc75160 ] Quoting the header comments, IRQF_ONESHOT is "Used by threaded interrupts which need to keep the irq line disabled until the threaded handler has been run.". When applied to an interrupt that doesn't request a threaded irq then IRQF_ONESHOT has a lesser known (undocumented?) side effect, which it to disable the forced threading of the irq. For "normal" kernels (without forced threading) then, if there is no thread_fn, then IRQF_ONESHOT is a nop. In this case disabling forced threading is not appropriate for this driver because it calls wake_up_all() and this API cannot be called from no-thread interrupt handlers on PREEMPT_RT systems (deadlock risk, triggers sleeping-while-atomic warnings). Fix this by removing IRQF_ONESHOT. Fixes: 2209481409b7 ("soc: qcom: Add AOSS QMP driver") Signed-off-by: Daniel Thompson [bjorn: Added Fixes tag] Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220127173554.158111-1-daniel.thompson@linaro.org Signed-off-by: Sasha Levin --- drivers/soc/qcom/qcom_aoss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c index 536c3e4114fb..a0659cf27845 100644 --- a/drivers/soc/qcom/qcom_aoss.c +++ b/drivers/soc/qcom/qcom_aoss.c @@ -548,7 +548,7 @@ static int qmp_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); - ret = devm_request_irq(&pdev->dev, irq, qmp_intr, IRQF_ONESHOT, + ret = devm_request_irq(&pdev->dev, irq, qmp_intr, 0, "aoss-qmp", qmp); if (ret < 0) { dev_err(&pdev->dev, "failed to request interrupt\n"); -- 2.34.1