linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Stephen Neuendorffer" <stephen.neuendorffer@xilinx.com>
Cc: linuxppc-dev@ozlabs.org, git-dev <git-dev@xilinx.com>
Subject: Re: [PATCH] Xilinx: framebuffer: add compatibility for ml507 dvi core.
Date: Mon, 12 May 2008 13:46:02 -0600	[thread overview]
Message-ID: <fa686aa40805121246i68c42867k150c5f9e0082598f@mail.gmail.com> (raw)
In-Reply-To: <20080512191025.67682630064@mail160-dub.bigfish.com>

On Mon, May 12, 2008 at 1:10 PM, Stephen Neuendorffer
<stephen.neuendorffer@xilinx.com> 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.

  reply	other threads:[~2008-05-12 19:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-05 17:59 [PATCH] Xilinx: framebuffer: add compatibility for ml507 dvi core Stephen Neuendorffer
2008-05-12 14:24 ` Grant Likely
2008-05-12 17:31   ` Stephen Neuendorffer
2008-05-12 18:30     ` Grant Likely
2008-05-12 19:10       ` Stephen Neuendorffer
2008-05-12 19:46         ` Grant Likely [this message]
2008-05-12 19:59           ` Stephen Neuendorffer
2008-05-14 15:35             ` Grant Likely
2008-05-14 18:03               ` Stephen Neuendorffer

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=fa686aa40805121246i68c42867k150c5f9e0082598f@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --cc=git-dev@xilinx.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=stephen.neuendorffer@xilinx.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).