Thread (2 messages) 2 messages, 2 authors, 2002-03-27

Re: EV-64260-BP & GT64260 bi_recs

From: benh@kernel.crashing.org
Date: 2002-03-27 18:46:38

quoted
Yeah, that's right, I messed up.  So what should be done for the nested
ones?
quoted
What is we use the BI_DEVICE as a quasi-BI_FIRST and then add a BI_LAST
to each
quoted
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.
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help