From mboxrd@z Thu Jan 1 00:00:00 1970 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=-4.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 E6010C433DF for ; Fri, 26 Jun 2020 15:53:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C1DA120702 for ; Fri, 26 Jun 2020 15:53:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="LzyVTZC+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730074AbgFZPxp (ORCPT ); Fri, 26 Jun 2020 11:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728507AbgFZPxo (ORCPT ); Fri, 26 Jun 2020 11:53:44 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F15C03E97A for ; Fri, 26 Jun 2020 08:53:44 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id s10so9940138wrw.12 for ; Fri, 26 Jun 2020 08:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TXd4jj3VrnsX4Z0gbuiWIwSPLhObiVWYihkAwZ1Ts88=; b=LzyVTZC+2w/aKBMTZUt5MmxTMo0S4iPB5P7TKJflHwzZKdn4rd0y3K20LOco+dlUxk Tz9hYnG8GdAPf0QoejuYICkU1uxg/XWjD6Vw0ddmX9wiLnMNUekcHwv4Dr5/QTxILq60 EZsz/syxmrb9/0E0JW5M1PIfXFXZEiwjqymmAsAiGOAk0BoDEN2EwN1UCSVFELCert61 cWsdvs9NRgbLY9XhQlclWmwCTUg9rCWyRxknudb5CZJ+7fhR1ckcVeBpUJN54B0bWgOD NVRACtezv4fkvUwQt9ltLujeOl7T/uRdkJWit63uHHPeH+WBhgEjMsHwtRZIAD9rsKb/ SsJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TXd4jj3VrnsX4Z0gbuiWIwSPLhObiVWYihkAwZ1Ts88=; b=cpXkSsUZGbLg2u66dJPAe1Wk0/akt4gbJzKVz3N65dB4jPMnj4ez2f1n+7OxugKKda dkcaSnxllcxgIRXTsAIyUXLl561FYJWEQFs2GJ0mA1/4TJzyEOCO97dkDKJpRYnKAsge dzClZSp4GnC/efeCEhDZNef41/X4w1Qwm4EquWH3oDQT2rGHPKtKmBnzsIj/YBVr4AF4 LZ5qcNGz8gpaRPZ1lrj3b/AA4JYxJZ7+5ZRePFqJGSky8NyMCv3X7C5lb2CnTFZ0MR3h Nu2+2fn9d9Bfc2RnWpqtqVS9CTRyV86zRhJ3BobWotQ3aumXGMh9XAFMloaJs+1UMrJ6 rgbQ== X-Gm-Message-State: AOAM530yU/nuURnK8hNIdGDYT926y8fJOHeeo72LVVN1C8Y8zl9ieozm YCeV+QA5GJDnqmeW/61ToHiwOA== X-Google-Smtp-Source: ABdhPJyKKHVtWOOtFUulccfQU79SvPaG6VzL6/9uFNKgujOFJz6POSkJq7pYd70XwenzTlhd3DT6pA== X-Received: by 2002:adf:a491:: with SMTP id g17mr4772612wrb.132.1593186823502; Fri, 26 Jun 2020 08:53:43 -0700 (PDT) Received: from localhost.localdomain (lfbn-nic-1-65-232.w2-15.abo.wanadoo.fr. [2.15.156.232]) by smtp.gmail.com with ESMTPSA id h142sm8242791wme.3.2020.06.26.08.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 08:53:43 -0700 (PDT) From: Bartosz Golaszewski To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , Philipp Zabel Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/6] net: phy: relax PHY and MDIO reset handling Date: Fri, 26 Jun 2020 17:53:19 +0200 Message-Id: <20200626155325.7021-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Previously these patches were submitted as part of a larger series[1] but since the approach in it will have to be reworked I'm resending the ones that were non-controversial and have been reviewed for upstream. Florian suggested a better solution for managing multiple resets. While I will definitely try to implement something at the driver model's bus level (together with regulator support), the 'resets' and 'reset-gpios' DT property is a stable ABI defined in mdio.yaml so improving its support is in order as we'll have to stick with it anyway. Current implementation contains an unnecessary limitation where drivers without probe() can't define resets. Changes from the previous version: - order forward declarations in patch 4 alphabetically - collect review tags [1] https://lkml.org/lkml/2020/6/22/253 Bartosz Golaszewski (6): net: phy: arrange headers in mdio_bus.c alphabetically net: phy: arrange headers in mdio_device.c alphabetically net: phy: arrange headers in phy_device.c alphabetically net: mdio: add a forward declaration for reset_control to mdio.h net: phy: reset the PHY even if probe() is not implemented net: phy: mdio: reset MDIO devices even if probe() is not implemented drivers/net/phy/mdio_bus.c | 32 +++++++++++----------- drivers/net/phy/mdio_device.c | 15 +++++------ drivers/net/phy/phy_device.c | 51 ++++++++++++++++++----------------- include/linux/mdio.h | 1 + 4 files changed, 50 insertions(+), 49 deletions(-) -- 2.26.1