Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6269605pxb; Thu, 27 Jan 2022 09:58:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLRStixHXX7kuNA6d1dGazcUl/5nMfJvxqgQPZQbhWLGbYqBshbIfxU5GjfTevhp58RXuX X-Received: by 2002:a17:906:7308:: with SMTP id di8mr3885909ejc.464.1643306322643; Thu, 27 Jan 2022 09:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643306322; cv=none; d=google.com; s=arc-20160816; b=STP9+CnhXirEPcPhFGOVSfyhLXWGDKBFf4MeKZpZm5tMjpKwWG4Db339GSxJarcsMw JKewlHH6rB3BVJq1jQQYGxbzmMKJlJNbBWoExvul3O1iniDVHrk93Nb8h9TORFn6jVow NGT02L4IRoquuWEPgy0jxvy+qUqHeYFwraLMkTlLo95nDSxltHosCUjsV2/00NkgF7VG O8gp4SpHYh3uUwDPo/EBfJYI5CpL9KTh/eB8mDnYWBehvTAfmvdid5meTe95VSK0MYex iob3aTR1r++mWrOyrAmSXW3/5sr/Msa0NEFyiXZihha6n+reLI331fqGCERDoT5qVP6G AA7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=uUw4yN3EECpYTaQIV+Zd6eYgQaCP6R+bm2RZWVf5V28=; b=JXUoWP2SVxTVGLnEB1dbtj3XIpBd1ZArodxUCe7eFPr7fcCkes2wwniXXGNquY515g 6iaw4Toh8APF+U3MhxfurRVVFin13uZjIp9ts3g9Kc5jPkAjdkxl1CwH94dRga70KvHZ s7fJZlJ1MdvLcL8maWs9PFnAjhdxrX+QBEtcKH2Ng2lA42vQQ/p0YhQp4dFjocvddPaT WRCM06n8jC9laZobnN9P+W98klQ6WcRQTnxQNH0W1+YgLPbNTwCGfvDlftiyrdetpS21 hXF8ShRe3jWP7t9BJ1AcXP3kYFgTDppv2pdhN3DnoboXl9HS/5YrT/o/QUCossvrant+ VsYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=A+56cwLI; 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id js7si1796432ejc.734.2022.01.27.09.58.17; Thu, 27 Jan 2022 09:58:42 -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=@collabora.com header.s=mail header.b=A+56cwLI; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239512AbiA0Kc5 (ORCPT + 99 others); Thu, 27 Jan 2022 05:32:57 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50236 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239571AbiA0Kcx (ORCPT ); Thu, 27 Jan 2022 05:32:53 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id C6C341F44FF6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1643279572; bh=3IabDGDX1X8Lt5ZJt6EaeuvYuynxAJ9WYVmwg7VmWFI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=A+56cwLIlE83emP51k58CylI86F66rWP4M+qdLmNZZXsyQsc/rk7rAaw9cQ9GfzN2 NFg1ESq9RvxlhQuPqpZ83YpsLZus80W1ZC+B03U52ypPP8BL6wO3m32ed7gnMgJ2g/ hYfaG3ddeF05kmu1TeS4zl1baGU/pyAENVuy6BHej1ROueYVRX5rOB06JdZgobg954 3KMh+vmTcgCJdQBuNDcBUqT/aVC2iPZdL/6ZFD6RBQYPJZsXyGW6fomKu+HiEwa3tL uZcaLZLdxBXNXqKu4XmBlgD7wBnMkkbqvI163A8FUnXoM2gQ27qBysJBPxG+n1bS1O Flfp/NL33MO7Q== Subject: Re: [PATCH v2] drm/mediatek: mtk_dsi: Avoid EPROBE_DEFER loop with external bridge To: Jagan Teki Cc: dri-devel@lists.freedesktop.org, chunkuang.hu@kernel.org, airlied@linux.ie, linux-kernel@vger.kernel.org, andrzej.hajda@intel.com, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, kernel@collabora.com, linux-arm-kernel@lists.infradead.org References: <20220104095954.10313-1-angelogioacchino.delregno@collabora.com> From: AngeloGioacchino Del Regno Message-ID: <4b46b8ce-7300-ef42-eb17-efd87ebdf773@collabora.com> Date: Thu, 27 Jan 2022 11:32:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Angelo