Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1147647rdf; Wed, 22 Nov 2023 06:54:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFC1qlPd5C0a/Rto6aKQlHQL3xPNJRB5S7EfiYW9dk5RP45E09mhEaQegPz8U8wVvr+TUz5 X-Received: by 2002:a9d:7ad7:0:b0:6cd:bc23:4b55 with SMTP id m23-20020a9d7ad7000000b006cdbc234b55mr2809723otn.13.1700664896757; Wed, 22 Nov 2023 06:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700664896; cv=none; d=google.com; s=arc-20160816; b=QlICs0Zo3qXs0XS/8WUKbpV5r+YUoySSJ9wBfXS+3qcL4SNym+/rTXZzPaB04827Yv cBWbPhudtGn7n3q9TOPgN1vaKrGWD7j0c6a9B17pxe5kB3fCZMhLVfccH0CKOPcFXvEd 60TCC+DRi4FxQBkr8GzWobbjiSyZL3HeLZ64W+nyTbRfg8NSuy6C7310QXxSGz/qcY8t DBb472WD6+r9dpKUkS3RnGzXPr7ZH2O7F+yaZIWcKSuMl26lyvHDUP0D3lWSubl/L5PO MVbW9nkxfUFGuTNzD47T9eR86QF87G9rewm0OZIbFOkFuozAa4azpzfx+8jQgkTYikSi ddWg== 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=IQ5L15+DUNsOBwp0+nYCmnhClez/tpYSb3ATHKWu8kY=; fh=rTsRsMHVyBsaQpGwKSTRpfXmH8ItfK68ac1fM/joDQ0=; b=H3gurS95pYl9EXMCxdIaLx+15pW5/kuZ7X5monXa4q8LXFE/G+Zaauwt2c66vMHr4F KzO+P96Ol9M2Op/KBj8QlQqiUV1KYTDwIgo6TzBY4W5IVixh/h+GXD3M+sWx15gIGaMf ezef9atLarmqtmgMw3p07ny7TZixJsDcuIAASMfcLchehmEyint0iS+X6GVBjJdo1Kv8 ulg+H2RidHMHwg973q/jLxswoPNn1Y5dRI0Lc1Iq671JOCCoO08ts8EpExTuPpZsokoA JD7ZPUNTY0EnS2/7dkSh3SSXmZz3/ohBrDd/mnjU3QoEU6LTmBnBlBiEALS2R9XNpyAw 7hMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kalaTLNs; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q19-20020a656253000000b005bdfda8e04asi12953232pgv.733.2023.11.22.06.54.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 06:54:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kalaTLNs; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id D04EC82696CD; Wed, 22 Nov 2023 06:54:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344223AbjKVOym (ORCPT + 53 others); Wed, 22 Nov 2023 09:54:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231683AbjKVOyl (ORCPT ); Wed, 22 Nov 2023 09:54:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6864311F; Wed, 22 Nov 2023 06:54:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51DD0C433C8; Wed, 22 Nov 2023 14:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700664878; bh=+sDZdcVmCxzlpku0u5hP/hTUo6Jty1e6yGw1zaWCyVk=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=kalaTLNstoTOkQQFik64V3M0XnHVQvvpeRBuS3sVs+66bqjlEHVWuX3QiLL7qd1aT c3BwSNL+jHgHMdSswZsIrNmsf+7Pchk3lUfLHLsYqPDnK/T3tuvQnkoMXfq6l0Q11T Uq/BSyZAdBVNDkni2b/w12bePQOvS2wr1ingcR+MTj5/aAq/coOPmOatzXnFl1fVmv 33Y2Vd8K4wbbZtbQFuuumDsO2iXSlZ5wdK185aE6HPtwguioogpwaHage/9Q2kelvR zzJr8evaCgX+8rtZabFfJqQwZwNJGWgkxYPqu4/rfhymS5ORX42m7EsFnTNW0ykquY ejueY3/7OGp2g== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 1/7] wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors From: Kalle Valo In-Reply-To: <20231117094425.80477-2-ilpo.jarvinen@linux.intel.com> References: <20231117094425.80477-2-ilpo.jarvinen@linux.intel.com> To: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: "John W. Linville" , Larry Finger , linux-wireless@vger.kernel.org, Ping-Ke Shih , Bjorn Helgaas , linux-kernel@vger.kernel.org, =?utf-8?q?Ilpo_J=C3=A4rvinen?= User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170066487414.4178710.14428414852217491443.kvalo@kernel.org> Date: Wed, 22 Nov 2023 14:54:36 +0000 (UTC) X-Spam-Status: No, score=-1.3 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 06:54:51 -0800 (PST) Ilpo Järvinen wrote: > The rtlwifi driver comes with custom code to write into PCIe Link > Control register. RMW access for the Link Control register requires > locking that is already provided by the standard PCIe capability > accessors. > > Convert the custom RMW code writing into LNKCTL register to standard > RMW capability accessors. The accesses are changed to cover the full > LNKCTL register instead of touching just a single byte of the register. > > After custom LNKCTL access code is removed, .num4bytes in the struct > mp_adapter is no longer needed. > > Fixes: 0c8173385e54 ("rtl8192ce: Add new driver") > Fixes: 886e14b65a8f ("rtlwifi: Eliminate raw reads and writes from PCIe portion") > Signed-off-by: Ilpo Järvinen In the next version please add "wifi:" to the title for patches 3-7. 7 patches set to Changes Requested. 13458674 [1/7] wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors 13458675 [2/7] wifi: rtlwifi: Convert to use PCIe capability accessors 13458676 [3/7] rtlwifi: rtl8821ae: Remove unnecessary PME_Status bit set 13458677 [4/7] rtlwifi: rtl8821ae: Reverse PM capability exists check 13458706 [5/7] rtlwifi: rtl8821ae: Use pci_find_capability() 13458678 [6/7] rtlwifi: rtl8821ae: Add pdev into _rtl8821ae_clear_pci_pme_status() 13458705 [7/7] rtlwifi: rtl8821ae: Access full PMCS reg and use pci_regs.h -- https://patchwork.kernel.org/project/linux-wireless/patch/20231117094425.80477-2-ilpo.jarvinen@linux.intel.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches