* [PATCH] drm/panel-simple: fix connector type for LogicPD Type28 Display
@ 2020-06-15 13:19 Adam Ford
2020-06-15 14:45 ` Fabio Estevam
0 siblings, 1 reply; 5+ messages in thread
From: Adam Ford @ 2020-06-15 13:19 UTC (permalink / raw)
To: dri-devel
Cc: aford, Adam Ford, stable, Thierry Reding, Sam Ravnborg,
David Airlie, Daniel Vetter, linux-kernel
The LogicPD Type28 display used by several Logic PD products has not
worked since v5.5.
The connector type for the LogicPD Type 28 display is missing and
drm_panel_bridge_add() requires connector type to be set.
Signed-off-by: Adam Ford <aford173@gmail.com>
CC: stable@vger.kernel.org #v5.5+
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index b6ecd1552132..334e9de5b2c8 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2495,6 +2495,7 @@ static const struct panel_desc logicpd_type_28 = {
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
+ .connector_type = DRM_MODE_CONNECTOR_DPI,
};
static const struct panel_desc mitsubishi_aa070mc01 = {
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/panel-simple: fix connector type for LogicPD Type28 Display
2020-06-15 13:19 [PATCH] drm/panel-simple: fix connector type for LogicPD Type28 Display Adam Ford
@ 2020-06-15 14:45 ` Fabio Estevam
2020-06-15 14:53 ` Adam Ford
0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2020-06-15 14:45 UTC (permalink / raw)
To: Adam Ford
Cc: DRI mailing list, David Airlie, Adam Ford-BE, stable,
linux-kernel, Thierry Reding, Sam Ravnborg
On Mon, Jun 15, 2020 at 10:19 AM Adam Ford <aford173@gmail.com> wrote:
>
> The LogicPD Type28 display used by several Logic PD products has not
> worked since v5.5.
Maybe you could tell which commit exactly and then put a Fixes tag?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/panel-simple: fix connector type for LogicPD Type28 Display
2020-06-15 14:45 ` Fabio Estevam
@ 2020-06-15 14:53 ` Adam Ford
2020-06-16 12:30 ` Tomi Valkeinen
2020-06-21 6:22 ` Sam Ravnborg
0 siblings, 2 replies; 5+ messages in thread
From: Adam Ford @ 2020-06-15 14:53 UTC (permalink / raw)
To: Fabio Estevam
Cc: DRI mailing list, David Airlie, Adam Ford-BE, stable,
linux-kernel, Thierry Reding, Sam Ravnborg, Tomi Valkeinen
On Mon, Jun 15, 2020 at 9:46 AM Fabio Estevam <festevam@gmail.com> wrote:
>
> On Mon, Jun 15, 2020 at 10:19 AM Adam Ford <aford173@gmail.com> wrote:
> >
> > The LogicPD Type28 display used by several Logic PD products has not
> > worked since v5.5.
>
> Maybe you could tell which commit exactly and then put a Fixes tag?
I honestly don't know. I reached out to the omap mailing list,
because I noted this issue. Tomi V from TI responded with a link that
he posted which fixes this for another display.
https://www.mail-archive.com/dri-devel@lists.freedesktop.org/msg312208.html
I tested that patch and it worked for a different LCD, so I did the
same thing to the Logic PD Type 28 display as well.
My patch and commit message were modeled after his, and his commit
CC's stable with a note about being required for v5.5+
I added him to the CC list, so maybe he knows which hash needs to be
referenced from a fixes tag. I was hoping to not have to go back and
bisect if it's not required, but I will if necessary.
adam
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/panel-simple: fix connector type for LogicPD Type28 Display
2020-06-15 14:53 ` Adam Ford
@ 2020-06-16 12:30 ` Tomi Valkeinen
2020-06-21 6:22 ` Sam Ravnborg
1 sibling, 0 replies; 5+ messages in thread
From: Tomi Valkeinen @ 2020-06-16 12:30 UTC (permalink / raw)
To: Adam Ford, Fabio Estevam
Cc: DRI mailing list, David Airlie, Adam Ford-BE, stable,
linux-kernel, Thierry Reding, Sam Ravnborg
On 15/06/2020 17:53, Adam Ford wrote:
> On Mon, Jun 15, 2020 at 9:46 AM Fabio Estevam <festevam@gmail.com> wrote:
>>
>> On Mon, Jun 15, 2020 at 10:19 AM Adam Ford <aford173@gmail.com> wrote:
>>>
>>> The LogicPD Type28 display used by several Logic PD products has not
>>> worked since v5.5.
>>
>> Maybe you could tell which commit exactly and then put a Fixes tag?
>
> I honestly don't know. I reached out to the omap mailing list,
> because I noted this issue. Tomi V from TI responded with a link that
> he posted which fixes this for another display.
>
> https://www.mail-archive.com/dri-devel@lists.freedesktop.org/msg312208.html
>
> I tested that patch and it worked for a different LCD, so I did the
> same thing to the Logic PD Type 28 display as well.
>
> My patch and commit message were modeled after his, and his commit
> CC's stable with a note about being required for v5.5+
>
> I added him to the CC list, so maybe he knows which hash needs to be
> referenced from a fixes tag. I was hoping to not have to go back and
> bisect if it's not required, but I will if necessary.
No, I didn't check when exactly it broke. connector_type was added in v5.5, and my patch applies to
v5.5, so I set that as stable version. But the WARN comes from panel bridge. Possibly
89958b7cd9555a5d82556cc9a1f4c62fffda6f96 is the one that adds requirement to have connector_type.
Tomi
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/panel-simple: fix connector type for LogicPD Type28 Display
2020-06-15 14:53 ` Adam Ford
2020-06-16 12:30 ` Tomi Valkeinen
@ 2020-06-21 6:22 ` Sam Ravnborg
1 sibling, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2020-06-21 6:22 UTC (permalink / raw)
To: Adam Ford
Cc: Fabio Estevam, David Airlie, Tomi Valkeinen, Adam Ford-BE,
stable, linux-kernel, Thierry Reding, DRI mailing list
Hi Adam.
On Mon, Jun 15, 2020 at 09:53:45AM -0500, Adam Ford wrote:
> On Mon, Jun 15, 2020 at 9:46 AM Fabio Estevam <festevam@gmail.com> wrote:
> >
> > On Mon, Jun 15, 2020 at 10:19 AM Adam Ford <aford173@gmail.com> wrote:
> > >
> > > The LogicPD Type28 display used by several Logic PD products has not
> > > worked since v5.5.
> >
> > Maybe you could tell which commit exactly and then put a Fixes tag?
>
> I honestly don't know. I reached out to the omap mailing list,
> because I noted this issue. Tomi V from TI responded with a link that
> he posted which fixes this for another display.
>
> https://www.mail-archive.com/dri-devel@lists.freedesktop.org/msg312208.html
>
> I tested that patch and it worked for a different LCD, so I did the
> same thing to the Logic PD Type 28 display as well.
>
> My patch and commit message were modeled after his, and his commit
> CC's stable with a note about being required for v5.5+
>
> I added him to the CC list, so maybe he knows which hash needs to be
> referenced from a fixes tag. I was hoping to not have to go back and
> bisect if it's not required, but I will if necessary.
git blame is your friend - the panel was added here:
0d35408afbeb6 (Adam Ford 2019-10-16 08:51:45 -0500 2469) static const struct panel_desc logicpd_type_28 = {
0d35408afbeb6 (Adam Ford 2019-10-16 08:51:45 -0500 2470) .modes = &logicpd_type_28_mode,
0d35408afbeb6 (Adam Ford 2019-10-16 08:51:45 -0500 2471) .num_modes = 1,
0d35408afbeb6 (Adam Ford 2019-10-16 08:51:45 -0500 2472) .bpc = 8,
0d35408afbeb6 (Adam Ford 2019-10-16 08:51:45 -0500 2473) .size = {
0d35408afbeb6 (Adam Ford 2019-10-16 08:51:45 -0500 2474) .width = 105,
0d35408afbeb6 (Adam Ford 2019-10-16 08:51:45 -0500 2475) .height = 67,
0d35408afbeb6 (Adam Ford 2019-10-16 08:51:45 -0500 2476) },
So this gives us fllowing fixes info:
Fixes: 0d35408afbeb ("drm/panel: simple: Add Logic PD Type 28 display support")
Cc: Adam Ford <aford173@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v5.6+
I have adjusted the changelog to say 5.6 and applied to drm-misc-fixes
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-06-21 6:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 13:19 [PATCH] drm/panel-simple: fix connector type for LogicPD Type28 Display Adam Ford
2020-06-15 14:45 ` Fabio Estevam
2020-06-15 14:53 ` Adam Ford
2020-06-16 12:30 ` Tomi Valkeinen
2020-06-21 6:22 ` Sam Ravnborg
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).