Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3061410ybt; Sat, 4 Jul 2020 05:20:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwejVmZ3pYviwa0VBVnHlsqzsING4JuLhcqKfwnld6QmwycRw6hJl1BK6Dg+WRLKnLEjxO X-Received: by 2002:a50:9f8c:: with SMTP id c12mr42434947edf.149.1593865206554; Sat, 04 Jul 2020 05:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593865206; cv=none; d=google.com; s=arc-20160816; b=Zo+Gf+Dm4WJD3Nj1mIzNb1Uds9BqkYfrpPmkez8ekYsqFizHbI2DZ786gen9hpq1eF /Qv8ShIlnFylwrvRjMEVKlsDBaYG8RHH1F5KOyDJ3zJWWTurtftwMLARw+QxnESxJUQF 9CW/H7rc5hz4CMgGbprxf6vgs+3o7q4qOZFh2ww3w9upSzw1AFjRoeeW5KJ9ot+uLklN nz0QiIZMi1qrUz04iTY5Bx22mjvdcHM7pW/1fQhmz34Pww49oEyi2unm1AWzlf+Q1QGH wSWoCQYDn0JvHbMmWIBi5N49s9JJePcPaCNwHTP4zKbENok6JxAGy6mnSi2yhEB6tCdC WVXA== 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:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=7NhoEXR4S348oSbhTpoPmKyoyFUYIDbyTAkYbGq2neA=; b=QbZ2eP1gVga0L70rhBPoAyvevA/BUJhEV2J1zUzBoNET95G84TkCUzzn67y9y4Knu2 IUkukDxm0IH2fyjLDzFrIKPIAVq281vIWbaLhqaiDvuet+M8w6zhXDHso687ajDTEN+G ylDWoXRJcUu0qqEwruLLBctxOvJdC6d5/CdWa9AHEThMEL09QxF9APn+U3lIQMhcehJ7 yAFs/h5Z2PAnb52OB6YYLNgBcDQ2StX6uXlYLTqdJv5DUKQsh7KtCNPIdfEeCimv+NFT TMtDn5mZdnJ9Sx9iu4kAzNjza+Y0ccvT416dFKZxw+cxM0q0hAO2jNRXTdulQJfhr66h ljiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=rMeNKxuZ; 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=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg25si9544599ejb.230.2020.07.04.05.19.43; Sat, 04 Jul 2020 05:20:06 -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=@megous.com header.s=mail header.b=rMeNKxuZ; 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=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726794AbgGDMRk (ORCPT + 99 others); Sat, 4 Jul 2020 08:17:40 -0400 Received: from vps.xff.cz ([195.181.215.36]:34564 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbgGDMRk (ORCPT ); Sat, 4 Jul 2020 08:17:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593865058; bh=fmBllpkZn/tc9cPS2CeTHDFwf+kw4NnVGVKOwpUytdE=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=rMeNKxuZFu3KR82dAvGPOzL5RSZ3QMQGut6PXq7IbdRTRkttB5a0rVZDylSXLHtGY jypyVjg6TLVBL2e+TUnQYdJr8gJi9bwqj3x+RcLCAB2QX5WzVk3MfYg5hB4DZ465Ph y1r3YAFinOlFm5lKSiameQzh9GV5fg3g9rCIKtEo= Date: Sat, 4 Jul 2020 14:17:37 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Pavel Machek Cc: linux-kernel@vger.kernel.org, Jacek Anaszewski , Dan Murphy , "open list:LED SUBSYSTEM" Subject: Re: [PATCH RFC] leds: Add support for per-LED device triggers Message-ID: <20200704121737.xiwcqzsfuzy3k3qf@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Pavel Machek , linux-kernel@vger.kernel.org, Jacek Anaszewski , Dan Murphy , "open list:LED SUBSYSTEM" References: <20200702144712.1994685-1-megous@megous.com> <20200704120459.GE16083@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200704120459.GE16083@amd> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Sat, Jul 04, 2020 at 02:04:59PM +0200, Pavel Machek wrote: > Hi! > > > Add support for registering per-LED device trigger. > > > > Names of private triggers need to be globally unique, but may clash > > with other private triggers. This is enforced during trigger > > Globally unique name is going to be a problem, no? If you have two > keyboards with automatical backlight support... Only globally unique in a sense that they must not clash with non per-LED trigger names. So you can have two keyboards with 'self-working' trigger on their LED devices in sysfs. This requirement only comes from the fact that this shares the same sysfs configuration interface as regular non-private triggers. regards, o. > Otherwise... yes, we need something like this. > > Best regards, > Pavel > -- > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany