[lkml]   [2005]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] libata: fix broken Kconfig setup
    Linus Torvalds wrote:
    > On Mon, 17 Oct 2005, Jeff Garzik wrote:
    >>If IDE is compiled in, IDE SATA option is not enabled, and ata_piix or ahci
    >>are used.
    > How about this diff instead?

    Nope, it elides critical logic.

    1) The quirk should not be enabled if IDE driver is a module. No reason
    to perform the nasty hack at all, as the user controls module load order.

    2) The quirk should not be enabled if IDE driver is not built at all.
    Standard resource reservation code works as expected here.

    3) The quirk should not be enabled if CONFIG_BLK_DEV_IDE_SATA is
    enabled, which indicates that the IDE driver gets preference for the
    Intel SATA hardware in question.

    > It's really quite clean and understandable, and it makes it very clear
    > what's going on from a configuration standpoint, imnsho. And it does the
    > right thing when AHCI/PIIX is compiled as a SATA module (well, as right as
    > this approach ever can).

    My patch works fine when ahci/piix is compiled as a module. That's the
    configuration I personally tested.

    > Of course, somebody should check that it really is just the AHCI and PIIX
    > drivers that want the quirk,

    It is. I wrote 100% of the code, and further, the quirk specifically
    enumerates which PCI IDs are affected, making it easy to verify.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-10-17 19:25    [W:0.020 / U:12.488 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site