From: Linus Torvalds Date: Sun, 23 Oct 2005 23:31:16 +0000 (-0700) Subject: cardbus: limit IO windows to 256 bytes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4196c3af25d98204216a5d6c37ad2cb303a1f2bf;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git cardbus: limit IO windows to 256 bytes That's what we've always historically done, and bigger windows seem to confuse some cardbus bridges. Or something. Alan reports that this makes the ThinkPad 600x series work properly again: the 4kB IO window for some reason made IDE DMA not work, which makes IDE painfully slow even if it works after DMA timeouts. Signed-off-by: Linus Torvalds --- diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 657be948baf..28ce3a7ee43 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -40,7 +40,7 @@ * FIXME: IO should be max 256 bytes. However, since we may * have a P2P bridge below a cardbus bridge, we need 4K. */ -#define CARDBUS_IO_SIZE (4*1024) +#define CARDBUS_IO_SIZE (256) #define CARDBUS_MEM_SIZE (32*1024*1024) static void __devinit