Re: Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-08 Thread Bruce_Leonard
Ah, okay. Taking a look at that it makes sense now. Thanks to both of you for the help. Bruce From: Bill Gatliff To: bruce_leon...@selinc.com Cc: David Gibson , linuxppc-dev@lists.ozlabs.org Date: 02/07/2011 09:13 PM Subject: Re: Question on supporting multiple HW versions with a single

Re: Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-07 Thread Bill Gatliff
Guys: I think the Silicon Motion SM501 driver might provide a useful example, since the chip comes in both memory-mapped and PCI versions. Unfortunately the chip is implemented as a multi-function driver (mfd), so the code is not un-complicated. Still fairly straightforward and well-written once

Re: Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-07 Thread Bruce_Leonard
> > There are a number of drivers which already have this sort of dual bus > binding. > Thanks for the feedback David, I appreciate it. Could you point me to one of those drivers that has "this sort of dual bus binding" so can see an example of what I'm trying to do? Bruce __

Re: Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-07 Thread David Gibson
On Wed, Feb 02, 2011 at 01:57:13PM -0800, bruce_leon...@selinc.com wrote: > So this is sort of a follow on question to one I posted a month ago about > trying to get a PCI driver to work with OF (which I think I more or less > understood the answer to). I'm encountering a different sort of probl

Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-02 Thread Bruce_Leonard
So this is sort of a follow on question to one I posted a month ago about trying to get a PCI driver to work with OF (which I think I more or less understood the answer to). I'm encountering a different sort of problem that I'd like to solve with OF but I'm not sure I can. Let me lay out a li