Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCBEEC61DA4 for ; Wed, 22 Feb 2023 09:54:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232386AbjBVJx5 (ORCPT ); Wed, 22 Feb 2023 04:53:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231263AbjBVJxb (ORCPT ); Wed, 22 Feb 2023 04:53:31 -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 C7A17305CA; Wed, 22 Feb 2023 01:52:01 -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 BDF66B81218; Wed, 22 Feb 2023 09:51:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6649CC433D2; Wed, 22 Feb 2023 09:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677059516; bh=PyUDgmO8GAvIrVIlTy6DR+3I37FfQ9drabu8uH/vTLU=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=f+/ukOx2KzvGnXjS/bxr1wPEjhw6z37QZrpnv0SwajPPUQ1ZHAKYXHtBPSLDScMqw PkxpaO60xDNd6ttMJ7M8TZpa9YSbEVCMGathT54evZ//094i4gNguukSXdBzv1xPDD xcteuIeJWzI6KMgel7MWe/0VD5zesSPl6wUP7mc6aNFskGi7befFGCoYEgTVjC1j1X YJ7oZVG1Bk2LexqTt6AqItVUW0m27B0mDth/9GrVa+k9Eb95zhzaB6UJ5EMo39c/KJ M0XxMzjqqivo+aob78SL6f72gJGW+dtERSPQ0bMS3zVcWI72fHQxI8hqE/D3rWpyI4 2Qz59+Q1vZmCQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 1/2] wifi: ath11k: Use platform_get_irq() to get the interrupt From: Kalle Valo In-Reply-To: <20230201084131.v2.1.I69cf3d56c97098287fe3a70084ee515098390b70@changeid> References: <20230201084131.v2.1.I69cf3d56c97098287fe3a70084ee515098390b70@changeid> To: Douglas Anderson Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, junyuu@chromium.org, Youghandhar Chintala , Jiri Slaby , Luis Chamberlain , Nick Kossifidis , Abhinav Kumar , Douglas Anderson , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Lad Prabhakar , Manikanta Pubbisetty , Marc Zyngier , Paolo Abeni , Rob Herring , linux-kernel@vger.kernel.org, netdev@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <167705951022.25767.9800855263902793000.kvalo@kernel.org> Date: Wed, 22 Feb 2023 09:51:52 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Douglas Anderson wrote: > As of commit a1a2b7125e10 ("of/platform: Drop static setup of IRQ > resource from DT core"), we need to use platform_get_irq() instead of > platform_get_resource() to get our IRQs because > platform_get_resource() simply won't get them anymore. > > This was already fixed in several other Atheros WiFi drivers, > apparently in response to Zeal Robot reports. An example of another > fix is commit 9503a1fc123d ("ath9k: Use platform_get_irq() to get the > interrupt"). ath11k seems to have been missed in this effort, though. > > Without this change, WiFi wasn't coming up on my Qualcomm sc7280-based > hardware. Specifically, "platform_get_resource(pdev, IORESOURCE_IRQ, > i)" was failing even for i=0. > > Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 > > Fixes: a1a2b7125e10 ("of/platform: Drop static setup of IRQ resource from DT core") > Fixes: 00402f49d26f ("ath11k: Add support for WCN6750 device") > Signed-off-by: Douglas Anderson > Tested-by: Jun Yu > Reviewed-by: Lad Prabhakar > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. f117276638b7 wifi: ath11k: Use platform_get_irq() to get the interrupt 95c95251d054 wifi: ath5k: Use platform_get_irq() to get the interrupt -- https://patchwork.kernel.org/project/linux-wireless/patch/20230201084131.v2.1.I69cf3d56c97098287fe3a70084ee515098390b70@changeid/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches