Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp774874rdb; Fri, 2 Feb 2024 03:52:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzXJTuV9+k4qw7u2TARW8Wf5Es3AUgQqvuMFjxEJcTxUM1/mH6MK7JXGufvcqB5sawzjYX X-Received: by 2002:a05:6402:1767:b0:55f:2958:8a84 with SMTP id da7-20020a056402176700b0055f29588a84mr5729565edb.7.1706874763222; Fri, 02 Feb 2024 03:52:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706874763; cv=pass; d=google.com; s=arc-20160816; b=bS36vmTg/4HpT7vdNCKIvSQHrbjYwiGmARvq8YJXrWw8nRTIJ7ClUX1RLZiF0VFs6n lKdKprZ+1oODk0aRiQdG873zkGBgTlUCUdrxp8cUvBoypbzj3RRF2ZMNfP2X+Ni+a/vF dkKOT8sp06qdhFMbyi2Y85aA3g+aBZ8T3LTJ6Ly/1IrB2sLgZz2FPCDRypx4K8W9yDd4 hC9pP1zxI2dMHqrV4C6iyjKYKnqrgu9QKX/u5ewYS1l9yNT0UTN82yZsjO6JLiKLSQAE FnMeEu48Xst67WfQxMwNg+FE2jFun9kYVJxR4IdVTWTDHbTlGGQby3+X6s8665VhPyBX lvvA== 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=bdMRNfuOlYWXCZSbX3qtLpZ6mLae9pQYUL0x6nsWQvA=; fh=+8FPp+HUTUUE/CTFe4Bpjw/q2Z/6ucnmUkx2gVYEn8k=; b=n4ysJjdNrvEdkyLwIGORwX5DDBGjNrrO04RYUyABLvNAAvr5sy0RswQzK7jBPsV7qB iDLncLViel+ZbF5RCRH7jw3UflILS5+IwRyprFRhErMYydJ2yrOcftRsq5oiotnOKZSk WhelrSPfMXBzI1BR2kOS9tRgdRvuwbzvjKunr15ma//2jEY57IzgD0YDQSfGY/hM/jFQ 6rx062z2v9jESc0ZtGk9X8dKAf8ng6lmZ/ymu0PCb3aWwErXbHIxDMcGyu+p2uxddSp0 fQ7/ZUrj2elX609qOCFpdUjEJZzJbnFt/btyYpYbYnPj5kx0Kg+VmDtY5SV1u3jU+Urq ZWdA==; 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=aj0xf2f5; 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-49794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk X-Forwarded-Encrypted: i=1; AJvYcCWuPc4+ZLnF5zG55m3+Z7QcLJa5qBA+qRF+h7OZ1QiLe7EgoEs2oQSH4iiXzjOkb+13DbAxaWVf1MuY/jRc7Tk56rAAc/q0JRmlBEJMDg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n6-20020a5099c6000000b0055f63fceaffsi678167edb.692.2024.02.02.03.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 03:52:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49794-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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=aj0xf2f5; 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-49794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49794-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 BE8A11F249C0 for ; Fri, 2 Feb 2024 11:52:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B87818057; Fri, 2 Feb 2024 11:52:25 +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="aj0xf2f5" 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 C4DC113D4F7; Fri, 2 Feb 2024 11:52:22 +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=1706874744; cv=none; b=Y4wIAfRpFoGjzybxKWhssmDN19kwji4V3dM8G8mMuS0RgIrGy03lus/8KC9nSoTUMUB0tqC2LznZXaiA4IX7gYYqijfSol1iwN5o+XMQ5iCdHCJXWcQVKeBNupKRPVHgEzghvWqK5abawmtyKiPc01gtS+z6V8TQX9nxgKzCJVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706874744; c=relaxed/simple; bh=WWpj7IIOmpVjFPX3K3o71FGW0pD4t4+22/QypjCBsEM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W1cT47qZDd2NSSvkDarK4mLCnpspKXCVsttG/l8rS3JpK0zGzGeCAxC57WnHJ2nERqzH/R+2lMZwc+fRRl94OtfJdJGXnsRA4/SlLqYR85p7r34SzFARRi/q5iuNuQtFpFbPha46c0gE2rSyTSfLGlFig+pDnuW6Lql07uQ57cQ= 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=aj0xf2f5; 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=bdMRNfuOlYWXCZSbX3qtLpZ6mLae9pQYUL0x6nsWQvA=; b=aj0xf2f5Jf2gkGwMowWngx4HiC veb5AYlQO/gjHSyzr2p8XpEQgkWsB0lsh3TM5rAP/Mpdht38o6EWIGmXnsUz/PqYitIR5wzPJAEbC toUWEczWTq0ZuJqe2A7aqJ3i16YHPbXjue1LuKpi5i+F4ob58eYNaoO1QzEsmJuFHu46xx3BVAHv6 DmF9DdS6Pa26OxbI131SJYNL0nCcWks/SWrdJv4J5wFc3jtLYlk6bdwiR3LtHvG0gc8MiNaorp+n7 /ehLDkav139ssUKFj79VIyRJwYmGjvVrVHM5mdAPsc4R7e6t9dMKIJU4m5Y2LKkJMHzL1E8GfQYET JG72R3CQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34052) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rVs5d-0005vu-2u; Fri, 02 Feb 2024 11:52:13 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rVs5b-0008IR-Tm; Fri, 02 Feb 2024 11:52:11 +0000 Date: Fri, 2 Feb 2024 11:52:11 +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 7/7] net: dsa: mt7530: do not clear config->supported_interfaces Message-ID: References: <20240202-for-netnext-mt7530-improvements-2-v3-0-63d5adae99ca@arinc9.com> <20240202-for-netnext-mt7530-improvements-2-v3-7-63d5adae99ca@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: <20240202-for-netnext-mt7530-improvements-2-v3-7-63d5adae99ca@arinc9.com> Sender: Russell King (Oracle) On Fri, Feb 02, 2024 at 12:19:13PM +0300, Arınç ÜNAL via B4 Relay wrote: > From: Arınç ÜNAL > > There's no need to clear the config->supported_interfaces bitmap before > reporting the supported interfaces as all bits in the bitmap will already > be initialized to zero when the phylink_config structure is allocated. The > "config" pointer points to &dp->phylink_config, and "dp" is allocated by > dsa_port_touch() with kzalloc(), so all its fields are filled with zeroes. > > There's no code that would change the bitmap beforehand. Remove it. > > Signed-off-by: Arınç ÜNAL > Acked-by: Daniel Golle > 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!