Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp420682pxb; Wed, 6 Oct 2021 07:47:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiiiflMfuHL4QnjVnW5vJRSU0SpbB30dPA+wGS2XPzeDnhi8Xg5NuDj4m+SheYYraX9CfL X-Received: by 2002:a62:6203:0:b0:44c:7649:90b0 with SMTP id w3-20020a626203000000b0044c764990b0mr11901045pfb.21.1633531636528; Wed, 06 Oct 2021 07:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633531636; cv=none; d=google.com; s=arc-20160816; b=lCBMN41UdN/8mlcN6CD4upNHjgGicHjYeRid7Il+v/UbNhvxNUzCf3Fh5gvBrDJX25 6JtyN1D+gd/n4YnAKGuY/iX5U9E/4oUvUCuN4KufWxFRTLbhxva5CMRmSGFRcJKww38m 7RTqX3vuvljYUZ37UaG1Xi/PuOBX1ytyGThCVPAfMwCvq3LvcJp1hQO3CA4RRXk/Fsar 3GH6GR+BJdtD3j1pAuAH1mMS8NFN04eUPflM04eRAHkxECMWT12MxoNrCY40X16iDc/l s6/lbKGwDtvw3KvATI5dyM5OipUJDd4B7wOU/vk+CAC3POW/6MDuOyNwuvliqJnbaNsN Icdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D8IjD/aX+SAqkEjm7xgEe5lxocD/PXw4l5YWyLqfbtc=; b=uzxECh9JRYxtZGiktIxyz2BnzNXgyka9BSmDwwrb7HMyuIA+8YcqsC/9xm1D9c5ytC xiIokczIsywnv/Bz+lpb0bghRUeXp0exZAFFw6pVEP1fl/0ym2lpgSjheuVDo9+rxRXv ZG2l/yf+/sIINt52tINqxCXKGIGC2yXY64dERPptHTcEgcb3Ztz3Xh4y1+NXI22laPTs WQqWrbKbIt2WuypR+Ke9NLVM7l0z4m0GuPFfyU1Ut5zlTT4ChzvNfWn1FWLtyfDuvai0 wmB64WyN8GYdU1lr/VdtTbE66QcNyKViWr25io7KTRuX0VkU/2SyqBQu6zSnhjRQGLKI 9hQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sjymcv1h; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si687307pfc.211.2021.10.06.07.47.02; Wed, 06 Oct 2021 07:47:16 -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=@linaro.org header.s=google header.b=sjymcv1h; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231776AbhJFOqn (ORCPT + 99 others); Wed, 6 Oct 2021 10:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231600AbhJFOql (ORCPT ); Wed, 6 Oct 2021 10:46:41 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 493D6C061753 for ; Wed, 6 Oct 2021 07:44:49 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id o20so9580827wro.3 for ; Wed, 06 Oct 2021 07:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=D8IjD/aX+SAqkEjm7xgEe5lxocD/PXw4l5YWyLqfbtc=; b=sjymcv1htUJfHr/ek8Mjj/Jzt/jL4wvmG/taOYRNvKcZWk9BkgQtJjHgO7wbXBFrHy meZmY5A0tTIXo7CrDb1wtV1kVUe0zpcretTP/oJR1dUYtCogFfD4itlw7SlETG69n6Xi cRM1/7X/fYoubACDyBPEiCkkKuAUi0hY2aAzKxEFA/nDteTiuhRMStnHbhpfANKS6SOo aZ2uU5GuqODutpS9OMjadts9W8OOjuOAgFSiKeYSCLDwsbW9Cov/zeNYAJFIXp8iKB4R qB3jLqqhLJY0SdzrfSgr+y6OWem7CqBIbjFWChJaTT0M0IN9Rp0D7UjF4OBKnk8d1pUl rGUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=D8IjD/aX+SAqkEjm7xgEe5lxocD/PXw4l5YWyLqfbtc=; b=hrPTqhOXliocvDRWmyEdTEab+A4mffZZ7IzqhTt3f12pBc6Yn/i2BWqsrfcywNZSag ExB5yyNr7GTTPFr4GEdCCCBWBI/bULSyTjo5vB3iuAQd4j7iugmJamklUoLklOh7wPwb LTdLdbUO9W2zGCm8jA3iMi39jqYpTkJLLKeqmR6P1M0oo4HdqDDkQNnf9yRh6DPbtdvj scyWY7+0FTCA+hQsqztwKrWW8QH/7+XSr8VobIqwPakf7CN02jjtq3/z3nC5wi7D87RX hhYezhQbTaCHp2flWZPHLmKbaIABSLtktboTZwRQloJMFk49/6Y6mK4eKC022ay85Kd9 IAWw== X-Gm-Message-State: AOAM5308hVF2pICQI0wFxy93ksNyTfhu6irc2WijhwPfKoSQJXe/qOsR RaMOOCQzEMDucWE1tzNmq6GpDg== X-Received: by 2002:a1c:5413:: with SMTP id i19mr10372676wmb.31.1633531487682; Wed, 06 Oct 2021 07:44:47 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id f7sm3104178wmj.20.2021.10.06.07.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 07:44:46 -0700 (PDT) Date: Wed, 6 Oct 2021 15:44:44 +0100 From: Daniel Thompson To: Marijn Suijten Cc: phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Lee Jones , Jingoo Han , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Pavel Dubrova , Kiran Gunda , Courtney Cavin , Bryan Wu , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/10] backlight: qcom-wled: Fix off-by-one maximum with default num_strings Message-ID: <20211006144444.6q3qm3bzfrhzwa46@maple.lan> References: <20211004192741.621870-6-marijn.suijten@somainline.org> <20211005091947.7msztp5l554c7cy4@maple.lan> <20211005100606.faxra73mzkvjd4f6@SoMainline.org> <20211005103843.heufyonycnudxnzd@maple.lan> <20211005105312.kqiyzoqtzzjxayhg@maple.lan> <20211005114435.phyq2jsbdyroa6kn@SoMainline.org> <20211005140349.kefi26yev3gy3zhv@maple.lan> <20211005152326.5k5cb53ajqnactrg@SoMainline.org> <20211005162453.ozckxhm47jcarsza@maple.lan> <20211005173400.lyu3gabbalv2l3uq@SoMainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211005173400.lyu3gabbalv2l3uq@SoMainline.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2021 at 07:34:00PM +0200, Marijn Suijten wrote: > On 2021-10-05 17:24:53, Daniel Thompson wrote: > > On Tue, Oct 05, 2021 at 05:23:26PM +0200, Marijn Suijten wrote: > > > Since there don't seem to be any substantial platforms/PMICs using this > > > functionality in a working manner, can I talk you into agreeing with > > > fixing the DT instead? > > > > I've no objections to seeing the DT updated. However I don't really see > > what benefit we get from breaking existing DTs in order to do so. > > > > "Cleaning up annoying legacy" is seldom a good reason to break existing > > DTs since, if we could break DTs whenever we choose, there would never > > be any annoying legacy to worry about. When conflicting properties > > result in uninterpretable DTs then a break may be justified but that is > > not the case here. > > As mentioned in my message and repeated by Konrad, the only "existing > DT" that could possibly be broken is a platform that's brought up by us > (SoMainline) and we're more than happy to improve the driver and leave > legacy DT behind us, unless there's more DT in circulation that hasn't > landed in Linux mainline but should be taken into account? Devicetrees are supposed to be the domain of firmware (e.g. not part of the kernel). I'm therefore reluctant to adopt an "it only exists if it is upstream" approach for documented DT bindings. Doubly so when it is our bugs that causes DTs to be written in a manner which we then retrospectively declare to be wrong. > Anyway the plan is to leave qcom,num-strings in place so that the > default enabled_strings list in this driver actually serves a purpose. > Then, if num-strings and enabled-strings is provided the former has > precedence (assuming it doesn't exceed the size of the latter) but > we'll print a warning about this (now unnecessary) ambiguity, and if > possible at all - haven't found an example yet - make the properties > mutually exclusive in dt-bindings. > > Disallowing both cases would only simplify the code in the end but we > can spend a few lines to support the desired legacy. Yes, warning is OK for me. Daniel.