From patchwork Sun Jan 3 11:17:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 11995669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BF72C433E0 for ; Sun, 3 Jan 2021 11:19:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C0A1207FB for ; Sun, 3 Jan 2021 11:19:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726840AbhACLS4 (ORCPT ); Sun, 3 Jan 2021 06:18:56 -0500 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:56983 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbhACLSy (ORCPT ); Sun, 3 Jan 2021 06:18:54 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 7D156546; Sun, 3 Jan 2021 06:17:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 03 Jan 2021 06:17:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=mHnSeKRCkdCYl8YY3wS1zcBquB u1Bad4dFa8jggcJow=; b=tj1lxCIVDnGQpGvxoElQBX6voWmfKKIX4WWOgSlGLs bj/aCfkMTudtRiGwHxoTl8F5khv+ZeLKX55/dyxV10N4E5o6x08yM3y8zL4MLuXw piJbpWAWxGeoA/seAs99YrwGbcFZOFu9dDSOZWpem31iu2g5IUVtkd40BkLDafA/ 9pMinlUm8bA3Xz11FqLPXgT5E8g5nbP7CxlfkEO/u+6Ss4IiMUKAVpX1QDfAcF/2 mYDLUoRPthE9oSxrbY+WmXfrqWmykD4v/85Efbme8svWGbDIDW9HqwotXu14kOzQ oKMO0mahPfFvPPG4kaMgpHZD/OJif5lQE9FdeVZ1VTeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mHnSeKRCkdCYl8YY3 wS1zcBquBu1Bad4dFa8jggcJow=; b=UJx6ZdX+agEsfHVO7BeuOiQjEhFPBZV76 EtFHoDkR4uScHwI8C2DpLGFE/GQyJzhjDQNByt15ICmcjuHc1PRI38d3bV0Z8xBB thNTMj+3xS02XVTZPdNTCghiDf5FRBQhdVV18tss/K7hQ3NV68NeOnIMoAJHN/HY 0AFN87ksgeL+D6o3YkLLA+2K3v0fVyfC/CXgZbK7JS8E4s8qR5wrwbiZrP9aMgym TNVvx4hcfDFS0XxJ8J/7hU7TcfKvgGlt4iz3P2DuXuxnsq1/stcCJlyiJxj53kDW cd+DqwRiZr+1DQhj2n8M1aSGPppSlvSpuXj2mYypO7CZoxay+tExA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefuddgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdr ohhrgh 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 9B1CD108005B; Sun, 3 Jan 2021 06:17: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 0/4] Fixes for dwmac-sun8i suspend/resume Date: Sun, 3 Jan 2021 05:17:40 -0600 Message-Id: <20210103111744.34989-1-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This series fixes issues preventing dwmac-sun8i from working after a suspend/resume cycle. Those issues include the PHY being left powered off, the MAC syscon configuration being reset, and the reference to the reset controller being improperly dropped. They also fix related issues in probe error handling and driver removal. Samuel Holland (4): net: stmmac: dwmac-sun8i: Fix probe error handling net: stmmac: dwmac-sun8i: Balance internal PHY resource references net: stmmac: dwmac-sun8i: Balance internal PHY power net: stmmac: dwmac-sun8i: Balance syscon (de)initialization .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 129 +++++++++++------- 1 file changed, 82 insertions(+), 47 deletions(-)