Thread (9 messages) 9 messages, 2 authors, 2008-05-14

Re: [PATCH] Xilinx: framebuffer: add compatibility for ml507 dvi core.

flat view

From: Grant Likely <hidden>
Date: 2008-05-12 19:46:08

On Mon, May 12, 2008 at 1:10 PM, Stephen Neuendorffer
[off-list ref] wrote:
 The best possibility that I see is glopping the compatibility
 information about what cores are compatible with which drivers and
 generating something.  This is moderately better than blindly treating
 all cores with the same major version as interface compatible, but still
 has the potential to blindly declare that core versions are compatible
 when they are not really compatible.
That's okay, the device tree conventions provide for that uncertainty.
 If compatible includes both the *exact* version and the oldest known
*compatible* version (the one the drivers know about) then we're in
the situation where 99% of the time it just works.  For the 1% of the
time when mistakes are made we still have the necessary information to
write exceptions in the code to work around bad data.  This means code
only needs to changes when mistakes are discovered, not for every IP
core uprev.
 I *really* don't want to put this into the device tree generator on a
 case-by-case basis, so unless there is something that can be generated
 from whatever meta-information EDK has, I think we're going to have to
 just have the explicit versions in the drivers for the time being.
Can we post process the generated device tree with a table of known
compatibility strings (or regexps) for adding the older compatible
values?  I don't expect the list will be particularly long or hard to
maintain and the code to do so should be trivial.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help