Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1034088rdb; Fri, 2 Feb 2024 11:17:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJ4YlIhVckT52u1gX/qyC3t27Q18p5AnDl6MlS7ROQY8qqkMGcRtzlahu/8mF0z98E1Hw7 X-Received: by 2002:a62:cdcc:0:b0:6d9:a565:9be6 with SMTP id o195-20020a62cdcc000000b006d9a5659be6mr8794828pfg.9.1706901425386; Fri, 02 Feb 2024 11:17:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706901425; cv=pass; d=google.com; s=arc-20160816; b=bpniUfonu1uAkvB5Lt2cRkXikKfnIY1fE8mGFINOuRT0++CitKkQ5B/v4WkOtUAeAp 5H+1LaeBSZ4yMIpy+sEA0VkFP5D7j+RxZvfm2pEsPlby2js9BbytXPxleZxX3H3M9Wp7 a54AItYGfNDK+iKUUnHKTNkevK8UKorFeforbgIiODD1YaY96yZApZjbHzh8Ijdsr4HJ zZAwcThViFdqk0EavRqUNm4K23tlVE3fbxB7KJFHzjDCEkY6kCELPcXSCSGsMM5Br3rb A3WX79h9nzXqlL/Nv0BY8wr25V1UF3fLrU6tKHX0kkrm+bRhrNvFyZJOMrDEo5TkPIvi pyYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=qtBio0v+ckZMVzHGE2f3mvS0x3BswvLsGLfBWxz1JVI=; fh=K0SG8H1YI2+gFDLsrjOy70Mt3Z+jn8VW3n4qzWATgvk=; b=YcREVwl3kTqxPUrskQGgDNoY/aNOGxyHD7nB2rPq+b1N/TitmQsyMLoJzESYIOK9aX kEekBiJ+LAgQklWDqot84RzZHtLYyHatUHhZcHqDFsrl9/szzUe+gYYLKwITc3UEiTT3 54sxZzeQ76go+zDuEodMngSqVLEjTOiQzs39ppTI+2MPSuE1qyRT1lecj0uztzn4+Ltd nz1a5+qScmuAsSuKzuQONQA/wuL6llcgrEaLgeRuVFBX2CC1cmWfThq9CRDQk0w7PlEN eoj0Z6PgvFEFV9qX0UepKVgOr5wobjM1LrSfooeGaRpz7SR55y9e3x+NNOxDOawJqsAl KgEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-50355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50355-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXv0Wj0dsYEbSnnRdBNIPtwTDGoH8CCMMMSnn1rSFtMw/CUrKh1/EcL2lKhltGp2aVnHM5EejTBagXmPSzQKysU4Fs0wlh/R3z67e0dKA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e18-20020a635012000000b005d8bdc6258fsi1947922pgb.679.2024.02.02.11.17.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 11:17:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-50355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50355-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A8046B2C8DB for ; Fri, 2 Feb 2024 18:42:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB3568062B; Fri, 2 Feb 2024 18:39:44 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E34315D5CD; Fri, 2 Feb 2024 18:39:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706899184; cv=none; b=r/yNrOBKJD2sFEapMgyEFH0whbZMTxeBqwFEENgYTso/h+N3jWSa/mlaBXyd6CRaEV9igWN5CXjkAGV29Ho9Ev5pRRHNTcH4HibKkRE5FxAb/NBPW2ygeIDPwLoawcLLIwfcXpaGafzfE9i4zNHR4BcgpwuqRcN9OFMGGBmw8AA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706899184; c=relaxed/simple; bh=9f6vU82EFNxs5qQJiBXinPYuAuGon2VB1Gw/+HpYECs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YVcwJP4K2fx0qHAJk58OBfaPEp/i8P8ggqb3YA8siPC8BhCjwHKVvMJJvbQDnHiIBEPFo4cCdjw9KUlTEGdvUmJIoNJ3K5j55YOG6SemSjjEfTNFEtLlo73cOJBnUKr3/QM2e2YcstBGHf5A5eL8FpOfYUivPgDqmmuJoM9iSCI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rVyRe-0002Ew-3A; Fri, 02 Feb 2024 18:39:23 +0000 Date: Fri, 2 Feb 2024 18:39:18 +0000 From: Daniel Golle To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: "Russell King (Oracle)" , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Bartel Eerdekens , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next v3 4/7] net: dsa: mt7530: move XTAL check to mt7530_setup() Message-ID: References: <20240202-for-netnext-mt7530-improvements-2-v3-0-63d5adae99ca@arinc9.com> <20240202-for-netnext-mt7530-improvements-2-v3-4-63d5adae99ca@arinc9.com> <5b744f7f-2f63-4219-a0e9-8f08267b1fdd@arinc9.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5b744f7f-2f63-4219-a0e9-8f08267b1fdd@arinc9.com> On Fri, Feb 02, 2024 at 09:16:02PM +0300, Arınç ÜNAL wrote: > On 2.02.2024 14:48, Russell King (Oracle) wrote: > > On Fri, Feb 02, 2024 at 12:19:10PM +0300, Arınç ÜNAL via B4 Relay wrote: > > > From: Arınç ÜNAL > > > > > > The crystal frequency concerns the switch core. The frequency should be > > > checked when the switch is being set up so the driver can reject the > > > unsupported hardware earlier and without requiring port 6 to be used. > > > > > > Move it to mt7530_setup(). Drop the unnecessary function printing. > > > > > > Signed-off-by: Arınç ÜNAL > > > Reviewed-by: Andrew Lunn > > > Reviewed-by: Vladimir Oltean > > > > I would prefer this to be earlier in the series, before patch 2 which > > moves mt7530_setup_port6() to be called from mac_config(). mac_config() > > is supposed to be configuration error-free - in other words, all state > > should have been checked before hand. > > I agree but mt7530_mac_config() is not a void function yet. The > mac_port_config member of the mt753x_info structure points to this > function. My next patch series gets rid of all useless error returns on the > phylink path and change mac_port_config to void. So I don't think working > on this patch series further will worth the effort. I'd rather have this > version applied as is. I agree regarding not changing the patch itself, but I also agree with Russell regarding the patch ordering. I know it's a 10-minute git headache to rebase the patches on top of each other in a different order, but you can easily compare the end result being identical to what you had before and hence don't need to retest.