Message ID | 20231124084725.12738-1-ilpo.jarvinen@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1009557vqx; Fri, 24 Nov 2023 00:47:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkP7RipTW8i4+rlWBc3uy1W7Xvsi5cVtewroyKGNCTxWGoh6xd4u0XpNzkSitv1w6lKnJq X-Received: by 2002:a17:902:f691:b0:1cf:a90d:ed31 with SMTP id l17-20020a170902f69100b001cfa90ded31mr378463plg.22.1700815668658; Fri, 24 Nov 2023 00:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700815668; cv=none; d=google.com; s=arc-20160816; b=PixD/Hf4pSsFqpiwgaOS9A/xT8Vlc3fBF7f+eiT1WhVYNuaLx2qzVQhem2t1/BybSc Iz5l50ykS8eVBZYKXAbpiUFDWpDvqbYAOBi53YWZR7rqOv5KS4AjU3Q5mhjXKEe1xBgs rgsj2kcHTmYumm15RugGhsw05HL/vXjiYvkIFb1gJU33Qhu/Vus1Oh/DSPXfzldCvlqa atsabslryk1fhDoERsdwqaxB7s+QfWZn3VcaIf4CQQPnyaVbkF/0piDMeu9dRmKn0jvK 6caEx/QW6wLpFUrM9AMbmv58kXVU5E0sqYlnhydskbnheAOZatcAM6UNcliEjqyNHy45 QcBQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=f00/IH/VK7IpbRggj3+g+oz5Z8IIfo45MpVHhdcqIy4=; fh=B/k0++mWcjyPz7txdddjxvHs1aI3dC/UFQWBWPBdy8I=; b=B6xELvPpxS3LcacKcuQ+WEZeWy7caywEfS6Ch+XhYbobRQRZnxWeryEa1hpDc41rch dnCwiLOHkPHdO2nII3ndUodvThNbepWq5v1/5nokifbsxmOVyglI6Uln/OvoTZ+w2f/G Bt0ON7rJXaCcR+ylhlEZa9Od8nRaqCJJpQNViPvQF+gWDFQjrd7HG96QQKUTYI8liMgz Gde2YS8miiUx3vg1EbzsJXW0qFz69vrDTPoHnxmNv5ywQsbNpx8CpKS2cB4idgoNCpJw t/rLBsxNVhoxLsyTVcEYdt22Im3j1UFixgmTX/81farWtgkF9lZgETcyH4JbKovyQnsP amtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KDaXmkX3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e10-20020a170902b78a00b001cf5c997609si2818772pls.569.2023.11.24.00.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 00:47:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KDaXmkX3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CBA118054B3F; Fri, 24 Nov 2023 00:47:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344989AbjKXIrf (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 24 Nov 2023 03:47:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjKXIrd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Nov 2023 03:47:33 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A9C89F; Fri, 24 Nov 2023 00:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700815659; x=1732351659; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cAzCbwXnfLwA65VPrnihNlz9VygOMk8fpr5Mgo8JUJw=; b=KDaXmkX3NbjZl3qVQs6uRbP0fhfqsnadTUDYvURU8GgfZcBDWSw0mYv4 5m5A3xOSBD0e35okUwqFd3KZbJjT+mYf/0veKqp4+ZwMS4PoBhbsr8lZ4 ExLcaLmdHgOqNKxpn2StT37yRLvQAcrtilHsyonzDedO9hSnm2hV3thSQ FMZo4ygPg4oBE/VoyWfmyUA4NY54Qq6lOCSoU/Eot6YlKaiEqvOraVORh /qYnt8OyrwX2Nk3HRxckMuOqiEI0q8pRsEaU338RwKQpM8SfCKvM2YCXV VfW7qrUMxGUL9aojV51ajtqZTRIYy+cRxjwHvb4LXcvvP5QCWPICFvqkr Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="423525771" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="423525771" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 00:47:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="802137645" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="802137645" Received: from mvlasov-mobl1.ger.corp.intel.com (HELO localhost) ([10.251.220.89]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 00:47:35 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: "John W. Linville" <linville@tuxdriver.com>, Kalle Valo <kvalo@kernel.org>, Larry Finger <Larry.Finger@lwfinger.net>, linux-wireless@vger.kernel.org, Ping-Ke Shih <pkshih@realtek.com>, Bjorn Helgaas <bhelgaas@google.com> Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH v2 00/10] wifi: rtlwifi: PCI related fixes & cleanups Date: Fri, 24 Nov 2023 10:47:15 +0200 Message-Id: <20231124084725.12738-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 24 Nov 2023 00:47:45 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783434490212724929 X-GMAIL-MSGID: 1783434490212724929 |
Series |
wifi: rtlwifi: PCI related fixes & cleanups
|
|
Message
Ilpo Järvinen
Nov. 24, 2023, 8:47 a.m. UTC
The rtlwifi driver has code fragments that are using old interface or custom code to access PCIe capabilities which is buggy and messy. First two patches are fixes to problems related to ASPM and LNKCTL register RMW operations. The rest of the patches cleanup PCIe capability related code. Additional note: This series provides only a stop-gap solution to the RMW concurrency issue, the overall plan is to migrate all ASPM related handling into the ASPM service driver in order for it to accurately track ASPM state [1]. [1] https://lore.kernel.org/linux-pci/20230918131103.24119-1-ilpo.jarvinen@linux.intel.com/ v2: - Remove upstream bridge ASPM code which has never functioned - Convert more bits to pci_regs.h - Ensure _rtl_pci_switch_clk_req() only changes CLKREQ_EN - wifi: prefix to all patches - Add 2 more cleanup patches for unused stuff Ilpo Järvinen (10): wifi: rtlwifi: Remove bogus and dangerous ASPM disable/enable code wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors wifi: rtlwifi: Convert to use PCIe capability accessors wifi: rtlwifi: rtl8821ae: Remove unnecessary PME_Status bit set wifi: rtlwifi: rtl8821ae: Reverse PM Capability exists check wifi: rtlwifi: rtl8821ae: Use pci_find_capability() wifi: rtlwifi: rtl8821ae: Add pdev into _rtl8821ae_clear_pci_pme_status() wifi: rtlwifi: rtl8821ae: Access full PMCS reg and use pci_regs.h wifi: rtlwifi: Remove unused PCI related defines and struct wifi: rtlwifi: Remove bridge vendor/device ids drivers/net/wireless/realtek/rtlwifi/pci.c | 98 +++++-------------- drivers/net/wireless/realtek/rtlwifi/pci.h | 24 ----- .../wireless/realtek/rtlwifi/rtl8821ae/hw.c | 76 ++++---------- 3 files changed, 43 insertions(+), 155 deletions(-)