Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp630258pxb; Tue, 5 Apr 2022 16:34:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhFh/nw1wvCfbKXpWujm0qgGkZeXWyV4aa9Dt0kmbfSZhqg30CNngBBTm1pIStjok4b/WA X-Received: by 2002:a65:55c4:0:b0:381:71f9:cd35 with SMTP id k4-20020a6555c4000000b0038171f9cd35mr4661285pgs.94.1649201644852; Tue, 05 Apr 2022 16:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649201644; cv=none; d=google.com; s=arc-20160816; b=g7e4RCKzqtzLzc2B0aKRmxJLF5abh2M7AmNNV7S82Q77Kb0+6r0UgixT25V9jNN283 OJl8CInqXmuTqtPytxjarRr7p6lfWZv6l2Re1/VipZLrZbJT7x2ZDrTmHTgro0BED+aC Fm+Big7+jLztu+UHgX/PM8fYxtMP3qB+dWVyt6ZdR+IN7VgxmAgNrJaCsVEx34eGpCaJ fizmumorWXcxxGASdfFTKLgzyilZ/iGpuKLPVqSDdWpREQu3v+YZ3wzYJGY/iIb2jB0C QaDKHmVtNqOEQVun9nMS60CWJYegdtVsye9GRxPQpv4SRC6RunggaagtHDh6vTebjuAZ FUSA== 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=sZ+0MQX+aboLWg5m4dr7lEwbpI2s+xdBrro3ccsXvWQ=; b=d4M1N2XNGScZb5Rck+0fHYdCZrdUlasVH10UVBx4FZt5Zs3rLr8Ynp3s5u8iz0lhfV 44/uiG/hPPcQlAvQFwK4krEXkgGFrVr1oWsClN0Gf9gZ2MM7AimmiTJP1PsH+6YzgKVW 3BGxGr5nW4RCB6LiiiBu6vCIHDQX6ECuzLlyfiT8GaqkinNN9hj3IQaSCvAnjOT995mN SoUTT615Qr71qx/ZcmTyAwMiWvdJKERYSzJnuWBYdnJqxIpvS8shcdbiL2jSE/7YpTLg CezXTRJluhj1T58Yxfi1m0MVBi0gGdGCYaQYxF8dHe0hy/R+RO7uatxsfAqvGnKBVLG9 yt+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="J6PT9+/w"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mi8-20020a17090b4b4800b001c9c607ee7asi3641592pjb.112.2022.04.05.16.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:34:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="J6PT9+/w"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3097612759E; Tue, 5 Apr 2022 16:18:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381498AbiDELqK (ORCPT + 99 others); Tue, 5 Apr 2022 07:46:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244878AbiDEIwp (ORCPT ); Tue, 5 Apr 2022 04:52:45 -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 35E5623BEE; Tue, 5 Apr 2022 01:45:23 -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 C27D4B81BC5; Tue, 5 Apr 2022 08:45:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34018C385A1; Tue, 5 Apr 2022 08:45:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148320; bh=SeEmVQ+6sOiq6KI47+xvkVim2p4SUR0DdCPXVwb5hVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J6PT9+/wHlbrqnlf4GDW1yo3/+7Y7EDQkTdDKqaiydEmKAAjJdVECkSJBnEi6TvG9 6ztY4k6NS44dQt6P7Qlr12Z2Jsh1ltfrYPmv5LdhUVyldobQTPINS/0maAtZPP6Ma1 y/8OeanLH1qQw3Fp5LOBMDcZzBqUN1V69P2lVc8M= 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.16 0315/1017] soc: qcom: aoss: remove spurious IRQF_ONESHOT flags Date: Tue, 5 Apr 2022 09:20:28 +0200 Message-Id: <20220405070403.627715914@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 e234d78b33e7..55c156aaf68a 100644 --- a/drivers/soc/qcom/qcom_aoss.c +++ b/drivers/soc/qcom/qcom_aoss.c @@ -501,7 +501,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