]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] pci: yenta cardbus fix
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>
Mon, 27 Jun 2005 23:28:02 +0000 (16:28 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 28 Jun 2005 01:03:05 +0000 (18:03 -0700)
commit7925407aa02653ba462b1d8b0b1229b99aee5411
tree450fbfe7570b65ae978cb036bc1cc689dde30e69
parent3c803e8e2f15d02c5ad0a3888eea2bbd31dc59c5
[PATCH] pci: yenta cardbus fix

On Mon, Jun 20, 2005 at 07:15:34PM +1000, Grant Coady wrote:
> Yenta: CardBus bridge found at 0000:00:0b.0 [1179:0001]
> yenta 0000:00:0b.0: Preassigned resource 0 busy, reconfiguring...

In -mm1 the cardbus resources might be assigned in
pci_assign_unassigned_resources() pass. From your dmesg:
PCI: Bus 2, cardbus bridge: 0000:00:0b.0
  IO window: 00002000-00002fff
  IO window: 00003000-00003fff
  PREFETCH window: 12000000-13ffffff
  MEM window: 14000000-15ffffff

Then yenta_allocate_res() tries to assign these resources again and,
naturally, fails.

This adds check for already assigned cardbus resources.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pcmcia/yenta_socket.c