Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1871312ioo; Mon, 23 May 2022 05:19:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/0t4udw40p/Aak3tmANaHQZ2GXhuOvaRQNaQkRfWEqPo5GoZ3TnmajWWdopwb6YEW0vKI X-Received: by 2002:a05:6a00:846:b0:50d:f02f:bb46 with SMTP id q6-20020a056a00084600b0050df02fbb46mr23457436pfk.74.1653308350233; Mon, 23 May 2022 05:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653308350; cv=none; d=google.com; s=arc-20160816; b=Cz9TFBdL+Usz9Cr2cQ+2Ikp0q3swKWvWCxfxfb2qr87MSi3ATRLRMGORxdd5Do+mpA i1mTxMqe6xPg0lb3qYDTQfRcocMsXlusPRCOd/s6Ao0+2hjaTyZ1Uz/MYfQ1/P3eiiTU HKO1+Ev9RDG5oPez934YMhMQn/yPFxp7r3MI1Up5cKE6BF5IuL8F3xbayTnX/CsbdTQ+ 101quyOY5eJ63ckaSDezXcwvmdIkmwbdl7mORtXBcvInc/u/l8z/1fByfDcf+ljtNlE5 XyZF0dVU86/Gm/nZZ7qut7KqUseKPeDIu9/f4va7MlfTwwBy9PELe+5UF2m7Rq6zLDH7 CIoA== 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=Qg7esZWEzWeo1cy06uHXjtqSIw4RkI4Og9wGS2CQMWs=; b=vU0XKNPzCSfhdHGbot9SB3X80/nVW5cTAKT79FEDx0z4HOxUl7gUAz4N+HttZqeIk9 ZUtrLlMWmX5QHwmkGh6tOZEqVRKYBLJQMCk383+TfoCrOXVdo4GPKIW8uAH/soDpO254 NVgTqqBhMid6xE6eQ2pjCw2YOnsb29jnt65AJpCAdBwK8wI+bk6ZyQGbUvMLUObOZm1Y turU+5LqvPp6VpFFW36ohflUQkK+fE0FUAGOIhIKpY8nR3m1GJBJJdRzxyaDmyYQu6al bNrKlwYHyOazU0cN038qJmyLcRAnMbcVEaZXQ+DBEgHBRACgW4vfCFrSNi/TUK3EAsr5 d54Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=rO3ujDMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y16-20020a631810000000b003f5ccb17340si9908838pgl.571.2022.05.23.05.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 05:19:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=rO3ujDMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4B46325C7B; Mon, 23 May 2022 05:17:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235384AbiEWMRS (ORCPT + 99 others); Mon, 23 May 2022 08:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235357AbiEWMRQ (ORCPT ); Mon, 23 May 2022 08:17:16 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5456125C7B; Mon, 23 May 2022 05:17:13 -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=Qg7esZWEzWeo1cy06uHXjtqSIw4RkI4Og9wGS2CQMWs=; b=rO3ujDMNxUI/nT/C1PVeHBQKde NESBTlwYICi529yJ7nT5Qntrfb0yDUwS8vYUhyHb8eOYkmbyKMtM/HjGATDHkNeWQxMMGjCisNw32 ZihIOTX4lHfaZgAEf+Gyjbn4aXEaNb7QgqRAG5rJ2T4iq7bN+3j5e6V89qDXoxUrWnQE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nt6zY-003yho-He; Mon, 23 May 2022 14:16:56 +0200 Date: Mon, 23 May 2022 14:16:56 +0200 From: Andrew Lunn To: Tommaso Merciai Cc: michael@amarulasolutions.com, alberto.bianchi@amarulasolutions.com, linux-amarula@amarulasolutions.com, linuxfancy@googlegroups.com, Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] net: phy: DP83822: enable rgmii mode if phy_interface_is_rgmii Message-ID: References: <20220520235846.1919954-1-tommaso.merciai@amarulasolutions.com> <20220523065754.GJ1589864@tom-ThinkPad-T14s-Gen-2i> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220523065754.GJ1589864@tom-ThinkPad-T14s-Gen-2i> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 23, 2022 at 08:57:54AM +0200, Tommaso Merciai wrote: > On Sat, May 21, 2022 at 08:39:02PM +0200, Andrew Lunn wrote: > > On Sat, May 21, 2022 at 01:58:46AM +0200, Tommaso Merciai wrote: > > > RGMII mode can be enable from dp83822 straps, and also writing bit 9 > > > of register 0x17 - RMII and Status Register (RCSR). > > > When phy_interface_is_rgmii rgmii mode must be enabled, same for > > > contrary, this prevents malconfigurations of hw straps > > > > > > References: > > > - https://www.ti.com/lit/gpn/dp83822i p66 > > > > > > Signed-off-by: Tommaso Merciai > > > Co-developed-by: Michael Trimarchi > > > Suggested-by: Alberto Bianchi > > > Tested-by: Tommaso Merciai > > > > Reviewed-by: Andrew Lunn > > > > If you want to, you could go further. If bit 9 is clear, bit 5 defines > > the mode, either RMII or MII. There are interface modes defined for > > these, so you could get bit 5 as well. > > Hi Andrew, > Thanks for the review and for your time. > I'll try to go further, like you suggest :) Hi Tomaso This patch has been accepted, so you will need to submit an incremental patch. I also expect net-next to close soon for the merge window, so you might want to wait two weeks before submitting. Andrew