From patchwork Fri Feb 8 17:25:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 1038822 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="guvNxHFo"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43x2JL44Kkz9s4V for ; Sat, 9 Feb 2019 04:30:26 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 32B37C22055; Fri, 8 Feb 2019 17:27:06 +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=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 31B63C2202C; Fri, 8 Feb 2019 17:26:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5CD73C2203A; Fri, 8 Feb 2019 17:25:59 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by lists.denx.de (Postfix) with ESMTPS id EE1D1C22048 for ; Fri, 8 Feb 2019 17:25:58 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id t200so4270884wmt.0 for ; Fri, 08 Feb 2019 09:25:58 -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=6NfJmLxwPFL6nWeH8hDDJxF2VoIIn3voO8yFwMbFGr8=; b=guvNxHFoJkO/cCJJHvTdLlnRa2zdo2H3dzdhmuirYCEwvZbZFDYU1Wh+9RAZBBgKMc qa02g4voGDRqrQEd397gKbBngwh0lFmr96FUMwlXJuv7VorQhvQWXOYfE0WZyMJzBaCD civshU5NUVfuc5Rp7ZVgCdCfUBALOtNJhwMZSLk3tBF1TJyQ/xjih11+q6HHAuDszPZm SmjkAnH/u5sKp9auvwtdpdLkalZTNfxWnAn2a1l6v06xONNfM/HVOeGuDbiimFX+eWQh cebD/toeGoR9Pu/jO0o/RtAdiBjIrUF5cE1LunZAvZpjS5lpOpAeaQxzvj+2aDYjRyH3 d0hQ== 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=6NfJmLxwPFL6nWeH8hDDJxF2VoIIn3voO8yFwMbFGr8=; b=dUmo1jwDwyESXJLD6WeRT0x8X7wnGVANTBY2jEfGK6OJ7MUZSHuliVr0nQsaP7DBx8 /YCjj3nERvj1bz6sBS/qr+zuOFoyJHW6cDMoP48wi0+i+N7/9I4KocbUp1rfqhJ+9aQ6 0BXz0TeFpVbs47yoUOZjPn5oTg6uzqEk9PxLM1IKHlv+3J8pQ/51WWclmV8+B6/+w6uX x7u6Vi7Chrgr2KMOpy0wS0ruYcyYe+D1BrVqGKYqKuSDEjiEo4cRTWvF2XgIISl3RTzd BWFFY9qH424TE8/EZX9eZCO3cJvV3MSKU7N2O79svFXIxcrgLdPeupUsyPGmiSFry07b VSYQ== X-Gm-Message-State: AHQUAuZgySqamtC5IkpAnZEgTG7vbmKHIgy2KVnTXdCr6EISYTCgdA/d iC3jiSDYG9K6lFaRR/K43Pq9Mg== X-Google-Smtp-Source: AHgI3IaaPDmy/120w3/wzEB7jpqeP+nwmQ5epNqW+SUze1M/7gEH99f2rSeJOA86WRnwETqPotO9FQ== X-Received: by 2002:a1c:b1d5:: with SMTP id a204mr13040098wmf.32.1549646758438; Fri, 08 Feb 2019 09:25:58 -0800 (PST) Received: from localhost.localdomain ([2a00:23c4:f7a1:ce00:5105:4b7b:c922:7c6]) by smtp.gmail.com with ESMTPSA id p4sm2580872wrs.74.2019.02.08.09.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 09:25:57 -0800 (PST) From: Carlo Caione To: joe.hershberger@ni.com, joseph.hershberger@ni.com, vladimir.oltean@nxp.com, u-boot@lists.denx.de Date: Fri, 8 Feb 2019 17:25:05 +0000 Message-Id: <20190208172508.23601-1-ccaione@baylibre.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: Carlo Caione Subject: [U-Boot] [PATCH v5 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() helpers and modify the mdio command to make good use of them. Fix the ti driver in the same patchset. Carlo Caione (3): net: phy: Add generic helpers to access MMD PHY registers net: phy: ti: use generic helpers to access MMD registers cmd: mdio: Switch to generic helpers when accessing the registers cmd/mdio.c | 27 +++++---- drivers/net/phy/phy.c | 4 ++ drivers/net/phy/ti.c | 130 ++++++++---------------------------------- include/phy.h | 70 +++++++++++++++++++++++ 4 files changed, 115 insertions(+), 116 deletions(-)