Thread (68 messages) 68 messages, 4 authors, 2011-02-24

Re: [PATCH 16/20] ata_piix: add EFAR SLC90E66 support

From: Alan Cox <hidden>
Date: 2011-02-08 13:34:36
Also in: lkml

such optimizations because maintenance cost > potential savings (i.e.
making SCSI quirks optional, I have draft patch for this, itself cuts
like 10k).
Interesting in itself but irrelevant because the current situation is
that a piix change cannot break oldpiix, efar, it8213, radisys etc and
vice versa. Particuarly important when the other chips are not common so
test coverage is difficult, and that far outweighs the maintenance
savings for other things, especially as this is code that just doesn't
change.
quoted
It also leads to hideous uglies in the main code paths like this :

+       unsigned int has_sitre  = (dev->vendor != 0x8086 ||
+                                  dev->device != 0x1230);

which also has exactly zero comments.
has_sitre variable name is documentation in itself for anyone knowing
the hardware or has read a chipset/code documentation.
And naturally anyone randomly glancing at the code knows why it's
checking 0x8086 & 0x1230, and why the radisys check interacts with it.

Bartlomiej - those are a mess, a complete and total mess. It doesn't
necessarily argue against folding them together, but at least do a clean
job of it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help