Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1179167ybi; Fri, 24 May 2019 19:11:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgcOcz0d/qR0XFsaNqLHUlos4/DWqo8I6PP9l7TtG+4w9sLzlShAucs+UKnCQ40dSGE58M X-Received: by 2002:a63:d252:: with SMTP id t18mr110734715pgi.131.1558750266070; Fri, 24 May 2019 19:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558750266; cv=none; d=google.com; s=arc-20160816; b=WC2N8JcYv8EMrwCU7pRfEFTnfLAl2ctqnHVHGKUf1WloFX9pCV8/tybkQ+WlSbsfcC gFEXqE8DQOQ7r5uTSvGqT0ZlReMER6DuRHKjEjudq7C+hvf8Lk4zwzYASEc9NK43734o tbdRx9ZfaVsjLhkJFvi16a0f7uUvAXWuH12jnRjvNOcndUem3wcFBLmaGK61DW/8aSB4 nM8H1fIVsKIFjwMxEusqirJx54v97QfVA++XooNykp6rjBV5jFr5cs209RzHVRVTBhyv B+WXSxxp3ZN4IOKy38eQXMFk7PzRlMwUu5feHyMOqr2ulX80HwdiHJZLjtnsnOpnlKBQ ulZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LZzs5xzeqtVuzgwwnEv2OC+wDQwHzVptWWlrVSZVAQI=; b=BwCUJ8CAVZ/kOr432Dughs4KrQ7OrB1+xpuyfPfBYvmRTPioK7Ssbx0Vde/NdMre/9 vGOAKRFjIy5kPjtaWZBCpEGw9Pl3KkCET6a9nnFLT6/Og4FD7RTVfLpo022FZxlLKfSp 9aWVPyWSk0gLN0yiAnneV0CYKRfEnNnSQGIOlI6lznKmo6mPF2OAKM8K/RQ1bFliKwyj BIrFvcIYaD8HJ78NXYAJ3hschsQxho8S/PM/S2KlK1cU0DzLZ6MtuHGksyq7BNuWZNHl G94LGN2k8CZD2aLYeLYoqATqpj1Sc4jtnifbtrMt0tGAl6PrwAwanqkA4EE/zBRMPKqZ TOVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=LpSfcMLD; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g70si6323379pgc.588.2019.05.24.19.10.50; Fri, 24 May 2019 19:11:06 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=LpSfcMLD; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726553AbfEYCJd (ORCPT + 99 others); Fri, 24 May 2019 22:09:33 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:45773 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbfEYCJd (ORCPT ); Fri, 24 May 2019 22:09:33 -0400 Received: by mail-ot1-f66.google.com with SMTP id t24so10335064otl.12 for ; Fri, 24 May 2019 19:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LZzs5xzeqtVuzgwwnEv2OC+wDQwHzVptWWlrVSZVAQI=; b=LpSfcMLDiUhQLwFnbv22EYTidAmanIzvxucTe3e3Huy/p1Pv+V8iQonG/LTIbtqSWP 9Mp9d+nb8WvRERLdmhJmbQ41VSRNvOmAVJ5D0lN8KdiLk4w0FDjGQaU4ppwrVx+S+WjV in5CGq3+upoHcc5SpSSxDe+e1+p84Psxss2SgCpq5LjgwHvBkTBVC9utrFESDIqTzsPz O57+O5yBKxJBq7ZHP3q+xSNxtVV+bcMRif+DI+fCRXXh2Un/j/BDDcmVQosE/Wr3BsER 8OoeFAnK0EHvaGtU91i4CNa5tspsh08desjK5wg9SPtIzbYyu5O4iF05+Hrb1Fw3F+9L wz3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LZzs5xzeqtVuzgwwnEv2OC+wDQwHzVptWWlrVSZVAQI=; b=IYKU58MqY8G22sgOnltmeI74YqsD7q7r1VO1iKF4Rdlksrmbc2lSLiAhNF7r3UGIG4 8RoRYEZay5z6lAA2XA3xq40sypETdXIxWxJD8o7Ndqn0kuwJylFrvsdSmZG0vAeU6Gbb lOuLCUgqaenzMFeoLXSMzB9oPUD2yYbncf0xQgNAtl75oYBNk9zSmXnf7bLcKnCZxSnT r6q3krFrc3XTR79x3ZN2nyVjbY23vKQDpkPMFNbxhmD3g/Xk/SVUPvnmWqosaoHsUyMp vEaSls6d8nIFuO7CiindFvT/jZ5WNUj05HX0HosRKJKaN2nd1FXld5LwOm3saNAOM8FJ mMMQ== X-Gm-Message-State: APjAAAWuedXSACzTbJPBvOUVnbzXMprrQb+7L/cVFS7rCpXd+3HyfuMk oLHAca2uhU/s/EWM8CEMWeLQyyAkKXs8vaLHlD2Zsg== X-Received: by 2002:a9d:3b49:: with SMTP id z67mr53168810otb.236.1558750172585; Fri, 24 May 2019 19:09:32 -0700 (PDT) MIME-Version: 1.0 References: <20190524010117.225219-1-saravanak@google.com> <06b479e2-e8a0-b3e8-567c-7fa0f1c5bdf6@gmail.com> <6d3995c1-e1e7-35ff-d091-501822c97ecd@gmail.com> <0634ea45-2941-73fb-f8d8-b536e929a4a8@gmail.com> In-Reply-To: <0634ea45-2941-73fb-f8d8-b536e929a4a8@gmail.com> From: Saravana Kannan Date: Fri, 24 May 2019 19:08:56 -0700 Message-ID: Subject: Re: [PATCH v1 0/5] Solve postboot supplier cleanup and optimize probe ordering To: Frank Rowand Cc: Rob Herring , Mark Rutland , Greg Kroah-Hartman , "Rafael J. Wysocki" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Android Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ugh... mobile app is sending HTML emails. Replying again. On Fri, May 24, 2019 at 5:25 PM Frank Rowand wrote: > > On 5/24/19 5:22 PM, Frank Rowand wrote: > > On 5/24/19 2:53 PM, Saravana Kannan wrote: > >> On Fri, May 24, 2019 at 10:49 AM Frank Rowand wrote: > >>> > >>> On 5/23/19 6:01 PM, Saravana Kannan wrote: > > > > < snip > > > > >>> Another flaw with this method is that existing device trees > >>> will be broken after the kernel is modified, because existing > >>> device trees do not have the depends-on property. This breaks > >>> the devicetree compatibility rules. > >> > >> This is 100% not true with the current implementation. I actually > >> tested this. This is fully backwards compatible. That's another reason > >> for adding depends-on and going by just what it says. The existing > >> bindings were never meant to describe only mandatory dependencies. So > >> using them as such is what would break backwards compatibility. > > > > Are you saying that an existing, already compiled, devicetree (an FDT) > > can be used to boot a new kernel that has implemented this patch set? > > > > The new kernel will boot with the existing FDT that does not have > > any depends-on properties? You sent out a lot of emails on this topic. But to answer them all. The existing implementation is 100% backwards compatible. > I overlooked something you said in the email I replied to. You said: > > "that depends-on becomes the source of truth if it exists and falls > back to existing common bindings if "depends-on" isn't present" This is referring to an alternate implementation where implicit dependencies are used by the kernel but new "depends-on" property would allow overriding in cases where the implicit dependencies are wrong. But this will need a kernel command line flag to enable this feature so that we can be backwards compatible. Otherwise it won't be. > Let me go back to look at the patch series to see how it falls back > to the existing bindings. Current patch series doesn't really "fallback" but rather it only acts on this new property. Existing FDT binaries simply don't have this. So it won't have any impact on the kernel behavior. But yes, looking at the patches again will help :) -Saravana