2013/11/16 Stefan Kristiansson <stefan.kristiansson@xxxxxxxxxxxxx>The drivers in question aren't upstream so it's not a big deal. Making a change to get sane revisioning would be worth it anyway.On Fri, Nov 15, 2013 at 10:50:18AM +0100, Jonas Bonn wrote:That will also require a change to the driver.+Version number needed. OpenCores wanted "projectname-rtlsvn###"
+ i2c0: ocores@a0000000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "opencores,i2c-ocores";
where ### is the SVN commit number of the RTL directory in the
project's source repository.
The DTS version tells the driver what feature set it can expect to find in the HW core and thus how to go about driving it. Normally, the core won't change features much, but if you add something new you'd want the driver to see a new 'compatible' tag so that it knows which features it can/should enable. New features will always entail driver changes; and a driver can always be compatible with both the old and new HW versions by just enabling the feature set appropriate to the HW in question.
Using svn commit ids as version info seems a bit too fine grained to me,
but if that's what's agreed on, then it should be the commit id from the
projects official repository at opencores.org I think.
Stefan
_______________________________________________
Linux mailing list
Linux@xxxxxxxxxxxxxxxxxx
http://lists.openrisc.net/listinfo/linux
I agree. I don't like doing versioning with revision numbers. It's too
closely tied to the currently used VCS. The problem is that no one has
bothered to do proper releases of the cores for the last ten years or
so.
But since we are talking about a relatively small amount of cores
here, I think it could be worth to take a quick glance to see if the
latest SVN version is compatible with the latest tagged release. I
would suspect that is the case for the majority of the cores and the
we can just use the latest tag as version. For the other cores we
could
1. Use latest tag + 1 (a bit ugly if the maintainer wants to do a proper release
2. Take over maintainership/fork and just release what's in the trunk
(taking over maintenance is preferrable here to avoid more repo
confusion)
3. Use SVN revisions
option 2 would be my preferred choice here, given that we get someone
to do the actual work. I could probably help out with a few of the
cores
Jonas, you said that opencores wanted projectname-svnversion. Do youIt came out of a private conversion I had with Marcus Erlandsson (who spoke for OpenCores at the time). The OpenRISC project hadn't really moved on to git back then (as it has today) so it was the best we could come up with.
know where that comes from? My proposal here would conflict with that