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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B636C6FA99 for ; Sun, 12 Mar 2023 14:45:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbjCLOpb (ORCPT ); Sun, 12 Mar 2023 10:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjCLOp2 (ORCPT ); Sun, 12 Mar 2023 10:45:28 -0400 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 746FB3D09D for ; Sun, 12 Mar 2023 07:45:27 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 3EC17DFEB9; Sun, 12 Mar 2023 07:45:27 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vrpthDcHlxmp; Sun, 12 Mar 2023 07:45:26 -0700 (PDT) Message-ID: <4737cacc741c939ca1d980a4858d0748faad11f8.camel@puri.sm> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678632326; bh=Hbkdz18G2p6Un6hj+EQBbkrUeccuvYRQon6o6yKSeKw=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=M85dJVsJSzzLoCFOUV/CITJ09KQuHTcOYz0VLn65npKjIn6krZiwp+AHDIe+R9tiz HOTNR6sv/jusJBoHq/XQzQaXlCbw1Nzh2ZC6Lt1zV2lS0n6O4LtQHamCQ2mUV/lUxK Z5TRLmcL/D9ZZiWJSVhTjqHXhDjoHTLZFkxUZbza8gF761/kaqoC50CZIh663NreM+ IiOq1gP9wg2jdBke3+i2iYTMBA/uRIiOoajrGgMW3Nma5nL6C6PhsqYhm3JpgyC/fD 4Kk1z8zp6fpybXB5xi9DjeINgNjkuQXv01us9D1P5Fh5WzZUclJdrYQWfNV9yCHDHo nhFCL/Et8py3Q== Subject: Re: [PATCH v1] drm/mipi-dsi: Set the fwnode for mipi_dsi_device From: Martin Kepplinger To: Saravana Kannan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Thierry Reding , Andrzej Hajda , Kyungmin Park Cc: kernel-team@android.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Date: Sun, 12 Mar 2023 15:45:22 +0100 In-Reply-To: <20230310063910.2474472-1-saravanak@google.com> References: <20230310063910.2474472-1-saravanak@google.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1+deb11u1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, dem 09.03.2023 um 22:39 -0800 schrieb Saravana Kannan: > After commit 3fb16866b51d ("driver core: fw_devlink: Make cycle > detection more robust"), fw_devlink prints an error when consumer > devices don't have their fwnode set. This used to be ignored > silently. > > Set the fwnode mipi_dsi_device so fw_devlink can find them and > properly > track their dependencies. > > This fixes errors like this: > [    0.334054] nwl-dsi 30a00000.mipi-dsi: Failed to create device > link with regulator-lcd-1v8 > [    0.346964] nwl-dsi 30a00000.mipi-dsi: Failed to create device > link with backlight-dsi > > Reported-by: Martin Kepplinger Reported-and-tested-by: Martin Kepplinger thanks, martin > Link: > https://lore.kernel.org/lkml/2a8e407f4f18c9350f8629a2b5fa18673355b2ae.camel@puri.sm/ > Fixes: 068a00233969 ("drm: Add MIPI DSI bus support") > Signed-off-by: Saravana Kannan > --- >  drivers/gpu/drm/drm_mipi_dsi.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_mipi_dsi.c > b/drivers/gpu/drm/drm_mipi_dsi.c > index b41aaf2bb9f1..7923cc21b78e 100644 > --- a/drivers/gpu/drm/drm_mipi_dsi.c > +++ b/drivers/gpu/drm/drm_mipi_dsi.c > @@ -221,7 +221,7 @@ mipi_dsi_device_register_full(struct > mipi_dsi_host *host, >                 return dsi; >         } >   > -       dsi->dev.of_node = info->node; > +       device_set_node(&dsi->dev, of_fwnode_handle(info->node)); >         dsi->channel = info->channel; >         strlcpy(dsi->name, info->type, sizeof(dsi->name)); >