[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1217009954.13539.23.camel@localhost.localdomain>
Date: Fri, 25 Jul 2008 14:19:14 -0400
From: Daniel Walker <dwalker@...sta.com>
To: Grant Likely <grant.likely@...retlab.ca>
Cc: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
spi-devel-general@...ts.sourceforge.net,
dbrownell@...rs.sourceforge.net, linuxppc-dev@...abs.org,
jonsmirl@...il.com
Subject: Re: [PATCH v3 4/4] powerpc/mpc5200: Add mpc5200-spi (non-PSC)
device driver
On Fri, 2008-07-25 at 03:33 -0400, Grant Likely wrote:
> + if (status && (irq != NO_IRQ))
> + dev_err(&ms->master->dev, "spurious irq, status=0x%.2x\n",
> + status);
> +
> + /* Check if there is another transfer waiting */
> + if (list_empty(&ms->queue))
> + return FSM_STOP;
I don't think doing list_empty outside the critical section is totally
safe.. You might want to move it down inside the spin_lock() section.
> + /* Get the next message */
> + spin_lock(&ms->lock);
The part that's a little confusing here is that the interrupt can
actually activate the workqueue .. So I'm wondering if maybe you could
have this interrupt driven any workqueue driven at the same time? If you
could then you would need the above to be
spin_lock_irq/spin_lock_irqsave ..
Daniel
--
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