Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3768405ybl; Mon, 13 Jan 2020 02:15:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxKlg9C5p0um7Lw1eyfK/BHVajIVCM6DMn30r1pEg+Zeok/D6hs4KjbY+nuL6wlPMx2bZJc X-Received: by 2002:a54:468b:: with SMTP id k11mr11545149oic.134.1578910508961; Mon, 13 Jan 2020 02:15:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578910508; cv=none; d=google.com; s=arc-20160816; b=LZOsuhiiir2Wmegp2Vdq1WUnqpglVqLbqXWlvgmL03gMCtsmFy7STsqHX013DuWS7P z9cat/lLQuRbI/N+qIMqbfmLN3ON5m6hbLV2Jj9XHTAmDtU6nX2bGIIlFD5j6U8ViRkq /ZkoiXajUfN8h/WHHOg6s0VshCgNixIQMpEAPIN2bDyzPQNx7OuMCblselrb+jWzjqtM GAgYD+RuCfWP+k3U9Ss3NpSWOklEklhAvjEO9jMmXTD1FxRnpXLh+BOfXhqaxjUBtmYw TVYYl6YdBnopIF0kvJYbp0a9voOVF12KV6swwiQuq7bUVY1kT5vHus6kBt/IQ193VWz/ 2DOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=HmO4PZ50jrzrRe2xUshW+D41yonfzNQinJnJzUAiOZ0=; b=AIQlyCfNjU0Cq4qXaAABH2Y44ZLRu9+cNb9m2fV2w5RJauC3aZadUbRUS/cQqiBjBB eCVE8ltxgIMyNCBFrGiyRG0RPM6af9Njzv+7rFnYG6930vWUrXNizEoVpyDaATT0QiIe NjmEFAOR7hn4azSV+9td7PwwEFLZNuP/BoRX0On05MbsWL7WYZzZeKZlTvfLEFY1DCX9 suPPKQOrlSlnXRYyhnTMlOFWNEHTlJrU0rEnOxFtgqVEaULUjHrmNlz5/Cln1n6zxZIx ICZWbqwWBMFeWfZvSsOcbPlXDuc4UzQHAwYVQBKY1OXT1IV77+Do/SaQrXT7RPPBODf0 YPPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l204si5321148oif.261.2020.01.13.02.14.57; Mon, 13 Jan 2020 02:15:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728897AbgAMKNv (ORCPT + 99 others); Mon, 13 Jan 2020 05:13:51 -0500 Received: from mga03.intel.com ([134.134.136.65]:10161 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728809AbgAMKNt (ORCPT ); Mon, 13 Jan 2020 05:13:49 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jan 2020 02:13:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,428,1571727600"; d="scan'208";a="397116867" Received: from bong5-hp-z440.png.intel.com ([10.221.118.136]) by orsmga005.jf.intel.com with ESMTP; 13 Jan 2020 02:13:45 -0800 From: Ong Boon Leong To: netdev@vger.kernel.org Cc: Jose Abreu , Giuseppe Cavallaro , Alexandre Torgue , "David S . Miller" , Maxime Coquelin , Ong Boon Leong , Tan Tee Min , Voon Weifeng , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net 7/7] net: stmmac: update pci platform data to use phy_interface Date: Tue, 14 Jan 2020 10:01:16 +0800 Message-Id: <1578967276-55956-8-git-send-email-boon.leong.ong@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578967276-55956-1-git-send-email-boon.leong.ong@intel.com> References: <1578967276-55956-1-git-send-email-boon.leong.ong@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Voon Weifeng The recent patch to support passive mode converter did not take care the phy interface configuration in PCI platform data. Hence, converting all the PCI platform data from plat->interface to plat->phy_interface as the default mode is meant for PHY. Fixes: 0060c8783330 ("net: stmmac: implement support for passive mode converters via dt") Signed-off-by: Voon Weifeng --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c index 8237dbc..d2bc04d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c @@ -96,7 +96,7 @@ static int stmmac_default_data(struct pci_dev *pdev, plat->bus_id = 1; plat->phy_addr = 0; - plat->interface = PHY_INTERFACE_MODE_GMII; + plat->phy_interface = PHY_INTERFACE_MODE_GMII; plat->dma_cfg->pbl = 32; plat->dma_cfg->pblx8 = true; @@ -220,7 +220,8 @@ static int ehl_sgmii_data(struct pci_dev *pdev, { plat->bus_id = 1; plat->phy_addr = 0; - plat->interface = PHY_INTERFACE_MODE_SGMII; + plat->phy_interface = PHY_INTERFACE_MODE_SGMII; + return ehl_common_data(pdev, plat); } @@ -233,7 +234,8 @@ static int ehl_rgmii_data(struct pci_dev *pdev, { plat->bus_id = 1; plat->phy_addr = 0; - plat->interface = PHY_INTERFACE_MODE_RGMII; + plat->phy_interface = PHY_INTERFACE_MODE_RGMII; + return ehl_common_data(pdev, plat); } @@ -261,7 +263,7 @@ static int tgl_sgmii_data(struct pci_dev *pdev, { plat->bus_id = 1; plat->phy_addr = 0; - plat->interface = PHY_INTERFACE_MODE_SGMII; + plat->phy_interface = PHY_INTERFACE_MODE_SGMII; return tgl_common_data(pdev, plat); } @@ -361,7 +363,7 @@ static int quark_default_data(struct pci_dev *pdev, plat->bus_id = pci_dev_id(pdev); plat->phy_addr = ret; - plat->interface = PHY_INTERFACE_MODE_RMII; + plat->phy_interface = PHY_INTERFACE_MODE_RMII; plat->dma_cfg->pbl = 16; plat->dma_cfg->pblx8 = true; @@ -418,7 +420,7 @@ static int snps_gmac5_default_data(struct pci_dev *pdev, plat->bus_id = 1; plat->phy_addr = -1; - plat->interface = PHY_INTERFACE_MODE_GMII; + plat->phy_interface = PHY_INTERFACE_MODE_GMII; plat->dma_cfg->pbl = 32; plat->dma_cfg->pblx8 = true; -- 2.7.4