From patchwork Wed Oct 23 14:48:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 177293 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp834009ill; Wed, 23 Oct 2019 07:50:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqykbKK8dX2ehFtiYpGUYRl3l2YB2w//G24b+Rbrc1nd566Gj6bwYYIEhllThgE5AjlEz5aJ X-Received: by 2002:a17:906:49d8:: with SMTP id w24mr33112500ejv.264.1571842258441; Wed, 23 Oct 2019 07:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571842258; cv=none; d=google.com; s=arc-20160816; b=rrkEmtXhIzCBAUXHYDjf5fdwlkiwyeJ13qzLh8gQPenibhBGXEl1WXGh/CnrBnPaGX x+GC6SbUmpbSamm4pDsGB7llKJE6U+KoyFixeifl26tzAL1PMlGPZB6Vo+tHBD8HpX30 BjioXdMQ8hiQSiTxRQ7Jpdxdm0U7HileyGuhPe21qAPcHSdPLAOErIfJtNF5CnXz1Li/ zc5HsbmeJXYLXqk3DY5hZcQYHPqIgcQvL+GTU87IvWVeNxZmBRf0r42b4fM8Aoo7N6KX m+X1Lc6UKlyHCvgui+Ka3r0gR4GsM3hS0TNTV18z7muKLgvfc+taDQRHkPwCpNfaOooU y2ig== 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:dkim-signature; bh=nudqLm1ZcCi8FwR+9N9Muu7GNCUdgMt31d0oOFH0XAk=; b=DPLQxNJ0Hj7plItGCtG2P5JiBqufT14NLuQhn0qihsySSV5/SJ19h0+esELOfs9KKY 1/qQe5cLaGaGCzkdrwLgtT+H3jDvu7w8NWN/BMyhuDuDEdNtJSryWwdy705xHONCSnKr HGfaOKOb3BDeRMVotnkRSFAMF7QpiqW2NK+0ZrVQtHTg2dwPBSeXLS2b1Ia4Thgh9r1y h1Vp4LThB6fIVl/W2/hng2+ej7ZxQfdhHBU1dtvs0ltvKQMQa2F5NHEiOrZquL3u9qbV QIZqfiY9b2QtBJkFdOPquHftsJDNt0fEtlPN+MiqAXGd+jgo6WcIJj5X2zaWsLhiYBC2 Nlrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NuxMHtli; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si5785913eda.161.2019.10.23.07.50.58; Wed, 23 Oct 2019 07:50:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NuxMHtli; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406393AbfJWOuz (ORCPT + 8 others); Wed, 23 Oct 2019 10:50:55 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:40938 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406383AbfJWOuy (ORCPT ); Wed, 23 Oct 2019 10:50:54 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9NEohvu029561; Wed, 23 Oct 2019 09:50:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571842243; bh=nudqLm1ZcCi8FwR+9N9Muu7GNCUdgMt31d0oOFH0XAk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NuxMHtliGkMmvIbwrPuyGOspUgm1HlrKg8YVNPwQsPDEDuU1IrrqSn8jxO7f9fmP3 CfTgdQAGqWeSp+97hq8BYYuVE9lhvMoYSolsq53mC9EnQ5hAuhHzDkHnxj83JRQs4D pqtXqrIcDByMovw2b0tWvIklNwbBkYYBC72nufVI= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9NEohgE129608 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Oct 2019 09:50:43 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 23 Oct 2019 09:50:42 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 23 Oct 2019 09:50:32 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9NEofG6022938; Wed, 23 Oct 2019 09:50:42 -0500 From: Grygorii Strashko To: "David S. Miller" , , Andrew Lunn , Florian Fainelli , Heiner Kallweit CC: Sekhar Nori , , Grygorii Strashko Subject: [PATCH 2/2] net: phy: dp83867: move dt parsing to probe Date: Wed, 23 Oct 2019 17:48:46 +0300 Message-ID: <20191023144846.1381-3-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191023144846.1381-1-grygorii.strashko@ti.com> References: <20191023144846.1381-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Move DT parsing code to probe dp83867_probe() as it's one time operation. Signed-off-by: Grygorii Strashko --- drivers/net/phy/dp83867.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 2.17.1 diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index cf4455bbf888..5816a06a9439 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -299,7 +299,7 @@ static int dp83867_probe(struct phy_device *phydev) phydev->priv = dp83867; - return 0; + return dp83867_of_init(phydev); } static int dp83867_config_init(struct phy_device *phydev) @@ -308,10 +308,6 @@ static int dp83867_config_init(struct phy_device *phydev) int ret, val, bs; u16 delay; - ret = dp83867_of_init(phydev); - if (ret) - return ret; - /* RX_DV/RX_CTRL strapped in mode 1 or mode 2 workaround */ if (dp83867->rxctrl_strap_quirk) phy_clear_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4,