Worked perfectly under 2.6.29.x series, but with the 2.6.30.x series, when I plugin in my ath5k card into my Powerbook, I get the following messages and the card is not usable. [90539.033008] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0 [90539.033538] pci 0000:01:00.0: reg 10 32bit mmio: [0x000000-0x00ffff] [90539.096778] cfg80211: Calling CRDA to update world regulatory domain [90539.245672] ath5k 0000:01:00.0: enabling device (0000 -> 0002) [90539.246150] ath5k 0000:01:00.0: 32-bit DMA not available [90539.246402] ath5k: probe of 0000:01:00.0 failed with error -5
/* XXX 32-bit addressing only */ ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); if (ret) { dev_err(&pdev->dev, "32-bit DMA not available\n"); goto err_dis; } Seems that pci_set_dma_mask returns an error for some reason. Doesn't seem like an ath5k bug.
I think this is due to commit 4ae0ff606e848fa4957ebf8f97e5db5fdeec27be. There is a missing "set_dma_ops(dev, &dma_direct_ops)" somewhere, but I don't know where to put it. I have the same probe failed problem with a cardbus sata_sil device on my g4 powerbook, and adding that code to the sata_sil.c code fixed the problem for me.
Forwarded link to Kumar Gala, the author of the commit referenced above -- hopefully he has some insight. (galak@kernel.crashing.org doesn't seem to work for Cc list...)
This seems to be fixed in recent kernels (2.6.33-rcX) by means of 2d1c861871d767153538a77c498752b36d4bb4b8 (PCI/cardbus: Add a fixup hook and fix powerpc). Could you confirm this, please?
Jim, please respond re: comment 4...thanks!
Closed due to lack of response...