From patchwork Thu Jan 24 08:55:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 1030371 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="IFOs9XCA"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43lbcl6kqBz9s55 for ; Thu, 24 Jan 2019 19:56:55 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 95C99C21DD9; Thu, 24 Jan 2019 08:56:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D4FC0C21C27; Thu, 24 Jan 2019 08:56:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B8879C21C38; Thu, 24 Jan 2019 08:56:51 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id 6CAD2C21C27 for ; Thu, 24 Jan 2019 08:56:51 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id s12so5539836wrt.4 for ; Thu, 24 Jan 2019 00:56:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U2XH1f8Mo7pTE04oxlZA6nfdB9IhbZaQTYEDSV1Ap6I=; b=IFOs9XCAm8YF07RAxsn+aXsTTnWUkAIyunQEuYCqoai7kPzWcH+S1+oQLFLw18RY8C fQfJbSsvfq6BrDdFXq4C/esIPODTzYf4et1Vl6KZebZV3dGWmwcaGPlHm4G2NZq4yJ6n jBDPDPNBE795+cdIK7WpKPh5C6sUYflBd5bbh5UiqRl2cR6OK9pDBY0CN+pcswiAUCP3 BCLwZr/SN2a5yO59V9kN37t+WkKCmoFVLmBRzDV8GWK3QqriR+w5nx6bTfXLFXrCWT+l j5vPUZ9+6yMMCtIQcd7nrJk7+1cjJuWQf3htTZifZr+/SP1TBgeveiRmxbpSxDYUlHuB 6muA== 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=U2XH1f8Mo7pTE04oxlZA6nfdB9IhbZaQTYEDSV1Ap6I=; b=IQklwtAhQS8tuwGiTtRQYTW3bhInZDMrJbogssdiJvGS2DGB1DUaBbRDiDdwscYTUO 0s5KOOE5yYPGtUNyzsuTXHd69UW8gzVURTjf0rO781rzII1imeaWkjWqJfHXiwg24Kfu 7T2F9a/Pe/x3TF/bRfXiSGKLODVCTRNvEIQf1ymOYuIZkxHYhWu2VtkwKoQtFIu4PlBa huy/gVPRsXQh0cT0Rut3AL6Qh9G/w6sAVu3jdMc9p5wpeVVkCnfpTU+TR87M0qe/zBTl iuCCFjMs+bkOoPUNnCXr9sRJCnL4cq/Jm+MgNlK3+7Qm5CnAqWTJG524k5w2+Cajlf7o wjuA== X-Gm-Message-State: AJcUukd1M1Vl3SqJ7WfiaEan5YYfmD8bc+o1sgOXl22o9w/Y3bZ4x18I oKCP74cTXC3hLmV5avWkYo/NOg== X-Google-Smtp-Source: ALg8bN6/wER6BbFVlR5IgL5KAvTPDdM87pftmTHVKyzk5XHMMpsy9ZI9n4Uq8l/wgzuU+nSUu6dG0A== X-Received: by 2002:a05:6000:1251:: with SMTP id j17mr6002151wrx.315.1548320211020; Thu, 24 Jan 2019 00:56:51 -0800 (PST) Received: from localhost.localdomain ([2a00:23c4:f7a1:ce00:5105:4b7b:c922:7c6]) by smtp.gmail.com with ESMTPSA id u204sm97578284wmu.30.2019.01.24.00.56.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 00:56:50 -0800 (PST) From: Carlo Caione To: joe.hershberger@ni.com, joseph.hershberger@ni.com, vladimir.oltean@nxp.com, u-boot@lists.denx.de Date: Thu, 24 Jan 2019 08:55:57 +0000 Message-Id: <20190124085600.18886-1-ccaione@baylibre.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: Carlo Caione Subject: [U-Boot] [PATCH v4 0/3] Add MMD PHY helpers X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Introduce phy_(read|write)_mmd() generic 802.3 clause 45 register accessors for Clause 22 PHYs, using the indirect method. Allow this behaviour to be overriden by PHY drivers where necessary. Carlo Caione (3): net: phy: Add support for accessing MMD PHY registers net: phy: ti: use generic helpers to access MMD registers cmd: mdio: Add new parameter to access MMD PHY registers cmd/mdio.c | 52 ++++++++++++----- drivers/net/phy/phy.c | 4 ++ drivers/net/phy/ti.c | 130 ++++++++---------------------------------- include/phy.h | 52 +++++++++++++++++ 4 files changed, 118 insertions(+), 120 deletions(-)