Skip to content

Commit 26aad69

Browse files
author
Linus Torvalds
committed
Only pre-allocate 256 bytes of cardbio IO range
It may seem small, but most cards need much less, if any, and this not only makes the code adhere to the comment, it seems to fix a boot-time lockup on a ThinkPad 380XD laptop reported by Tero Roponen <teanropo@cc.jyu.fi> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 9c2c38a commit 26aad69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/setup-bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* FIXME: IO should be max 256 bytes. However, since we may
4141
* have a P2P bridge below a cardbus bridge, we need 4K.
4242
*/
43-
#define CARDBUS_IO_SIZE (4096)
43+
#define CARDBUS_IO_SIZE (256)
4444
#define CARDBUS_MEM_SIZE (32*1024*1024)
4545

4646
static void __devinit

0 commit comments

Comments
 (0)