Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5360560ybp; Tue, 8 Oct 2019 01:23:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBlxD+PtxHkewqX/xxcI5/LyhaZuozmRKPR7t68c2kWm60qHCJUrrEkxDWOOTAbly8mUb/ X-Received: by 2002:a50:9fe5:: with SMTP id c92mr32855532edf.280.1570523038486; Tue, 08 Oct 2019 01:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570523038; cv=none; d=google.com; s=arc-20160816; b=LtaeDlRf5DeWVYSuxviUqI4h+nVXrsIuvIMVnu1UkIzRlDX/khHFydrh6u2Efn4X9J g3nTk4Z8C455efpBd+ZGobdrIXNfnVKlYhgL+Kbr/a65wSYVhYtA46zJxIdT13gYhQfc 058XkSRJU7pvMNVqlvctiRIPa49LFvMzvLAxwGYeVwj9ropVzGhRsxpsYoYnBB4T8hLd nGD5z9dXWAgC/l7DiNQWg/smkn2NT5xPfpAd3ix8dC90HSYNGUNw0NNYQEqx7W9wpGmj HHPLarODMw1to6cAIARkCQ/MTcVrZN5AMJHyoMMtmrThNHWQa4/rhQ0BCW7Npj4JrIQS 9zMg== 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=BF6K00/sQ0ViMP6hJ0hVxmsLh4XTtPVmjrvcIKqrDQM=; b=GcYrVrR/LKesNvCmvUKrLiafb5kDy6VGvosKN2ntu4wWDhQNbKIILGRMKqia3+wYdg vJWr6Uj4B5hhBEuQNo5vtlXyuEe76xoxBh6WW/ioAeu5FiPLqayrR6vBi4mnnAQtdz2B 0kpRvgUBM6lVWE7+7PxndAzVL5FLK4I694sxspkD8Zi9JwIh9Q3LRPVcm1gE8+0cAxNJ 5ie4urqncUWapT8lIHvEISN++Uj4ROL8W5LBUVGCnO2Uhl7XehOtqgSBMSp7V1z3PEvM Rlb5XMrdmepkhmsEOqvt5qEm39WQHYPZAyYYsCrH3QX45JpK47ZwBM5oRAvENMzOJZLl cmpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si7897486ejk.301.2019.10.08.01.23.34; Tue, 08 Oct 2019 01:23:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730619AbfJHIVQ (ORCPT + 99 others); Tue, 8 Oct 2019 04:21:16 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:47351 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730608AbfJHIVP (ORCPT ); Tue, 8 Oct 2019 04:21:15 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x988LAdG028154, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x988LAdG028154 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 8 Oct 2019 16:21:10 +0800 Received: from localhost.localdomain (172.21.68.126) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Tue, 8 Oct 2019 16:21:09 +0800 From: To: CC: , Subject: [PATCH 08/10] rtw88: pci: config phy after chip info is setup Date: Tue, 8 Oct 2019 16:20:59 +0800 Message-ID: <20191008082101.2494-9-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191008082101.2494-1-yhchuang@realtek.com> References: <20191008082101.2494-1-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.126] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang Chip info such as cut_version is required to configure PCI phy. Move rtw_pci_phy_config after rtw_chip_info_setup. Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index 772a14d851fc..17b9cdf9cb05 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -1190,8 +1190,6 @@ static int rtw_pci_setup_resource(struct rtw_dev *rtwdev, struct pci_dev *pdev) goto err_io_unmap; } - rtw_pci_phy_cfg(rtwdev); - return 0; err_io_unmap: @@ -1304,6 +1302,8 @@ static int rtw_pci_probe(struct pci_dev *pdev, goto err_destroy_pci; } + rtw_pci_phy_cfg(rtwdev); + ret = rtw_register_hw(rtwdev, hw); if (ret) { rtw_err(rtwdev, "failed to register hw\n"); -- 2.17.1