Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp282103ybz; Fri, 17 Apr 2020 00:48:04 -0700 (PDT) X-Google-Smtp-Source: APiQypKgxAAckMrPfgKLij9alnrr4W2dJpfJkZPMBCVa3s1SYe9iTEGWIuo00ilvgO7WvSmNpA8O X-Received: by 2002:a17:906:640f:: with SMTP id d15mr1799820ejm.191.1587109683892; Fri, 17 Apr 2020 00:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587109683; cv=none; d=google.com; s=arc-20160816; b=E7THNKE9PdJSspRcq5FfWIJVE/4GF6q/noLIAztomuopbx3wOk7BvD//HuEXFpzG5N akCnfyvWJKdhVk2Ny4m95VrtnivLlcsRU2OaylUHpZm24+xi/Or8kwI4Rq86UA8FY1Tg RdABUvdXgZ+LvQkj9ogS2e4JdKY/F89/YqznevpjuEnPsRjfT03Rqobfz/GrVPbiwJkP wgfJOM/JLBEyzraz4ooik4UguEVCwmbYNkVcK0Tcz/KkuiD5+y3fxHUHXLjpSLfRhJtd pk7tADWk8j3gL7dtrWjg8w1+NM2P0NtnWfq7WDKonqbBsEJNcosRmkB/3oRKXZfFLTVc 3zMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:authenticated-by; bh=Kx0QSlEqCAHosnT+237C+cSijiMdfLz887seDUSTnGQ=; b=pBdTCb4rrXJ7ao3bWOQGx5UCqcR2qrJv6/P1RRfqgE9OaA9IXxqokuqvc8grA3z8OJ vCyRd2Vo3BQkW54c2G/gRUBGpJg4wQ975mzSr6hX/N0S4DtXTAkYY8ovRepDbMliYb7h DHHKLLxpiTOCZQEV5TNAyjUtnycSHsF+laSAo+ja6/2veSw+5iZiHcWEWhgenbt1b53Y CvRtBKMjt9H2n4z5YPBMT3NSuzjrgKe0BsrBfNtjMRdiFBDVlLsVD9F0mUUbRIse01Dp +5ElPXuvJK4Qn+uo3QfK4MkThUNQs6rPingp56cqpW34roGS8iZF0g6gmC2t/FX9uAdo q5+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si13233600ejm.451.2020.04.17.00.47.39; Fri, 17 Apr 2020 00:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729372AbgDQHrS (ORCPT + 99 others); Fri, 17 Apr 2020 03:47:18 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:37061 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729330AbgDQHrO (ORCPT ); Fri, 17 Apr 2020 03:47:14 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.69 with qID 03H7l8hF5020159, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmb06.realtek.com.tw[172.21.6.99]) by rtits2.realtek.com.tw (8.15.2/2.66/5.86) with ESMTPS id 03H7l8hF5020159 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 17 Apr 2020 15:47:08 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXMB06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 17 Apr 2020 15:47:05 +0800 Received: from localhost.localdomain (172.21.68.128) by RTEXMB04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 17 Apr 2020 15:47:05 +0800 From: To: CC: , , , Subject: [PATCH 35/40] rtw88: extract: export symbols about pci interface Date: Fri, 17 Apr 2020 15:46:48 +0800 Message-ID: <20200417074653.15591-36-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200417074653.15591-1-yhchuang@realtek.com> References: <20200417074653.15591-1-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.128] X-ClientProxiedBy: RTEXMB03.realtek.com.tw (172.21.6.96) To RTEXMB04.realtek.com.tw (172.21.6.97) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Zong-Zhe Yang In the current design, chip entry points are built into the pci module. That makes the pci module depend on chips. According to dependence, once the pci module is loaded, kernel will load chip functionalities, including those that may not be currently used. We plan to split chip entry points from the pci module. Thence we export pci symbols that will be used in chip entry point modules. Signed-off-by: Zong-Zhe Yang Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/pci.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index 9f5edb8ea7a9..66feaab0261e 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -1360,8 +1360,9 @@ static int rtw_pci_resume(struct device *dev) return 0; } -static SIMPLE_DEV_PM_OPS(rtw_pm_ops, rtw_pci_suspend, rtw_pci_resume); -#define RTW_PM_OPS (&rtw_pm_ops) +SIMPLE_DEV_PM_OPS(rtw_pci_pm, rtw_pci_suspend, rtw_pci_resume); +EXPORT_SYMBOL(rtw_pci_pm); +#define RTW_PM_OPS (&rtw_pci_pm) #else #define RTW_PM_OPS NULL #endif @@ -1477,8 +1478,8 @@ static void rtw_pci_free_irq(struct rtw_dev *rtwdev, struct pci_dev *pdev) pci_free_irq_vectors(pdev); } -static int rtw_pci_probe(struct pci_dev *pdev, - const struct pci_device_id *id) +int rtw_pci_probe(struct pci_dev *pdev, + const struct pci_device_id *id) { struct ieee80211_hw *hw; struct rtw_dev *rtwdev; @@ -1555,8 +1556,9 @@ static int rtw_pci_probe(struct pci_dev *pdev, return ret; } +EXPORT_SYMBOL(rtw_pci_probe); -static void rtw_pci_remove(struct pci_dev *pdev) +void rtw_pci_remove(struct pci_dev *pdev) { struct ieee80211_hw *hw = pci_get_drvdata(pdev); struct rtw_dev *rtwdev; @@ -1576,8 +1578,9 @@ static void rtw_pci_remove(struct pci_dev *pdev) rtw_core_deinit(rtwdev); ieee80211_free_hw(hw); } +EXPORT_SYMBOL(rtw_pci_remove); -static void rtw_pci_shutdown(struct pci_dev *pdev) +void rtw_pci_shutdown(struct pci_dev *pdev) { struct ieee80211_hw *hw = pci_get_drvdata(pdev); struct rtw_dev *rtwdev; @@ -1592,6 +1595,7 @@ static void rtw_pci_shutdown(struct pci_dev *pdev) if (chip->ops->shutdown) chip->ops->shutdown(rtwdev); } +EXPORT_SYMBOL(rtw_pci_shutdown); static const struct pci_device_id rtw_pci_id_table[] = { #ifdef CONFIG_RTW88_8822BE -- 2.17.1