Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3176596pxa; Tue, 18 Aug 2020 08:27:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztGEkXFlYTuq7By9aYZ/RT3lg2Rje0fauFYaBbWZ4iPRY4INdasJyVkx8d18CW1HxD6Og6 X-Received: by 2002:a17:906:2c43:: with SMTP id f3mr20154825ejh.502.1597764441473; Tue, 18 Aug 2020 08:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597764441; cv=none; d=google.com; s=arc-20160816; b=frTA/wdeLeW7158fa9lqIWnSYR/Sy3FSQa1teJCiNJ+MYze3sExkcAGGg4dElivZiX eKs3XX0L8bFdFvxnzeuTxsPwVZMiWjI2eQ0A+a6zoucYFjzwFkNCiuE0963UWn/+8c3v nfmk4i4MDj083AOz8d3kwYmFru1AzaI5zJZKMJ54peP0nKcroYAZ9mSpa8PidYLlgLad 8UnNXQrtNbwx06FPWZoQejleTWuPOenRhEuvPtd9qfFooxCjeV9GS+dYH1pFiLPcopVR BuUHwCQSVvTaGkTsbaBEbY0e6LjezJzBzXRUhe6HxsjZGu+BB+WjGYv98e0GrNi+5rrV b4qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ua73y3U8vEV0F7la5yZgBPCx2lyRcg7/uV8zRWFh/DE=; b=yCkCZkOcW36J2KrTRxDtUIY2pAq/KPJ2NYOUz/ii2GmG1sgn+OjqDpRDXlmHV9aDd2 yczeqwPWdXQ6u7ZVboDeYZpnC/uqt+nx/h5WUPCB2hg8278JYck1fFXSzwoAYNv+NMSH kCOVSdNg32PBJiMmE5GxwjmiFUOSIFqbY7ZUIMovleRFp6IO1vOSvsxIUNM5GJrjxShy 7LevdgrBli5Mge47Ue4f1Fg/QEjmrsWgJWBNMgGKma2+mT1wVq+rdBKX/0lG7fyOUyCC F+fLBGQ+pItvGjUHOdKpQd+pS4R+RLJORMijfBRht1R/Pm9cptRdwmVnHfGHlW5PhMVd +x4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zXJGw6+4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn21si13117087edb.207.2020.08.18.08.26.57; Tue, 18 Aug 2020 08:27:21 -0700 (PDT) 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=@kernel.org header.s=default header.b=zXJGw6+4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727980AbgHRPX4 (ORCPT + 99 others); Tue, 18 Aug 2020 11:23:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:49288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726630AbgHRPXu (ORCPT ); Tue, 18 Aug 2020 11:23:50 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F2DF5206DA; Tue, 18 Aug 2020 15:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597764229; bh=HpQrw3dSRuULmu7pAjgDli/38IUo+15Aerb5BtWgGbk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zXJGw6+41RMiXqsi8HA1lcWAoe+ELCgZ+17PvoyKTcUMnCSfLrCqiTnRF7HlVDJx8 Fkmv01FEVd4DxYxtfM35x8srBSm73NzP0cIc225181ZGgDcujUtT8OJpY61N0gx2Ft UuhvzcaHhJLMEIC1K6oh5TaKhBgDMaqEuVCdSoGE= Date: Tue, 18 Aug 2020 08:23:47 -0700 From: Jakub Kicinski To: Landen Chao Cc: , , , , , , , , , , , , , , Subject: Re: [PATCH net-next v2 5/7] net: dsa: mt7530: Add the support of MT7531 switch Message-ID: <20200818082347.353fe926@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Aug 2020 15:14:10 +0800 Landen Chao wrote: > Add new support for MT7531: >=20 > MT7531 is the next generation of MT7530. It is also a 7-ports switch with > 5 giga embedded phys, 2 cpu ports, and the same MAC logic of MT7530. Cpu > port 6 only supports SGMII interface. Cpu port 5 supports either RGMII > or SGMII in different HW sku. Due to SGMII interface support, pll, and > pad setting are different from MT7530. This patch adds different initial > setting, and SGMII phylink handlers of MT7531. >=20 > MT7531 SGMII interface can be configured in following mode: > - 'SGMII AN mode' with in-band negotiation capability > which is compatible with PHY_INTERFACE_MODE_SGMII. > - 'SGMII force mode' without in-bnad negotiation > which is compatible with 10B/8B encoding of > PHY_INTERFACE_MODE_1000BASEX with fixed full-duplex and fixed pause. > - 2.5 times faster clocked 'SGMII force mode' without in-bnad negotiation > which is compatible with 10B/8B encoding of > PHY_INTERFACE_MODE_2500BASEX with fixed full-duplex and fixed pause. >=20 > Signed-off-by: Landen Chao > Signed-off-by: Sean Wang Please fix these W=3D1 warnings: ../drivers/net/dsa/mt7530.c:1976:1: warning: no previous prototype for =E2= =80=98mt7531_sgmii_link_up_force=E2=80=99 [-Wmissing-prototypes] 1976 | mt7531_sgmii_link_up_force(struct dsa_switch *ds, int port, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/mt7530.c:2081:6: warning: no previous prototype for =E2= =80=98mt7531_sgmii_restart_an=E2=80=99 [-Wmissing-prototypes] 2081 | void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/mt7530.c:1976:1: warning: symbol 'mt7531_sgmii_link_up_f= orce' was not declared. Should it be static? ../drivers/net/dsa/mt7530.c:2081:6: warning: symbol 'mt7531_sgmii_restart_a= n' was not declared. Should it be static?