Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3797373rdh; Fri, 29 Sep 2023 02:36:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2AE21jRS/0pBZyIHOFK8tiH+OeifF+HgeO53v3TXAZe6cM8ImZvP9+LhoSsiljAwnMkLr X-Received: by 2002:a17:902:9b8e:b0:1c3:845d:a4 with SMTP id y14-20020a1709029b8e00b001c3845d00a4mr3627987plp.51.1695980186508; Fri, 29 Sep 2023 02:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695980186; cv=none; d=google.com; s=arc-20160816; b=h423tc0obYfE6pBEXLLi2VYnMZbYfdM+drHqYjoucL4jbnf72vMTaI9NM/n2c9g8Ya BimJBbl+r/0zP4kjppGHsGA2JV5NtpRGYyVAy/m2vXFBI2xs6CvET5U/gfWiS0iziwk6 cEVLLBTHJfalDXdrZFiiO5FPg5aY3L4Ad7m7wtCv1HewoSXUbTY2XKbYIQJFZkFR358n NsIAGIy+eMom4OrrOM4R51g5yZp2ZYn1CfYkAoW7d/+eXzlTnJ5F4AOEUFTGjfHMq0vp DRtmuPYpucu3anUQsiHA0aIlkR0BYl9LjGsLBvCS9AYXsy8iBy20BcE0KUyXreQzMcGD J/YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=WBS1AfpiNcv+R0BcVwS/dElF1tOSJHbKu/46Mo2ELOc=; fh=MZyShLgMg7p4A+etc9WDHDSDT5SGpdoY5scRfMt1KHE=; b=vW09P6gyp/+ryv/gCoTvtSSmhmPUaB5HGl9Pi9rRuB376W9Sd0hjoJ+M/QjRI6OE97 Q8BMDukufRf4i/oZL2l9NzpglOIUJ5bCt8nNN1rxjfTw/WhkrQkO08tHd1fDP4yPkJk5 /+CvGY9GhUCUjfFa/x5vYXTsDyhJuSD33Njz1CVD3DcrBE7mfOAai7ylCdoKQSoPdUzF sKWW382pnBIV7JfRP5rB7aE0DL5kTA6f9elkwS6c8iA8+IAD3uMjJiBPKigx0nvT0o4L KU553Md+WlU/BJXFCUXrd6ZNDmqqlOvi476zGUTTBP14+efE3bq0oQm/FSzKfy7z/2oM nHcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EFYlNHtw; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id n4-20020a170903110400b001c39b8b1d77si21536345plh.149.2023.09.29.02.36.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 02:36:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EFYlNHtw; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0CE0C8347B5C; Fri, 29 Sep 2023 02:09:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232938AbjI2JJS (ORCPT + 54 others); Fri, 29 Sep 2023 05:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232979AbjI2JJN (ORCPT ); Fri, 29 Sep 2023 05:09:13 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 067D7CEA for ; Fri, 29 Sep 2023 02:09:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0699C433C8; Fri, 29 Sep 2023 09:09:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695978547; bh=wfl6ypqxXpzsB73dvy0nGzMg6Q0TrSyFS3x5+ngV/Ro=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=EFYlNHtwEaNJihc0U7jRQFABRTp6nnaAjIR3G8BkJwQQLuT1RVNSwWq4j46oFK2Sh R/xP3e2I0s9nqqqXySQOFKTQT/slfUgqDFXXkQLnlUXkdPF5KtibazSrwTI2z33f3c LIGevQxQN2fe6xUSWVRVTTk7SA63rHwr354UjYx9jYPRbgg2sDsUQn80AqkwWImaSJ Csv3jqShapbhpEqMPRos3uhTIt3h9puTKY+VcKAEJoJZ0zwDG/3vpBTJiHtXH8Mdqy lJKb/kNbLGvqUQp+BPUY1QM6yuMs7cpETjJ7HcHAseRKNKDQzDorc5Ny+ccakajffV cFiIwvf+HLeTw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/2] wifi: ath11k: move pci.ops registration ahead From: Kalle Valo In-Reply-To: <20230807061749.9404-2-quic_bqiang@quicinc.com> References: <20230807061749.9404-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: <169597854467.3479545.1030727333826913383.kvalo@kernel.org> Date: Fri, 29 Sep 2023 09:09:06 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 29 Sep 2023 02:09:19 -0700 (PDT) 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 I'll now drop these from my queue, please resubmit as v2 once we have pushed the firmware to public. 2 patches set to Changes Requested. 13343062 [1/2] wifi: ath11k: move pci.ops registration ahead 13343063 [2/2] wifi: ath11k: add support for QCA2066 -- https://patchwork.kernel.org/project/linux-wireless/patch/20230807061749.9404-2-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches