[MTD] Basic NAND driver for AMD/NatSemi CS5535/CS5536 Geode companion chip
David Woodhouse
dwmw2 at infradead.org
Thu May 11 19:39:55 EDT 2006
On Fri, 2006-05-12 at 00:39 +0200, Jörn Engel wrote:
> On Thu, 11 May 2006 22:59:02 +0100, Linux-MTD Mailing List wrote:
> >
> > +static int cs553x_device_ready(struct mtd_info *mtd)
> > +{
> > + struct nand_chip *this = mtd->priv;
> > + void __iomem *mmio_base = this->IO_ADDR_R;
> > + unsigned char foo = readb(mmio_base + MM_NAND_STS);
> > +
> > + return (foo & CS_NAND_STS_FLASH_RDY) && !(foo & CS_NAND_CTLR_BUSY);
>
> Foo?
Spot the removed debugging printk :)
> Why the cast?
> Extra space.
Inherited from autcpu12.c and then in turn from spia.c I believe. I'll
clean them all up.
--
dwmw2
More information about the linux-mtd
mailing list