Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2001400rwi; Sat, 15 Oct 2022 06:32:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4cjtNr3iZsk5vq8nmav9z7MEUPFQrZTdQmiOPeUDt4xUSXitbAjtQoa+brzpLp2GIZ6mAM X-Received: by 2002:a17:907:7287:b0:78d:8f26:5911 with SMTP id dt7-20020a170907728700b0078d8f265911mr1957880ejc.463.1665840762235; Sat, 15 Oct 2022 06:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665840762; cv=none; d=google.com; s=arc-20160816; b=hVHPQG4znSx3bjxpJ1a3MdJROfo9k2n8C+LuKN5v5RpoGoameR8piu1qHzg58qnoMq bphrYs/FmLar/Vj5khFxuGuXfNLHDuLPqwqkFJxrch6ZPfGTTMn/uDrxjaPrfdgs1d0S /lQABFCyisO3lcQ53wklT0siipyLRKKv0rX9mTGvUeGxKWa67+YChKxCHeEULoTPbl7u G/4dS+TzTZuJ3dWPN/wFqWcWdmFbcR6aNqv5eQUCgt2knymiekcta0RYVPD8Jlw0k2FB Kgy424Uj1RWEbLg5k0iSGBIwKWrq/bXE8r00zqwnmSLoQ3Y5vXZCJk1hVvjU+3J3OEFG pq2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GgRe8FExVz3GkkvoaaG9sGhymMB0PRwWjEbFxn6Jfss=; b=k5OhHNu4X4Q1rSjgG1wAk9zrgMs3UUyN9LwANqbHR4uHBznQDPYo+7OG1PxH72U3bv zLCTZlqscf0pbjRJ/ePVGDY8FWxX6Ntn24lw9JcEqcz3XIfLp1ky9Zo0RP9rc6PTdbkc ZkOLFEh9otktzuqpJJ445IXIJcZWKSlS0LYHdrQBEJn9EDhwryhA19rWZHVJLDRB4E6o q9DoC8oibInqL+8zWuveS+vE1d/xbK4BSWP9KjfGSbU24HRG8j0aEa1xR3nPqTNnN+N1 jBnAXdZyVgFdMpk3qWtvundupdSeEcp5Q3C4wKmwUKfT67T0+2QyCW93e3EgllkMF3fc Idug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l8pIr4si; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh40-20020a1709076ea800b0078d288c1047si5029801ejc.841.2022.10.15.06.32.15; Sat, 15 Oct 2022 06:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l8pIr4si; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229619AbiJONRO (ORCPT + 99 others); Sat, 15 Oct 2022 09:17:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbiJONRM (ORCPT ); Sat, 15 Oct 2022 09:17:12 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CB994CA3B for ; Sat, 15 Oct 2022 06:17:11 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id mx8so4908869qvb.8 for ; Sat, 15 Oct 2022 06:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GgRe8FExVz3GkkvoaaG9sGhymMB0PRwWjEbFxn6Jfss=; b=l8pIr4sinoKUjWeipxRKIZ4oXm0ZoyoEdMLntlfg3I8d2d+o3gEDkvKbeMV4mdGZM9 pbWNz1n+CPFeyEowUoqwctEYOovkQ1fqDRm8G+D9Aa9hNlctlztjkQ40WdqsM3ren7G8 Tn+4VgnJ9HjAUuHoe/tkgklIyGV/C4LCZO0Qy9a+X3Q39s5OUZkc0G5qkbdiwkwbtid0 DxAP+DpCZLLbqYCKwXzeHKqOmZaxZOYNUcBjHDKReduIISgMbwpiYm8SgwfTjZwLfZQw qlLJTpQaq7MbySaWBBqABO0ce6fFRduBW7gMJdziQlsV2tu/3UMsXEcqsilSKuNVA/Ly CKCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GgRe8FExVz3GkkvoaaG9sGhymMB0PRwWjEbFxn6Jfss=; b=kU1ieT1KPSPC1ALnd1+XLUmfmELj1r2pnWV8WX2U9cJ2SynPQiXfw+hYnrWJhO5vt5 OkO3Ywdf3yOvbqKSW/NlDWQokUVRySNc8zFU27leDQMF8GDa5JEj93qI/luvxi/jVnVM boqJwzWYlry507Mdbt74jF3Xi90fZIP0agFkQo0Xv8s0DeAkq032WSmLtkMKnkhbIYvo e51OUyTpYxA3CZJmYGyNyQ8/SX+oEnfGatM8wPk3KuUDcECFxQ/h1yGR7iCBSRIa9ISC pAJYFeyO+TVfnRI61WaguQ0AJfHVE3BQ9QZ47sM+oOaI98MJyqarNDUfDFvvDQ/6zIL2 rd3Q== X-Gm-Message-State: ACrzQf3qcCxEZ5OFDxOz7uJCD0Z4Pn/y0RgXi7JbEdX75r2XFrKnBcYB bzUi7LLx/CxDRzh2aQ2Pb4GqGA== X-Received: by 2002:ad4:5e8a:0:b0:4b1:b225:dbc1 with SMTP id jl10-20020ad45e8a000000b004b1b225dbc1mr2023264qvb.94.1665839830343; Sat, 15 Oct 2022 06:17:10 -0700 (PDT) Received: from ?IPV6:2601:42:0:3450:161:5720:79e9:9739? ([2601:42:0:3450:161:5720:79e9:9739]) by smtp.gmail.com with ESMTPSA id h8-20020a05620a284800b006eeb51bb33dsm5046162qkp.78.2022.10.15.06.17.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Oct 2022 06:17:09 -0700 (PDT) Message-ID: <2928a80c-6c5d-c7e0-10f1-4c3b18dab525@linaro.org> Date: Sat, 15 Oct 2022 09:17:07 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v2 1/5] media: dt-bindings: ov5645: Convert OV5645 binding to a schema Content-Language: en-US To: Laurent Pinchart , Rob Herring Cc: "Lad, Prabhakar" , Sakari Ailus , Krzysztof Kozlowski , Mauro Carvalho Chehab , Hans Verkuil , Shawn Tu , Jacopo Mondi , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Biju Das , Lad Prabhakar References: <20221014183459.181567-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221014183459.181567-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221014214029.GA2937999-robh@kernel.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/10/2022 01:54, Laurent Pinchart wrote: > Hi Rob, > > On Fri, Oct 14, 2022 at 04:40:29PM -0500, Rob Herring wrote: >> On Fri, Oct 14, 2022 at 10:27:53PM +0100, Lad, Prabhakar wrote: >>> On Fri, Oct 14, 2022 at 10:05 PM Rob Herring wrote: >>>> On Fri, Oct 14, 2022 at 1:35 PM Prabhakar wrote: >>>>> >>>>> From: Lad Prabhakar >>>>> >>>>> Convert the simple OV5645 Device Tree binding to json-schema. >>>>> >>>>> The previous binding marked the below properties as required which was a >>>>> driver requirement and not the device requirement so just drop them from >>>>> the required list during the conversion. >>>>> - clock-frequency >>>>> - enable-gpios >>>>> - reset-gpios >>>>> >>>>> Also drop the "clock-names" property as we have a single clock source for >>>>> the sensor and the driver has been updated to drop the clk referencing by >>>>> name. >>>> >>>> Driver requirements are the ABI! >>>> >>>> This breaks a kernel without the driver change and a DTB that has >>>> dropped the properties. >>>> >>> I already have a patch for the driver [0] which I missed to include >>> along with the series. >> >> You completely miss the point. Read the first sentence again. Changing >> driver requirements changes the ABI. >> >> This breaks the ABI. The driver patch does not help that. > > I'm not following you here. If the DT binding makes a mandatory property > optional, it doesn't break any existing platform. The only thing that > would not work is a new DT that doesn't contain the now optional > property combined with an older driver that makes it required. That's > not a regression, as it would be a *new* DT. You're right although in-tree DTS are now not compatible with older kernels. So it is not only about new DTS, it is about our kernel DTS which requires new kernel to work. DTS are exported and used by other systems, thus if someone blindly takes this new DTS without clock-names, his kernel/OS/bootloader might stop working. That is however a more relaxed requirement than kernel ABI against old DTS. > >>>> Also, with 'clock-names' dropped, you've just introduced a bunch of >>>> warnings on other people's platforms. Are you going to 'fix' all of >>>> them? >>>> >>> Yes I will fix them, once the patch driver patch [0] is merged in. >> >> Why? You are just making extra work. We have enough warnings as-is to >> fix. > > I agree that a DT binding change should patch all in-tree DTS to avoid > introducing new warnings. Yes. Best regards, Krzysztof