Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1083784rwi; Wed, 26 Oct 2022 10:32:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Fvy4383PG01cfXEZQLSr1smnlMbUblD4OpU1MEJ5iLU9bIW/SUg24nJHW3KER8ehC36C3 X-Received: by 2002:a17:902:db01:b0:186:9329:723f with SMTP id m1-20020a170902db0100b001869329723fmr22118857plx.172.1666805529555; Wed, 26 Oct 2022 10:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666805529; cv=none; d=google.com; s=arc-20160816; b=cI546F98jH79nGCYmHvf3bPn7iYIt6emYOSb0WeQsAxcaj/LQSFjOexQmDonSj2Yqa UsgVlmlUwBbmsDkVskxLsykUy7cDbmHIXdlQ2qxZgjTxWQ8pA9pzhUmmmjRLhcFaY6i2 xdlCzeUkq5I15XBhJboW97Qw5FbifGMwHzfIBYonTP81rKFSg2oqAtkeURoUbrUJ1QOM 2oPM22kTrTj410ontXotH5qlvwLnFa6B4kKnUPMhB1PFAWVoiCJ/5Yqu2G4YI7jHZ4n9 mB6m/bIHjQlqBVLjrPGxXnlJ4Xu7w1FSgXsQQ8BoP3OCXggP1npFQFqa6m8HJN4fDRIN K7qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Vi8sx4aHNpojzRYzXmqjTrqY6mW5GyQ8eA3RJ1HlulQ=; b=KmR75rcKBvxOyLivVAGnd4Zil2N2FBOH9sJNTT91dioRcgdgHRnZwm3kbyPy15N3hB jRb+GyZp2LslNOWroc2EUzEf5ayzx5ff+5k2ew4GSxa/v//pb1xaXmLCeSp3i1W5CiJI MeIZotulJoMlieVDMXhRw/oLyxrxnUANfTzBwSWvNqbIbcA0rOaLtZlS37liNWdcYZI9 QukiySGMuAd9gUAB6S/gWCpC9eulcHtO3CHA9ljsfwS1FqWQ5MQvUyhvVBLSFPWDfDBH +H53j65jFc/nHYpxPKdGBfiAp3x5PjVt1v94qsMUjuHCuSsPQnBhhRERaVoEe9U4xGHU 0/+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=anP5j2gq; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a170903018700b0016c44b7c8c5si8319821plg.11.2022.10.26.10.31.56; Wed, 26 Oct 2022 10:32:09 -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=@kernel.org header.s=k20201202 header.b=anP5j2gq; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233942AbiJZQ44 (ORCPT + 99 others); Wed, 26 Oct 2022 12:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233893AbiJZQ4x (ORCPT ); Wed, 26 Oct 2022 12:56:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B1869AC11; Wed, 26 Oct 2022 09:56:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D5B2CB82389; Wed, 26 Oct 2022 16:56:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81CAAC43147; Wed, 26 Oct 2022 16:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666803409; bh=Vi8sx4aHNpojzRYzXmqjTrqY6mW5GyQ8eA3RJ1HlulQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=anP5j2gqPlA0CJUatDTr2DdhObFHUzWHqJfMkJ2XwAhpxjrmo9+g3+huQbX1jq544 dNvq+Lj+aO/+ADOWr3wMz3fPM3StPYP/BfgTuiuQtLGzqen1ftnp7HbBCH7mIJ3YjD LnkRpUl4PufDhzyKpxewCF7hyXIuLHL+s9037D29o1S/gtMMd+BQhzQeHEjgvKnNXL XC3CiCVHG8umwyfVnrYHjNUl+hfoeFRHSvUpYOAqUjajznc5qyqe+Ky8taqLCzy2Mf C2t7zJBY/wlYUluEPXIfKLsZcWgUnTeZMCwe8V6Biv91Yv6X/JzJBoaZ3Eu2KI7QGg BNbjBnSBRx0Og== Received: by mail-lf1-f46.google.com with SMTP id j4so30022202lfk.0; Wed, 26 Oct 2022 09:56:49 -0700 (PDT) X-Gm-Message-State: ACrzQf2EELtfqnjpRayPEpG6FYES/RVUNYGAwI8WIm5TYRk9X7y6R1OH LaUkqKnpk1NSyvtzIrN8Iwn6zGfpsqA+kEWz7g== X-Received: by 2002:a05:6512:3f0e:b0:4a0:45b7:a8dc with SMTP id y14-20020a0565123f0e00b004a045b7a8dcmr16030816lfa.368.1666803407497; Wed, 26 Oct 2022 09:56:47 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Rob Herring Date: Wed, 26 Oct 2022 11:56:38 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/5] media: dt-bindings: ov5645: Convert OV5645 binding to a schema To: Laurent Pinchart 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sat, Oct 15, 2022 at 12:54 AM 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. > > > > > 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. That is not what I was saying. Why not just keep 'clock-names' and go spend the DTS fixing time fixing some other warnings that we already have. Also, there is no requirement that converting bindings also fix DTS files. The only wish is that any warnings we do see are ones deemed needing to be fixed in the DTS file. Anyways, there's patches now for the new warnings, so nevermind on this one. Rob