Skip to contentSkip to conversation

EV-64260-BP & GT64260 bi_recs

DISCUSSION Michael Sokolov 2 participants 2 messages Mar 27, 2002

lore
Share & tools
lore
#0 lore raw
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_DEVICE as a quasi-BI_FIRST and then add a BI_LAST to 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/

#1 lore raw
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_DEVICE as a quasi-BI_FIRST and then add a BI_LAST

to each

Quoted 1 line

nested one? This is what it would look like:

I think the whole idea of nested bi_recs is completely unnecessary

complexity.

Quoted 1 line

A simple BI_GT64260_ETH_CFG is 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/