Re: Q: PCI Driver ioremap

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed Feb 20 2002 - 18:15:13 EST


> pci_enable_device (pdev)

Should check the return but that is fine I guess

> if(base==0)
> DBG("memory mapped wrong\n");//this is never reached
> writew(0xffff, base + 0x48);
> <snip>
> The write is unsuccessful or at least the data never reaches the card.
> What am I doing incorrectly?

Looks fine to me. Obviously you should a read to make sure the write
reaches the card from PCI posting but I'd expect that to timeout and
hit the card
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:28 EST