From patchwork Tue Jan 10 16:19:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1724173 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=MOEU6Yz5; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Nrx1t2vFjz23gB for ; Wed, 11 Jan 2023 03:23:14 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 12ABC85683; Tue, 10 Jan 2023 17:21:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="MOEU6Yz5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CE3E98558B; Tue, 10 Jan 2023 17:20:17 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 586628549A for ; Tue, 10 Jan 2023 17:19:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x831.google.com with SMTP id h26so11324915qtu.2 for ; Tue, 10 Jan 2023 08:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=vwVg2XIXKoQhEDYhXsEpdszkpuwvX+tVyA4Lwv10jQQ=; b=MOEU6Yz5CXom1uUxGpqwZhHu3IAHuW+xKQ3lCzLy2MrY6yI3JvhZ2mPpKYIG0Wxt45 7+24xhK+4rZbmxNdn7IGN/IlBU9LySn0kl4m4mD32Z6EFrtJR3cYISNsKY9B0CBTOvjK ttEWg+c+hxCnXpahUBSanvBnMEa/KAzj6U4nc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vwVg2XIXKoQhEDYhXsEpdszkpuwvX+tVyA4Lwv10jQQ=; b=GWEKxT9MM+4xWuW996O0KXWebR5CMPlYwuBAR5npLRO3SetHV7m+IotCJSc4VnCAZo 1duzdqHkHu+hDlbqk/ymTJvHHsROErrmQClADzxyE9Vz0VnQDa/aimtd3f1ZQRS3riQZ TsBK2Brp3VO8YUa5S7iNWJ/BZ1OzU1/2sQ5uHECXVOqE2GzePcbeE4f0M17PxtGX5hbf l/Di/bMU4o4s2FgPhHGdwemkLX83kIvYBR2nXUAy5wvalHOMZzmfg7Pw8RUeN9t7P+R4 s5qzrraJtrv/7XT7Arrz3clig0ERwjty0TTZpw7NuQwlM+0ixual5PKuRon3pmB1GM/K AeoQ== X-Gm-Message-State: AFqh2kos4UharZ6IANsaZR5hal35wYQVtJN/TbWgQS8Po//wcvA7KAFk RQr1kLjDlzIdh8Pxy+KBJh/yVJFvoaN0c6FuWyQ= X-Google-Smtp-Source: AMrXdXsRUZlM5xXKhKZDptsTEMRHcDQB/ztuHnwkH4w5eOr0qSXFi45sAOqSfjz3uyFvaoyx7wM5zA== X-Received: by 2002:a05:622a:991:b0:3a9:7ce2:4c53 with SMTP id bw17-20020a05622a099100b003a97ce24c53mr102664496qtb.51.1673367597625; Tue, 10 Jan 2023 08:19:57 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-2c2f-ce0f-8dee-7136.res6.spectrum.com. [2603:6081:7b00:6400:2c2f:ce0f:8dee:7136]) by smtp.gmail.com with ESMTPSA id d12-20020a05620a240c00b006fcc3858044sm7557110qkn.86.2023.01.10.08.19.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 08:19:57 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 13/19] net: phy: mv88e61xx: Finish migration of MV88E61XX_FIXED_PORTS Date: Tue, 10 Jan 2023 11:19:40 -0500 Message-Id: <20230110161946.3816866-13-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110161946.3816866-1-trini@konsulko.com> References: <20230110161946.3816866-1-trini@konsulko.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Set the default for MV88E61XX_FIXED_PORTS to 0x0 in Kconfig, and move the comment from code to the help to explain what this does. Signed-off-by: Tom Rini Reviewed-by: Ramon Fried --- drivers/net/phy/Kconfig | 4 ++++ drivers/net/phy/mv88e61xx.c | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 580ac8e8fba2..5eaff053a09c 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig @@ -62,6 +62,10 @@ config MV88E61XX_PHY_PORTS config MV88E61XX_FIXED_PORTS hex "Bitmask of PHYless serdes Ports" + default 0x0 + help + These are ports without PHYs that may be wired directly to other + serdes interfaces endif # MV88E61XX_SWITCH diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c index 7eff37b24499..7ab60164c774 100644 --- a/drivers/net/phy/mv88e61xx.c +++ b/drivers/net/phy/mv88e61xx.c @@ -167,14 +167,6 @@ #error Define CONFIG_MV88E61XX_CPU_PORT to the port the CPU is attached to #endif -/* - * These are ports without PHYs that may be wired directly - * to other serdes interfaces - */ -#ifndef CONFIG_MV88E61XX_FIXED_PORTS -#define CONFIG_MV88E61XX_FIXED_PORTS 0 -#endif - /* ID register values for different switch models */ #define PORT_SWITCH_ID_6020 0x0200 #define PORT_SWITCH_ID_6070 0x0700