Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp98975rdb; Mon, 15 Jan 2024 13:46:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5A9R/EgmKhINF9fIcii5wH/rU0IB7mBOMxdEpF+FU0gotQgvt+Gjv+ZVvbvmLBTXYaPIp X-Received: by 2002:ad4:5946:0:b0:681:553c:fc4 with SMTP id eo6-20020ad45946000000b00681553c0fc4mr3793491qvb.51.1705355205431; Mon, 15 Jan 2024 13:46:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705355205; cv=none; d=google.com; s=arc-20160816; b=TMJESDWBEVnGzdwVicIm89PxS7WcpBhA46XS5uCljyw7CqNRRSEg8lkWbWGcnljc5C r5EPG6QG2xK3mrfEAbs2BoYd9DI1f/xaGm7NWBaCfgWHVVdt0ZjWV5kt87wYjh5D+Cg8 jUGea6nOs0BIrAH9iiTOQWvnh4T7KS2bKK6CpYWOvbdGonoGaWtOHNQIM3FpmR676blK ZgIy+Z5T9JEOjfBuDReeOQEHsUg1jqk9jK1uN7c2EHFprCNU598ynRhnW6X3i9aGZgiX GJbVTc4uicmSATAe3oasBzCMCW8GMmNGYko+dkwE6oTyL8CCm9bv13Ci32kcWWU01h9e c/cQ== 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=xLysBvDenEQ28MTHoWPLscX8SqHGcwin+UvlB8fQgMk=; fh=TxtO085Vvl1Stqb1qu12a1LJh3T3X6ktDkPRVfZfkrM=; b=VOnR8eRgsUTgQdevrJxBf8MpSBzcQXckVtGzFsji3ISAwqX75zyUAWf99Ved/GnlfP JjY4Ufud1Gbxm1xT++FqneWEvfQysCqXTIWp0oqmGDpYBT/LxTZ8ywpo8pO/rt6qyRYB XQMIWjtdPs+2vM/BbDx9rxZAxaxxm62Ut0rKAQ8Rs8TWYJkRntZ2+cGN0LKQ1rBCFfPp 9013sOE8Rh1W/uXv+XG21ZCBMKUSLFwnHlhCcDIjQdJ7Wy12j/e+6Xt47v6O2LQzjXf8 kjt2j2K5TyJ/GZjxlMUjtdIUYJ/1toXIEcHwdO7GZbrUubG7JQMOceBf9jpaxdNkDjXf qPuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X5ufXqjY; spf=pass (google.com: domain of linux-kernel+bounces-26510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26510-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y5-20020a0cc545000000b0068061339977si8588894qvi.241.2024.01.15.13.46.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 13:46:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X5ufXqjY; spf=pass (google.com: domain of linux-kernel+bounces-26510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26510-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 339A01C22286 for ; Mon, 15 Jan 2024 21:46:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFB7D1B29F; Mon, 15 Jan 2024 21:46:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X5ufXqjY" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 A611C1AADB; Mon, 15 Jan 2024 21:46:34 +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-ej1-f47.google.com with SMTP id a640c23a62f3a-a2821884a09so775981566b.2; Mon, 15 Jan 2024 13:46:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705355193; x=1705959993; 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=xLysBvDenEQ28MTHoWPLscX8SqHGcwin+UvlB8fQgMk=; b=X5ufXqjYFSZUHSyv9RMVhRfVF5boMLQesIpMjsadw1jdrwelsncVPUG99VaPFfSmhg ymmR4rRp8FaemgHiKJ6MZ6S1d0hxBw8yUyXUycnGVe70vnxGu+rbl6mXtEJmuZ2p5WzG /Boh9qb+zE8linr0+pGTpAm/twh7xxL7J7dZ5POfsA2vTzJ3YLgIlK7qL+VKB9W/9CU4 pruWlNPXjWWXFF7xZEp6DO/QR9kLx66T6k6PsMF0RjRIr/gpRIknzwyY5sQqAQOTlh4L 4wK736dI+CKdubSWX2qYQBrVf+15tf0GmSMhHenRIiq5eWniTRnXzRXevsdSVIi3VpG2 2wzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705355193; x=1705959993; 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=xLysBvDenEQ28MTHoWPLscX8SqHGcwin+UvlB8fQgMk=; b=TRihfy+ZPL6bw+EdgYbNZV5uwV2B72KRYeNeWeqwL5qfIQPXT2cnkzPE1LworcqL/5 bT+uCEpF6nRo0TXo+j+FEejVrf2x85avy5k1xsck+lqbcEuEbYQ9Ez7g4CCSQlpXNqLY A+j5YAlH+4xnt2AvLpuo0oOrVZ+OMb4+Mneeyb1gsZ7wfj7Oh5E1uxiOQY7oTNM6xNb/ mbmmuo6dfO+I2oe+S1O4cFi6NxDgwHqFaRoO+1eMrz+dKV2Osf8b8Rp1a0azLNsjKM5W vvwfrDa0USW8cyKbWPK+oEhuBXlpKnYbBaV5XjfyjmDYFfd5iFluuM1asqJYY/+m8PE2 ZsXQ== X-Gm-Message-State: AOJu0Yzrm6wC1sR4/QGehklZcwokSIiY3JMujSPOBulBhIL9Mc36Khrx /qbgiImZX//CFbJ/5g8dFZQ= X-Received: by 2002:a17:907:a689:b0:a2c:e323:b71 with SMTP id vv9-20020a170907a68900b00a2ce3230b71mr2737988ejc.0.1705355192600; Mon, 15 Jan 2024 13:46:32 -0800 (PST) Received: from skbuf ([188.25.255.36]) by smtp.gmail.com with ESMTPSA id gw7-20020a170906f14700b00a27741ca951sm5678924ejb.108.2024.01.15.13.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 13:46:32 -0800 (PST) Date: Mon, 15 Jan 2024 23:46:29 +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 8/8] net: dsa: mt7530: do not clear config->supported_interfaces Message-ID: <20240115214629.ncdzoaawmw4gi7rk@skbuf> References: <20240113102529.80371-1-arinc.unal@arinc9.com> <20240113102529.80371-9-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-9-arinc.unal@arinc9.com> On Sat, Jan 13, 2024 at 01:25:29PM +0300, Arınç ÜNAL wrote: > 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. > There's no code that would change the bitmap beforehand. Remove it. > > Signed-off-by: Arınç ÜNAL > Acked-by: Daniel Golle > --- Yes, 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. Reviewed-by: Vladimir Oltean