[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200907101101.58029.david-b@pacbell.net>
Date: Fri, 10 Jul 2009 11:01:57 -0700
From: David Brownell <david-b@...bell.net>
To: "vimal singh" <vimalsingh@...com>
Cc: linux-mtd@...ts.infradead.org, "Tony Lindgren" <tony@...mide.com>,
dwmw2@...radead.org, dedekind@...radead.org,
linux-kernel@...r.kernel.org, linux-omap@...r.kernel.org
Subject: Re: [PATCH 1:2] [MTD][NAND]omap: Adding support for nand prefetch-read and post-write, in MPU mode.
On Friday 10 July 2009, vimal singh wrote:
> +static void omap_read_buf8(struct mtd_info *mtd, u_char *buf, int len)
> +{
> + struct nand_chip *nand = mtd->priv;
> + u_char *p = (u_char *)buf;
> +
> + while (len--)
> + *p++ = __raw_readb(nand->IO_ADDR_R);
> +}
Better as __raw_readsb() yes? Or maybe ioread8_rep().
... speaking of which, maybe the MTD layer can finally
default to using the accelerated block PIO calls, now
that ioreadX_rep() is supposed to work on all arches...
Last time I measured, that change alone was worth
something like a 10% speedup. Maybe more.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists