linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* i2c-mpc.c driver issues
@ 2007-10-24 21:06 Tjernlund
  2007-10-24 22:44 ` Jon Smirl
  2007-10-26  9:53 ` [i2c] " Jean Delvare
  0 siblings, 2 replies; 5+ messages in thread
From: Tjernlund @ 2007-10-24 21:06 UTC (permalink / raw)
  To: i2c; +Cc: linuxppc-dev

While browsing the i2c-mpc.c driver I noticed some things that look odd
to me so I figured I report them. Could not find a maintainer in the MAINTANERS file
so I sent here, cc:ed linuxppc-dev as well.

1) There are a lot of return -1 error code that is propagated back to
   userspace. Should be changed to proper -Exxx codes.

2) mpc_read(), according to the comment below it sends a STOP condition here but
   this function does not known if this is the last read or not. mpc_xfer is
   the one that knows when the transaction is over and should send the stop, which it already
   does.

 /* Generate stop on last byte */
  if (i == length - 1)
       writeccr(i2c, CCR_MIEN | CCR_MEN | CCR_TXAK);

 Jocke

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

end of thread, other threads:[~2007-10-27 20:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 21:06 i2c-mpc.c driver issues Tjernlund
2007-10-24 22:44 ` Jon Smirl
2007-10-26  9:53 ` [i2c] " Jean Delvare
2007-10-26 11:21   ` Joakim Tjernlund
2007-10-27 20:52   ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).