Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1519366pxb; Thu, 4 Feb 2021 15:30:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLLWIlA7WgsnmtCQF+Vq/SDRYHgc6OJaLsBG8LqFKtA/7S8VyguIQ5XUqTzTeFg093sm66 X-Received: by 2002:aa7:de10:: with SMTP id h16mr892151edv.385.1612481417637; Thu, 04 Feb 2021 15:30:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612481417; cv=pass; d=google.com; s=arc-20160816; b=q7gHSZFjjCSt1gYr5pgK9ASt9XXlcRzD/mGTTyW70AeaWZF5khIYXDHQtM5xa88lcX A2uNfF8ymwK1bdZD2mEab0kuV9MCNg35YKijfrWXiVMyU9XC0quGxc9/6ZcTdx/db1Wn zglGA9bjFoIJuVsXkT4OFxM0Wg70VNbXVgD1RbYMifSNKluwRfcsbVL5a5uO5AfVecyN JRQlI98FjMea0aRojOD3qHiRXyLiDbDzNm9z0SLYl9eFDOU4nhKCCtv23p55UR2y/ecl Uo5DsdAI9ib77nSiFg3y6PZ7IfrdUzx8AGUu6Hy7MrwqzTCstcT2RXmilAHQ4QHaELi/ MLwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=rwAoorqV/cnqZcVdg/64/eaYDC85VXH5B3e1n2kUjBk=; b=GfiWvds8rjwFPM+Bq1W6SAqlE914XHibwybUrSoYkVtXrRuSrsEjiqAGJR9nQbFTCk 1wtIjaUvWjGPHzYbLvEqADDTF+e0nGy+D/50tQGQXGNDFfyONq6H7rCbOFG5wpLiW73S k4ICzIGOp81dXOWR/PJzHmz/w9n0fOxgY9g2avtvDBK4XW8nh5Ew4vCYbv4hi9Enf30B h0JwNiqzhNMWPJsnIaosxA9T0G+9d9rcYYiusMzfqe/o/xYtynEXqjyCZA906H+cD73B xqSsnHrEGIAuJwxEdCM1bKKYHEqw8baBYWIuZ57jqR3wk1DkGa+07KkJwwDt0N9E8HGC SYpw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@schleissheimer.onmicrosoft.com header.s=selector1-schleissheimer-onmicrosoft-com header.b=aTooIWF4; arc=pass (i=1 spf=pass spfdomain=schleissheimer.de dkim=pass dkdomain=schleissheimer.de dmarc=pass fromdomain=schleissheimer.de); 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 r25si4884775edc.257.2021.02.04.15.29.53; Thu, 04 Feb 2021 15:30:17 -0800 (PST) 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=@schleissheimer.onmicrosoft.com header.s=selector1-schleissheimer-onmicrosoft-com header.b=aTooIWF4; arc=pass (i=1 spf=pass spfdomain=schleissheimer.de dkim=pass dkdomain=schleissheimer.de dmarc=pass fromdomain=schleissheimer.de); 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 S233991AbhBDHd0 (ORCPT + 99 others); Thu, 4 Feb 2021 02:33:26 -0500 Received: from mail-eopbgr50098.outbound.protection.outlook.com ([40.107.5.98]:39511 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232727AbhBDHdY (ORCPT ); Thu, 4 Feb 2021 02:33:24 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RbWrs3KZAdn1uJ9Ahx25E1jGCL+njH0J6ByKDDLXqIzNpQup8UBO8IqxtC60Q0IGk8pLPA+I4bEI5YYK8vllkRW4cBc8Pk3RhQ5whAfwjWE5hbu589nedWunFbOTs3PaCWMFYtoN5YIdIzLrsKbM5UkQ5ZQHZ8j/QeJwCNkARDSIuRAByMbCavYZ3M8Y//Dv1xPgaReZbsrlA1j/RjbXk6dQ3mQ5wJkPUYgsK6LTv9bTTFHgD6Bk8NbdMw+IueNcVGgy1QH8vTkWNwNDjDOcct10fE8fWTMInihnSO5kqpIx9ixUqYPGO56/PP/pFi7RYxBMfua+Ski7ZsNDzUHKLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rwAoorqV/cnqZcVdg/64/eaYDC85VXH5B3e1n2kUjBk=; b=MWdqilBB+c4Qy7bxd5b3QbqYI78Dt2KMe2wmBL4XKRfGbN5jKXAZUSjFbXBEjK6oGXEsDrWR7WL5s2EVQCoeGhMbIqhno27MfPvbpfzTKC+7fkOVn2MucNkyylBNQb2zy9nVLo8KC/CrCJJLzQ5lhyi7ksOOlI7V66Gu4uex6d1b/FWeXaWgrgdpcgQfycZm1L9S7RFFG6zAwdmp57G2HCkJWjDfDk8kDTIqHNbtSGGOMulETQf7c+b+I8EqZHXB8b5t0ljSCRdvYRnaFdd5Q4YGgFfW77Id5gdzGdZoUlB5IwXQ4EFznWy1HaNLaVOirvMNjkxRVb8ISdiXwuSEgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=schleissheimer.de; dmarc=pass action=none header.from=schleissheimer.de; dkim=pass header.d=schleissheimer.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schleissheimer.onmicrosoft.com; s=selector1-schleissheimer-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rwAoorqV/cnqZcVdg/64/eaYDC85VXH5B3e1n2kUjBk=; b=aTooIWF4xTzzM8/e6QSNsYpeMXmeLTPC+siPGzgvsuYrkjtSD7qdCQcQAsyXAKUHF7V+Aw6HTEFbzTosyKUy+9mp06GPCfTA1r6Yu70Jmr2Z2aiC5qevZ8Pt86e6LfYAt6xUsL3EtfwqtSTlm/ouYh6OTB6rVEa3NXNQGFJd/28= Received: from DB8P190MB0634.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:12d::21) by DB6P190MB0503.EURP190.PROD.OUTLOOK.COM (2603:10a6:6:33::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.26; Thu, 4 Feb 2021 07:32:35 +0000 Received: from DB8P190MB0634.EURP190.PROD.OUTLOOK.COM ([fe80::fc76:b821:1966:db40]) by DB8P190MB0634.EURP190.PROD.OUTLOOK.COM ([fe80::fc76:b821:1966:db40%9]) with mapi id 15.20.3805.027; Thu, 4 Feb 2021 07:32:35 +0000 From: Sven Schuchmann To: Pavel Machek CC: Dan Murphy , Rob Herring , "linux-leds@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: AW: [PATCH v1] leds: lp50xx: add setting of default intensity from DT Thread-Topic: [PATCH v1] leds: lp50xx: add setting of default intensity from DT Thread-Index: AQHW7lFOn/1Jlt56EkOy+ZVk/3cx2qpGlWAAgAAP4bCAABNlgIAABpCggAAHMACAAOx+cA== Date: Thu, 4 Feb 2021 07:32:35 +0000 Message-ID: References: <20210119105312.2636-1-schuchmann@schleissheimer.de> <20210203142940.GB12369@duo.ucw.cz> <20210203163555.GA23019@duo.ucw.cz> <20210203172508.GC23019@duo.ucw.cz> In-Reply-To: <20210203172508.GC23019@duo.ucw.cz> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: ucw.cz; dkim=none (message not signed) header.d=none;ucw.cz; dmarc=none action=none header.from=schleissheimer.de; x-originating-ip: [62.153.209.162] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4144fc5d-3533-40a4-8496-08d8c8df0a69 x-ms-traffictypediagnostic: DB6P190MB0503: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 47zbyxrn6vFc5HtguVIcfXc6tPuCb+rwL2ALFrZdzJvTnCaCKSWsc2d5PHhYXCYWvJACaEXiIvFQDPUgjxa3b133t+MDRSNtnpjXewcW+n2pwJzvOM05OtE4DRRld+y8nVPPWSLvCPt4ieVB1i/w3cRFRKwpUDtMlMJ/001TTtF8sog/f2DlS0CljE7QOYcN3R0GDy2KAZ+nFdSnwTqXSOZA08XJfi8YwbajrSzXr2c84bBKqEeHTBS35TCOH+97X1Oksw9UidSKlovXQNuh1cPZk9RNY64lFbwiPBx4jNMVoUaMP0xyfw7DD/kwJ+LXtc02GSvVBHfxmcTSJn7G6X67XRrGHpftQxfCR1DKB2oGe5CW9SC5PlxPDMVgReyXPLIAXGj1WmnICogJVhnSALURO69PHYAIeYm/LevNhG1qO9KyyUftwhRHYnFgThyiljr2tg3MN4JOi8WF4cxZlw4ms5Ckeyna470TynSG3fiBgw7/6pwhlrLyi9r0cdn1KNqI+Li6Q5RRWtc06qb3Aw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB8P190MB0634.EURP190.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(346002)(376002)(136003)(396003)(39830400003)(366004)(66476007)(316002)(54906003)(66556008)(8676002)(4326008)(6916009)(9686003)(5660300002)(2906002)(76116006)(8936002)(186003)(7696005)(52536014)(6506007)(26005)(478600001)(33656002)(66446008)(86362001)(71200400001)(83380400001)(66946007)(64756008)(55016002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-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H3uDMw?= =?us-ascii?Q?41KswREO04QMh17MN/1ZRrP84Nn4I33TVZPes+g4bExEvdAl6M2BpbxZDpOv?= =?us-ascii?Q?0XaV+j7pLiqz3qMzNGTR5WLGjToQPS1B2lHtahWp8lx2+IgP5aznA3JRm/Hr?= =?us-ascii?Q?q4le6Z861sYW7QdXwlg7wOqFYGGaS5o4kEuM6K8r1kNeaEvPvlVSyRyKS5zi?= =?us-ascii?Q?nLQCt3KFkAYo6LuUyyJzAINW/3VSAvyQT+aphYmUZ7RhWAAtfWfc+vQQ4J3h?= =?us-ascii?Q?f00Kwv3aM8n5kNZKsgru5toBKgMTbLdHTQ7C6ABS/+HomCx0mBarpTwYyr8t?= =?us-ascii?Q?/ZXTdf2vbWxxfxBXXarQW7+4InUIt7l4BfpbCWZBjYF4eiikGntHoTEyOZ2B?= =?us-ascii?Q?6XB2/XiR/muJ49nig2rLGvS5BYX+RM1mZnkhO6687A+lbk447gEdpHJf7UWU?= =?us-ascii?Q?BOcUNNavUn4LrIUCkV8IMaJ+?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: schleissheimer.de X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB8P190MB0634.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 4144fc5d-3533-40a4-8496-08d8c8df0a69 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Feb 2021 07:32:35.0237 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ba05321a-a007-44df-8805-c7e62d5887b5 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7rQ/Effehgq0rafZ3jq8xI13NTVPhYPd6CqbjngLNyyBClbe8QaKTBMhIT9MMyFXtQY347xq6H6HQGKf9tXzxhyjxAzbZYujURIyNJtIDMA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6P190MB0503 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Helo Pavel, > > > Yes, sounds reasonable. Could we get default intensity of 100% on all > > > channels if nothing else is specified? > > > > > > Or maybe simply "if intensity is not specified, start with 100%, and > > > use explicit =3D0 if other color is expected". > > > > > Mh, if someone is already using the led driver and updates to a newer k= ernel > > we would then turn on all leds per default to the maximum intensity dur= ing boot > > until they are set the way they should be from userspace. I don't know = if this > > is what we want? If yes, sure, we could set them to maximum per > > default. >=20 > Not really. If they don't have trigger configured, nothing will happen. Oops, you are right, my fault. >=20 > > Also if we want to use Percentage Values (%) for setting the intensity > > I think this should also be done for the userspace interfaces and > > not only from DT. >=20 > We don't want to use percentages in the API (but let me still use > percentages in discussion). No Problem. Best Regards, Sven