All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model
@ 2019-04-16 23:28 Peng Fan
  2019-04-16 23:36 ` Simon Glass
  2019-04-24 18:15 ` Fabio Estevam
  0 siblings, 2 replies; 8+ messages in thread
From: Peng Fan @ 2019-04-16 23:28 UTC (permalink / raw)
  To: u-boot

HI Igor,

> 
> Marek, Peng,
> 
> Writing to you as you were the main contributors to U-boot mxsfb driver
> implementation (i.MX23/i.MX28 LCDIF driver).
> 
> I was about to start working on it's migration to DM (currently mxsfb is being
> used on our SoM Colibri iMX7S/D), but found it a bit out-dated (no one
> introduced any changes for the last 5 years) and maybe it's really does make a
> sense to fetch and port the latest one from the Linux mainline (in a sake of
> avoiding divergence in implementation and continue fetching future updates
> from the Linux kernel).
> 
> So there are 2 questions spinning in my mind:
> 1) In case if you are maybe aware, if there were any intentions to do this
> migration before?  (maybe someone asked similar questions or even send
> some patches, but didn't manage to upstream that; or did similar stuff in some
> downstream U-boot forks, whatever). Unfortunately I can't any information
> regarding this in U-boot ML archives .

I do not have plan to work on this recently.

> 
> 2) Will it be OK if I introduce a brand new mxsfb driver (ported from Linux),
> which will be used only when U-boot is built with CONFIG_DM_VIDEO
> enabled? Existing mxsfb will be left as it is, so I can be removed easily when
> full migration to DM is done for all boards that are using this driver.

You mean porting drivers/gpu/drm/mxsfb/ to U-Boot?

Regards,
Peng.

> 
> Simon,
> 
> Could you also provide you feedback for 2 (if introducing a brand new
> dm-enabled driver is a good idea), thanks!
> 
> Thanks in advance for you comments/suggestions!
> 
> --
> Best regards - Freundliche Grüsse - Meilleures salutations
> 
> Senior Development Engineer,
> Igor Opaniuk
> 
> Toradex AG
> Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48
> 00 (main line)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model
  2019-04-16 23:28 [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model Peng Fan
@ 2019-04-16 23:36 ` Simon Glass
  2019-04-24 18:15 ` Fabio Estevam
  1 sibling, 0 replies; 8+ messages in thread
From: Simon Glass @ 2019-04-16 23:36 UTC (permalink / raw)
  To: u-boot

Hi,

On Tue, 16 Apr 2019 at 16:28, Peng Fan <peng.fan@nxp.com> wrote:

> HI Igor,
>
> >
> > Marek, Peng,
> >
> > Writing to you as you were the main contributors to U-boot mxsfb driver
> > implementation (i.MX23/i.MX28 LCDIF driver).
> >
> > I was about to start working on it's migration to DM (currently mxsfb is
> being
> > used on our SoM Colibri iMX7S/D), but found it a bit out-dated (no one
> > introduced any changes for the last 5 years) and maybe it's really does
> make a
> > sense to fetch and port the latest one from the Linux mainline (in a
> sake of
> > avoiding divergence in implementation and continue fetching future
> updates
> > from the Linux kernel).
> >
> > So there are 2 questions spinning in my mind:
> > 1) In case if you are maybe aware, if there were any intentions to do
> this
> > migration before?  (maybe someone asked similar questions or even send
> > some patches, but didn't manage to upstream that; or did similar stuff
> in some
> > downstream U-boot forks, whatever). Unfortunately I can't any information
> > regarding this in U-boot ML archives .
>
> I do not have plan to work on this recently.
>
> >
> > 2) Will it be OK if I introduce a brand new mxsfb driver (ported from
> Linux),
> > which will be used only when U-boot is built with CONFIG_DM_VIDEO
> > enabled? Existing mxsfb will be left as it is, so I can be removed
> easily when
> > full migration to DM is done for all boards that are using this driver.
>
> You mean porting drivers/gpu/drm/mxsfb/ to U-Boot?
>

DM_VIDEO will be compulsory soon anyway, so I think this is fine.

Regards,
Simon

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model
  2019-04-16 23:28 [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model Peng Fan
  2019-04-16 23:36 ` Simon Glass
@ 2019-04-24 18:15 ` Fabio Estevam
  1 sibling, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2019-04-24 18:15 UTC (permalink / raw)
  To: u-boot

Hi Igor,

On Tue, Apr 16, 2019 at 8:28 PM Peng Fan <peng.fan@nxp.com> wrote:

> > 2) Will it be OK if I introduce a brand new mxsfb driver (ported from Linux),
> > which will be used only when U-boot is built with CONFIG_DM_VIDEO
> > enabled? Existing mxsfb will be left as it is, so I can be removed easily when
> > full migration to DM is done for all boards that are using this driver.

Sounds like a good plan.

Thanks

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model
  2019-04-16 12:31 ` Anatolij Gustschin
@ 2019-04-16 12:58   ` Igor Opaniuk
  0 siblings, 0 replies; 8+ messages in thread
From: Igor Opaniuk @ 2019-04-16 12:58 UTC (permalink / raw)
  To: u-boot

Hi Anatolij,

Thanks for your feedback!

On Tue, Apr 16, 2019 at 2:31 PM Anatolij Gustschin <agust@denx.de> wrote:
>
> Hi Igor,
>
> On Tue, 16 Apr 2019 12:04:41 +0000
> Igor Opaniuk igor.opaniuk at toradex.com wrote:
> ...
> > So there are 2 questions spinning in my mind:
> > 1) In case if you are maybe aware, if there were any intentions to do
> > this migration before?  (maybe someone asked similar questions or even
> > send some patches, but didn't manage to upstream that; or did similar
> > stuff in some downstream U-boot forks, whatever). Unfortunately I
> > can't any information regarding this in U-boot ML archives .
>
> I'm not aware of any activity migrating this driver to DM_VIDEO.
> Patches welcome.
>
> > 2) Will it be OK if I introduce a brand new mxsfb driver (ported from
> > Linux), which will be used only when U-boot is built with
> > CONFIG_DM_VIDEO enabled? Existing mxsfb will be left as it is, so I
> > can be removed easily when full migration to DM is done for all boards
> > that are using this driver.
>
> I have no objections. However I don't know how big is the Linux mxsfb
> driver, maybe we could reduce not needed code to keep the code size
> smaller.
>
> --
> Anatolij
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot

Thanks!

--
Best regards - Freundliche Grüsse - Meilleures salutations

Senior Development Engineer,
Igor Opaniuk

Toradex AG
Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48
00 (main line)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model
  2019-04-16 12:34 ` Jagan Teki
@ 2019-04-16 12:46   ` Igor Opaniuk
  0 siblings, 0 replies; 8+ messages in thread
From: Igor Opaniuk @ 2019-04-16 12:46 UTC (permalink / raw)
  To: u-boot

Hi Jagan,

On Tue, Apr 16, 2019 at 2:35 PM Jagan Teki <jagan@amarulasolutions.com> wrote:
>
> On Tue, Apr 16, 2019 at 5:36 PM Igor Opaniuk <igor.opaniuk@toradex.com> wrote:
> >
> > Marek, Peng,
> >
> > Writing to you as you were the main contributors to U-boot mxsfb
> > driver implementation (i.MX23/i.MX28 LCDIF driver).
> >
> > I was about to start working on it's migration to DM (currently mxsfb
> > is being used on our SoM Colibri iMX7S/D), but found it a bit
> > out-dated (no one introduced any changes for the last 5 years) and
> > maybe it's really does make a sense to fetch and port the latest one
> > from the Linux mainline (in a sake of avoiding divergence in
> > implementation and continue fetching future updates from the Linux
> > kernel).
> >
> > So there are 2 questions spinning in my mind:
> > 1) In case if you are maybe aware, if there were any intentions to do
> > this migration before?  (maybe someone asked similar questions or even
> > send some patches, but didn't manage to upstream that; or did similar
> > stuff in some downstream U-boot forks, whatever). Unfortunately I
> > can't any information regarding this in U-boot ML archives .
> >
> > 2) Will it be OK if I introduce a brand new mxsfb driver (ported from
> > Linux), which will be used only when U-boot is built with
> > CONFIG_DM_VIDEO enabled? Existing mxsfb will be left as it is, so I
> > can be removed easily when full migration to DM is done for all boards
> > that are using this driver.
>
> How about keeping common code aside and make the existing driver to
> support dm and non-dm. We can take the required changes on top of dm
> code if possible, this would be prominent transition instead of having
> separate code base.

Actually this is what I started doing in the very begging, but the
thing is that current mxsfb driver should be fully re-implemented to
make it possible.
Taking into account that there is already a pretty high divergence
between the one in U-boot and another in Linux, I think it's better to
sync with the existing mxsfb inthen  Linux kernel instead of spending
twice much effort on supporting two different implementations in the
future.

Anyway legacy stuff supposed to be removed ASAP (when migration is
finished), so I really would like to keep the old implementation
aside.


> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot



-- 
Best regards - Freundliche Grüsse - Meilleures salutations

Senior Development Engineer,
Igor Opaniuk

Toradex AG
Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48
00 (main line)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model
  2019-04-16 12:04 Igor Opaniuk
  2019-04-16 12:31 ` Anatolij Gustschin
@ 2019-04-16 12:34 ` Jagan Teki
  2019-04-16 12:46   ` Igor Opaniuk
  1 sibling, 1 reply; 8+ messages in thread
From: Jagan Teki @ 2019-04-16 12:34 UTC (permalink / raw)
  To: u-boot

On Tue, Apr 16, 2019 at 5:36 PM Igor Opaniuk <igor.opaniuk@toradex.com> wrote:
>
> Marek, Peng,
>
> Writing to you as you were the main contributors to U-boot mxsfb
> driver implementation (i.MX23/i.MX28 LCDIF driver).
>
> I was about to start working on it's migration to DM (currently mxsfb
> is being used on our SoM Colibri iMX7S/D), but found it a bit
> out-dated (no one introduced any changes for the last 5 years) and
> maybe it's really does make a sense to fetch and port the latest one
> from the Linux mainline (in a sake of avoiding divergence in
> implementation and continue fetching future updates from the Linux
> kernel).
>
> So there are 2 questions spinning in my mind:
> 1) In case if you are maybe aware, if there were any intentions to do
> this migration before?  (maybe someone asked similar questions or even
> send some patches, but didn't manage to upstream that; or did similar
> stuff in some downstream U-boot forks, whatever). Unfortunately I
> can't any information regarding this in U-boot ML archives .
>
> 2) Will it be OK if I introduce a brand new mxsfb driver (ported from
> Linux), which will be used only when U-boot is built with
> CONFIG_DM_VIDEO enabled? Existing mxsfb will be left as it is, so I
> can be removed easily when full migration to DM is done for all boards
> that are using this driver.

How about keeping common code aside and make the existing driver to
support dm and non-dm. We can take the required changes on top of dm
code if possible, this would be prominent transition instead of having
separate code base.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model
  2019-04-16 12:04 Igor Opaniuk
@ 2019-04-16 12:31 ` Anatolij Gustschin
  2019-04-16 12:58   ` Igor Opaniuk
  2019-04-16 12:34 ` Jagan Teki
  1 sibling, 1 reply; 8+ messages in thread
From: Anatolij Gustschin @ 2019-04-16 12:31 UTC (permalink / raw)
  To: u-boot

Hi Igor,

On Tue, 16 Apr 2019 12:04:41 +0000
Igor Opaniuk igor.opaniuk at toradex.com wrote:
...
> So there are 2 questions spinning in my mind:
> 1) In case if you are maybe aware, if there were any intentions to do
> this migration before?  (maybe someone asked similar questions or even
> send some patches, but didn't manage to upstream that; or did similar
> stuff in some downstream U-boot forks, whatever). Unfortunately I
> can't any information regarding this in U-boot ML archives .

I'm not aware of any activity migrating this driver to DM_VIDEO.
Patches welcome.
 
> 2) Will it be OK if I introduce a brand new mxsfb driver (ported from
> Linux), which will be used only when U-boot is built with
> CONFIG_DM_VIDEO enabled? Existing mxsfb will be left as it is, so I
> can be removed easily when full migration to DM is done for all boards
> that are using this driver.

I have no objections. However I don't know how big is the Linux mxsfb
driver, maybe we could reduce not needed code to keep the code size
smaller.

--
Anatolij

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model
@ 2019-04-16 12:04 Igor Opaniuk
  2019-04-16 12:31 ` Anatolij Gustschin
  2019-04-16 12:34 ` Jagan Teki
  0 siblings, 2 replies; 8+ messages in thread
From: Igor Opaniuk @ 2019-04-16 12:04 UTC (permalink / raw)
  To: u-boot

Marek, Peng,

Writing to you as you were the main contributors to U-boot mxsfb
driver implementation (i.MX23/i.MX28 LCDIF driver).

I was about to start working on it's migration to DM (currently mxsfb
is being used on our SoM Colibri iMX7S/D), but found it a bit
out-dated (no one introduced any changes for the last 5 years) and
maybe it's really does make a sense to fetch and port the latest one
from the Linux mainline (in a sake of avoiding divergence in
implementation and continue fetching future updates from the Linux
kernel).

So there are 2 questions spinning in my mind:
1) In case if you are maybe aware, if there were any intentions to do
this migration before?  (maybe someone asked similar questions or even
send some patches, but didn't manage to upstream that; or did similar
stuff in some downstream U-boot forks, whatever). Unfortunately I
can't any information regarding this in U-boot ML archives .

2) Will it be OK if I introduce a brand new mxsfb driver (ported from
Linux), which will be used only when U-boot is built with
CONFIG_DM_VIDEO enabled? Existing mxsfb will be left as it is, so I
can be removed easily when full migration to DM is done for all boards
that are using this driver.

Simon,

Could you also provide you feedback for 2 (if introducing a brand new
dm-enabled driver is a good idea), thanks!

Thanks in advance for you comments/suggestions!

-- 
Best regards - Freundliche Grüsse - Meilleures salutations

Senior Development Engineer,
Igor Opaniuk

Toradex AG
Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48
00 (main line)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-24 18:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 23:28 [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model Peng Fan
2019-04-16 23:36 ` Simon Glass
2019-04-24 18:15 ` Fabio Estevam
  -- strict thread matches above, loose matches on Subject: below --
2019-04-16 12:04 Igor Opaniuk
2019-04-16 12:31 ` Anatolij Gustschin
2019-04-16 12:58   ` Igor Opaniuk
2019-04-16 12:34 ` Jagan Teki
2019-04-16 12:46   ` Igor Opaniuk

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.