Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp744060ybm; Fri, 29 May 2020 11:06:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypdJo/n2PpNdmtL8MA2TEZYb7BYOCnQ9PLVwKvMr/+7OJ/lJrWCUIfBUYEFGoi4d1yshd4 X-Received: by 2002:a05:6402:7ca:: with SMTP id u10mr9288045edy.322.1590775569759; Fri, 29 May 2020 11:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590775569; cv=none; d=google.com; s=arc-20160816; b=s4/ZPtWUuMH9Qr/OalD98g1oOU61mUBopPXtuDeSwekbq+uX0iQzKaodZmoLeZCcLB jlMJxu23lQbHXieoXm6TWF7PmJCjvFr2ycFHs34E6oRBQWGssDkQc6gvadWuuDS40Jen 2KDMzAha4IZntjwA82do8shWM2uJUvBAJLEE+84SMTE1/v1Os0AF/TuumHTTmCRgyYSU EEXniUyr6J2/jt8GhZGVuTxheGZc8kPRgHZz/K3YrqyMyqKPTIF1Bsql5+3kLVaUJRDN eX925YJ6th/muDyQ2yXbbA2UHtESv44hUi6TjE+qyIrEaG4KyFjZ5rRwxuI+Jd6x/xpF np/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=lXhM8fplujPABuddmfgLX5acQV4WgwgoRAjwpPuROpY=; b=MLtohO6k8TtU1dsNnXNyS8BdW0zQ+lfMf2FqJNCUOXgBPzp9IafiY1LafITiubetRz JPIAZY7cx4Rzgb7BuhQoI11m3/6cn2kmFtgA/0p1lWtmh4+GG579haZ2gqpzka641yAf 89OraLsYcvi6AgLKrHg/QN0V86QNrM3FPY3c4lDPd9+CjtC34CuQ10w6VqqxD9fdvvmX AxImpJ7D9AFU/j/nv90z2hyKgDxNGNJGQjBvjmubOsQYOxqPBfFr60iEiJlBgo2KoBiZ +ur+FGcVJOJQSQLPQNEhWrXxIkFYRACmvKPeDrbnDam2i+CeWCPlra4ChrTZhiJUzbHS u26w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu28si5585993edb.189.2020.05.29.11.05.44; Fri, 29 May 2020 11:06:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbgE2SDK (ORCPT + 99 others); Fri, 29 May 2020 14:03:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbgE2SDK (ORCPT ); Fri, 29 May 2020 14:03:10 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16C09C03E969; Fri, 29 May 2020 11:03:10 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id AF4272A2A0F Received: by earth.universe (Postfix, from userid 1000) id 8F1203C08C7; Fri, 29 May 2020 20:03:06 +0200 (CEST) Date: Fri, 29 May 2020 20:03:06 +0200 From: Sebastian Reichel To: Pavel Machek Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Ian Ray , Samu Nuutamo Subject: Re: [PATCH] ARM: dts: imx53: ppd: alarm LEDs use kernel LED interface Message-ID: <20200529180306.pjevb6qdv7jvmxtu@earth.universe> References: <20200416145123.73039-1-sebastian.reichel@collabora.com> <20200424093226.GB2647@amd> <20200424124423.jo25ai5oifvalgpr@earth.universe> <20200529140555.ozlvz4egihkvo3aw@earth.universe> <20200529160204.GA6025@duo.ucw.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="h2ss5j6tgypqoj24" Content-Disposition: inline In-Reply-To: <20200529160204.GA6025@duo.ucw.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --h2ss5j6tgypqoj24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, May 29, 2020 at 06:02:04PM +0200, Pavel Machek wrote: > > ping? >=20 > Well, I thought that we maybe do not need standard LEDs on medical hardwa= re. The discussion died and the patch was not applied :) In general IDK how worthwhile it is to use standard LED names for them. I suppose the number of people planning to create something like OpenWRT for medical devices is not so big. > > On Fri, Apr 24, 2020 at 02:44:23PM +0200, Sebastian Reichel wrote: > > > On Fri, Apr 24, 2020 at 11:32:26AM +0200, Pavel Machek wrote: > > > > On Thu 2020-04-16 16:51:23, Sebastian Reichel wrote: > > > > > From: Ian Ray > > > > >=20 > > > > > Use kernel LED interface for the alarm LEDs. > > > >=20 > > > > Could we get these changes cced to LED maintainers? > > >=20 > > > Sorry, you are not turning up via get_maintainer.pl and usually > > > subsystem maintainers are not CC'd for every DT device instance. > > > E.g. I do not want to be always CC'd for DT board file containing > > > a battery/charger. I'm quite surprised you want to be CC'd for > > > them, just looking at ARM DT files there are over 1000 instances > > > of leds. >=20 > Well, we have mess in the naming; I'd like to clear it up. I understand. > > > > > + alarm1 { > > > > > + label =3D "alarm:red"; > > > > > + gpios =3D <&gpio7 3 GPIO_ACTIVE_HIGH>; > > > > > + }; > > > >=20 > > > > So... What is function of these leds, and can we get naming more > > > > consistent with rest of the kernel? > > >=20 > > > The device is a medical patient monitor and these are alarm LEDs > > > informing about critical device or patient status. They are > > > referenced by their color (those are discrete LEDs, not a > > > multi-color one) basically everywhere. The only exception is > > > "silenced", which means that audible alarm is surpressed. I > > > don't think we have something comparable for any of those LEDs > > > in the mainline tree. >=20 > Actually, we have "platform:*:mute" LEDs, that could be used for > "silenced". I see you point, but wonder if mute is the right choice. The LED signals a silenced alarm, which IMHO is not the same: * The alarm silencing is temporary and system unsilences after 1-2 minutes. * LED is usually blinking instead of solid like a laptop mute LED (so that operator is aware of silenced alarm) * Device usually cannot be put into silenced mode before the alarm appears * Some medical devices still generate perodic beeps AFAIK this is named alarm silencing by basically everyone for medical devices. So I think naming this platfrom:*:mute would increase the mess. -- Sebastian --h2ss5j6tgypqoj24 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl7RTlEACgkQ2O7X88g7 +podiQ//SOBAxTHVyDbrl923oJkmWIEN2pA8TSYHYWX6I2AmWlUOr08HrKX9I3H4 fndIlKH5OICbE+U71ZUC+zngfbDSpjdLarYZKNJKiMgsOPQRqlkWxdV9Ct7UL+YG IkOnCoJkJXV4T6EVcyLcik8ZqrIcj3s6xe4JQxx9x3jrfp0netDT1nhFDkopUs5h +S+d4PSRnyDasUoSb1ITmcX9NOrD1tIYixxncjqSWDQb0mLDEwenUJJD3nFVRv9l mpsg1zTauKTMg4jNPeoazgRGcvAnf1ZkLtgl+fXQKYGhPNYTlamZEPg3Vd7Twb+z XvH56MCLBqBIPEHRNuf6UU+DDLTHsXmEOLkGq8ZQ5VFRqGZuiQ7HWB+NKUqoJV6x hE3waB2LC9I6aYvvBZjjnR8PFRJUR4PHrqh214wIfV5GwEbXnfWYpuKbb/flHfLY 4qMXkaG8tQ8PmP4A8roYRo2EWO/+xL1EuRxEEXPB3bMoCDcPbNHC3lyp6FKhxwtf EJRsXnQ0UIfe2hcY1WsugEOu6UkBL4uQGjMb1omfDq27h+Ov9B8zmCnls35L6LmZ qvwUMRM/JN5cu+/DY9KBoCr9+su6hXYB7fEGK6ULs5mPuASD+eDD34TGMhmgL+73 wZ2PcBaUmVfAhhLcnHBHs570WzfuGnG7I35xtn6UspheYhUw2sA= =+Wux -----END PGP SIGNATURE----- --h2ss5j6tgypqoj24--