Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp929897rwb; Thu, 18 Aug 2022 15:08:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR5mmbJVbS6N5d4/OkkMq3Maxqzs4fA1g8fNnl/L0Vb/sl1jpBXzj6FldGj2XHYnISreGCGM X-Received: by 2002:a17:902:b48f:b0:172:b57e:f0ff with SMTP id y15-20020a170902b48f00b00172b57ef0ffmr3499617plr.25.1660860494216; Thu, 18 Aug 2022 15:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660860494; cv=none; d=google.com; s=arc-20160816; b=XHu7PS4QJX4v4srRArXjRJ68fKIzIeFaicsXjLGZ5cs9gZq0kToQnd1srZfJYP64/F FrhUUyOj0hheJLJuIeFJ7D1XFFNQUGd0rwLuBolTMBW5d06F+qaYeXWpQYjcZqBMAdRS BkkMmjAi23EEc5Hkf7e/MhQhO0Q1BjCtdh4pR2X0hZRjPa3KxyktNrklBd1O8XQL+KAU 1QXvg9bqy9kNCoZrdHcbmD/yCO66Px7yC19g9GXY4pxunbaJsL3LSlTJpErq3RNjPELe xxVrPkx1EvretNIpC8KXgwCDY3owDE1EScJxGmEO0gVn02p2D8Jf+vgtpFPZNoNAonL4 K1SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XhUCvUk0FjYJlbhwmGOWTu4qKoisWXmd1WdcglrWl3A=; b=JtlvWPCE9MNUkP+P5n05V6wJ+H8c4NmQNYchoQSa1BK1AovT8njbzcV7jxGHHo5b78 NeR9hnKxojUJCzRWZxgvHuLdqfam0/nNXnMdcsW3pf0Yg931udfWz5GOoUc9OE3a7qcV gdWEjAi+lIT0ta33IOgg9WWUPz+Y4lUNXvssHCwmeN59Tj+1NK0Py2TaRnugCTkU9qFq GPfWBDvx0gYIsGlPbfyZTbZ7Yd15t94sG/Pg7MNfmpUmrdkzZsdv/A+KIEOF9IENmUkj bI41UJwRX4CvtvYm6k8m6Uqp2ANFAd0WE0HnpH8aWF3ttDU1xjBQYeMUQkDQ/alSRnce aQEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=5rdpkCkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a38-20020a056a001d2600b0052d45b66299si2340879pfx.312.2022.08.18.15.08.01; Thu, 18 Aug 2022 15:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=5rdpkCkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345825AbiHRWDI (ORCPT + 99 others); Thu, 18 Aug 2022 18:03:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345873AbiHRWC6 (ORCPT ); Thu, 18 Aug 2022 18:02:58 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89029D21C9; Thu, 18 Aug 2022 15:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=XhUCvUk0FjYJlbhwmGOWTu4qKoisWXmd1WdcglrWl3A=; b=5rdpkCkcekw9D/Yf0EuLx7VjYl G9FPLdcorL4RUkWdqGdtX/eq2Ykdd+6MEzfmCuYjXhPxpwirEnvMLdJYPp9qIqPM3IJS3nR+tPRzo zvtdc7gKpIUe+/sOd+YbgEWF92qxx8nRNOIrWbHGy3RSWZOYDbC/WCSWWJ14h1IeZyz0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oOnbE-00DqiX-S0; Fri, 19 Aug 2022 00:02:48 +0200 Date: Fri, 19 Aug 2022 00:02:48 +0200 From: Andrew Lunn To: Marcus Carlberg Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@axis.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: dsa: mv88e6xxx: support RGMII cmode Message-ID: References: <20220816114534.10407-1-marcus.carlberg@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220816114534.10407-1-marcus.carlberg@axis.com> 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_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 16, 2022 at 01:45:34PM +0200, Marcus Carlberg wrote: > Since the probe defaults all interfaces to the highest speed possible > (10GBASE-X in mv88e6393x) before the phy mode configuration from the > devicetree is considered it is currently impossible to use port 0 in > RGMII mode. > > This change will allow RGMII modes to be configurable for port 0 > enabling port 0 to be configured as RGMII as well as serial depending > on configuration. Hi Marcus Can ports 9 and 10 do RGMII? I think not. So you should validate the phy-mode in mv88e6393x_port_set_cmode(). Andrew