Messages in this thread | | | Date | Tue, 11 Aug 2009 22:48:35 +0200 | From | "Emilio G. Cota" <> | Subject | Re: [patch 1/5] Staging: VME Framework for the Linux Kernel |
| |
Martyn Welch wrote: > need for both approaches. It may be more efficient for a driver to use > and move 1 window to position it's self over the registers of each of a > number of compatible devices as required.
No, drivers should know nothing about the bridge. The *very* same driver should run on different crates, different configurations, different bridges.
The bridge should be intelligent enough to handle the driver's mapping requests in an efficient way; it's basically the only job of the bridge: to serve efficiently the driver's needs. And, sorry to repeat myself, he's the only player entitled to do so. "Because he knows better."
FWIW, our driver does exactly that. Will post it fairly soon, but I want to test it with the new changes first.
Best wishes, E.
| |