LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Philippe CORNU <philippe.cornu@st.com>
To: Yannick FERTRE <yannick.fertre@st.com>,
	Benjamin Gaignard <benjamin.gaignard@linaro.org>,
	Vincent ABRIOU <vincent.abriou@st.com>,
	"David Airlie" <airlied@linux.ie>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Alexandre TORGUE <alexandre.torgue@st.com>
Subject: Re: [PATCH] drm/stm: ltdc: fix deferred endpoint management
Date: Fri, 27 Apr 2018 12:59:25 +0000	[thread overview]
Message-ID: <d2194303-8b95-09f8-0623-d29b9769bd50@st.com> (raw)
In-Reply-To: <22c16fe0-9f0b-c325-4a7c-35f3aa86dd86@st.com>


On 04/25/2018 09:12 AM, Yannick FERTRE wrote:
> Hi Philippe,
> 
> Reviewed-by: Yannick Fertré <yannick.fertre@st.com>

Applied on drm-misc-next.
Many thanks,
Philippe :-)


> 
> 
> On 04/17/2018 01:34 PM, Philippe Cornu wrote:
>> When a driver related to one of the endpoints is deferred
>> due to probe dependencies (i2c, spi...) but the other one
>> is ready, ltdc probe continues and the deferred driver
>> will never be probed again.
>>
>> The fix consists in waiting for all deferred endpoints before
>> continuing the ltdc probe.
>>
>> Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
>> ---
>>    drivers/gpu/drm/stm/ltdc.c | 11 +++++------
>>    1 file changed, 5 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
>> index e3121d9e4230..014cef8cef37 100644
>> --- a/drivers/gpu/drm/stm/ltdc.c
>> +++ b/drivers/gpu/drm/stm/ltdc.c
>> @@ -987,14 +987,13 @@ int ltdc_load(struct drm_device *ddev)
>>    						  &bridge[i]);
>>    
>>    		/*
>> -		 * If at least one endpoint is ready, continue probing,
>> -		 * else if at least one endpoint is -EPROBE_DEFER and
>> -		 * there is no previous ready endpoints, defer probing.
>> +		 * If at least one endpoint is -EPROBE_DEFER, defer probing,
>> +		 * else if at least one endpoint is ready, continue probing.
>>    		 */
>> -		if (!ret)
>> +		if (ret == -EPROBE_DEFER)
>> +			return ret;
>> +		else if (!ret)
>>    			endpoint_not_ready = 0;
>> -		else if (ret == -EPROBE_DEFER && endpoint_not_ready)
>> -			endpoint_not_ready = -EPROBE_DEFER;
>>    	}
>>    
>>    	if (endpoint_not_ready)

      reply	other threads:[~2018-04-27 12:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-17 11:34 Philippe Cornu
2018-04-25  7:12 ` Yannick FERTRE
2018-04-27 12:59   ` Philippe CORNU [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=d2194303-8b95-09f8-0623-d29b9769bd50@st.com \
    --to=philippe.cornu@st.com \
    --cc=airlied@linux.ie \
    --cc=alexandre.torgue@st.com \
    --cc=benjamin.gaignard@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vincent.abriou@st.com \
    --cc=yannick.fertre@st.com \
    --subject='Re: [PATCH] drm/stm: ltdc: fix deferred endpoint management' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).