Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13136319pxu; Sun, 3 Jan 2021 03:28:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzq0rKxWy8CAWr6UJ0DYbn4ksJ4TrA8WD12UpUbBrgEmtPnsPTPCZ5Ha6l9V338Q+tjU+Wm X-Received: by 2002:a50:b746:: with SMTP id g64mr66290445ede.33.1609673333102; Sun, 03 Jan 2021 03:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609673333; cv=none; d=google.com; s=arc-20160816; b=UKxGat08XMs+C860A6yGKAjFDN0uR9HXOSmVUos1paS+nn2NrkAYvoUH2wXyfOPE/B 0Ux9WI6hDi32Fn+BF0FSulfNfiy7d+MLHLruyLrB53OpvgWQhm+qSnC51IBUF+ZIvYEt i76o5yyyqnS8bvGM3dLcItuo76PDweLgYxQtjd3vd79sMdiRjwzpbFOjY8W3iI6vGn5o 41MzUbMyTWMi+3l1hZV5ct9cgOzSL4vCZGtxmk6LdXlAZD4HDlu64dcKfX5Mz/A/onzi cqLcfoXoRhs3lBmu4MACFWDbVbrrrgU9oL0mU2ERE6JdY6xJzTKyMe04MSLc9stwNkSN MPTg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=xMlquvf3yzLuiEN8mbFrfPmz2sg7YCp1DdhC7ccdm/c=; b=xI3h14rH0M2Vac9znvbbziKECIeWqMinY5oJuu67dOxQqJNOiBDKgVb5s4wxD1BfGG xFqw2bxS6TZ/YaxpFd69ed6XAl+9jd+uusZoUd7snxQ1eEEFDw8pVMMlRZjXZWPpHxX+ Z+s6TWcJYbpzImbKOBUvKzNobkuDP3KbxSWqvP3lcon2XFGV0PLsfH+rcAIUHHV6189T fRb0XtacywVybsqAPznhc0rHAXd71WgOLL7cf0mLKiaKxq+Umr1AaTOVcq6bSRnArlDU MOVDY9Ks5HXkl6kQVKan1sXgy+NL4+GA2LjsfARirgKQdxiK6iVWFKFsjTnXAzj5P5U4 4VLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=eEIciF+9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=DcyZIdxT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 c7si28957916edr.193.2021.01.03.03.28.29; Sun, 03 Jan 2021 03:28:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=eEIciF+9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=DcyZIdxT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726759AbhACL0y (ORCPT + 99 others); Sun, 3 Jan 2021 06:26:54 -0500 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:43401 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbhACL0w (ORCPT ); Sun, 3 Jan 2021 06:26:52 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id B8381542; Sun, 3 Jan 2021 06:25:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 03 Jan 2021 06:25:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=xMlquvf3yzLui EN8mbFrfPmz2sg7YCp1DdhC7ccdm/c=; b=eEIciF+9rZgKJxlYNf7F6ftlaJ58l wS8D5yUbr9D9PZdCHxFpjB9GWls0UA+CeMDMeByNw8CWMBL4FAasZ7aR/IjCQsCG pzgziJgSpLEPDkvbX1XsFrg1/kyqM9PkFAt2EKbModk2saX4eN0P+d3Be/kzAJ+z CJqw93xmBkjgRVgWlOM0IWVpEBRQA+FgTHYVM1gRWDdLwVVYGVp/2+BKltsygA4y xg75/UxU+Oujdnw5ZhjHJQFgi2FN4PgoJh6ky6zk+X4XmyfKMfTMNC1WelZybvBQ WjSABS2J3rbaF4T39VqtqTUNWMGjjaxpFS14saOr23t1kIaF6pljUmIWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=xMlquvf3yzLuiEN8mbFrfPmz2sg7YCp1DdhC7ccdm/c=; b=DcyZIdxT DDpLLCCnPKy1f1Zo5+SvZ6iiImF/OsTyibXoMKd2ok2aEgxl3HlGmC/rUNE+AfYa bg/sTK+5TSeSpmIYFWkHA995xsy5LydpVisFwedO2v6VX5ZiezYpAzBSsy0SJMJt okYBL3dg8waK2zTuXFM269nPI0v66NA6cFeM7i/lMKQZfWtwKDKkTyPGleav4GH1 NgDNoq5cJZYuMhv+UBSzxFJKPsw4DS0FDrYRuZf1gOu93KJzNxHnIkIIdVBiOr4E 147g25gT7PNoA6S09mKZUVlkePR1Fl260l2Cn/x6ZW3JWr1UFHnlaV101BXH6QdK Gi94FinsYY3Kjg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefuddgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 8B2C0108005F; Sun, 3 Jan 2021 06:25:44 -0500 (EST) From: Samuel Holland To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Jakub Kicinski , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Corentin Labbe Cc: Ondrej Jirman , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland Subject: [PATCH net-next 3/5] net: stmmac: dwmac-sun8i: Use reset_control_reset Date: Sun, 3 Jan 2021 05:25:40 -0600 Message-Id: <20210103112542.35149-4-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210103112542.35149-1-samuel@sholland.org> References: <20210103112542.35149-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the appropriate function instead of reimplementing it, and update the error message to match the code. Signed-off-by: Samuel Holland --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c index 3c3d0b99d3e8..0e8d88417251 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c @@ -806,11 +806,9 @@ static int sun8i_dwmac_power_internal_phy(struct stmmac_priv *priv) /* Make sure the EPHY is properly reseted, as U-Boot may leave * it at deasserted state, and thus it may fail to reset EMAC. */ - reset_control_assert(gmac->rst_ephy); - - ret = reset_control_deassert(gmac->rst_ephy); + ret = reset_control_reset(gmac->rst_ephy); if (ret) { - dev_err(priv->device, "Cannot deassert internal phy\n"); + dev_err(priv->device, "Cannot reset internal PHY\n"); clk_disable_unprepare(gmac->ephy_clk); return ret; } -- 2.26.2