Re: [patch] PCI Cleanup

From: Linus Torvalds (torvalds@transmeta.com)
Date: Tue Aug 13 2002 - 15:26:55 EST


On 13 Aug 2002, Alan Cox wrote:
> >
> > OK, that IDE thing smacks of unmitigated evil to me, but if things are relying
> > on it, we shouldn't change it.
>
> It wants to force its own conf1/conf2 over the BIOS even if BIOS is
> preferred because some BIOSes dont honour the size requested and the
> hardware has bugs.
>
> That to me says there may well be cleaner approaches.

The thing I liked about the separate structures for function pointers for
conf1/conf2 is that I could at least _see_ that the IDE driver might some
day be changed to just do

        ..
        conf2_struct->pci_config_read_byte(..)
        ..

even if (judging by past performance) this would never happen ;)

This is why I'd like to continue with the notion of having a well-defined
structure that contains all the pointers (and one default case). Now,
shrinking those structures down to 2 entries instead of 6 sounds like a
fine idea to me, but short-circuiting them internally sounds bad because
it loses the ability to use the pci config space functions independently
of each other.

                Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:33 EST