From patchwork Thu Dec 7 14:27:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 845596 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="xQSm8UJT"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ysyb23k0Fz9sxR for ; Fri, 8 Dec 2017 01:31:10 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753651AbdLGO1V (ORCPT ); Thu, 7 Dec 2017 09:27:21 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:45761 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753406AbdLGO1T (ORCPT ); Thu, 7 Dec 2017 09:27:19 -0500 Received: by mail-wm0-f53.google.com with SMTP id 9so13343814wme.4 for ; Thu, 07 Dec 2017 06:27:19 -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; bh=q7e4HKXZR4ESH0GrvRKoyr3daT5v7CIKtMgVYqMSyE4=; b=xQSm8UJT2eJ1ElLT5v9sEPLlTvCthaLGElKQIEe96JZEfuaIQjqUDjz2nK+jGgJEpd 1LVox1Kp4+Q7N8AFE8WmHZp+GfcJPkSr8dRBf6uRn2c7iRt9YSm3DzdsgPID7VpjkIE2 VtASgpNza/VWUMHBit8IRceGA4JCY3N2rYfZqqxn9LNAmN4zfSZOgpgYTpSko8pb/Lsh KXWpohV+nvOmSFby+4oYFXAJX5SCAeTv3AdQBx8uWQLcF02rw2A9ZRDCk61SORkLG9OF RrNH/QyTMwf1qccbJwaRNMJoDUnNQF1hqwq95HR7tnUE0QcnwmSCTrNonAGHMm48Txwu jjJA== 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; bh=q7e4HKXZR4ESH0GrvRKoyr3daT5v7CIKtMgVYqMSyE4=; b=rn3p45dfRLMF7In0xMwm8+HYu+b9NhJkHjCqVsj5aZYk+orcfM1dtLXb7zExp0Cr07 3nomrmRtr2bwv/iYR0q1SDvokqivU9AaWrQFu+Jvn6kOfbHjtfARiZunmTww6fpiZJRx ZZFbM4cPdxt/MjbbDRt8vwWC7PGXo/Q/i2LV+tW6JjE0uKf7mKYtAnPbLb/pBV/auMKo VwZB+Z0w/nt4+mS89XcxBN4jzejt0g8ZLGQHefw3UuEfnNzpBw81RnEvLWnlsowfdRcK gSMJt6tWZAtqvskbt+DjVkMibcP4bjwgaEAt/4LO8Xe0i0frAHXVxooAN2gVdvVrRru9 ycYQ== X-Gm-Message-State: AKGB3mKerNBohsPqB8TmY2xjz0sGEY9kyqTpeqKLWHcSzP7QnwjAmrr+ 60zGWNLz/ea75gvBAtpwtPe0a6xJ X-Google-Smtp-Source: AGs4zMZe3H/dP87kTm+tE5DafTQ9aUha3i3Z0SLpikpZ+08FxNPt8KUC1b9eCKujYUR3lEreqKKYzg== X-Received: by 10.28.120.19 with SMTP id t19mr1423330wmc.64.1512656838321; Thu, 07 Dec 2017 06:27:18 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id t138sm6264520wme.16.2017.12.07.06.27.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Dec 2017 06:27:17 -0800 (PST) From: Jerome Brunet To: Andrew Lunn , Florian Fainelli Cc: Jerome Brunet , Kevin Hilman , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/8] phy: net: meson-gxl: clean-up and improvements Date: Thu, 7 Dec 2017 15:27:07 +0100 Message-Id: <20171207142715.32578-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The patchset is a v2 of the previous single clean-up patch [0] which was part of larger series. I initially to send these patches separately but adding helper function without using them did not make much sense after all. So, here is the complete patchset. This patchset add defines for the control registers and helpers to access the banked registers. The goal being to make it easier to understand what the driver actually does. Then there is fix for the incorrect sampling of the MII LPA register which is often breaking the auto-negotiation with this PHY. More details on this in the related patch CONFIG_A6 settings is removed since this statement was without effect Finally interrupt support is added, speeding things up a little This series has been tested on the libretech-cc and khadas VIM Jerome Brunet (8): net: phy: meson-gxl: check phy_write return value net: phy: meson-gxl: define control registers net: phy: meson-gxl: add read and write helpers for bank registers net: phy: meson-gxl: use genphy_config_init net: phy: meson-gxl: detect LPA corruption net: phy: meson-gxl: leave CONFIG_A6 untouched net: phy: meson-gxl: add interrupt support net: phy: meson-gxl: join the authors drivers/net/phy/meson-gxl.c | 215 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 197 insertions(+), 18 deletions(-)