EV-64260-BP & GT64260 bi_recs
Quoted 3 lines · Mark A. Greer
Yeah, that's right, I messed up. So what should be done for the nested ones? What is we use the
BI_DEVICEas a quasi-BI_FIRST and then add aBI_LASTto each nested one? This is what it would look like:
I think the whole idea of nested bi_recs is completely unnecessary complexity. A simple BI_GT64260_ETH_CFG is better.
MS
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 8 lines
Quoted 2 lines
Yeah, that's right, I messed up. So what should be done for the nested
ones?
Quoted 1 line
What is we use the
BI_DEVICEas a quasi-BI_FIRST and then add aBI_LASTto each
Quoted 1 line
nested one? This is what it would look like:
I think the whole idea of nested
bi_recsis completely unnecessary
complexity.
Quoted 1 line
A simple
BI_GT64260_ETH_CFGis better.
Well, I find it pretty simple, and it helps in lots of situations, especially when you deal with devices on the PCI bus.
The main problem I have with putting a "structure" inside one bi_rec like BI_GT64260_ETH_CFG is that it won't evolve. I mean, let's say today, you define it contains an HW ethernet address. Then, you figure out you have wired your PHY directly, it's not on the MII and you need your driver to know about it, how do you add that info ? Or you figure out that your driver would need some tunning (different LED wiring on the PHY), you change the structure layout to pass new parameters ?
You create unnecessary compatibility hell.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/