Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1003552rdb; Fri, 2 Feb 2024 10:16:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpQ6hnYzIzNE+UBvHg34qbADlP1iNqEGY469LMxscwXaMdoViT9IcYvTWiNcBu+rq+QY1U X-Received: by 2002:a92:c529:0:b0:363:ab41:f331 with SMTP id m9-20020a92c529000000b00363ab41f331mr5307250ili.15.1706897784068; Fri, 02 Feb 2024 10:16:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706897784; cv=pass; d=google.com; s=arc-20160816; b=agEZ9GkOft6JECevOn48GB2ynxF6SVYLMnDJ9c2+UDeCy2MboYnmTLKg9sz4mGppcE Suhc/pVL4mPe+OvZYnY/es3H48X48igzMGIvr9PBs2I3ujKmyVtlnWxLQXIdfA/ZIqhT zfRe+JX24R7vkHWkjeAq6aso7rsGjNR0YZxCnB8AA7sv86dNuupJIGccKg6+esj+Q8wR uiS0Rpe2JcWWkL3rP7wl4zXvEJ0G4FUpz3jByjm8lyIx5CfPqQGCF/hCp3SkQJKtcQgu lFfI4+KlQnV5HWG7lT56+RxzNgM+td1XzMo2/Ts0vibuQvTFnsHhTqtvdtlhMPi5sCkE xYUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=wtiYOXFMPoLKKMTHGF2JB2BrNN/qXiq/VP/qdA5HoGY=; fh=nDB6A/+2FYSW56CJoUOYm7CnKPKOrZnxgtlQ8kAL3v0=; b=B6h00wnbkvsFD9gOUNaOxAz55LoXATsVyOKpfsI9Ef8lRpfNvA1bCiZvuz3wk8k4ek amAo0gAV9eiJU6D5ehS8x09Rr38WavjszqzKW/GSrjbpJ27mCSPoOBfFEUWhewOe0Pv/ TTCZ+vj78Ymd1vtfepQUBgZuuRrQTP1awk9ta7dGlkULU0YCtoadm/mtOHZX/iVWAGbW yJRej752g+v4qiR5+voGU4FtAiVUOjgnWudp2juUrW8xBEetIF42m69nzdbhTEQciMye 7oiDeVLQTHZGne/cDDUm15TGnqP5unWAnHzJJBbUzOgZb/ZcPT9Haq9Ksb+Warhkvhu1 WAvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=KSYCbLwL; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-50303-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com X-Forwarded-Encrypted: i=1; AJvYcCW85X/NRrKyKrWXldo9a0ZQA42P1WZ76N63MV8iZBMQgH2jdeHOqsO5PDN0CZxzi5FzNxBOLg3emYzrSvxvKSGh54cgEAFiFElI0IlKNg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s10-20020a63dc0a000000b005ced6c45233si1916549pgg.712.2024.02.02.10.16.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 10:16:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50303-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=KSYCbLwL; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-50303-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B2CF2284A01 for ; Fri, 2 Feb 2024 18:16:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F408114D43F; Fri, 2 Feb 2024 18:16:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="KSYCbLwL" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 477CA14A4DB; Fri, 2 Feb 2024 18:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706897774; cv=none; b=QBOR8+w2MynFKnY/FIY1R0exq6EK5DI9hy6t3uZiRIdrOggQytVnCBw8GlUPO23yEaPKLdwsAKpNi5ZZzaRVaXtEJyVUtBVjS5yw2AwpOVUzmaE4n6xiiEI4svKJ8Y2w6aOQlopDQ2Kpm1Moq5io/Ztc9J1vYAmQnXwaQ5h65fo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706897774; c=relaxed/simple; bh=NjO4eKATb1ZVzlEJYvDOvITgk+VfeuI9bh96oQ6EXhw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QInhMb6M08AoeMg3bFrhmKsTso+jjaBVNsITDIcg7QynErh6Htu3HveTDeBS+2afk/R2ZcWIBeo8bpwMMllXZ5+ebsWOXPBs/WQ+2VXxeeRMyy1cQnedeDoQEZRh3mycnKusqYGbUEo2uAlRmgFCQ43SUr0+6XzO4Uzrxz/Rmz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com; spf=pass smtp.mailfrom=arinc9.com; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b=KSYCbLwL; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arinc9.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 9A90240006; Fri, 2 Feb 2024 18:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1706897769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wtiYOXFMPoLKKMTHGF2JB2BrNN/qXiq/VP/qdA5HoGY=; b=KSYCbLwLFuzIuoUaJtpjQGUzO1il4uWXGQ0IExPOpAKFe7gDSiBo3Zdbi+kNccBwAl2Yec RB4VAVK7NrOrl2YBoFuidSJZRkL57a+WmQ7lxqCmdkMTKSimnimlSsAPH7WhtbnHjbmMcf Brarti0Ozcpa7hCbnOYI4yB13yrzhLSjSpAK46Pa9PfMOyQvZ6mFY4LCTUz7gg2v+t58AH FQ/pnWSOQKp8/Tk0nqzBxPiQrbKbulmAa9H0zHfhFbRZcJpiGj9EBCWqfWD83X5GtIW303 dVMZ7x0vg+AKUWJCm1WjaDAps1zeUQIli0oh+MpNDLKQ9OWItA/vUi6aa1Nujw== Message-ID: <5b744f7f-2f63-4219-a0e9-8f08267b1fdd@arinc9.com> Date: Fri, 2 Feb 2024 21:16:02 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v3 4/7] net: dsa: mt7530: move XTAL check to mt7530_setup() Content-Language: en-US To: "Russell King (Oracle)" Cc: Daniel Golle , 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 References: <20240202-for-netnext-mt7530-improvements-2-v3-0-63d5adae99ca@arinc9.com> <20240202-for-netnext-mt7530-improvements-2-v3-4-63d5adae99ca@arinc9.com> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com 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. Arınç