Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5498038pxb; Wed, 26 Jan 2022 13:27:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkS37OIQ44h/VffEiz5zThd42Jacgjm6922XWqp5lpRFYaLEAWEpLwdKbi6a2dBxN0Gfy8 X-Received: by 2002:a17:902:ce8f:: with SMTP id f15mr536658plg.3.1643232451006; Wed, 26 Jan 2022 13:27:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643232450; cv=none; d=google.com; s=arc-20160816; b=TjmMzDufZgk8M8reNgMIaCs/whXobJNFag2EvdRr7jvKTJ2fZXnB3KfE9ia4uApC10 Ew2eqNS8AWONJVTzB0f/KzjZMHOPg9Ii9To57hZDxbEJ4iEzLYf6djRgla++d3xbaV8g FJzhq0s9NAXSj6tVW9BxSZh2OWe9qBGCElf195Wb5i/5wm6fJdoOQyX+qy/231u84mvI iVPuo/g4j/aeO447K8sDudX9+a7VX8jhSuRLYfkEDzMZB8Rkf5Y1+Zb75zcjfpzRcsV0 0cNw2DtStTGhdg3DAqOHGKgXSdqM9uJbXu1QiQ1wDFjEjkK294rKyP1lRv1UqEt9rp1j 9A/Q== 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=9IeG5KzbMlvWnu66VCUZdgobTcmnNfYSNkQ/p5kg02M=; b=pvp+BM2q0aSSD8MoiAU+4cOf4yxqipBR5kjjUsUhZgPCY3GJNAUyof8YskbkeJqyfd MZfOI0MaocEwOpr4BuWQbYe8FKv/h7NRim1+p7BgkeVdHjnIqHhxHlN65j1vZnDMpFp7 y34WjH8FeCbNeGQhNyuGm86KrWTS/n3Kh8zDLSi2P1Ah1sDL3LyZlk/d0lHBL0Usq/97 23qXDPhIN3v/X4eHs8ppaLpxwRmMB2iHd0hcomAZoKn8RBQZlDwIc5zzj8ZUJM8eqZrE ORMxH2TDJuaeuBzROIMp+fpTRBHm9BJQ1It8WZp6B8F0r+8Ux4EzkZVPs4GGXfBfHOog OoeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lMRcY7Sm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si340420pgb.117.2022.01.26.13.27.19; Wed, 26 Jan 2022 13:27:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lMRcY7Sm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241881AbiAZOCz (ORCPT + 99 others); Wed, 26 Jan 2022 09:02:55 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:55526 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234931AbiAZOCy (ORCPT ); Wed, 26 Jan 2022 09:02:54 -0500 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=9IeG5KzbMlvWnu66VCUZdgobTcmnNfYSNkQ/p5kg02M=; b=lMRcY7SmT3141LGWwtXJxF95zu PARIw6Np2hDA3LxhLRVXDpBHtX6TVq3PQjarXHGU/AbpH3BryR11CeDs9aOg9BPu307gnUd5N7W7a pyjq/gkkTmL3fT6bS/ytEyQwrsj8xnt9E/ylhR0VUPOwCXEURRoRnDWpp+JAUSzGeOxk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nCiso-002ofv-U5; Wed, 26 Jan 2022 15:02:46 +0100 Date: Wed, 26 Jan 2022 15:02:46 +0100 From: Andrew Lunn To: Tobias Waldekranz Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Marcin Wojtas , Calvin Johnson , Markus Koch , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 4/5] net/fsl: xgmac_mdio: Support setting the MDC frequency Message-ID: References: <20220126101432.822818-1-tobias@waldekranz.com> <20220126101432.822818-5-tobias@waldekranz.com> <87r18ubp57.fsf@waldekranz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r18ubp57.fsf@waldekranz.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> + if (device_property_read_u32(dev, "clock-frequency", &priv->mdc_freq)) > >> + return; > >> + > >> + priv->enet_clk = devm_clk_get(dev, NULL); > >> + if (IS_ERR(priv->enet_clk)) { > >> + dev_err(dev, "Input clock unknown, not changing MDC frequency"); > > > > Is the clock optional or mandatory? > > As the code is now, it is mandatory. I could add some default frequency, > but I fear that could do more harm than good? As i said in the reply to the DT patch, it is mandatory if the "clock-frequency" parameter is present. > Ok, no worries about regressions for deployed stuff already out there? It would only cause a regression if a DT blob happened to have a 'clock-frequency' parameter and not clock, which it should not. Andrew