linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is this bug ? msg->complete() double call on s3c64xx.c ?
@ 2012-03-13  6:46 kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ
       [not found] ` <20120313234856.GZ3177@opensource.wolfsonmicro.com>
  0 siblings, 1 reply; 3+ messages in thread
From: kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ @ 2012-03-13  6:46 UTC (permalink / raw)
  To: Mark Brown, Grant Likely
  Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Kuninori Morimoto


Hi SPI ML, Mark

Now I'm studying SPI core message queue by checking spi-s3c64xx.c.

And I noticed that strange code on
ad2a99af0d7242726723575efaffa1625664b384
(spi/s3c64xx: Convert to using core message queue)

current spi-s3c64xx.c :: s3c64xx_spi_transfer_one_message() is

-----------------------------------------------------------------------
static int s3c64xx_spi_transfer_one_message(struct spi_master *master,
					    struct spi_message *msg)
{
...
	if (msg->complete)
		msg->complete(msg->context);

	spi_finalize_current_message(master);

	return 0;
}
-----------------------------------------------------------------------

But I think spi_finalize_current_message() itself will call msg->complete().
Is this double call ?
I'm not sure.

msg->complete() of spi-pl022.c was removed by
ffbbdd21329f3e15eeca6df2d4bc11c04d9d91c0
(spi: create a message queueing infrastructure)

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

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

end of thread, other threads:[~2012-03-15  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-13  6:46 Is this bug ? msg->complete() double call on s3c64xx.c ? kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ
     [not found] ` <20120313234856.GZ3177@opensource.wolfsonmicro.com>
     [not found]   ` <20120313234856.GZ3177-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-03-14  0:19     ` [PATCH] spi: s3c64xx: remove unnecessary callback msg->complete Kuninori Morimoto
     [not found]       ` <20120314165959.GU3133@opensource.wolfsonmicro.com>
     [not found]         ` <20120314165959.GU3133-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-03-15  9:31           ` Grant Likely

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).