From patchwork Wed Feb 17 04:20:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12090939 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=ham 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 3D05FC433E0 for ; Wed, 17 Feb 2021 04:23:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC2A864DF3 for ; Wed, 17 Feb 2021 04:23:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbhBQEXO (ORCPT ); Tue, 16 Feb 2021 23:23:14 -0500 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:36469 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231216AbhBQEVP (ORCPT ); Tue, 16 Feb 2021 23:21:15 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 42F4E5801CA; Tue, 16 Feb 2021 23:20:09 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 16 Feb 2021 23:20:09 -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=fm2; bh=vcAcHB+fD0WBZ4/KZULBkvSTwy AFLPO+DmF46sm6krc=; b=o1JlfthmQKSDLiuQkWLqrwI13ij3loAs6cEm4wG0LR lt/5+hJ4Ppq5lmda6B0xRiThJNMC85/6z7swcqnpfYmVApQeFCiCyalfg752DfSL 1y2g6waJFCf1zZMiFZxXAlTjp8zNndhQEMwmzWm76oSMw7EBiG+VKVO+slrWR1TR 5WPdZJ/cdQZW29maof3tQXR+xVvgbX7VtEBntahGfhpRO+qwsl3C8ZzY4P/yznVk kccHquHyi/btURufj/HW09b/q9huQp+LOBaWpp7shAYizFgSHXLuIOcXFNsCfYqo Tc0ClfnDR3HVHe8dpRCNng5rGUiX9HBEdBwFHhCDVsVA== 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=fm2; bh=vcAcHB+fD0WBZ4/KZ ULBkvSTwyAFLPO+DmF46sm6krc=; b=kcy/W/OWjjjHEvqZKJSgxHzt+tJ4SDyuB NqEVVC5Ao7mFbxTDnLvMP3XW4ytm9rrRiG3QJJI7s0EQCxO7Bmn8tsRi6GbcC9SP +GUnIeH7TAWcObIPw+G15PXj2vDtYwHch43w8e001RXS2NgygcWx3rUKKX9Dgws4 qpxB1c9sFO8vegNv7IqszKmfw8tHF1jYd5uZPp2cXBZ+1N/dFkm1qboBgJymg4/C aOl8bbrqfux6ElVfVM98tPraT3q3hFztvJ1bEBdTwkNYq68dpJtmDeUpL3l+Ux33 SBsQ8ahhIQFWY7ZSiHzdINR1Jr/SGhRnVdwAesD6Qg5+NDcIgk8bA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrjedugdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghlucfj ohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrfgrth htvghrnhepieetkefhheduudfgledtudefjeejfeegveehkeeufffhhfejkeehiefftdev tdevnecukfhppeejtddrudefhedrudegkedrudehudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdho rhhg 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 083B824005D; Tue, 16 Feb 2021 23:20:07 -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 v2 0/5] dwmac-sun8i cleanup and shutdown hook Date: Tue, 16 Feb 2021 22:20:01 -0600 Message-Id: <20210217042006.54559-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 These patches clean up some things I noticed while fixing suspend/resume behavior. The first four are minor code improvements. The last one adds a shutdown hook to minimize power consumption on boards without a PMIC. Changes v1 to v2: - Note the assumption of exclusive reset controller access in patch 3 Samuel Holland (5): net: stmmac: dwmac-sun8i: Return void from PHY unpower net: stmmac: dwmac-sun8i: Remove unnecessary PHY power check net: stmmac: dwmac-sun8i: Use reset_control_reset net: stmmac: dwmac-sun8i: Minor probe function cleanup net: stmmac: dwmac-sun8i: Add a shutdown callback .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-)