Grafting old platform drivers onto a new DT kernel

Mason slash.tmp at free.fr
Mon Nov 9 08:07:27 PST 2015


On 09/11/2015 16:40, Måns Rullgård wrote:

> The simplest solution for you is probably to add a quick and dirty DT
> binding to the old driver.  If it doesn't use any driver-specific
> platform data struct, you only need to set .of_match_table in the
> struct platform_driver.  If there is a platform data struct, you'll also
> need to write some code to populate it from DT properties.  It shouldn't
> take more than a few minutes per driver in most cases.

I'll try that approach, although I fear that "a few minutes per driver"
is an optimistic assessment.

> To get those drivers accepted upstream will obviously take a bit more
> work.

AKA "rewrite from scratch" :-)

Regards.




More information about the linux-arm-kernel mailing list