Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp221819pxu; Tue, 6 Oct 2020 05:03:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXePa/JtxzmiATBNhXeBMj39fKUQMy3DCX2cObxTgINq/1OLVBIwGVDESSDGj6RRG07C/K X-Received: by 2002:a05:6402:14f:: with SMTP id s15mr4925365edu.342.1601985779794; Tue, 06 Oct 2020 05:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601985779; cv=none; d=google.com; s=arc-20160816; b=niUcywyNdfhprQAZ0RbxSqcik648lvrnfiCPro6mAvL0Is+L8/UWh3GzVvtGSDVWAT g57K3JH5Qe8/2XNCDsfwNskwGZBMr/9KfMJRQfAgxrKaNB9EaoKBFgUE4oqNZcttVSoO rkMNl7OeI6IQflpfLsTjuNJrmDvRmHOiGFEbOR+n0YVWZn+Nwjk9jlXYkqqT/yFYqa5T M2CnZWnPc3vyzJwqpiO6VIO+EuXp3/DaoSyrfeJqXTEP1/UScv21C0fUwqKVcz/JTwPI aaU3t9if+QpKt5mtVWrRkupwhYuO42wT6F6qbgBTGuGBdgl8VWCYC2PRfyx2xG3DXner zuGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=eltae3HoBYMjsE66URtFxvFlqumsCh3qkPeDnLne2qI=; b=JyjuuyO0GOPn2OduydNwTCGt17laYRp9+HTEm/09lBwKMWetkaJVapele8srpiUsyD Ul1cng1wjbQTOxcV1fK8Uv0mZ7/YVvXOMahQ22uJwqVQoSBXfXSkGJNv9/h0WFroUH0+ 24raiibpZfS0H5S5K+i8Czxba4WeO6wShTq8JWPIowEfbBb2IhSmusjx/hFCszy0C62j BgNwlgVvxKtsiL/O9zzFNW7PReLAt5sGAkqky0QuLDHzO7U03B4Bgh70B2du7W6lyX7m qQl1FSBn+kq0DawCYy2IxXYm9ZX8Vss6celEsUqEW2avUDsZT1ab9q7NcAycb2z/qAgT Fy/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tutanota.com header.s=s1 header.b=aDZcpUr6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tutanota.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si1875890ejc.229.2020.10.06.05.02.35; Tue, 06 Oct 2020 05:02:59 -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=@tutanota.com header.s=s1 header.b=aDZcpUr6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tutanota.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726477AbgJFMAA (ORCPT + 99 others); Tue, 6 Oct 2020 08:00:00 -0400 Received: from w1.tutanota.de ([81.3.6.162]:48786 "EHLO w1.tutanota.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726123AbgJFMAA (ORCPT ); Tue, 6 Oct 2020 08:00:00 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 01CBBFA00CD; Tue, 6 Oct 2020 11:59:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1601985597; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=eltae3HoBYMjsE66URtFxvFlqumsCh3qkPeDnLne2qI=; b=aDZcpUr6utvoZZIyEaLQi9roRWGZVSD5O2iymFuscOX6D524owNwxeU+mvMcni6u pzOSVokopJAlDNRAZJ2Yr5Z8slGFsJquQNp2cUxYxBHMSPJRIivRyWdhOD8vjNDd2Wx ZVL0Icg/zftENBZuIY8C9D086vZp6FQvI8GTH8k8NPLjSY92Q9hq5rYyAobWiQWI0XX s3Ha4GqUtuytEEjUJ92u4xjMMTKkOk2B8OR5JOnaEf3Y6eof8coTYoOiKa3u0ZKXkL5 GIh4ig0KJo5yNnqhIQTpP/khNp9dZKGuPUupA7VYi35Gb+FsHqdSBcdM5/ZRrrIpKma t/BM5EUB/Q== Date: Tue, 6 Oct 2020 13:59:57 +0200 (CEST) From: ultracoolguy@tutanota.com To: Marek Behun Cc: Pavel , Dmurphy , Linux Leds , Linux Kernel Message-ID: In-Reply-To: <20201006093356.6d25b280@blackhole.sk> References: <20201005141334.36d9441a@blackhole.sk> <3c5fce56-8604-a7d5-1017-8a075f67061e@ti.com> <966c3f39-1310-dd60-6f33-0d9464ed2ff1@ti.com> <20201005164808.slrtmsvmw4pvwppm@falbala.internal.home.lespocky.de> <20201005173227.GA6431@duo.ucw.cz> <20201006093356.6d25b280@blackhole.sk> Subject: Re: [PATCH] leds: lm3697: Fix out-of-bound access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While I do agree with you that having the child nodes be led strings make more sense, would it be possible to have, for example, three strings controlled by the same label? Oct 6, 2020, 07:33 by kabel@blackhole.sk: > By the way I just realized that the DT binding in this driver seems > incorrect to me. > > The controller logically supports 3 LED strings, each having > configurable control bank. > > But the DT binding supports 2 DT nodes, one for each control bank > (identified by the `reg` property) and then `led-sources` says which > string should be controlled by given bank. > > But taking in mind that DT should describe how devices are connected to > each other, I think the child nodes in the binding should instead > describe the 3 supported LED strings... > > Marek >