Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp545669rdb; Sun, 18 Feb 2024 00:01:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVXwtXz73E/OIXgKldYgmqiTpNvd21rnXasO1K+7CbQ7tg4aQVT8lY2/BhKPWssK7KVTcsxVF32J7AyQrUAITXy5dBGh0yKruGmIFjOYg== X-Google-Smtp-Source: AGHT+IHXXjduSBovHELLTiinYfxuKL61akqXwQtu3Au4PVNqafF9FGTZKhUiPK6o5k73mtl8PWsK X-Received: by 2002:ad4:5aa7:0:b0:68f:4a94:8d45 with SMTP id u7-20020ad45aa7000000b0068f4a948d45mr3511820qvg.11.1708243274785; Sun, 18 Feb 2024 00:01:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708243274; cv=pass; d=google.com; s=arc-20160816; b=kCN43k+1Qt9NcZotGkacEkM+vIkL8fYjXqvEbM/KaCWpxdkUzjKMPD0OUwkcpqzqC+ YCr8HRtqWGzN0j6IjCGTK/9kBh9JvJfIfrwAXI6OTUyFqRZkghD6saTU13XHfH8opcGc inAtcodSalawDKMOOCZZw3EYD+8dPTnk6sg0WpzqW/BOmL3OGGsCBEiLb73kt/MaWrm+ dIY6XNK8s1weZqSlstMlPCuegkK/KbRReNN03flWVjk/TzEe7O4mLdhQiPp8GxHvK2tJ ebVYipAtOw7DuO81jumTkKGz+HJzytCKxSz7+12hKlz3iBr2rZ9sC36Me0NVx8yIFC+u +ASg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4oGxiX3DP59U1b6opp4bM7FWUx7s6k2h0K8Wum1QSsU=; fh=MlF1shKitAqfLDCGwqiizyuImAdFW0z3RFw1yymwSps=; b=nTrJbKny1Zwdds5Jewo47L2YV3ZtKl4kUyR2vubQy+2jVoVMrl74VXhLJQwmpUZZfV RTvNAbNpeUVsTaLZf+pKe6BpQJc77uahBFk2Y1yteZIm5oDtQmDYoTK+yQ3ccUBW9Ta/ Ucd4MpUYJrcxIxVAD763nV4wCa3ZMA34NgBjXs8go4szIDcIigqhw6fGSDraMoTTzz0y kGyMbkIhGSQPZ0eO8mUxwoFXqI9hGRdCBImIqfJnPXvioKcj3h1m8RBJgdTkEyRVYiCp Hb8N5/Ysdmt0R35fOoxVQmKTCkV3neBg+DgrWWTiVghZstBuLnqJyIUzx75bJ7XUvdjC pUww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RepRNznH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l7-20020ad44527000000b0068f629b6242si308341qvu.468.2024.02.18.00.01.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 00:01:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RepRNznH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8AA0E1C20349 for ; Sun, 18 Feb 2024 08:01:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA20F2135A; Sun, 18 Feb 2024 07:58:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RepRNznH" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64F42210F9; Sun, 18 Feb 2024 07:58:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708243117; cv=none; b=rTmhSpYGhNby8egkG9yNkQ5xFgRPg3swHkICOzXB/hd0NAQO7T2J0hMWINYYqhtTk4YET7snvSbb9jhTajpzoiKsYYYiwE4omSH0ejwfC8uEQSPIqCI2KfnRkwPKsgQGmoJrNgNhCpC9COU3+JAHp6FDq7+b4HzVtKf6cTXiWQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708243117; c=relaxed/simple; bh=qtqYlODExvRuMNQTFEJhebFMDpvaefrby/rQ80F2z7A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RgVkFvPw6Wo07CA8zAdpyZhfAFGQV1RjqejtJinXREhYfScBYbg+yCQCGh0U3tr9o5z57TlIGdzldeZd2EuSERSlt3n8GkUzP1updEBXCnDW3KPLGEn9Pswo9hhSEZ/oEA2bI0HaL7Hood2iIgijxVws1jpERKczEg/LEAzYMsQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RepRNznH; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a293f2280c7so466331666b.1; Sat, 17 Feb 2024 23:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708243114; x=1708847914; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4oGxiX3DP59U1b6opp4bM7FWUx7s6k2h0K8Wum1QSsU=; b=RepRNznH8QH0PPXsfZaIykU8oeMBZfppq7CM6nq12vy2D+k/s8Eb4/Td86i1E0cKNr Bpn50F/DZ2SV6dKzsWIE2cfudzgdNKgC/LArbTewv/cq4Ee/JzDlPU20UXh0e/fKU+aQ +QstWgU6g64ppXVD4bKK6ThErErIaxQbwEJtYj7bE1rsETKTdplkprQcali0VHdhPJz9 byp6AagO6yQmv1mnQMv9amVVwTEF1kLOYknksfcHoZ3RDBSl0U2RKdyQmYxD8XZGLM9f AyXme3XsCTpLbWp2tyAOqqTJOu2dWtFhZqkVVhq09VZXf9UOyDmi/+3R34Pq9sRgNmWs h3KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708243114; x=1708847914; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4oGxiX3DP59U1b6opp4bM7FWUx7s6k2h0K8Wum1QSsU=; b=QSEA/LYFvuZMkNq5zs6X7RSHvstu/WgMcuxS12XUz9PZGP+FudpI9iSbcSr25j5wPc 1QTb/74THiCPky54AtIevKNV5Yc6gZ26R52npewHDx9Bj/yRFdaydQoF4qzTvZqib8NA bKSbFsngBiyfIdjg2rEOeQGW1SQASWuF7HjeBk4uG628Ag+tvA+tz7OtE0BvXwcKsuPe 9/vegJ58yYXYz2fnpMIO0gR2sULtrOTLqnZG3NmWJjAEkdGnC35/xhNH66sX0+e0GUTS 6BmYEAK83YMv5udUTTQLzLL+Qq/VO8lw+n4uu7MBxmvmKauy3WfmWnqRJ6Y6fzuf5aj/ cIrg== X-Forwarded-Encrypted: i=1; AJvYcCXvIuU9Q2uun/7cLHTmQW7dZYrFZ2+0OQ34PPch7VEJQLO8MynmtLrvxnD3T2ONK8vKMEuaezXC+FPNG4ueDmPL1irzo2dmFU58UEPG8XJ+BuYAlatB38DIQlm/lIG4gum4nWey X-Gm-Message-State: AOJu0YzULhxlOdPzLnTgQByxmsKhUbJvzXJvyTq5o6REg5CaZ3I5wMuM cx2CI6Bq+9LV839Y7njAGOjfrAj3fwOZZfafZwrMpGopQlPjX/6S X-Received: by 2002:a17:906:1b46:b0:a3e:5589:6099 with SMTP id p6-20020a1709061b4600b00a3e55896099mr992240ejg.70.1708243113775; Sat, 17 Feb 2024 23:58:33 -0800 (PST) Received: from debian.fritz.box ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id jj12-20020a170907984c00b00a3e64bcd2c1sm458732ejc.142.2024.02.17.23.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 23:58:33 -0800 (PST) From: Dimitri Fedrau To: Cc: Dimitri Fedrau , Andrew Lunn , Stefan Eichenberger , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 net-next 12/14] net: phy: marvell-88q2xxx: cleanup mv88q2xxx_config_init Date: Sun, 18 Feb 2024 08:57:49 +0100 Message-Id: <20240218075753.18067-13-dima.fedrau@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240218075753.18067-1-dima.fedrau@gmail.com> References: <20240218075753.18067-1-dima.fedrau@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit mv88q2xxx_config_init calls genphy_c45_read_pma which is done by mv88q2xxx_read_status, it calls also mv88q2xxx_config_aneg which is also called by the PHY state machine. Let the PHY state machine handle the phydriver ops in their intendend way. Reviewed-by: Andrew Lunn Tested-by: Stefan Eichenberger Signed-off-by: Dimitri Fedrau --- drivers/net/phy/marvell-88q2xxx.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/phy/marvell-88q2xxx.c b/drivers/net/phy/marvell-88q2xxx.c index 58aa10d35731..ebcc6b4046fb 100644 --- a/drivers/net/phy/marvell-88q2xxx.c +++ b/drivers/net/phy/marvell-88q2xxx.c @@ -370,20 +370,13 @@ static int mv88q2xxx_config_aneg(struct phy_device *phydev) static int mv88q2xxx_config_init(struct phy_device *phydev) { - int ret; - /* The 88Q2XXX PHYs do have the extended ability register available, but * register MDIO_PMA_EXTABLE where they should signalize it does not * work according to specification. Therefore, we force it here. */ phydev->pma_extable = MDIO_PMA_EXTABLE_BT1; - /* Read the current PHY configuration */ - ret = genphy_c45_read_pma(phydev); - if (ret) - return ret; - - return mv88q2xxx_config_aneg(phydev); + return 0; } static int mv88q2xxx_get_sqi(struct phy_device *phydev) -- 2.39.2