Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp960401rdd; Wed, 10 Jan 2024 04:55:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpXT8hSt+bq8zJZk3fCuw1mv8kV1gMsdiSBxS7krf0ymcb34BuWwu1CqSry3jmTIJCYjcK X-Received: by 2002:a05:620a:8019:b0:783:2c63:1aea with SMTP id ee25-20020a05620a801900b007832c631aeamr1230157qkb.75.1704891321491; Wed, 10 Jan 2024 04:55:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704891321; cv=none; d=google.com; s=arc-20160816; b=VBKEa1RsPM1MCQQ78C98uCvYl3u+RWlTFsu9S0tQM8FYgwjTa9CotAU8FIB73NkGze hMb7+1CiNGCFAiS1UQViSy6QVyYv6CXTTF/AFR+pRkVE6X8E5w9tUsk62lA5ySFPUN45 mGRNOnq4hbzlAcENi0IoSJW/cRmTK6xotf3qd4XhkRSV3LMWu+qZnpGa7ePn9iNp4xo0 BLHicjhI5HxLRQ9xXI08k1NFaewaX9duoh5GpnaQPRxwzGvEeUr4hbNaWfzwEk1qcbPZ CS50acmd/XizTaGMZ6fHpFDqrPBWps/elLozrSesxN+ShkGtPk7O6E+SxhNuVNEtGWmK nabA== 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=VEkkil1zZlhRxW/f5CsafccoQmi3OgmswHeRFWCblTU=; fh=D/uI+j0sp6b+oUeyUb4cENanu3grYlwuXAi8ENJFdo8=; b=FaucQZuY02LvHqY8N+mwjMCg2Q8jIEqALgGAWdXUO5RTCd6ofmU1rMVqNKrEJ98Yi1 jk8AwzQ2dxJ5+4bgDAvSVsiXjVCVKu1r1o4IYImi0F7/OMLSxVlRGBD0eFZj6FfAeWcF vEv1cPdnLvNisz8ZZZ37PZyK9mQQYBYGYLtSqH/lsfIAmkt84en8TmctDvTCuCG4NPog KzejtNWYzhAV9a8q1fCkkHRgXTdb6NLiHj6lSWpJksr+BXzxKHdHDPxMOzS8qWONsV9e z5lYl1kpqdovTEYnXGNpPy42EIAiuJutQCRHsACFoNIE85mouBYZAfbGpjhkxVDdUohk 52hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fUn8qYiD; spf=pass (google.com: domain of linux-kernel+bounces-22197-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id sq22-20020a05620a4ad600b0077f017ae9fesi3860218qkn.529.2024.01.10.04.55.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 04:55:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22197-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=@kernel.org header.s=k20201202 header.b=fUn8qYiD; spf=pass (google.com: domain of linux-kernel+bounces-22197-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 40B311C25ADD for ; Wed, 10 Jan 2024 12:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E912B487A9; Wed, 10 Jan 2024 12:55:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fUn8qYiD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1F6E248791; Wed, 10 Jan 2024 12:54:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 952CCC433C7; Wed, 10 Jan 2024 12:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704891299; bh=5n8+CXGpbcg2EukFcN9GH3kiPhkvu8XAbFD9ugJEqO8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fUn8qYiDRQ8oiPkJuPpQGjABUZmMKQm5uuNqcRgXABYS9zK6SKk2So3nWtvKabFUw PFJL5c1GtM6OUk5DE/Rqd7Sv9540B4JfPQZ7jSDewrSvMBZFwesnBjdY5Ay90Nj+9C pqX21jHByezFcQ3De9rleGzR5Iz5ealyfNCJViQ8M/c3ClvH1IZBjvX9UWy1g4095V rYjdpHJu4lMZClINUPhxpvvpHxRd3CvzpfFHtEtcn/9thYEB75QyuESqml3YArYeZQ FTJBDXR7iqwp6Sjl5xP+n+QZ0FdGQFk9z5R2t1rweUBYff5L16HeZY2Df+/Jn7Yl4l gT3KzSR2QX7tw== Date: Wed, 10 Jan 2024 12:54:54 +0000 From: Lee Jones To: Christian Marangi Cc: Pavel Machek , Marek =?iso-8859-1?Q?Beh=FAn?= , Jakub Kicinski , Andrew Lunn , Daniel Golle , "David S. Miller" , Li Zetao , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v6 1/2] leds: trigger: netdev: display only supported link speed attribute Message-ID: <20240110125454.GI7948@google.com> References: <20231221171125.1732-1-ansuelsmth@gmail.com> <659e8adc.5d0a0220.a73cd.069f@mx.google.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: <659e8adc.5d0a0220.a73cd.069f@mx.google.com> On Wed, 10 Jan 2024, Christian Marangi wrote: > On Thu, Dec 21, 2023 at 06:11:24PM +0100, Christian Marangi wrote: > > With the addition of more link speed mode to the netdev trigger, it was > > pointed out that there may be a problem with bloating the attribute list > > with modes that won't ever be supported by the trigger as the attached > > device name doesn't support them. > > > > To clear and address this problem, change the logic where these > > additional trigger modes are listed. > > > > Since the netdev trigger REQUIRE a device name to be set, attach to the > > device name change function additional logic to parse the supported link > > speed modes using ethtool APIs and show only the supported link speed > > modes attribute. > > > > Link speed attribute are refreshed on device_name set and on > > NETDEV_CHANGE events. > > > > This only apply to the link speed modes and every other mode is still > > provided by default. > > > > Signed-off-by: Christian Marangi > > Reviewed-by: Marek Behún > > Any news for this? Not yet. It's on the list. Holidays, merge window, etc. -- Lee Jones [李琼斯]