Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp390953rdb; Thu, 15 Feb 2024 03:32:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVThVyFzdSFUCojQyPA56CKHp5zYc+1p9qsByLBxHZPxqS+g9ibOHPAlhiQnLvbAp3RK38aXo5chgDatuaOKliXv1w2OAvSE/IPwp3neA== X-Google-Smtp-Source: AGHT+IGzaAS/9WNQ5oBTk0zPffAyjbYpKDkoytZxur+ez993v2zhvKfnQQ249Lbyhkwod6icDjeZ X-Received: by 2002:a17:906:acd:b0:a3d:5e44:b625 with SMTP id z13-20020a1709060acd00b00a3d5e44b625mr1109584ejf.41.1707996754480; Thu, 15 Feb 2024 03:32:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707996754; cv=pass; d=google.com; s=arc-20160816; b=Cje/M4k24cB/vZTbnUWa72xf87NFz81Dj+BXAyhyONpR3tN/zdglAtYkXqe+H7og/O MHwTST4EcQZcKN1aAjNH8HPyVsnSFuaDTufcT9mAFvmBKTZtnTQvfB0Dy6GL8B5U7vO7 pr2zFj2/UWwEjpovdWwzsS09oTIEv0NINwLK8Njpdlzr4w7dWt8APVnLqgM0rw0g4cmZ cbeyHPDIyi17BmmgudsTroP4TQOOYRH6UGObcgk/PqXou3Wu07unFz9mvmheB5xU9aHB z5DoYGWy4KMOgQTZYAQAaoW5me1VHJBLvKj7sB7nfk9EWGJKQjstV/XNihbPZQohkiTW Hlgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=CBSCoa7S51gJiaa8i6pIUfAhcYDKRAL/Dzaw/UW7/4o=; fh=tPHBA95q4A2JsKJMw3mMqQ5Xsp/Qmg3wcY5CiIlDe3k=; b=R/eoIId/f6TCu8Lz0drnRnw8VlhsDhr8TajGou8U/Q3NUR2y0SXlS7MKU+aS7ZxL2S W6ycYGu2y8obLRrCHLrloYjFmjOUYWx0O/nVA7eARczpylLYrHYm2ICh0py8VrmpCEna Kg6hjDZnbh69mJ81RjVyC9kpmIpz81HQrmZ8iZCrpT6lbT0aNrrH+9m1kMt0Nd7aW68p ZPYdTZDzD292hgN0vOSNv4ZRuSnM0yAr1jKyD0qMbcVAU9G096PFRR6jSnetEi5/uEns hfBJhrJY7H1Ljm5zmMP4HpqU/N6sHIwawTjttotYKNSRBOMW87RAzS/tBNfuuHhYNG8q /b2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NYAGv80k; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t22-20020a1709067c1600b00a3d65c1e0f9si578971ejo.20.2024.02.15.03.32.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 03:32:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NYAGv80k; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C24741F25751 for ; Thu, 15 Feb 2024 11:24:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 080D5129A8A; Thu, 15 Feb 2024 11:24:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NYAGv80k" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8DA41292F1 for ; Thu, 15 Feb 2024 11:24:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707996242; cv=none; b=vFXRFNFZnYvcXcinyyh3e0GAvhACB9j6/XSLUgE7qpz5HNjA6snk20mHto32qrPhGxVs993VAHK0iBqyuEYpk2puYFotdtudX5A23nDXTLEKaVkW+gv41XE2mcHIz3oMrQg3tjg7D0+RgSApkfshpHoR9aeRAU4BNi8eolZa7g0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707996242; c=relaxed/simple; bh=eXCxHWY5sXnYQAHIrXcmuCtKtdH6fUG7bClWRU+dlzQ=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=JGMVIA8LCqM6y8vOLACd5ls6VtZzG7Li6Rnzwo00yVxyX0CZKMqyJuezIClmQ9Wx4KVA783qyWM81+yd4wyc+633BEhUAum/40F5RZ4guh6nW7fvCh2iQILZT4ch1WEIYNBEsb392PuAe0Yn6xN3QpivtkYUeM9kxnF2K6Qu2Tw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NYAGv80k; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 690ADC433F1; Thu, 15 Feb 2024 11:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707996242; bh=eXCxHWY5sXnYQAHIrXcmuCtKtdH6fUG7bClWRU+dlzQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=NYAGv80kZo+caeCIkiRoPRvW1BoCX0nRXZyDppJxxur22e30Fst74xj0wtbs+Mop1 Jrh4+sIdqHLQFUvWZF8aN4qyUzccCyIlF1FOjm1KKxEjXgfWkJ/xJQ4yVCG0BiSUb5 Q1WbbtYxN3QrepURYobnqLk2VhUjXieauJCvdoE+Vtdg2fKa85LOgd7QAk6qnA6xk9 AO4Gp/+rrlsCpVDQMO0rmm1Yt5DGNku2yPvvB76dTdql4aCsEbIMJ9R4VsqrTCbWYP F5svmIymeWeOpE4suVekkmkJml0zTDmFq7BM7/MVV0W9hTjSk3kogge1uvHoDVM5F0 pTV5Bid8D6cyw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 1/2] wifi: ath11k: move pci.ops registration ahead From: Kalle Valo In-Reply-To: <20240109021336.4143-2-quic_bqiang@quicinc.com> References: <20240109021336.4143-2-quic_bqiang@quicinc.com> To: Baochen Qiang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170799623969.3860606.1320756266938068421.kvalo@kernel.org> Date: Thu, 15 Feb 2024 11:24:01 +0000 (UTC) Baochen Qiang wrote: > In ath11k_pci_probe() there is a switch statement that, based > upon the PCI device ID, assigns pci_ops. After the switch, > ath11k_pcic_register_pci_ops() is called to register the pci_ops. > > Unfortunately, this registration is too late if any of the cases > in the switch need to perform operations that require the pci_ops > to already be registered. In particular, an upcoming patch for > QCA2066 needs to call ath11k_pcic_read32(). > > To address this issue, call ath11k_pcic_register_pci_ops() from > each case instead of doing so after the switch. That way the ops > will be registered if any subsequent operations within the case > processing require the ops to be present. > > Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 > > Signed-off-by: Baochen Qiang > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. 515bcdf587f9 wifi: ath11k: move pci.ops registration ahead 5dc9d1a55e95 wifi: ath11k: add support for QCA2066 -- https://patchwork.kernel.org/project/linux-wireless/patch/20240109021336.4143-2-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches