Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp591269pxp; Sat, 19 Mar 2022 10:48:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLgRNKKWNPesHMkWxJi3e3ez+KlC+PsPaVGHZtAMtDC02DzOj3wJ8WxjGlpPwa9nHFCM9I X-Received: by 2002:a17:907:7209:b0:6da:9781:ae5d with SMTP id dr9-20020a170907720900b006da9781ae5dmr13423362ejc.73.1647712121080; Sat, 19 Mar 2022 10:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647712121; cv=none; d=google.com; s=arc-20160816; b=MzGoBeenYpNyvsZ20QzFG/2OGn7AJDx5LejXa3FAzq4LDmEk23xfV9IHKrwT55T9Cy itjUDEqtHWg31XeVctX6vEAauBgNKS0MN3fyUTMJrtDYwdJC7zB4gcAiW66PeN3wmbIJ LZVvhwdglwm0ypII01opga1DFJShAEXQu51ElGT6U8ypfluPNEr5tsWCTsqEnOrhuNe5 GqtzGvRgSLw1DSG5xSyJiorKoT2ixSauaHuE28i1kwUtuF02MaEfJae3sxMBXvrIVEU6 BMmmrt30kkOuNPzfklqkN3at4eQIbI3Ll5Hs7K4vHhYeX2y01AH1R+wVkNzmFFqkUEbI pyTw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VsJJ80Geau/+THBkr2FUrEd5OjhGMk+B2AZvmiGFJ0I=; b=V4H4fowJcR789t4dYF/y6EpVdfe55nUp+1LkOOrJZsfdxykEaR4K/uIM9vHr9c/JOt InZbjWgNwnBjDlIbQMGt0WYHBojLnpvEHfTpUvxuTASJjvM9pgN8D3h5heSdXbEriefn EDc74QzagmomeA56ZLmox+Ei1OW9Nf2ZEGcZn/0ojjeCLkI4CI0erJQWrNs4D5KSL/Fg JuU7N/SM3m+J/dUKROe8h1I290y4GRKE5N9Q8SLjJmBudQD7PLbPltx7V/3lEh+tu6g0 rT/U4CclENMSt5pMNjz0DKsc00hfYch7BmKcG/aGuZbJTeG8F5J5IKtpU9sWTh3VdfHp LJow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=MF8VwurI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf41-20020a1709077f2900b006df7cf54beasi4361599ejc.637.2022.03.19.10.48.16; Sat, 19 Mar 2022 10:48:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=MF8VwurI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240544AbiCRUPD (ORCPT + 99 others); Fri, 18 Mar 2022 16:15:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235506AbiCRUO5 (ORCPT ); Fri, 18 Mar 2022 16:14:57 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DD7FDE0F; Fri, 18 Mar 2022 13:13:37 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id D862A22239; Fri, 18 Mar 2022 21:13:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1647634414; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VsJJ80Geau/+THBkr2FUrEd5OjhGMk+B2AZvmiGFJ0I=; b=MF8VwurIrcsDYrJonpoOIhUMGuzcAs8nT101nVQPT6YI5VdZhgvFMcMneTlOe+URWZIGv0 s3z9P3NQmZzCn2Tz8VAmBdy8ROnZ3J6wahWRUdlL5IICPtTmENWSNCRLU/WLZjmXzHEOiy 86SpMqQ7m4qDqZ7aGUYpyDonGUhnra4= From: Michael Walle To: "David S . Miller" , Jakub Kicinski , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Horatiu Vultur , Michael Walle Subject: [PATCH net-next v3 0/3] net: mscc-miim: add integrated PHY reset support Date: Fri, 18 Mar 2022 21:13:21 +0100 Message-Id: <20220318201324.1647416-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MDIO driver has support to release the integrated PHYs from reset. This was implemented for the SparX-5 for now. Now add support for the LAN966x, too. changes since v2: - fix typo in commit message - use microchip,lan966x instead of mscc,lan966x - rename mask variable to {phy_,}reset_bits - check return code from device_get_match_data() right after the call instead of checking it where it is used changes since v1: - fix typo in the subject in patch 3/3 Michael Walle (3): dt-bindings: net: mscc-miim: add lan966x compatible net: mdio: mscc-miim: replace magic numbers for the bus reset net: mdio: mscc-miim: add lan966x internal phy reset support .../devicetree/bindings/net/mscc-miim.txt | 2 +- drivers/net/mdio/mdio-mscc-miim.c | 67 ++++++++++++++----- 2 files changed, 50 insertions(+), 19 deletions(-) -- 2.30.2