All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Remmet <J.Remmet@phytec.de>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Robert Foss <rfoss@kernel.org>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Jonas Karlman <jonas@kwiboo.se>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Inki Dae <inki.dae@samsung.com>,
	Jagan Teki <jagan@amarulasolutions.com>,
	Aradhya Bhatia <a-bhatia1@ti.com>,
	Aradhya Bhatia <aradhya.bhatia@linux.dev>,
	Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
	Devarsh Thakkar <devarsht@ti.com>,
	Dmitry Baryshkov <lumag@kernel.org>,
	Alexander Sverdlin <alexander.sverdlin@gmail.com>
Cc: "dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"upstream@lists.phytec.de" <upstream@lists.phytec.de>
Subject: Re: [PATCH RFC 2/2] drm/bridge: samsung-dsim: move clk setup to enable
Date: Thu, 25 Sep 2025 11:58:21 +0000	[thread overview]
Message-ID: <9f3b697a-b4eb-452e-b6fe-fa7cfef2a3be@phytec.de> (raw)
In-Reply-To: <6c7cdef8-f912-4147-a4a2-641070a478e8@samsung.com>

Am 25.09.25 um 13:47 schrieb Marek Szyprowski:
> On 25.09.2025 13:35, Jan Remmet wrote:
>> Move the samsung_dsim_init and so samsung_dsim_enable_clock to
>> samsung_dsim_atomic_enable.
>>
>> The base clocks may not be ready when pre_enable is called.
>>
>> commit c9b1150a68d9 ("drm/atomic-helper: Re-order bridge chain pre-enable
>> and post-disable") points out that pre_enable hook definition says that
>> "The display pipe (i.e. clocks and timing signals) feeding this bridge
>> will not yet be running when this callback is called".
>>
>> Signed-off-by: Jan Remmet <j.remmet@phytec.de>
> 
> Isn't this similar to this
> patch https://lore.kernel.org/all/20250619-samsung-dsim-fix-v1-1-6b5de68fb115@ideasonboard.com/
> ?

Indeed thanks for pointing to it. I'll try this together with my 
ti-sn65dsi83 changes and send a Tested-by.
I wonder why it is still on the list.

Jan
> 
> 
>> ---
>>    drivers/gpu/drm/bridge/samsung-dsim.c | 14 ++++++++------
>>    1 file changed, 8 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/bridge/samsung-dsim.c b/drivers/gpu/drm/bridge/samsung-dsim.c
>> index b5dd71f6a99057d98cf15090f6081d0460836ec5..53ce3228586ac0f6abfa252b7c15d9eba459c96c 100644
>> --- a/drivers/gpu/drm/bridge/samsung-dsim.c
>> +++ b/drivers/gpu/drm/bridge/samsung-dsim.c
>> @@ -1460,6 +1460,14 @@ static void samsung_dsim_atomic_pre_enable(struct drm_bridge *bridge,
>>    	}
>>    
>>    	dsi->state |= DSIM_STATE_ENABLED;
>> +}
>> +
>> +static void samsung_dsim_atomic_enable(struct drm_bridge *bridge,
>> +				       struct drm_atomic_state *state)
>> +{
>> +	pr_debug("%s called from %pS\n", __func__, __builtin_return_address(0));
>> +	struct samsung_dsim *dsi = bridge_to_dsi(bridge);
>> +	int ret;
>>    
>>    	/*
>>    	 * For Exynos-DSIM the downstream bridge, or panel are expecting
>> @@ -1470,12 +1478,6 @@ static void samsung_dsim_atomic_pre_enable(struct drm_bridge *bridge,
>>    		if (ret)
>>    			return;
>>    	}
>> -}
>> -
>> -static void samsung_dsim_atomic_enable(struct drm_bridge *bridge,
>> -				       struct drm_atomic_state *state)
>> -{
>> -	struct samsung_dsim *dsi = bridge_to_dsi(bridge);
>>    
>>    	samsung_dsim_set_display_mode(dsi);
>>    	samsung_dsim_set_display_enable(dsi, true);
>>
> Best regards


      reply	other threads:[~2025-09-25 11:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-25 11:35 [PATCH RFC 0/2] drm/bridge: re order of bridge chain causes flickering display Jan Remmet
2025-09-25 11:35 ` [PATCH RFC 1/2] drm/bridge: ti-sn65dsi83: move clk setup to enable Jan Remmet
2025-09-25 11:35 ` [PATCH RFC 2/2] drm/bridge: samsung-dsim: " Jan Remmet
2025-09-25 11:47   ` Marek Szyprowski
2025-09-25 11:58     ` Jan Remmet [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9f3b697a-b4eb-452e-b6fe-fa7cfef2a3be@phytec.de \
    --to=j.remmet@phytec.de \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a-bhatia1@ti.com \
    --cc=airlied@gmail.com \
    --cc=alexander.sverdlin@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=aradhya.bhatia@linux.dev \
    --cc=devarsht@ti.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=inki.dae@samsung.com \
    --cc=jagan@amarulasolutions.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lumag@kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=tzimmermann@suse.de \
    --cc=upstream@lists.phytec.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.