Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1214221lqj; Mon, 3 Jun 2024 13:56:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6K+TpAd60XfHbeZDgp0/65Nlb0dVHLPAssOzlS9s7W2bbzw3Oe3zPU3Lfw/vmfCrTqaO9/BiMziR9KrL5rC2F6y339q1kyNCJTxCMFQ== X-Google-Smtp-Source: AGHT+IH0nhACFKlNPy7CUk+JDCq6lgzap7fLu7kzLICCS1Kbn/dAV/Dulf6uYf/cNYmpQc/HdaG+ X-Received: by 2002:a05:6808:6091:b0:3c5:f62a:435 with SMTP id 5614622812f47-3d1e35c40fbmr8922012b6e.48.1717448206205; Mon, 03 Jun 2024 13:56:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717448206; cv=pass; d=google.com; s=arc-20160816; b=TsE0rg3eyZcCJhbuW0WPLp6Y80d0MOoBSbd3flMsDoJ3z3A3CB0nin5XuoZQD5liRQ cYffF6B9CNAkTWkVSHeS/0uXrz+cD6rzMm1s5g5tsDyw+MZQpaB4VA+ZO16uCpYH7K/y FRuZykG6M9HcFiE6mHIhdovX+iZ2sji7Z6V5Ejn8aJzKpRQ7NAW97HovfW240c8XJhgr KYyR2CfDRNVJXvkjK7kp1WtiZ/2wlrJvz6k/TPA0TjSCtRm4ly0CLig+sqDz1/+2tQ8V rw6laf9OYL+GtHDQ0kqU/d9Z16aNicjdXjkxcVDf4W1ZF3DEVQTNZ7P6dzGJPwqToukn 99ZQ== ARC-Message-Signature: i=2; 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=soP+TSieqwSVIIc1Sr5MXowVRzJRQWsb5Ag6+muCufo=; fh=lxgDGtX9wCUz49rsZqSOCTnhY09R2d5dcJcPmqdWSZg=; b=NA18ZBT5bEwZRYSyOsYj8TKtO3K4BUYaiUybFnrlynryikYkvMgFYL+FfoxzUPy/49 dViE4m6n7HX8e6ACUotDailvQ3bzxpQHtR9OXRgN9VUSQE+QW2g1yKOkgRG9fYloEI1C PsWfmN/rSJjJhxi3FuIkeQ0wKsU2Oo67ScXTlOz1/fUKi7HHsSmFx+Uo9ZzYV+mQMFAX luGGFTRK9pTYPHvqdLgDFB1IYpDOfYiM8gHAMIM1e/zCyAL7Vwb33GdGtAfdmb8use/c FfkKQ6thHKF6uYv0mPR6Rlb30o0nNGhhvKp6bmoSjLUegDGGFLNkNJFBMUidXdPoXRYy NQWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="R/a8Gh6a"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-199704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b416ad3si10828266d6.398.2024.06.03.13.56.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 13:56:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199704-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=@weissschuh.net header.s=mail header.b="R/a8Gh6a"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-199704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net 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 CD1C01C222BA for ; Mon, 3 Jun 2024 20:56:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E16C113B596; Mon, 3 Jun 2024 20:56:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="R/a8Gh6a" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 66AC946436; Mon, 3 Jun 2024 20:56:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717448199; cv=none; b=VmcUL1pqjt1LgoEhdLOgXrI6jFwAZX+SZyRTaLLdk4TwD4ofr/xS1XWnwPwRGomq2GWtG/ylB/j3Nt0LjSNEeSQvh06wcZfdrOyaDhFiGxCPwpZ7V6kDXUJppK3luWwb2quWthjmhIBBo2Hz1mhQWwBgCO5cOzBFmdtVgf+ycSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717448199; c=relaxed/simple; bh=o8F6VoifI7A0oMK0yqKqCVn++NY/J+kNIIIvqg51Pio=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hUGFsBXUW27Ho5CUmQm/2zbTr2mL5lWtg+Q8tnMEfEbeezhicz4BZwqP+r72En5v7zThDwlBVWhAyy9tQ0oEewSS6udzQ2hahqjgkOhwJ7m5D0FI6/Ee2MaVJ26XS7py5EYgvXuT7pE4XpwIIxaMc/N1H1uOQTXe/aqlA3IvuR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=R/a8Gh6a; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1717448187; bh=o8F6VoifI7A0oMK0yqKqCVn++NY/J+kNIIIvqg51Pio=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R/a8Gh6adcU4G+Fdat0sLVBLpH4mqMpmnLWoXuSeRJrYRQtEDSzU1K5Oz4GOAzScK vI0quijbumGkVHW3gUV09hAXu12jdm825r5h4rPkoYJQdo2lgIoOauUhJ2xVTYxOfc k9MEaHMbGkP+KoS4AqTzuijgcBV3dIQqdABgpW6c= Date: Mon, 3 Jun 2024 22:56:26 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Dustin Howett Cc: Pavel Machek , Lee Jones , Benson Leung , Guenter Roeck , Tzung-Bi Shih , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, Mario Limonciello Subject: Re: [PATCH v2 0/5] ChromeOS Embedded Controller LED driver Message-ID: <264dd508-93c5-48d6-ac69-27458acd29c5@t-8ch.de> References: <20240531-cros_ec-led-v2-0-6cc34408b40d@weissschuh.net> 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: On 2024-06-02 18:30:06+0000, Dustin Howett wrote: > On Fri, May 31, 2024 at 11:33 AM Thomas Weißschuh wrote: > > > > Add a LED driver that supports the LED devices exposed by the > > ChromeOS Embedded Controller. > > I've tested this out on the Framework Laptop 13, 11th gen intel core > and AMD Ryzen 7040 editions. > > It works fairly well! I found a couple minor issues in day-to-day use: Thanks! > - Restoring the trigger to chromeos-auto does not always put the EC > back in control, e.g. the side lights no longer return to reporting > charge status. > I believe this happens when you move from any trigger except "none" > to chromeos-auto, without first setting "none". Thanks for the report, I'll investigate that. > - The multicolor intensities report 6x 100 by default; if you set the > brightness with the intensities set as such, it becomes only red. I > would have > expected intensities of 100 0 0 0 0 0 if that were the case The EC will always use the first nonzero intensity for the color channel. It isn't a real PWM color mix. I don't think there are possibilities in the multicolor API to enforce this. For the next revision I'll need to document this properly. Also the default intensities could be better indeed. > Thomas, I apologize for the duplicate message; my mail client config > here defaults to "reply" rather than "reply all." No worries!