From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC1F3C433E0 for ; Tue, 23 Feb 2021 14:49:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 590E864E61 for ; Tue, 23 Feb 2021 14:49:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231976AbhBWOt1 (ORCPT ); Tue, 23 Feb 2021 09:49:27 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:43834 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232997AbhBWOtX (ORCPT ); Tue, 23 Feb 2021 09:49:23 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 8AFB91F44D4B Message-ID: Subject: Re: [PATCH v3 8/9] dt-bindings: media: nxp,imx8mq-vpu: Update bindings From: Ezequiel Garcia To: Rob Herring , Benjamin Gaignard Cc: Philipp Zabel , Mauro Carvalho Chehab , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , Greg Kroah-Hartman , Maxime Ripard , Paul Kocialkowski , Chen-Yu Tsai , Jernej Skrabec , Peng Fan , Hans Verkuil , Dan Carpenter , Linux Media Mailing List , "open list:ARM/Rockchip SoC..." , devicetree@vger.kernel.org, linux-arm-kernel , "linux-kernel@vger.kernel.org" , Collabora Kernel ML Date: Tue, 23 Feb 2021 11:48:29 -0300 In-Reply-To: References: <20210222122406.41782-1-benjamin.gaignard@collabora.com> <20210222122406.41782-9-benjamin.gaignard@collabora.com> <20210223003442.GA2516123@robh.at.kernel.org> <25f30110-d655-2d77-d3b7-30c1c61f6965@collabora.com> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.2-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Rob, On Tue, 2021-02-23 at 08:31 -0600, Rob Herring wrote: > On Tue, Feb 23, 2021 at 2:04 AM Benjamin Gaignard > wrote: > > > > > > Le 23/02/2021 à 01:34, Rob Herring a écrit : > > > On Mon, Feb 22, 2021 at 01:24:05PM +0100, Benjamin Gaignard wrote: > > > > The current bindings seem to make the assumption that the > > > > two VPUs hardware blocks (G1 and G2) are only one set of > > > > registers. > > > > After implementing the VPU reset driver and G2 decoder driver > > > > it shows that all the VPUs are independent and don't need to > > > > know about the registers of the other blocks. > > > > Remove from the bindings the need to set all blocks register > > > > but keep reg-names property because removing it from the driver > > > > may affect other variants. > > > > > > > > Signed-off-by: Benjamin Gaignard > > > > --- > > > > version 2: > > > > - be more verbose about why I change the bindings > > > > Keep in mind that series comes after: https://www.spinics.net/lists/arm-kernel/msg875766.html > > > > without that review and ack it won't work > > > Better, but you've still mentioned nothing about breaking compatibility. > > > Why is that okay? > > Indeed, the commit description should be clearer about breaking compatibility. > > Because this reg-names wasn't used before for this variant so remove it won't change anything. > > It is the reset changes in the driver that break. The driver > previously got the 'ctrl' registers whether it went by name or index, > right? With an old DTB and a kernel with the changes (and vice-versa), > you'll have nothing to handle the VPU resets because the VPU reset > node doesn't exist. It could work if the default state is not held in > reset. > > At least the removal of 'ctrl' registers belongs in the reset changes series. > > Considering that FFMPEG patches that are required to support this driver are still floating around, and GStreamer's implementation is also still a bit under discussion, we are certain there aren't many upstreams users (leaving ChromiumOS aside which mostly care for Rockchip variants). So, given the driver is in staging, and that there aren't users of the i.MX8MQ G1 variant just yet, I think we are safe breaking the compatibility (and I'm not taking it lightly). It would be important to detect an old devicetree and do some pr_warn about the driver not supporting it. Thanks, Ezequiel