Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp174652pxv; Thu, 24 Jun 2021 05:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/MGX3AF72iromZoMuq/pmmDnnexF83HIDlViLkbSjUJrcuVpfo53sJEbuLvlXpafiTMaW X-Received: by 2002:a17:906:3485:: with SMTP id g5mr4972923ejb.174.1624538187859; Thu, 24 Jun 2021 05:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624538187; cv=none; d=google.com; s=arc-20160816; b=o0Y2YpM3Q7dqZIFY61S1Lc/tY6sT32cHHq2n/BiPKZfuqjuEkQ5qP8rKwJ/TG4qC4b +xbxZA0p3So/R5OoAhzHy/i88/aoPyF4RrPoDTG+d6LDqyKMvqRw7JejqzL6/UCKR0kb 3/FNpSOLVWhdSIL2nppD7j+4MrfUdhg/avsIGZl/iCi9wZ/RNk7109od9eMBW6vce7nR P4uD+nvrZzlfTO5EP9lKR7/42B9s+61QrBUTD6HjaR8GLq9JGfY5HAE4SkjYT9YBWXrg xiIr2oBi+bgvaxptTDMGu/o+PaYLpbEdVLRFNFZImaYb30rs7LksbQ8M3zz0r6lnYkfo 2eBQ== 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=JrS4IPVgEYnoiDcj56Qmce7AHyXhyRxqB9J3hfr4IBs=; b=pup2dygkEGMuuQDaya2fK9IH5gj75xmEcVK8qydSwytWxI9WOdSTa+RhmSRyGhqM4Z K+CaLUvPGwvIEnaVWF7hj2HSmbjVShyQ6xSnC34EXtOsMCqZUZVqFhvkxsCJOzaFoGuf N7MC2Y5KQjDncFsAB1RA0JiS2AQBn1VlKeTsdhcK2oYA4NgRY/l4szrBfXnY8O82V1GT ECIv9ADo9Nf+9fOSp7redD0MMLlSyeFMD1vWYTc2yB2u+RXcUX6kQDFpy8c3z75GBuHj 22pWkBNx3OpjTyeLnUNFSVv7TJtTInO+nHQqmEwgh9IWlAHPHgc9Ca7Vl8+gd3znN74W 2H7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cqiPcWco; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz20si3252488ejc.486.2021.06.24.05.36.05; Thu, 24 Jun 2021 05:36:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cqiPcWco; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230288AbhFXMhJ (ORCPT + 99 others); Thu, 24 Jun 2021 08:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhFXMhI (ORCPT ); Thu, 24 Jun 2021 08:37:08 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF03BC061574 for ; Thu, 24 Jun 2021 05:34:49 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id w13so2302442edc.0 for ; Thu, 24 Jun 2021 05:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JrS4IPVgEYnoiDcj56Qmce7AHyXhyRxqB9J3hfr4IBs=; b=cqiPcWcohbI63n9hvXxwO0W8g2GbPxBdWjUdDvwSpT59P80Oyl8Ixgx26WIHDJ6WEY Ssm887eDP93Z3vkJzGZCF9mPfnHNrXDkbN0ix2RJPNwFpdHsaww0zGAIuu1O5bHEMFdi 5EMGwBwNy/rhXYegxrbmzylxSWadgu+ec6WbY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JrS4IPVgEYnoiDcj56Qmce7AHyXhyRxqB9J3hfr4IBs=; b=dW77WRZv0mZcR3xZiX37zpXlLk9ffPzJz5o1Z695x63KfV3/SAiyA4uerbwSXuNNqx r67V20rVNFonagAx5AzXco/h42D8lKOwLD/uEnnhCKihpQksj391h90fSzvjb7Dbwdvl 90P5cfqsV5joXCZ73vTRxLUk1bJLzJgwMNT6hcULinTYpVxjK3FspHxI97ZJGDbrC3a1 23J5uwU9GoLf1d3xIoNK80qK9wISSuvi3z0NnIHGTJo/nu3kgSHEHtQXWDScktM75R8F KxwxBjC4YSnVPZ5JEgrpZTvLha1DnGec0sVjLITWGuBaH3WtCkRqTTjloTzwy+NSw2kO 7BVQ== X-Gm-Message-State: AOAM530U8+2mv9fJBPBn6lL4+/hxPY4DH6ZWY7PeVEmybCpP8b6H99Sw jBI1NpAiw+u6E2hdxh6fhNgvT+tBJteFaDn2B2UvIA== X-Received: by 2002:aa7:cf03:: with SMTP id a3mr6915604edy.27.1624538088480; Thu, 24 Jun 2021 05:34:48 -0700 (PDT) MIME-Version: 1.0 References: <20210203091306.140518-1-jagan@amarulasolutions.com> In-Reply-To: From: Jagan Teki Date: Thu, 24 Jun 2021 18:04:37 +0530 Message-ID: Subject: Re: [PATCH] drm/bridge: dw-mipi-dsi: Move drm_bridge_add into probe To: Jonathan Liu Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Sandy Huang , Heiko Stubner , Yannick Fertre , Philippe Cornu , Benjamin Gaignard , Vincent Abriou , Jernej Skrabec , Jonas Karlman , Sam Ravnborg , linux-kernel , dri-devel , linux-amarula Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, On Fri, Jun 18, 2021 at 6:40 PM Jonathan Liu wrote: > > Hi Jagan, > > On Wed, 3 Feb 2021 at 09:13, Jagan Teki wrote: > > @@ -1167,6 +1151,20 @@ __dw_mipi_dsi_probe(struct platform_device *pdev, > > dw_mipi_dsi_debugfs_init(dsi); > > pm_runtime_enable(dev); > > > > + ret = drm_of_find_panel_or_bridge(dev->of_node, 1, 0, > > + &panel, &bridge); > > + if (ret) > > + return ERR_PTR(ret); > > On RK3399 if the error is EPROBE_DEFER, __dw_mipi_dsi_probe can be > called again and result in the following errors: > [ 0.717589] debugfs: Directory 'ff960000.mipi' with parent '/' > already present! > [ 0.717601] dw-mipi-dsi-rockchip ff960000.mipi: failed to create debugfs root > [ 0.717606] dw-mipi-dsi-rockchip ff960000.mipi: Unbalanced pm_runtime_enable! Is this when you test bridge on rk3399 or panel? Jagan.