Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2373384ioo; Sat, 28 May 2022 11:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4u4JVzQzrpl7yCzNyGA8I6DPlyUlJxDwV9or4ox3ORNZZEzewNE7vgeZhHmykizUKvQP9 X-Received: by 2002:a65:694b:0:b0:3fb:d31a:a850 with SMTP id w11-20020a65694b000000b003fbd31aa850mr3911440pgq.15.1653763095189; Sat, 28 May 2022 11:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653763095; cv=none; d=google.com; s=arc-20160816; b=xFIKKonL49IXcoRpHxJ6VJn7arNRK87kNRRB/YPnPWMUjbLxLxrhk9HTOlTGy32tcg dmkzncfXC7s7WnN3abQdmHKxi6NVVDzLN//5UoI+eWe/2vQluXb5z2xQJm/BLbemxVG0 ohzzjQ++M5ZJU8XARjgB+J3rsZDxAE2AMqTmuki8kXMNVZ5QDl4kn8qOoIBLEtjPQLQ1 53izkQvZqI6XPB/4ttwoNrEi6+/kswlSqQcN/+oZ5BdlRMG6K5uQlFvjL25qfDhMyWeu 7AhmwPQI/OInh8Tv/a+hs8svlJ1UOHXTSviZy9TJNYoZkaQNBfDZBDTRyAZHaAt8QLwa 1rHQ== 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=sfRMVadM5DFvb9UkztUPJSueAUQ271E9by4MUwweJIo=; b=TixVD+vQCBN6JNiSHmftMe9ulIjR4nH3Su+xdwP6fM7clTB1JfXf81zspq5d5d6I4Z Qe0u84Rj+BFKugh/OD0SLFd9W0zL7YW1GnA/GrvXo0/B2VvdHynQ27ZGDV8Dc5yHFym0 XhYClpuo7Rk8bkQHb+1cWSWZ6tiixwvHiEo67Qb+FlNow7fJwXwJb0/2iA8gSZQnKlUA CO2uX0a3Ez/aPSPlu74F8QorwjxUmP2XLxBmaCh8nktDObBOeSlvvYyqfKWa0le0rf53 MZkC5x0iUisTGilKFMQbyk+aE64G2zdJ1ca7TWJhMHREY+GyHbPOy2qHNqZzSeQD2TAt 9LxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=grlE4T31; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j13-20020a63594d000000b003f9eacd0687si10592303pgm.88.2022.05.28.11.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 11:38:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=grlE4T31; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 8555E2559C; Sat, 28 May 2022 11:32:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348264AbiEZVqc (ORCPT + 99 others); Thu, 26 May 2022 17:46:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345621AbiEZVq2 (ORCPT ); Thu, 26 May 2022 17:46:28 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2FE35FFD; Thu, 26 May 2022 14:46:24 -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=sfRMVadM5DFvb9UkztUPJSueAUQ271E9by4MUwweJIo=; b=grlE4T31u4JkQQZ4JcZrTN7AfI X7vawcJ+xqbIzLvHhQ6G/2VB+nkK1jfwl8c/PGI4ZCIdAD6ZsvbTXkxDsd15G6ys1NuFn7nfMQeVS wKlxNnjNrodkPlzw4l3wiRj51HHnEcu2nrxasnjZLiLAdJdNvM35TJYAOPeoYfijWxuQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nuLJD-004ORC-W8; Thu, 26 May 2022 23:46:19 +0200 Date: Thu, 26 May 2022 23:46:19 +0200 From: Andrew Lunn To: Piyush Malgujar Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Chandrakala Chavva , Damian Eppel , Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH] Marvell MDIO clock related changes. Message-ID: References: <20220526105720.GA4922@Dell2s-9> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220526105720.GA4922@Dell2s-9> 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 Thu, May 26, 2022 at 03:57:20AM -0700, Piyush Malgujar wrote: > On Fri, Apr 29, 2022 at 04:24:53PM +0200, Andrew Lunn wrote: > > > > > 2) Marvell MDIO clock frequency attribute change: > > > > > This MDIO change provides an option for user to have the bus speed set > > > > > to their needs which is otherwise set to default(3.125 MHz). > > > > > > > > Please read 802.3 Clause 22. The default should be 2.5MHz. > > > > > > > > > > These changes are only specific to Marvell Octeon family. > > > > Are you saying the Marvell Octeon family decide to ignore 802.3? Have > > you tested every possible PHY that could be connected to this MDIO bus > > and they all work for 3.125MHz, even though 802.3 says they only need > > to support up to 2.5Mhz? > > > > Andrew > > Hi Andrew, > > Yes, but as for Marvell Octeon family it defaults to 3.125 MHz and this > driver is already existing in the kernel. > This patch is not changing that, only adding support to configure > clock-freq from DTS. > Also, following PHYs have been verified with it: > PHY_MARVELL_88E1548, > PHY_MARVELL_5123, > PHY_MARVELL_5113, > PHY_MARVELL_6141, > PHY_MARVELL_88E1514, > PHY_MARVELL_3310, > PHY_VITESSE_8574 So if you want to ignore 802.3, please make it very clear in the DT binding that the default is 3.125MHz, not 2.5Mhz which the standard requires. As you say, 3.125Mhz will work for some PHYs. And it will fail for other PHYs. Andrew