Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1727546pxj; Wed, 19 May 2021 12:27:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuvORd3mORayfnrKgeSwmfFuHedVdcqcm9Da63mj0gt8pfOfAVb9gmAjXrcvJKMXt3D+aA X-Received: by 2002:a5d:9842:: with SMTP id p2mr1168436ios.132.1621452424525; Wed, 19 May 2021 12:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452424; cv=none; d=google.com; s=arc-20160816; b=0an2QT2CX2ylhwpv6iG+W/K3VwWuky2H404tciF2WjF375hMAoZWWFxHGpMpq5Rf3t IZl/q16dSRpQLqepPCCoLniSUUYLWy2jHLfBxBweX/v10VuF3bVruBajY/QGOChDYO18 ZGXRoHezVUD+S80y4LNDys+VoV8wlPS22w5S72pLPsg9QAW+7beZrujswRhVt2fBr/1U +Hzu13adA4vrbMiBJdXFIkwARlHLzu99S6s0S3ittgvuVlhrF94TSy2nrd2zkOi3r/de UX/wAFqTf6bF2Y0nQRHgh70g3exZK/3vy+4Npr+HtlneIwYSX+L3QOW14V4sKpMczBcQ OwIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=4czM9EYWeLrdCcBbSESA/iLnLGU3ZjPNgJ15BIIYftQ=; b=VwQGvh484ncWc8dhSkyNYZ/Cy/Bk9hWDbxbYsVgDlcgn1YrHWy2JmmzIBoZEHsat3S l075pz0h2iizOpBUuYL2N/mP74omdpWmzg22fUGwcPYNB69FXbsTetyIYTsC/xg5smz5 eifS7hLAeQd+GQgnegyA2lVHuUeMe3WQfAS8Jx7CRSCKg7VfCSkg8ASCiQVu7OiFM0xg DzkBISq7rQditPqJ4BIRzw3cyGUjs8O2OX8rfHRx4yL71QYZn6/+AHVRlX25+mPawqFf duGX0HweTl9cYQpEREalWkGm74d7ATvz1nhpEPQ/4nwg0WGdqDM96ot9Srd06jY/Do7s /rqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I3ULXtV0; 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 c1si195125jal.96.2021.05.19.12.26.51; Wed, 19 May 2021 12:27:04 -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=k20201202 header.b=I3ULXtV0; 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 S1347789AbhESKTn (ORCPT + 99 others); Wed, 19 May 2021 06:19:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:35054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347871AbhESKTh (ORCPT ); Wed, 19 May 2021 06:19:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C549E61244; Wed, 19 May 2021 10:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621419498; bh=4czM9EYWeLrdCcBbSESA/iLnLGU3ZjPNgJ15BIIYftQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=I3ULXtV0frIXd+jbldhclcCbCjpHhBkpbkewONFQKZXGGIYosRiuIe1Aq+v5xGExw sSfsiqTwa3Xpxsof71XapkzyE/EyItT2SyaI+Y726f67/A+MB3SrC7gmxLdpQfP/dt Jv2OdHDjJvyuchD3xx3l24J7XRwpVvRTLHqQqcoEyZEPB3Ts+H4i/mHFyvQxMCJxRY RAO5aXeie/LVYSvON7mB5YvMDwFGEv2WhMkFBztNJbgmeCeFuaV0q85t8mola1egR7 LnLp5Ykth1NaHhz9gQGaiB1w5vvuvXd2ZLzChi1sQpbpl6ZwJmZND+rN+hxgpoKOTi +2q8byeQ2iyxg== Date: Wed, 19 May 2021 12:18:12 +0200 From: Mauro Carvalho Chehab To: Marek =?UTF-8?B?QmVow7pu?= Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Pavel Machek , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v2 16/17] leds: leds-nuc: add support for changing the ethernet type indicator Message-ID: <20210519121812.4285b3ea@coco.lan> In-Reply-To: <20210519100253.49b155e9@thinkpad> References: <792598f4a1a3219b6517057c92559b0f0a95b419.1621349814.git.mchehab+huawei@kernel.org> <20210519100253.49b155e9@thinkpad> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 19 May 2021 10:02:53 +0200 Marek Beh=C3=BAn escreveu: > What possible configurations does this support? >=20 > Does this blink on rx/tx activity for a specific ethernet port? >=20 When the indicator is set to monitor Ethernet, it can work on either LAN1, LAN2 or both LAN interfaces. > There is a work in progress to add support for transparent offloading of > LED triggers, with the netdev trigger being the first target. >=20 > This means that after that is done, you could implement this driver so > that when netdev trigger is enabled on a supported interface, your > driver will offload the blinking to the HW. On NUC leds, this is already offloaded to HW/firmware.=20 All it takes is to tell the BIOS via ACPI/WMI what LED will be used for monitoring the Ethernet activity, and on what port(s). =20 > This should probably also work for HDD activity, but this would need a > blockdev trigger first... HDD activity is also HW/firmware monitored. The only thing the Kernel needs to to is to select what LED will be set as the HDD activity indicator. Thanks, Mauro