From patchwork Thu Apr 4 13:11:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 161797 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1584987jan; Thu, 4 Apr 2019 06:12:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiY/USvrPUC7e3uJ2y8GDhRmuFOAGcaiU9W7S5vwSkkV0l+4cGh58dmoc59i6OxPKCoMtT X-Received: by 2002:a63:4e5b:: with SMTP id o27mr5857512pgl.204.1554383527568; Thu, 04 Apr 2019 06:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554383527; cv=none; d=google.com; s=arc-20160816; b=BVq08lga/QZ9ywa+/nQ2cDRjblSNCsOkUAMiDZx7I+yR/VEJ8qWeY9wKw8bxc/MMnb 74HmtPQWe4A7jMa+9faZEMUGJgaTISm7TAtIeAf/PmfGB0sbuICYvetl12o2gd/Lo1zb XO7R903QE393U8e8zYLzSv2FCmDXLiD9NcCXG6yE4C2EmUOoiMxGewzrjCiB0f0HA95g waMgJnAJc3lsBpYeG/tbEoZvMRPlliSrgxyCn4++5QurbM06KCw08gLbZwyd9hfhkkCy GUQuXy9ZvV3K08oCUM4fojKXRDGHM4+Ohqe2JSEcOPwfP9f0/Hg8OfTtXBPO6kPPa7c+ fWOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=C2Np36jjJb1WgC3/59cWHoAfdL0+gseCwYoNIkBU+7U=; b=TuJQiliU0NNecOEUduUM0PawOFctWzpb49AxdMXcZiO0v7NOaSBMv6rbB6OOZBgAbN +kZb63vL/P61MqeyrQBC0Sw85ydRFnbDLipyxIe9ekHcGHFmg9eQpjzrHgD8BhQmQAvc 1Tf7KqoBVlgkEtqzs2RYiJQ013eqFJ/cUXBPqAdm4RkNnVQ14n4vMyFeVC3COrlDoJM8 af3JLbvRBzZcB6LowWNHqMNW8T4Kn1hGSELtIhIY4FopBjHXrLH2timSsFo21ReBEafY 3sbUdFYf5jjjD1/nReJPb5pqc83bYL4xm743nZsYmRgqHxCMhBeMjuhf3oHTtiKdoW8S FS3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=NQgQuCht; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si16048066pgn.457.2019.04.04.06.12.07; Thu, 04 Apr 2019 06:12:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=NQgQuCht; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729833AbfDDNMG (ORCPT + 9 others); Thu, 4 Apr 2019 09:12:06 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45816 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729768AbfDDNME (ORCPT ); Thu, 4 Apr 2019 09:12:04 -0400 Received: by mail-wr1-f66.google.com with SMTP id s15so3685733wra.12 for ; Thu, 04 Apr 2019 06:12:03 -0700 (PDT) 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:in-reply-to:references :mime-version:content-transfer-encoding; bh=C2Np36jjJb1WgC3/59cWHoAfdL0+gseCwYoNIkBU+7U=; b=NQgQuChtIdoSiqdDUI/JiMdfrin2nesP+nHhGvk7kbC8hVW7tOFo7cOHjEqyYBu10j Va0SyZVG9PAwkJCupFCpS2uqNbIkfkCl7XnE9VF8jiwnwH4Q+iAyanKMbDjKLy76Czgm tpOvsR49SukQ45ZGP9bqs9qCzynO2LUR3o23VOoX37jFlnHDTh6bxn8cbAK2ufyvKKFx x75UloYi0jXPXonR6xZjZHhyRCLisJGzReG2UqZMayZeqEITcr0Zy72yuTu0DYqCHPAT +gu1fDKbnRPy3GUV1Z1Lb1UI2vk8Eqmrlesu0vA2Q4Mx8KFsuN68o9WkmO0LPbwPyyeN 7e2w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=C2Np36jjJb1WgC3/59cWHoAfdL0+gseCwYoNIkBU+7U=; b=L2t6KlGsLS2QZ7VdoJVU7UIKR7tc+1MXem42zke9SCyx1RVyzjgxCuE0tl80P4kzqa uzpMDVUMjM9jgqwKSifnCrE6pB+RAge2T91h3TxiJ8wBDVK16OQYF3csIhTmGb4dqNu3 NJj220JRtVpuYZcduHzb8/hUBLeygaNK37EKg+ItnD5fH5rnQ4Rwv/UqMIuUuu+NRqWb YxA2XyhQ8upOBwcmlPpI8Ax7U+rBPnw39m7mI16XLdpiUOAh0c1rFOZvFe+R9rD7v+2O jqINYblWl+CJXjDURQGmm7+w2TeKeLuqJFlK7/HQPMF2F+8041lEgMlTkwYbmOWPp4oV LEYA== X-Gm-Message-State: APjAAAX1OVIpVXPTUctTvV/A4maY426tR2Yd2jczRgiMNvsjekHlXtER dqSwFrt9VC17CETavVwartf85w== X-Received: by 2002:a5d:6181:: with SMTP id j1mr4239923wru.11.1554383522488; Thu, 04 Apr 2019 06:12:02 -0700 (PDT) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id y133sm21984923wmd.2.2019.04.04.06.12.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 06:12:01 -0700 (PDT) From: Jerome Brunet To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , "David S. Miller" , Kevin Hilman Cc: Jerome Brunet , netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH net-next v3 4/4] net: phy: meson-gxl: clean-up gxl variant driver Date: Thu, 4 Apr 2019 15:11:47 +0200 Message-Id: <20190404131147.31156-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190404131147.31156-1-jbrunet@baylibre.com> References: <20190404131147.31156-1-jbrunet@baylibre.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The purpose of this change is to align the gxl and g12a driver declaration. Like on the g12a variant, remove genphy_aneg_done() from the driver declaration as the net phy framework will default to it anyway. Also, the gxl phy id should be an exact match as well, so let's change this and use the macro provided. Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.20.1 diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index 2033c93a46ca..6d4a8c508ec0 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -224,14 +224,12 @@ static int meson_gxl_config_intr(struct phy_device *phydev) static struct phy_driver meson_gxl_phy[] = { { - .phy_id = 0x01814400, - .phy_id_mask = 0xfffffff0, + PHY_ID_MATCH_EXACT(0x01814400), .name = "Meson GXL Internal PHY", .features = PHY_BASIC_FEATURES, .flags = PHY_IS_INTERNAL, .soft_reset = genphy_soft_reset, .config_init = meson_gxl_config_init, - .aneg_done = genphy_aneg_done, .read_status = meson_gxl_read_status, .ack_interrupt = meson_gxl_ack_interrupt, .config_intr = meson_gxl_config_intr, @@ -251,7 +249,7 @@ static struct phy_driver meson_gxl_phy[] = { }; static struct mdio_device_id __maybe_unused meson_gxl_tbl[] = { - { 0x01814400, 0xfffffff0 }, + { PHY_ID_MATCH_VENDOR(0x01814400) }, { PHY_ID_MATCH_VENDOR(0x01803301) }, { } };