Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp253226pxb; Thu, 27 Jan 2022 20:58:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8cOpRRseiHAO1AC78OtaBbr4I4YzgFJtD5R/oYNp8TkScrKpoibY8Gx3upJJem+6G4jZh X-Received: by 2002:a65:6a46:: with SMTP id o6mr5404101pgu.465.1643345934704; Thu, 27 Jan 2022 20:58:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643345934; cv=none; d=google.com; s=arc-20160816; b=jiNiNY39NcWepqbcs4NqrT6X+empFOj4t1HMayO6WSf2A+Db9Fn9rXcYeiBu//Wo47 +tesmnZCsbZ1hiEkObKKD5aWznVXA/QBZ51vWsmFNy2d0/6dfAYv5zK3P4nq/9RVYkI4 T4u3fdB8UJkGZ9CELTl8iHs593zLmWS8GKAqTrF33CFbjxudFP1Hrc4Kuc6LRtiZNlY9 TjbLbRmvxz45o9Gv6NXNmSBIFv98bZmPadrQDoXuOancwYxHVAIy95HgAkZatv9G+ydV 8lSE7hu+FvPsYLeSvcgiCgoK+3SIEYSEGvPTUOWs4WVQPNLX63ck7Bj+sG8Sa0X9KUmX RkUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=WCMicAv3m6+CZEJhY0E/ZNuhdvOx+mnIiD563lWYSKA=; b=s0Wp3z98IUG5siB4kbvcYfGNSWhZLSn0A/wqH+hKs9obb3/ErKeh1B4LGF4rqgn7U9 SXgP36xdJ/gLc/32tnPYoxyYCVeGYl3OsQcb59qTaTa4iuqMzZMSSVtBH+eZbWejcUDn OgVXbTY9fZYtAkfjS2UftmJC4KuOMpOuGIWUhCLIRYoaycTMZL2by7/a5f0xKKrWOL8t VhxvJW2/xUFq68GlaOdfKt25/8lC6tswfj9xGgXo4zXiupRUdsfuGQswC/9HFFyGVn6b yAozY+hTjJFnpKlYv+moJ5qLsX9/VhCGjLj7CsVFiF0S2cZ6v7675HciAik4+0FeNg2Z r9Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DRVGMFEr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj7si1485436pjb.180.2022.01.27.20.58.43; Thu, 27 Jan 2022 20:58:54 -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=@kernel.org header.s=k20201202 header.b=DRVGMFEr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242315AbiA0OVw (ORCPT + 99 others); Thu, 27 Jan 2022 09:21:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230206AbiA0OVw (ORCPT ); Thu, 27 Jan 2022 09:21:52 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA961C061714 for ; Thu, 27 Jan 2022 06:21:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 507F1B822B2 for ; Thu, 27 Jan 2022 14:21:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2603FC340ED for ; Thu, 27 Jan 2022 14:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643293309; bh=WCMicAv3m6+CZEJhY0E/ZNuhdvOx+mnIiD563lWYSKA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DRVGMFErQez4uI09aLW6MW8vJ+nmNOerjljTHckS3hsk7gLkS4Zgen4nLH1sRJzUx wYiQsLJZVfcfEdJ6SZQ+H1vPUxpvVqERDeYW/bnWhEmd59MBrCdsrfQ84uiqtWFLPJ 08eE0gqxDdNEPbv8BGGA7DhCjIKy+vUg0WjQmRZYtTnJNBa0C3Mq7oOKBeSMR91OcJ By0YEZKDTe+T2dcoc0sC9o9fhA1R5XuMjusE11hoL6UKkXIPnRpVmWYFzvoeFGSzyy DKkm5fv6xnG4O3b3af3yuc3DzW2PMUKQJPTuN6URw3U9s85mzvhvcxSAIKq+ymJeL2 CnYGRw5FV9+YQ== Received: by mail-ej1-f45.google.com with SMTP id me13so6084837ejb.12 for ; Thu, 27 Jan 2022 06:21:49 -0800 (PST) X-Gm-Message-State: AOAM530XjqZxe/N4aZHdbD/AE+BUKq4WX5Ph8y0XLSHhynXgTQxDWYWj WeG6QPW1x94JDlSfNoJu1K+LI7Rgugr1wssAMg== X-Received: by 2002:a17:907:a089:: with SMTP id hu9mr3168116ejc.680.1643293307414; Thu, 27 Jan 2022 06:21:47 -0800 (PST) MIME-Version: 1.0 References: <20220104095954.10313-1-angelogioacchino.delregno@collabora.com> <4b46b8ce-7300-ef42-eb17-efd87ebdf773@collabora.com> In-Reply-To: <4b46b8ce-7300-ef42-eb17-efd87ebdf773@collabora.com> From: Chun-Kuang Hu Date: Thu, 27 Jan 2022 22:21:35 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] drm/mediatek: mtk_dsi: Avoid EPROBE_DEFER loop with external bridge To: AngeloGioacchino Del Regno Cc: Jagan Teki , DRI Development , Chun-Kuang Hu , David Airlie , linux-kernel , andrzej.hajda@intel.com, "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Collabora Kernel ML , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Angelo: AngeloGioacchino Del Regno =E6=96= =BC 2022=E5=B9=B41=E6=9C=8827=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=886:3= 2=E5=AF=AB=E9=81=93=EF=BC=9A > > Il 12/01/22 08:09, Jagan Teki ha scritto: > > On Tue, Jan 4, 2022 at 3:30 PM AngeloGioacchino Del Regno > > wrote: > >> > >> DRM bridge drivers are now attaching their DSI device at probe time, > >> which requires us to register our DSI host in order to let the bridge > >> to probe: this recently started producing an endless -EPROBE_DEFER > >> loop on some machines that are using external bridges, like the > >> parade-ps8640, found on the ACER Chromebook R13. > >> > >> Now that the DSI hosts/devices probe sequence is documented, we can > >> do adjustments to the mtk_dsi driver as to both fix now and make sure > >> to avoid this situation in the future: for this, following what is > >> documented in drm_bridge.c, move the mtk_dsi component_add() to the > >> mtk_dsi_ops.attach callback and delete it in the detach callback; > >> keeping in mind that we are registering a drm_bridge for our DSI, > >> which is only used/attached if the DSI Host is bound, it wouldn't > >> make sense to keep adding our bridge at probe time (as it would > >> be useless to have it if mtk_dsi_ops.attach() fails!), so also move > >> that one to the dsi host attach function (and remove it in detach). > >> > >> Signed-off-by: AngeloGioacchino Del Regno > >> Reviewed-by: Andrzej Hajda > >> --- > > > > Eventually I've observed similar issue on other Component based DSI > > controllers, hence > > > > Reviewed-by: Jagan Teki > > > > Hello dri-devel, > can you please pick this patch? > > All MediaTek platforms are broken in v5.17 without this one. Please add Fixes tag [1] to this patch. [1] https://www.kernel.org/doc/html/v5.16/process/submitting-patches.html Regards, Chun-Kuang. > > Thanks, > Angelo