From patchwork Wed Jan 23 13:13:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 1029939 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="DqbjthyQ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43l5NP0GmWz9s4s for ; Thu, 24 Jan 2019 00:14:25 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C6091C21DFA; Wed, 23 Jan 2019 13:14:22 +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 86F76C21C38; Wed, 23 Jan 2019 13:14:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 24FF9C21C38; Wed, 23 Jan 2019 13:14:18 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id C5737C21C27 for ; Wed, 23 Jan 2019 13:14:17 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id l9so2347957wrt.13 for ; Wed, 23 Jan 2019 05:14:17 -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=O3xzqHmqygAzvuj6IYUove50O4NpQf5JTkcDIglhhDM=; b=DqbjthyQU1kVAqsomR8/WehiI+9eZvZqXS28NqcA4JgJQxUn/+rUTpEP7ajBD4m7jY MhE7ZXdb4Dsl9XuxcptBbatvTIEpMzSLoA4Aty2KfW9mMPokU1N7woJjANo2NzcEVpLv xm1bzaDMPqMk6EL592Tl3mq3Z5bcmNpwPSn6mFVmBKnz9/ozHKlatQskBe9dzQ/9bKwr D9yoYLpusTtBhxZlnHnVZoIONX97w0/vQ0hZm7eU5gtwdr+mpvOFDpD3m/iCO/tq80Kz SMzJM87ab9ovB0TXIuF1Hb31FhYLK8BTnOSL/zTy/9mEhnmoFCF/pTNdrT0hOinYqTGs xUfg== 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=O3xzqHmqygAzvuj6IYUove50O4NpQf5JTkcDIglhhDM=; b=A6MgqDklmQh9zkHJMvdlvsIHRF9iiZbKO2prtSRxM4nXEy1a6+sxThVRI8a+xvbnOC iO7W71R7VNndaeoAWH0p1LrnYEJW5WzuJqwJGeSv2Iz+HnE6YSobkufnJbMaIctjBPWy 4uq2Tu1VwPG7yyvzJe+jMHkUet+Lo44Ax9fx3MfI11LMG03dPITTEEEGO+/u0Wxpj+gK jbQioTevkfs7Xuenas/DjQNJHzqRDfx5EPE8xJ6NnVBW7BWIsdcbwTLgm7m/kDS7kRl9 5QPDNWJsiFHCXnowHrFj+ZKWPVBgfjLFSX7pCVVvJM5sFo9L3ilkFD0fMERgpCQ8sKP0 eZbg== X-Gm-Message-State: AJcUukfdCyR6IRkI0hce2ivXjzNjvbMiSqZCiEtX95vaalrhZb0M+oOz m9VU0/O59bHa5jzLqOi8bhPH8g== X-Google-Smtp-Source: ALg8bN4hzMAUVr37otMPgwDFas7yRz8N5rabuZO3PecBsWZj3G9edibCCix2SCbDRUqprnPWws1/cg== X-Received: by 2002:adf:f28d:: with SMTP id k13mr2851805wro.78.1548249257233; Wed, 23 Jan 2019 05:14:17 -0800 (PST) Received: from localhost.localdomain ([2a00:23c4:f7a1:ce00:5105:4b7b:c922:7c6]) by smtp.gmail.com with ESMTPSA id n5sm97783718wrr.94.2019.01.23.05.13.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 05:13:55 -0800 (PST) From: Carlo Caione To: joe.hershberger@ni.com, joseph.hershberger@ni.com, u-boot@lists.denx.de, vladimir.oltean@nxp.com Date: Wed, 23 Jan 2019 13:13:11 +0000 Message-Id: <20190123131314.4514-1-ccaione@baylibre.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: Carlo Caione Subject: [U-Boot] [PATCH v2 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 | 33 +++++++++-- drivers/net/phy/phy.c | 4 ++ drivers/net/phy/ti.c | 130 ++++++++---------------------------------- include/phy.h | 62 ++++++++++++++++++++ 4 files changed, 118 insertions(+), 111 deletions(-)