linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Redfearn <matt.redfearn@thinci.com>
To: Andrzej Hajda <a.hajda@samsung.com>,
	John Stultz <john.stultz@linaro.org>
Cc: Rob Clark <robdclark@gmail.com>,
	Jernej Skrabec <jernej.skrabec@siol.net>,
	Jonas Karlman <jonas@kwiboo.se>, David Airlie <airlied@linux.ie>,
	Neil Armstrong <narmstrong@baylibre.com>,
	lkml <linux-kernel@vger.kernel.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	Xinliang Liu <z.liuxinliang@hisilicon.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	Sean Paul <seanpaul@chromium.org>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Rongrong Zou <zourongrong@gmail.com>,
	Sam Ravnborg <sam@ravnborg.org>,
	Amit Pundir <amit.pundir@linaro.org>
Subject: Re: [RFC][PATCH] drm: kirin: Fix dsi probe/attach logic
Date: Thu, 12 Sep 2019 14:18:03 +0000	[thread overview]
Message-ID: <00e4f553-a02c-6d98-a0e8-28c0183a3c8c@thinci.com> (raw)
In-Reply-To: <16c9066b-091f-6d0e-23f1-2c1f83a7da1b@samsung.com>



On 12/09/2019 14:21, Andrzej Hajda wrote:
> On 12.09.2019 04:38, John Stultz wrote:
>> On Wed, Sep 4, 2019 at 3:26 AM Andrzej Hajda <a.hajda@samsung.com> wrote:
>>> On 03.09.2019 18:18, John Stultz wrote:
>>>> On Mon, Sep 2, 2019 at 6:22 AM Andrzej Hajda <a.hajda@samsung.com> wrote:
>>>>> On 30.08.2019 19:00, Rob Clark wrote:
>>>>>> On Thu, Aug 29, 2019 at 11:52 PM Andrzej Hajda <a.hajda@samsung.com> wrote:
>>>>>>> Of course it seems you have different opinion what is the right thing in
>>>>>>> this case, so if you convince us that your approach is better one can
>>>>>>> revert the patch.
>>>>>> I guess my strongest / most immediate opinion is to not break other
>>>>>> existing adv75xx bridge users.
>>>>> It is pity that breakage happened, and next time we should be more
>>>>> strict about testing other platforms, before patch acceptance.
>>>>>
>>>>> But reverting it now will break also platform which depend on it.
>>>> I'm really of no opinion of which approach is better here, but I will
>>>> say that when a patch breaks previously working boards, that's a
>>>> regression and justifying that some other board is now enabled that
>>>> would be broken by the revert (of a patch that is not yet upstream)
>>>> isn't really a strong argument.
>>>>
>>>> I'm happy to work with folks to try to fixup the kirin driver if this
>>>> patch really is the right approach, but we need someone to do the same
>>>> for the db410c, and I don't think its fair to just dump that work onto
>>>> folks under the threat of the board breaking.
>>>
>>> These drivers should be fixed anyway - assumption that
>>> drm_bridge/drm_panel will be registered before the bus it is attached to
>>> is just incorrect.
>>>
>>> So instead of reverting, fixing and then re-applying the patch I have
>>> gently proposed shorter path. If you prefer long path we can try to go
>>> this way.
>>>
>>> Matt, is the pure revert OK for you or is it possible to prepare some
>>> workaround allowing cooperation with both approaches?
>> Rob/Andrzej: What's the call here?
>>
>> Should I resubmit the kirin fix for the adv7511 regression here?
>> Or do we revert the adv7511 patch? I believe db410c still needs a fix.
>>
>> I'd just like to keep the HiKey board from breaking, so let me know so
>> I can get the fix submitted if needed.
> 
> 
> Since there is no response from Matt, we can perform revert, since there
> are no other ideas. I will apply it tomorrow, if there are no objections.

Hi,

Sorry - yeah I think reverting is probably best at this point to avoid 
breaking in-tree platforms.
It's a shame though that there is a built-in incompatibility within the 
tree between drivers. The way that the generic Synopsys DSI host driver 
probes is currently incompatible with the ADV7533 (hence the patch), 
other DSI host drivers are now compatible with the ADV7533 but break 
when we change it to probe in a similar way to panel drivers.

> 
> And for the future: I guess it is not possible to make adv work with old
> and new approach, but simple workaround for adv could be added later:
> 
> if (source is msm or kirin)
> 
>      do_the_old_way
> 
> else
> 
>      do_correctly.

Maybe this would work, but how do we know that the list "msm or kirin" 
is exhaustive to cope with all platforms? It seems to me the built in 
incompatibility between DSI hosts needs to be resolved really rather 
than trying to work around it in the ADV7533 driver (and any other DSI 
bus device that falls into this trap).

Anyway, my platform is out of tree so better to revert my patch and keep 
the in-tree platforms working.

Thanks everyone.
Matt

> 
> 
> And remove it after fixing both dsi masters.
> 
> 
> Regards
> 
> Andrzej
> 
> 
>>
>> thanks
>> -john
>>
>>
> 

  reply	other threads:[~2019-09-12 14:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20190829060605epcas3p4e67faa772911b8b84fee026fe953ca15@epcas3p4.samsung.com>
2019-08-29  6:05 ` [RFC][PATCH] drm: kirin: Fix dsi probe/attach logic John Stultz
2019-08-29 14:57   ` Andrzej Hajda
2019-08-29 17:39   ` Rob Clark
2019-08-30  6:51     ` Andrzej Hajda
2019-08-30 17:00       ` Rob Clark
2019-09-02 13:22         ` Andrzej Hajda
2019-09-03 16:00           ` Rob Clark
2019-09-03 16:18           ` John Stultz
2019-09-04 10:26             ` Andrzej Hajda
2019-09-12  2:38               ` John Stultz
2019-09-12 13:21                 ` Andrzej Hajda
2019-09-12 14:18                   ` Matt Redfearn [this message]
2019-09-13  8:47                     ` Andrzej Hajda
2019-09-13 21:15                       ` John Stultz
2019-09-14 15:43                 ` Rob Clark

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=00e4f553-a02c-6d98-a0e8-28c0183a3c8c@thinci.com \
    --to=matt.redfearn@thinci.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a.hajda@samsung.com \
    --cc=airlied@linux.ie \
    --cc=amit.pundir@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@siol.net \
    --cc=john.stultz@linaro.org \
    --cc=jonas@kwiboo.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=narmstrong@baylibre.com \
    --cc=robdclark@gmail.com \
    --cc=sam@ravnborg.org \
    --cc=seanpaul@chromium.org \
    --cc=thierry.reding@gmail.com \
    --cc=z.liuxinliang@hisilicon.com \
    --cc=zourongrong@gmail.com \
    /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 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).