[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090811210146.GB9910@braap.org>
Date: Tue, 11 Aug 2009 23:01:46 +0200
From: "Emilio G. Cota" <cota@...ap.org>
To: Martyn Welch <martyn.welch@...anuc.com>
Cc: Greg K-H <gregkh@...e.de>, linux-kernel@...r.kernel.org,
devel@...uxdriverproject.org,
Sebastien Dugue <sebastien.dugue@...l.net>
Subject: Re: [patch 2/5] Staging: vme: add VME userspace driver
Martyn Welch wrote:
> I disagree. The bridge drivers should register their resources with the
> core. The core, or a layer above it, can control how those resources are
> used. This moves the complexity you want for managing the windows to a
> level that will work on all underlying drivers rather than having to be
> written explicitly for each one. The mechanism I have provided does this
> discovery.
nah, it would be foolish to think we can write an upper layer
that covers every corner case for every bridge we're gonna
encounter. For instance, imagine a bridge that has 10 windows,
with the annoying feature that window#10 *only* accepts CS/CSR
mappings. How stupid is that? Very stupid. But what would be
more stupid is to write allegedly 'generic' interfaces that
break every time a bridge comes up with a stupid feature.
So that doesn't belong to a generic interface. Now, to avoid
code duplication between two (or more) _very_ similar bridges,
we just share the 'resource management' code among those,
privately. And that's pretty much it.
Regards,
E.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists