Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp106267rdb; Mon, 22 Jan 2024 13:33:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDAh2Q/ZjstlSPKJVyX/W6Pe5XSshtIOgnlW+++hr0vurK/6qqRvYSAQXnn57pfW2OCKwJ X-Received: by 2002:a05:622a:5d1:b0:429:cd4e:fe68 with SMTP id d17-20020a05622a05d100b00429cd4efe68mr7721419qtb.69.1705959215166; Mon, 22 Jan 2024 13:33:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705959215; cv=pass; d=google.com; s=arc-20160816; b=VM0ErhGhDMMwPDs6SnM1qp1xyvjG9S06bBA4JeqwOhiBFkNpspoS3+g4OiPGLrWPjx 9TC9QKBGJ72fD3ma0lTBRuOOO/rCg1KgI4G4V5ljf8MpMuERg1u4gyjb31n7/IJdHZZV Z7tZhzRYh8pBrNOBVp6cNETdohX9hBVHYmmp5h8sM/aiGdoxjzdvALxfkwRZNdOYPStM qcukY6LK+SFE3eRnBFd8yzfR6zVa+YSFVxE/p7cqfClCkwy7Jby4exB1UGFdzfzVxnaT 7fkNQghG/EbWoewLKBN/PN1ZsVbJ06j/2JDD1dNEb2m6jZ5gfJvtSFXBm9WkQYqRvsCj Q8dA== 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=tYmMCIQOGGjhf869AevyULb0R6NuG+Zi7GyczzrAbQk=; fh=TOl4FxWt5pBlu4XkSm4mUQyI/JKDmSoC512X9CiXBA8=; b=R6vuEcZMM7xrQzko16JNBeQLCz9Kej7whqrRmxnHAOTj6Z91E487MyujORDoPG/nUg sYquewwVLvF9oZw7n5DTW05QdwWk/U5lP5NWYCt1n6YualB1vMwnXWHjLit5hGOrJ6Zs QfcWLNW/iLU1KY39sz2ggCyH2tUSq1z4g/iKXrLuTnw9zIbXBUP0lWh3GnCkp0v7XRsz OnveUVY6m9KOlbSTtBSDSP1xVNnfM3jMbqKLegPKfmSHsdpoCScywznGzC/qrAznOufU hDlbsmWIb1xtrnlxdelpRzzy34J3ef+im/e1e2cHg/NmdprEKQPzCHQpaC2IaMpEy6pk 7dpA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HYf7qlfG; 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-34192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34192-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 g6-20020ac85d46000000b0042a1fc49eb0si6515170qtx.396.2024.01.22.13.33.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:33:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34192-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=HYf7qlfG; 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-34192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34192-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 9FCF31C252B6 for ; Mon, 22 Jan 2024 21:33:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B83C4C62D; Mon, 22 Jan 2024 21:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HYf7qlfG" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 BFFF24CB4C; Mon, 22 Jan 2024 21:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959006; cv=none; b=HO3idUmmxpvUCdSQEGkrhyapnvG+befkdgWAVk6ZH1cfBd4jaw2JcrWml6/pnkSVZENzHUQWWfoXK5Um4TA0YFKKva0xOvGF6K9tvGgszbOizzUewcHpETZyOMAvj26e7/M/nvyyGNuCBBiOLARbWYj+PB5QuoGazSZcK7HSJQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959006; c=relaxed/simple; bh=rYEk5PXX3bm174ZejWqLRN/iYkeUI/hJjTiG7hIUGEs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=s7MQJuKq2KIoB91KilSbxnzw452v+qFWgg+H8HEokZ65VH/QzLyYpZ5PJvAYRjN83l8O5NSn71aPVOhmBSVUjFAL4xdUKirHU8jS/GI5nLx1OgkSlXkK98gmQmmo6BqrI+miTYVQ4W4iUjFeBOPPttWwYqwfGvo/3uO6OxlBKps= 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=HYf7qlfG; arc=none smtp.client-ip=209.85.218.45 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-f45.google.com with SMTP id a640c23a62f3a-a271a28aeb4so392435266b.2; Mon, 22 Jan 2024 13:30:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705959003; x=1706563803; 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=tYmMCIQOGGjhf869AevyULb0R6NuG+Zi7GyczzrAbQk=; b=HYf7qlfGjdJ0Y1FlGmd1xblv/ymZ6SbmR4lRdqd8Vuuy/0Uwlwk0S9NwOl0cPTee9B O3Tqe6H32iefdnY2pG4mcRQEZSW4HV/xxneQoZZK9OH61JBWHt/gUJMnW3hDx4GkghVo 2KxBVqp/CMiRNR0DNC/uM3EzCYBFC2vymvMV/GqkqfI9/tlHuCbT9cTY2J84rH5FFUqe U13QBNBXI4chyQTrgUUlb8gy4Gzx1SL81sHKta89uoke5uiIT0uAJxVfIWeL9H8ySPx8 g0N/bxM60wG+x3jBtR6Miwopeu7WHCw3KgHYh2SYOS05IqBM7evY5c8MVa7B8FXG532n obeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705959003; x=1706563803; 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=tYmMCIQOGGjhf869AevyULb0R6NuG+Zi7GyczzrAbQk=; b=tyhy2Jy5cnvxOSlcZ0m6Ed5s5Q/TGgrnqNSXyEyAgcWUdi6gGAsSfaW8+3SkBHbBnj bsShoGPz8YQYEQmK0WkBxS4bOd0R/4LvaZMIFvhjI1rWMYmnGmbc7LDxp1Hd6vj4zrV/ IGWNWsu7aRXLhZEi9YOQ8V9Q88E9XAsbJ8QKBNbHFpEqHObrw2T+bDp95TP+Q3b31wTH oTBoGovFvct4eY9QJ6X0Mp8AUsnMgpnizTMnK8b8KrBcBN262qaHd5VWs06Il6yXJ2fL TIFDlacKAemloCx6KmwHvfpD3NQNeURUZBX4PyTShmnfV3BQppwiTAL5UE1l6qlBdm/5 WiFQ== X-Gm-Message-State: AOJu0YwW1aWmPrW5wKsfRxRlPjseb3TvYL9Tr/dOGAEE+voj3fbOri/R WRmDMgWIWZs8qhw1bKv/NaXpK7YoarIWFvZMtdspgeDyCtkbG4pH X-Received: by 2002:a17:906:da8e:b0:a2e:7b28:1f03 with SMTP id xh14-20020a170906da8e00b00a2e7b281f03mr2857729ejb.90.1705959003013; Mon, 22 Jan 2024 13:30:03 -0800 (PST) Received: from debian.fritz.box ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id j25-20020a1709066dd900b00a26af4d96c6sm13823336ejt.4.2024.01.22.13.30.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:30:02 -0800 (PST) From: Dimitri Fedrau To: Cc: Dimitri Fedrau , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Stefan Eichenberger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 net-next 11/13] net: phy: marvell-88q2xxx: switch to mv88q2xxx_config_aneg Date: Mon, 22 Jan 2024 22:28:44 +0100 Message-Id: <20240122212848.3645785-12-dima.fedrau@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240122212848.3645785-1-dima.fedrau@gmail.com> References: <20240122212848.3645785-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 Switch to mv88q2xxx_config_aneg for Marvell 88Q2220 devices and remove the mv88q222x_config_aneg function which is basically a copy of the mv88q2xxx_config_aneg function. Signed-off-by: Dimitri Fedrau --- drivers/net/phy/marvell-88q2xxx.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/net/phy/marvell-88q2xxx.c b/drivers/net/phy/marvell-88q2xxx.c index 8bd68b3c3ea1..e40ea351fcde 100644 --- a/drivers/net/phy/marvell-88q2xxx.c +++ b/drivers/net/phy/marvell-88q2xxx.c @@ -688,17 +688,6 @@ static int mv88q222x_soft_reset(struct phy_device *phydev) return 0; } -static int mv88q222x_config_aneg(struct phy_device *phydev) -{ - int ret; - - ret = genphy_c45_config_aneg(phydev); - if (ret) - return ret; - - return mv88q222x_soft_reset(phydev); -} - static int mv88q222x_revb0_config_init(struct phy_device *phydev) { int ret, i; @@ -833,7 +822,7 @@ static struct phy_driver mv88q2xxx_driver[] = { .flags = PHY_POLL_CABLE_TEST, .probe = mv88q2xxx_probe, .get_features = mv88q2xxx_get_features, - .config_aneg = mv88q222x_config_aneg, + .config_aneg = mv88q2xxx_config_aneg, .aneg_done = genphy_c45_aneg_done, .config_init = mv88q222x_revb0_config_init, .read_status = mv88q2xxx_read_status, -- 2.39.2