Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3220068pxf; Mon, 15 Mar 2021 04:46:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9Q9JgiozchLWSON1muAogO4ZRCgusTX2/toF5IltqFpAcst6zdcZQknxGqLqNRqtX1nxW X-Received: by 2002:a17:907:9863:: with SMTP id ko3mr22922010ejc.543.1615808781190; Mon, 15 Mar 2021 04:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615808781; cv=none; d=google.com; s=arc-20160816; b=KWW/iMixUhWogEYVv/ZlQyDemyKrnI1EwtPYIYeFNAOeBRQA2Iqdzc+rluOwOL4Wei dcsgKvdqv90CkUryKq/OHj4VC/mdeEw/3RojaPTGgV7LVs2EJIOnbbFGwNPmkba44WB0 e4NWIPm5WN5eq5yn9IW0ID544V3SvV+VFiqDyW1RbmqovEI8LuaLogYOW1UaYayEEh+L yla1HviCt+1fN40n/Gtwu2EXb4cWkH3zhWOgwv+TaJ1A746awxDwHyriHzEmWiB9qHbm pVhrihwfvSBUWtWiaAScB4/9OyL9u3+CVcK919CsLC7abUpwGcIQMKqJJM/gl9lXR9oX Qeeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=2tSU8ZltEbbEb/ES3vq4u9hQK/a/RIoB7Rd7HSgRmfg=; b=TbIcVrCmRqA2jGqaMJYmGibSPTs56ZKlpUut8GoGvAm2+xvAzKeJFiR1l1boyNbj4+ biZsB7F8VYlaavzXnVvBuZ6ZkjP5HgG2L6xMn6lkIS20h3K0WnvjExacVTwk+hJbe//w n9WhSfxrWE1lOJN9GB23eTWDolLWt73D2/n73vyEozlEfTyqLvKz6qw4Dy7Y3LuGJsej oIwaiwoU248+bNBQ/pUuNM9Ihis+nPXMdaqjV5j3/CXuoRJl60ucQBD/ZvgRoD9cXkFh TLSKTIEaLyTXLBDr82pQhvVJ6SdBhiW3+8Hpy/S4yA3GA9oniSdFppmq1iR0eIdi798x UWTw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si10813771ejv.267.2021.03.15.04.45.58; Mon, 15 Mar 2021 04:46:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbhCOLlL (ORCPT + 99 others); Mon, 15 Mar 2021 07:41:11 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:46646 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbhCOLlI (ORCPT ); Mon, 15 Mar 2021 07:41:08 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 4DB931C0B78; Mon, 15 Mar 2021 12:41:06 +0100 (CET) Date: Mon, 15 Mar 2021 12:41:05 +0100 From: Pavel Machek To: Henning Schild Cc: linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-watchdog@vger.kernel.org, Srikanth Krishnakar , Jan Kiszka , Gerd Haeussler , Guenter Roeck , Wim Van Sebroeck , Mark Gross , Hans de Goede Subject: Re: [PATCH 2/4] leds: simatic-ipc-leds: add new driver for Siemens Industial PCs Message-ID: <20210315114105.GA15281@duo.ucw.cz> References: <20210302163309.25528-1-henning.schild@siemens.com> <20210302163309.25528-3-henning.schild@siemens.com> <20210302205452.GA32573@duo.ucw.cz> <20210303141052.30641e6b@md1za8fc.ad001.siemens.net> <20210303193134.GB8720@amd> <20210303214810.511ad65a@md1za8fc.ad001.siemens.net> <20210303215615.64e45720@md1za8fc.ad001.siemens.net> <20210305192555.34f7ea0f@md1za8fc.ad001.siemens.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <20210305192555.34f7ea0f@md1za8fc.ad001.siemens.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Maybe you explain the idea behind choosing only from that namespace? My > guess would be high-level software being able to toggle leds totally > indep of the device it runs on. Such software would have to do some > really nasty directory listing, name parsing, dealing with multiple > hits. Does such generic software already exist, maybe that would help > me understand my "mapping problems" ? It does not, but we want to have one... or at least not have current situat= ion. > The current class encodes, color, function and name into "name". >=20 > Maybe i am all wrong and should go for >=20 > {1 << 14, "simatic-ipc-error:red:" LED_FUNCTION_STATUS } > {1 << 15, "simatic-ipc-run-stop:green:" LED_FUNCTION_STATUS} > {... , "simatic-ipc-hdd0:red:" LED_FUNCTION_DISK } > {... , "simatic-ipc-hdd1:red:" LED_FUNCTION_DISK } Can you explain in plain english what the leds should do? We don't want to have simatic-ipc- prefix there. tpacpi was really bad example. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYE9H0QAKCRAw5/Bqldv6 8m+CAKCA1UK76NPTlLaS6Fi+3p99AXsE3gCdECrX2ojPmDuYIGX5Y0rMrenNHD8= =mymg -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--