All of lore.kernel.org
 help / color / mirror / Atom feed
* Question regarding OMAP NAND driver read_buf16() function
@ 2008-11-20 19:13 Peter Barada
  2008-11-20 20:53 ` David Brownell
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Barada @ 2008-11-20 19:13 UTC (permalink / raw)
  To: linux-omap


In drivers/mtd/nand/omap2.c, I see the call to __raw_readsl:

	__raw_readsl(nand->IO_ADDR_R, buf, len / 2);

Since len is in bytes (from the comment), shouldn't this either be:

	__raw_readsl(nand->IO_ADDR_R, buf, len / 4);

or:

	__raw_readsw(nand->IO_ADDR_R, buf, len / 2);
	
-- 
Peter Barada // senior software engineer
 
LOGIC // embedded product solutions
411 Washington Ave. N. Suite 400
Minneapolis, MN 55401
M // 617.513.5874
 
Peter.Barada@logicpd.com
www.logicpd.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-20 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20 19:13 Question regarding OMAP NAND driver read_buf16() function Peter Barada
2008-11-20 20:53 ` David Brownell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.