Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAC25C433EF for ; Fri, 22 Oct 2021 04:47:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7221B610D2 for ; Fri, 22 Oct 2021 04:47:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7221B610D2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B92BF89B51; Fri, 22 Oct 2021 04:47:42 +0000 (UTC) Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E9A889B51 for ; Fri, 22 Oct 2021 04:47:41 +0000 (UTC) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E8BCB51D; Fri, 22 Oct 2021 06:47:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1634878060; bh=G7T6wZkmrWLHbctwp4ctx4alzTbYKzVDezqLPHMiKe0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W/brV8VOxlPHQ0b1U9/XRwEUOyfHjdMY4JDujpx8mPXzYg5xVSgKfzmsKSAuwwwFy QOi7CMXVQ7mwa+GKOGLFLyNKrrXMlNLpJIrL3VLDjnF8Gc67OI6V9kqBUcNGppL4+D gjclIMtiN9UXtpkwcGjk4a6vBAYPf/e4cZ9qRLKU= Date: Fri, 22 Oct 2021 07:47:19 +0300 From: Laurent Pinchart To: Maxime Ripard Cc: Rob Herring , Frank Rowand , Chen-Yu Tsai , Jernej =?utf-8?Q?=C5=A0krabec?= , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 1/7] of: Make of_graph_get_port_by_id take a const device_node Message-ID: References: <20210929084234.1271915-1-maxime@cerno.tech> <20210929084234.1271915-2-maxime@cerno.tech> <20211021074843.yxbzoasfyxmzmukf@gilmour> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211021074843.yxbzoasfyxmzmukf@gilmour> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Maxime, On Thu, Oct 21, 2021 at 09:48:43AM +0200, Maxime Ripard wrote: > On Tue, Oct 19, 2021 at 03:02:13PM +0300, Laurent Pinchart wrote: > > On Wed, Sep 29, 2021 at 10:42:28AM +0200, Maxime Ripard wrote: > > > of_graph_get_port_by_id doesn't modify the device_node pointer it takes > > > as argument, so we can make it const. > > > > From a C point of view that's right, but conceptually speaking, is it > > right to return a non-const child port node of a const device_node ? > > I mean, I guess not, but you're the one that asked for it: > https://lore.kernel.org/dri-devel/YBAiztjg0Jji9voK@pendragon.ideasonboard.com/ Oops. Looks like I must be wrong with at least one of the two comments. Please pick the option you like best. > I can change it if you want, but certainly not if the only comment I get > on this series for the next year is going to be over whether or not > arguments of functions unrelated to the main intent should be constified > or not. DRM/KMS seems to suffer from a deficit of reviewers in all non-desktop areas :-( -- Regards, Laurent Pinchart