Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2811545imm; Mon, 24 Sep 2018 10:17:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYruokrf+vk1Ytz3jIwjSyY5CTVUwSujIt8D/sR0bYd+HLbgN1/aANjWegICF8LgOSLTjTd X-Received: by 2002:a62:b0e:: with SMTP id t14-v6mr11091174pfi.36.1537809434442; Mon, 24 Sep 2018 10:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537809434; cv=none; d=google.com; s=arc-20160816; b=ot4x2wUtkx918udoAk+47ZyZx26LTzPtuUH54dt+Jyqxg7KPReMGnKuv+DudagKLJk N/mSq7boG69biiQMxYTCsnimuFw2iOusq/5g22OxWbPxJCQJ28uUMuJw8ZeKITO0v4Yy MZCd5/iNDO8lCpMBtuJISqWuxhy87QzfbDJ5jh4SIiQw1e4dHnOATG6JwmnFaCpllBhy n3IIUowc4mJbd8IVrkLuE+5QWLRXBo6DxkopPnL1VCUdCzrWP4X2NLrzXB1r0+lVCjMg Df/Gxv4m39E1uKEgBRB24FBxaek0bnaMZw9SQdXGHtondwoFt+GwlCGQFNOxyH/K1tJo Xw6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0TCM4fj++RVfFT7IlYxrShViZLYqOAcAyNiekx0Uhsk=; b=k2JGDTy0sYFevF+bazDob8GDGVGAioXDsyiYaKKCVYzgY1B2a0RyqsrvhtcMTYT0Ak +RwqwkxaLTpIb8bXfPF/foDHuMS44A2btpuQnfZnFwT0BlazcqUvnzMMIDlfX0UY4PuD 3ImaEZ5M1EYCprwzI2KMY82RPdSDGC7PuesPXa2M2zLBG21MtBlja5k8IgREbE9BQg7p c2qoqWMEa1879XzCJmbquKi2J9VZYvnTbPKfc+XZpDOL/haFpmO4ZHeOM1xkcMM9BtAU 4rP77cUr6OajegDNEma6lI4eQjuH6kyUY6azWSFGDFxZqMVBYWCsjw4qdtqQG7pFF1GO Xn8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j64-v6si32962272pgd.199.2018.09.24.10.16.58; Mon, 24 Sep 2018 10:17:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732910AbeIXXT7 (ORCPT + 99 others); Mon, 24 Sep 2018 19:19:59 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39896 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729566AbeIXXT6 (ORCPT ); Mon, 24 Sep 2018 19:19:58 -0400 Received: by mail-ed1-f66.google.com with SMTP id h4-v6so16952180edi.6; Mon, 24 Sep 2018 10:16:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0TCM4fj++RVfFT7IlYxrShViZLYqOAcAyNiekx0Uhsk=; b=MdfoA2IatBsmu4rN0ivQTunGflUNerDXx/K0GDudFVYWwktqaGHK2DjgYWj8eXkz5r +ee8pU1fw64ZGYWZnlz3yyJZWsrEfU9yoc2f6WKXcUKzs+n8WRIxOrCghEeNrOARIq6H tuwtIahuDha0tq636eF0O8cLgyE+/HTaiCLhlrvs0Vvahi6q6rpOoXXYTsfmAsiILmtt iD3vC/DuHmQVtaswydH97hzvjBPovE2CQA+s7uauG1TdGAcXtL6vw+hqe9yyoa4ZaLcG 4gWhWFWAVZgTB3Rw7///YlbjO4wq5heM5+I7dcc3meRchaEP1OtddpZrOZrghP8cRe3Q X8BQ== X-Gm-Message-State: ABuFfohQ1Lvr7a9ydHVVC8oWN69ENizkZTIBpwXwxaSt8sJf6zuIJKKE JHgFvAvzSVwiuIbF2ntErbY= X-Received: by 2002:aa7:cb41:: with SMTP id w1-v6mr18694652edt.202.1537809407863; Mon, 24 Sep 2018 10:16:47 -0700 (PDT) Received: from kozik-lap ([178.38.103.27]) by smtp.googlemail.com with ESMTPSA id y15-v6sm937202edq.20.2018.09.24.10.16.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Sep 2018 10:16:47 -0700 (PDT) Date: Mon, 24 Sep 2018 19:16:45 +0200 From: Krzysztof Kozlowski To: Olof Johansson Cc: Rob Herring , Mark Rutland , Kukjin Kim , Pankaj Dubey , Bartlomiej Zolnierkiewicz , Marek Szyprowski , DTML , Linux ARM Mailing List , linux-samsung-soc@vger.kernel.org, Linux Kernel Mailing List , Chanwoo Choi , Seung-Woo Kim , Inki Dae , Sylwester Nawrocki , Alim Akhtar , Arnd Bergmann Subject: Re: [PATCH v3] dt-bindings: arm: Explicitly mark Samsung Exynos SoC as unstable Message-ID: <20180924171645.GA10910@kozik-lap> References: <20180830180205.18121-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 23, 2018 at 02:46:20PM +0100, Olof Johansson wrote: > On Thu, Aug 30, 2018 at 7:02 PM, Krzysztof Kozlowski wrote: > > Samsung Exynos SoCs and boards related bindings evolved since the initial > > introduction, but initially the bindings were minimal and a bit incomplete > > (they never described all the hardware modules available in the SoCs). > > Since then some significant (not fully compatible) changes have been > > already committed a few times (like gpio replaced by pinctrl, display ddc, > > mfc reserved memory, some core clocks added to various hardware modules, > > added more required nodes). > > > > On the other side there are no boards which have device tree embedded in > > the bootloader. Device tree blob is always compiled from the kernel tree > > and updated together with the kernel image. > > > > Thus to avoid further adding a bunch of workarounds for old/missing > > bindings, make development of new platforms easier and allow to make > > cleanup of the existing code and device tree files, lets mark some > > Samsung Exynos SoC platform bindings as unstable. This means that > > bindings can may change at any time and users should use the dtb file > > compiled from the same kernel source tree as the kernel image. > > I have to admit that I don't really like this approach, and I missed > the patch when originally posted (I did notice it in the pull request > it came in with though). > > The main concern for me is that with a blanket "everything is always > unstable" we discard the notion that we should strive for bindings to > be stable and backwards compatible. The original idea from Marek was to mark everything unstable. After comments from Rob I made it weaker already by changing to specific group of compatibles. Accepting their instability does not mean that we will be doing this on whenever possible. It just opens the possibility of finding some balance in cleanups and development. Sometimes things have to be seriously changed (fixed) and implementing workarounds for existing ABI might be huge work by itself. IOW, we want stability but not with the costs of huge development efforts... because no one else except us cares about the stability. > > Questions that come to mind are: > > - When do they stop being unstable? They became unstable in a subjective way so I assume that reverse is the same, based on consensus and discussions. I am not sure if a hard time limit is good. There is no timeline for the Exynos development, no public roadmaps but rather community and partially volountary effort. Therefore whatever number we set, it might be totally not matching reality. > - Is there a way to note in the binding itself that it's still > unstable with an anticipation of when it will be settled in? Hmm, I see that some existing bindings are being added with "Unstable" warning: git grep -i unstable Documentation/devicetree/ so there should be no problem for putting there a timeframe. > - Is there a better way to version the bindings to avoid complete > backwards compatibility? Some architectures are using overlays for handling backward compatibility. Anyway it might put additional effort on driver development. > Pointing out a couple of cases where it has been painful to stay > backwards compatible could also be useful for understanding (even > though you run the risk of each case being explained away with > suggestions of how it can be handled). > Best regards, Krzysztof