Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp340521lqg; Fri, 1 Mar 2024 06:50:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUogc2bAum7VKa4zwk7gFLJfzIrcGJT2tOwxRV7kVOJnG8HFAXnxAkc6iOF6xhd+ewFXCHe7uTY8kqdrv0U8et8NgXChpuHYz3AV7cDtQ== X-Google-Smtp-Source: AGHT+IFhI9/K1ihPluxdiPkpkfkJ1r16w7fnpp9cBIk3w6bXobpQRvDWP9bN+21nLys7JvEUe7NZ X-Received: by 2002:a50:cd12:0:b0:565:76b6:9206 with SMTP id z18-20020a50cd12000000b0056576b69206mr1421405edi.10.1709304613116; Fri, 01 Mar 2024 06:50:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709304613; cv=pass; d=google.com; s=arc-20160816; b=Z1sQBBVAh3k7L0NfjU74PbLk04bj7UaC0f4/P2/tnh6MRj13I76/65MopF3X48GWT3 FmaIgd3v6rZY6WFatYkwjHg59QGTh8VPM0/dJYlm08YElAM2iVMZTUA9NCNyKRYI3IcH o+wTpUq7RVSe7JrLs70XxlJlkr5Ecd8lE57t/gg4FafuyYrjYZ0lM0w/vQe+vyczLyyB jnxCbKBZZ83eaDhLa+4pI3gboqyIB2BVNZaou1H315+IS8rYd3zPFisAZQFgvWFUlp+W YVgnJPemEBZsDYWN3yhU9YmjFQvsdQeDzHcinnFVcZAej5h92WMahknjn98f+hZBAhvi +MIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=yYU2P/XionBukymtyfAivEvDMyJYX93BV07iZlCfOYE=; fh=ZiOXkw3f/uhDHfv5tnbDTBIOxdGvmj1wAueCQoHDYpU=; b=VO3PkCXu7DdsRFI4p2gD7SwbvVmBXtt/U9Yokq2E923Pz9jHcpbZppJpsKL5nSytGM 9V1jX24PyZsx8b49lKYBSWcUzXKcqOd72CMkJrQj7yZhL7QHf9ifuflQg32i8J4dGT6I FyOAxwFheB92FMXDjCSDrtOwljeWdGYgZX1LqnTwftkYcjkXmIbKlYWsa4G8G5ULKI6L 7CCOnC6STo+wTs4fvFKcy1HRVwPI1HEGv9zwyNln++DxsF/gEbu28wfv+mzLFl1tkC5D InhbRKpK3hvWxfDa0UPRRyW+kAEr/cnlpYeFDvrMXO4hJR4I4YsVC9nwHeRV3A0cxMhF W4Ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=tUADbGwv; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-88584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y7-20020a056402270700b005662a07d132si1564608edd.454.2024.03.01.06.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 06:50:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=tUADbGwv; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-88584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 AB8C31F24290 for ; Fri, 1 Mar 2024 14:50:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D42C3A8F8; Fri, 1 Mar 2024 14:50:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="tUADbGwv" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 EFAF63987D; Fri, 1 Mar 2024 14:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304604; cv=none; b=iVc/ytKW9p5rTr2wXrEsRBhF5C1KtmWXXHUTvWmPJ/V3IzUxoxYMnym/zNaFFX4TB/bHO4IoMHX2P8T5lHC9j7+fmjhBmDuQJd4ggn1gzanYSrvuQ2XKiq15a2MnklBTFRH0XS68twIyDKkzNT6xzlxIm9ZktzfKsGZ4djrYNhE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304604; c=relaxed/simple; bh=PDHQCj4dKUL8VGBu7R8FZ4rplBEM7DCMytyrNrWGZ6E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hLRvMxKTviw1P/+9mz9E8Bb197crJhihjS53rW1ry+etNeWzIb51quy7bcyfVau2rrkzQlDFih1nM8heNo9WfeXxx5t7S6cKUkiFr6Tj96OwwO5AWGEJHpjSQzgqcOSChU7wk+grGCyj9Chotpr9G3vfh22LaFravvcZBw2g17E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=tUADbGwv; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yYU2P/XionBukymtyfAivEvDMyJYX93BV07iZlCfOYE=; b=tUADbGwvT+bsqxHHRHjijlFIck /MxOPOG46qCY9h2+BenQw2uzIhrLdYBDgLxjbu8yWYH7flCOABA55iFsEg9N7dxj1gxDw59UDU9r8 tpqrWyKZV+yEY4ka3CG07cwSmMkGzDPsTgzkpHKtgWR+Y8lFiTbSGPB0p7OpjA9uwLcjTIUElDlks ja7yEhTbbw+CbXM14OppCextPo810gFu2NaEQ4z/wCi/q2sXlu6fcoA+6HJjhcx78eVS5akivlXgA zxJ8PntBaP2UA2YMn5sWKulvyHNYylCYIl7lcOiwUkvMT+PrbAOxz2jt8n+ke4U0TaQWDMmgriaer 3WJOsdqA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:49086) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rg4Cj-0001iq-1A; Fri, 01 Mar 2024 14:49:41 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rg4Cc-0001p9-1m; Fri, 01 Mar 2024 14:49:34 +0000 Date: Fri, 1 Mar 2024 14:49:33 +0000 From: "Russell King (Oracle)" To: arinc.unal@arinc9.com 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 Subject: Re: [PATCH net-next v3 1/9] net: dsa: mt7530: remove .mac_port_config for MT7988 and make it optional Message-ID: References: <20240301-for-netnext-mt7530-improvements-3-v3-0-449f4f166454@arinc9.com> <20240301-for-netnext-mt7530-improvements-3-v3-1-449f4f166454@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: <20240301-for-netnext-mt7530-improvements-3-v3-1-449f4f166454@arinc9.com> Sender: Russell King (Oracle) On Fri, Mar 01, 2024 at 12:42:57PM +0200, Arınç ÜNAL via B4 Relay wrote: > From: Arınç ÜNAL > > For the switch on the MT7988 SoC, the mac_port_config member for ID_MT7988 > in mt753x_table is not needed as the interfaces of all MACs are already > handled on mt7988_mac_port_get_caps(). > > Therefore, remove the mac_port_config member from ID_MT7988 in > mt753x_table. Before calling priv->info->mac_port_config(), if there's no > mac_port_config member in mt753x_table, exit mt753x_mac_config() > successfully. > > Remove calling priv->info->mac_port_config() from the sanity check as the > sanity check requires a pointer to a mac_port_config function to be > non-NULL. This will fail for MT7988 as mac_port_config won't be a member of > its info table. > > Co-developed-by: Daniel Golle > Signed-off-by: Daniel Golle > Signed-off-by: Arınç ÜNAL > Reviewed-by: Vladimir Oltean Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!