Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp90252rdb; Mon, 15 Jan 2024 13:20:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWNsbBpw+LenGwn6LsZUBzZGUNTSJD3j5QGrFd29iKro2o3l/tGpfSXDdquJ1hX48P/KxD X-Received: by 2002:a17:907:1b21:b0:a2c:dfa:4f7 with SMTP id mp33-20020a1709071b2100b00a2c0dfa04f7mr3356475ejc.82.1705353639114; Mon, 15 Jan 2024 13:20:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705353639; cv=none; d=google.com; s=arc-20160816; b=dPky6x7Jc6bNBtfhck+tFH7SwFTL7BUl0Nqxjq+R/MSrZ+krXjYuhsx0FBTbkgro7P Z9jRFwCwP5PRuSNgS9NQRzq5GGGQHRxHpP5ox2WMVzUlRE4Jp9RsOVoVNJF4trSbwZtZ RjRqhR7W2P5cdrerE5j2rH5mNsfw6E3mKJOh9kgO8dNTt6W9VKKYU6/3zAnhv83Yk5bu 6FkMwkDrci5NG6tbyxEKaqDZ3zXP6ZAV0zgm4zBYp94omgzZoviREuZsUA+Q8/SZeoKO CLwbfttan3J+hU2pv7oJmNL07QwswKxiPXewcoV7S2BCF812T3y31wdHVY2GickdV/Q3 i76A== ARC-Message-Signature: i=1; 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:dkim-signature; bh=39ozkC0HqQZ+Edap3Ljm8Xvwn44jjjAD+L2Y5G1YxR4=; fh=TxtO085Vvl1Stqb1qu12a1LJh3T3X6ktDkPRVfZfkrM=; b=dkNuOsf1pDO5bm6yviKNkJ9p2i9ums3qf3KP22/1UNVwystbMCfB3+Go94dsyVDc6h YIroUxLIzbli7qJSENUqpibd3q5R4BTIsquE1ty6oNEbaFggHQJkz3wNk+c4fVcs93mV fQ09nS3285rlfYE8ue3ePDqUcwlQzlJpAPM8UaIbqcO0bh1zY7+V6LiC0jXV5HVK/gIC lkWE6ueBVFwnp8+8xcHKunq8Wl8+DtzjVFEmp1cA8+8XoSCN5sFmSqpA/rpMaXF7BssO rnBJ7O5bKNk15TCB3U01BEo0yGzXREVW2QVPJSH33a6wb7UNy0emQRy+IMtM+ohl54g0 1Ytw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FPRx8b8m; spf=pass (google.com: domain of linux-kernel+bounces-26500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s17-20020a170906a19100b00a2a399a9bd1si4101342ejy.714.2024.01.15.13.20.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 13:20:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FPRx8b8m; spf=pass (google.com: domain of linux-kernel+bounces-26500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id D74461F22812 for ; Mon, 15 Jan 2024 21:20:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6094A1B292; Mon, 15 Jan 2024 21:20:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FPRx8b8m" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C9BB1AADF; Mon, 15 Jan 2024 21:20:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-55783b7b47aso9696823a12.0; Mon, 15 Jan 2024 13:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705353623; x=1705958423; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=39ozkC0HqQZ+Edap3Ljm8Xvwn44jjjAD+L2Y5G1YxR4=; b=FPRx8b8metkJYINl5JNHd7k+WMBSgfOrpipy4cSCnml4rlQtbxC93FMPc6hvSixIbj jpswHTUPBZoZCTPsJS3iV5S0emPcwC7sZ5IfrvrfDrosso+pPTcknMm6aKC4Nvxp7dx7 QJzVugUOg8a10aUsu17qt+ml6VBySC26OVu3WfFPidvX0XgeSolV+yJLKNwFGowxSbzf kzdrzUwtI6TIzdhj7EtSmChUb7k3G/aRaogNZfr0yirccY/pvxyZeXrgXM/xm+cK983o L2cGLRd24DtJXT+oM2sKe4D4QwNDTwBKAvHc7OIAB9dRjis8loAvEKF9XNpDDq5FD88P IHlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705353623; x=1705958423; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=39ozkC0HqQZ+Edap3Ljm8Xvwn44jjjAD+L2Y5G1YxR4=; b=OyN6yC42kTRzxAFIPCVsYruaioUsCgufHTbGfk6arZu43v6UJLvECErq0Aq9tHWj6S 39UsyspHmbry7UKod7bG+NyDWieho6dhyxV6XXiA0qF++WunOOwL82GfjSzBghbCG1sR GLysGYqSA3TiijqCFHQ0XfReO8qSdMmKh4WbolCD3tx+p2zgFM3GZOSIl6lFOD0xXNz1 QAvVH2LM2vikPOQWN1OXosuI6wCi6WIvtqWgJBkQuTEjr2dIGWIwRh3ZEWkSyIaBFxga xG9moBd8Bv/X6bfwUdCup8NVlPlax0GQMHmowtvyeoMnlVDeaJvfcU0hvJMF+SBBEnvU 1sLw== X-Gm-Message-State: AOJu0YxJEKaWIaUfneVohV/AHbUqLpfbtNHwtXLZecvA7/OTmG0cwYPD tS2EXFRvNnuIbvCO/36PTQI= X-Received: by 2002:a05:6402:b12:b0:54c:b24d:a3b6 with SMTP id bm18-20020a0564020b1200b0054cb24da3b6mr2793991edb.20.1705353623234; Mon, 15 Jan 2024 13:20:23 -0800 (PST) Received: from skbuf ([188.25.255.36]) by smtp.gmail.com with ESMTPSA id c25-20020a50d659000000b00557c51910e4sm6104974edj.85.2024.01.15.13.20.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 13:20:22 -0800 (PST) Date: Mon, 15 Jan 2024 23:20:20 +0200 From: Vladimir Oltean To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Luiz Angelo Daros de Luca , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [RFC PATCH net-next 4/8] net: dsa: mt7530: move XTAL check to mt7530_setup() Message-ID: <20240115212020.oaw3hx65feetplve@skbuf> References: <20240113102529.80371-1-arinc.unal@arinc9.com> <20240113102529.80371-5-arinc.unal@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: <20240113102529.80371-5-arinc.unal@arinc9.com> On Sat, Jan 13, 2024 at 01:25:25PM +0300, Arınç ÜNAL wrote: > 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