Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp31882pxb; Wed, 24 Feb 2021 17:17:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnwY+4dcWagJEBrgDH1GF9146PoI8D9/ARCLw05NLx+Yy7Z6yseXpKk/1lQULdwt+OyL0C X-Received: by 2002:a17:906:4045:: with SMTP id y5mr336229ejj.529.1614215861964; Wed, 24 Feb 2021 17:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614215861; cv=none; d=google.com; s=arc-20160816; b=WnbhR/BFzYxj0ck4Y6JlizfqgqdwKuW92zVT6szRrXxCuURy6iPs+xLwMnsG639m+T 3U9Mo6ylu0aQAgQVW5opYndHD/YX9yEicOgm1ll+7a4ToLC2x8MRG+6oD/b7BdW5wqLl y4PFJUvz6z5wIcrspGvwHpjy9EQ+T04ukdlnGQqASTvEszyPSr+MHpoJLD2Cn8cnawVC A76G75L384sk3IoFzUG6gErczbudU8RFFSA5dANrvxUZ57Sej7sJZ5VVy+HAmyYpedZE VOdVmgb79pLZdOT932v3nlpHHs84xEW1D57GZ0NNQydwV/PxcjE55Qcf2sQdWdcqBoId fIcw== 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=WIaWLlRGMPWjJAANsdhm+dxvE3B3PRnitJWx+eVprg8=; b=gBLF3qADxpu+b9QNrOPzFbbdLFnBuns6DMYaBnH88vCDa517reEaNTfXN999rkDfIX AE7WRN2gLmXVBCOW/B0XcYHO8ifkMKpf2eZeQ2om6L9j3Tg+kdj52u2EDxB0QeLjYLY2 DCyvfccDfZ1YAOV2YQcu2maVqLZWgh7klP10s4tY/+NImN77ZDvqypl/p3M1S+jS8ts/ GTcuRPe4xQYUOTVUSy75E6zWGwkaxTzRodE0SI/JUE+rGIgest0pAhy7c2u2kKKWPDRu n2EvGJaBkiM9ZL+4eSI5spRQI7cDkQM2EmVKvkUg8G7zoxmoOz3zKScOugCquh2UwU8q eVZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hHt2LHfZ; 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 w26si2517088ejf.489.2021.02.24.17.17.17; Wed, 24 Feb 2021 17:17:41 -0800 (PST) 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=hHt2LHfZ; 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 S235863AbhBXRDt (ORCPT + 99 others); Wed, 24 Feb 2021 12:03:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235826AbhBXRCT (ORCPT ); Wed, 24 Feb 2021 12:02:19 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B385C061788 for ; Wed, 24 Feb 2021 09:01:33 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id d2so3404669edq.10 for ; Wed, 24 Feb 2021 09:01:33 -0800 (PST) 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=WIaWLlRGMPWjJAANsdhm+dxvE3B3PRnitJWx+eVprg8=; b=hHt2LHfZIrOKnIfRckmAg+Yq/qIAkw5e+fAWcDfPizCozNYpxuHndetb0bIgO0HaV4 vPfnFXpTnTetk0vb2tM/+XUzPiYn/LgxErMIKzFWuXy7h/cF3ZtUCeJ2deFUQkGZNZIG agX74bsYx8h5rrXrYRQr7D6l9S8to6FDPJ8HU= 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=WIaWLlRGMPWjJAANsdhm+dxvE3B3PRnitJWx+eVprg8=; b=te/cGCkYHqNgMeOaF2LENTVqO/aIivCScMRLUcfWftmLdIJI4q3ScZLj7qdTkwSxjs wSzpbbFHL5JmFa8vqZc1iuzWsEbI3kat3pVMSIg/dLjErvgrgX87AEdYR6eKeB/ORgfj pJ99ll1aJ/1Zzoc4YTe70y+qtoyXEngmATOM+jB7SwbIrvcDNvYNdyAnIhOPXBaHOcWL vJQRDE3xU8ijfTV7YgNOblvjWg78wQU2sgqHdg9aVr9DlySw93/FyMX2A4kCCCrVpXh/ sQW2WImmLp4WW/agTVc6O2wvq5C4LPManmRVTh9P7LAZNsuNAttCYyb0xQAp7lZndIxy olGA== X-Gm-Message-State: AOAM531+3uN1aaAsVbbw4UV2JdijfHMW158rk3WEarkDehZQYQ1bndw+ WxjuGqFb07cg2eiAq6NEe7vcC9/4IUSKiVOeme/YDw== X-Received: by 2002:aa7:c542:: with SMTP id s2mr14136553edr.369.1614186091162; Wed, 24 Feb 2021 09:01:31 -0800 (PST) MIME-Version: 1.0 References: <20210203091306.140518-1-jagan@amarulasolutions.com> In-Reply-To: From: Jagan Teki Date: Wed, 24 Feb 2021 22:31:19 +0530 Message-ID: Subject: Re: [PATCH] drm/bridge: dw-mipi-dsi: Move drm_bridge_add into probe To: yannick Fertre , Laurent Pinchart , Heiko Stubner Cc: Andrzej Hajda , Neil Armstrong , Sandy Huang , Yannick Fertre , Philippe Cornu , Marek Vasut , 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 Yannick, Thanks for testing this change. On Mon, Feb 15, 2021 at 1:39 PM yannick Fertre wrote: > > Hello Jagan, I tested your patch on the stm32mp1 board. > Unfortunately, the dsi panel does not probe well with this patch. The > problem is due to the panel which is placed in the node of the dsi > bridge (no problem with i2c devices). > > Regarding component bindings for stm drivers, I am currently working on > a new version. 1. All non-I2C bridges are attaching dsi via mipi_dsi_attach during the bridge controller probe and that would be expecting panel_or_bridge need to be in DSI host attach. 2. I2C bridges are attaching dsi via mipi_dsi_attach during the bridge attach function and that would be expecting panel_or_bridge need to be in DSI probe. I believe these types of DSI controllers followed by DSI panels, bridges are not available in Mainline. if I'm not mistaken. Adding component bindings in this regards never helps, this seems to be common for component or non-components DSI host drivers. One way to handle this issue can be during drm helper initialization, like attaching the dsi host instead of calling directly from bridge or panel drivers. Laurent, Heiko - let me know your suggestions if it make sense, thanks. Jagan.