Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1861650rwb; Fri, 19 Aug 2022 10:36:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4BEOUf6l0tycHNtFGVjSuwMFM93bSXNuNR51BXmGdzmxjGOLkshYt/idwm34IN/tU9JbTT X-Received: by 2002:a17:902:f650:b0:172:8ee1:7f40 with SMTP id m16-20020a170902f65000b001728ee17f40mr8715632plg.101.1660930589854; Fri, 19 Aug 2022 10:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930589; cv=none; d=google.com; s=arc-20160816; b=YBsUJloaJk3UNlBNDArvLrqL/G+hTBo/NA9sVcpKjHLHhf8AjeUJbOZ7LoVRP72vX8 fTs3Ughk/7Pp9iWo39ZdEJdPSpc4mNL1QdjqDnbghZANVxqHskYdln9fE6OEx9Y2hPPA dRbgTjdp9h6iW4ukc85+QXGGPV0JoGo/XjDG/XahJT2WvNopY+CyHqNIeEIMZW5cOhax 8HLWzWMJ3DTnr8BN43P008PUG4XowmfEO7Xo4/NhCFqS8E6Na66XN1/x2uqrjo4Cco8/ BotTa0Urx3EZhS44ssy1jH+eUxg+j34ZWdkIohlzB9mCvr3KH6DQNq0vBV0Swsx5kgDy MCLA== 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=+vIgtPjKkSmE4DNj47FS5EhN7pk9gbFN7A/YG0UP0WY=; b=EnH7woJuLHpGrZBy6WBhpuNT233YI8G3nbjh+qznD2yeFWg+RJylKHPtlK8XYS52RK qSvlrq0Wvvrnmw3YK7q5iI/0a6QW4DOSg/fIYLHkDf/771WCmkSaR9EaOSmu7u8pEh/Z VCNf5iXTSKZhGBNmV3ad6aI7v5nM0EHMa2ArGTMCYnMHPM9wErwfMvUs6Ncbuo0XGss6 KVIKbpKnPjTs2WiZVsUjE2yd4GPhP9sP2GYQzZG6UTp/B3TI9/gfp1wof4qWW38nXUmQ m9SJTdGTTHu95i/MMr5E2uToXGmXS7OXJdSeWUOxAsQcUxH3r4XK09sJoxg44xhwLxhj L5WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F0Evaz9N; 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 k16-20020a637b50000000b0041d322ad7dfsi1928879pgn.326.2022.08.19.10.36.19; Fri, 19 Aug 2022 10:36:29 -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=F0Evaz9N; 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 S1351279AbiHSQEo (ORCPT + 99 others); Fri, 19 Aug 2022 12:04:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351408AbiHSQBe (ORCPT ); Fri, 19 Aug 2022 12:01:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DB596F57C; Fri, 19 Aug 2022 08:53:21 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B865461746; Fri, 19 Aug 2022 15:53:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE599C433D6; Fri, 19 Aug 2022 15:53:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924401; bh=7+YQK8QHGisPOG8DFcEQeNDEpOAfKa3JElgtrJwMqjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F0Evaz9Nv1a4Uk61vx/DWhUZ7ikk1LvIp63IakNGbTkkEnHlsUV4uFsxdZEXv/HKd Q0JT1n4jCNhFxiedMFcUmHQh+DsQCwW3WrwS0JIrQgbaOOiM3sR6MjAJvG+Ov1m2zL XtFVltqSXZGdfLn8xHvXA06G5V0jfxVaUcCynSYw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Steev Klimaszewski , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 159/545] ath10k: do not enforce interrupt trigger type Date: Fri, 19 Aug 2022 17:38:49 +0200 Message-Id: <20220819153836.472025369@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 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: Krzysztof Kozlowski [ Upstream commit 1ee6c5abebd3cacf2ac4378d0ed4f57fd4850421 ] Interrupt line can be configured on different hardware in different way, even inverted. Therefore driver should not enforce specific trigger type - edge rising - but instead rely on Devicetree to configure it. All Qualcomm DTSI with WCN3990 define the interrupt type as level high, so the mismatch between DTSI and driver causes rebind issues: $ echo 18800000.wifi > /sys/bus/platform/drivers/ath10k_snoc/unbind $ echo 18800000.wifi > /sys/bus/platform/drivers/ath10k_snoc/bind [ 44.763114] irq: type mismatch, failed to map hwirq-446 for interrupt-controller@17a00000! [ 44.763130] ath10k_snoc 18800000.wifi: error -ENXIO: IRQ index 0 not found [ 44.763140] ath10k_snoc 18800000.wifi: failed to initialize resource: -6 Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.2.0.c8-00009-QCAHLSWSC8180XMTPLZ-1 Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.2.0-01387-QCAHLSWMTPLZ-1 Fixes: c963a683e701 ("ath10k: add resource init and deinit for WCN3990") Signed-off-by: Krzysztof Kozlowski Tested-by: Steev Klimaszewski Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220513151516.357549-1-krzysztof.kozlowski@linaro.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/snoc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c index e5a296039f71..4870a3dab0de 100644 --- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -1205,13 +1205,12 @@ static void ath10k_snoc_init_napi(struct ath10k *ar) static int ath10k_snoc_request_irq(struct ath10k *ar) { struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); - int irqflags = IRQF_TRIGGER_RISING; int ret, id; for (id = 0; id < CE_COUNT_MAX; id++) { ret = request_irq(ar_snoc->ce_irqs[id].irq_line, - ath10k_snoc_per_engine_handler, - irqflags, ce_name[id], ar); + ath10k_snoc_per_engine_handler, 0, + ce_name[id], ar); if (ret) { ath10k_err(ar, "failed to register IRQ handler for CE %d: %d\n", -- 2.35.1