All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven King <sfking-xS0NTnu2YfYAvxtiuMwx3w@public.gmane.org>
To: Jate Sujjavanich
	<jsujjavanich-oI4RZb1+6EReLsYL91UIxL5dPsmED6B0@public.gmane.org>
Cc: "'spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org'"
	<spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	'Greg Ungerer' <gerg-XXXsiaCtIV5Wk0Htik3J/w@public.gmane.org>
Subject: Re: [uClinux-dev] [PATCH] m68knommu: Coldfire QSPI platform support
Date: Fri, 10 Dec 2010 08:46:35 -0800	[thread overview]
Message-ID: <201012100846.36080.sfking@fdwdc.com> (raw)
In-Reply-To: <6C2434209962DC46B88345CA85C334A2A434E65AF7-sZuHJe4yGqVM6S7uvVHM8UB+6BGkLq7r@public.gmane.org>

On Wednesday 29 September 2010 06:44:32 Jate Sujjavanich wrote:
> Here's a patch for your review.
>
>
> After grabbing a msg from the msgq, the mcfqspi_work function calls
> list_del_init on the mcfqspi->msgq which unintentionally deletes the rest
> of the list before it can be processed. If qspi call was made using
> spi_sync, this can result in a process hang.
>
> Signed-off by Jate Sujjavanich<jsujjavanich-oI4RZb1+6EReLsYL91UIxL5dPsmED6B0@public.gmane.org>
> -----------
> diff --git a/drivers/spi/coldfire_qspi.c b/drivers/spi/coldfire_qspi.c
> index 59be3ef..0aa00af 100644
> --- a/drivers/spi/coldfire_qspi.c
> +++ b/drivers/spi/coldfire_qspi.c
> @@ -316,7 +316,7 @@ static void mcfqspi_work(struct work_struct *work)
>                  msg = container_of(mcfqspi->msgq.next, struct spi_message,
>                                     queue);
> -               list_del_init(&mcfqspi->msgq);
> +               list_del_init(&msg->queue);
>                  spin_unlock_irqrestore(&mcfqspi->lock, flags);
>                  spi = msg->spi;
>


A belated ack.

Grant, can we still get this into .37?

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 

  parent reply	other threads:[~2010-12-10 16:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201001221243.04045.sfking@fdwdc.com>
     [not found] ` <4C4FA5AA.3020804@snapgear.com>
     [not found]   ` <6C2434209962DC46B88345CA85C334A2A434E65ADC@Courier.syntech.org>
     [not found]     ` <201009230842.40958.sfking@fdwdc.com>
     [not found]       ` <6C2434209962DC46B88345CA85C334A2A434E65AEA@Courier.syntech.org>
     [not found]         ` <4CA17F2D.7000407@snapgear.com>
     [not found]           ` <4CA17F2D.7000407-XXXsiaCtIV5Wk0Htik3J/w@public.gmane.org>
2010-09-29 13:44             ` [uClinux-dev] [PATCH] m68knommu: Coldfire QSPI platform support Jate Sujjavanich
     [not found]               ` <6C2434209962DC46B88345CA85C334A2A434E65AF7-sZuHJe4yGqVM6S7uvVHM8UB+6BGkLq7r@public.gmane.org>
2010-12-10 16:46                 ` Steven King [this message]
     [not found]                   ` <201012100846.36080.sfking-xS0NTnu2YfYAvxtiuMwx3w@public.gmane.org>
2010-12-30  6:20                     ` Grant Likely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201012100846.36080.sfking@fdwdc.com \
    --to=sfking-xs0ntnu2yfyavxtiumwx3w@public.gmane.org \
    --cc=gerg-XXXsiaCtIV5Wk0Htik3J/w@public.gmane.org \
    --cc=jsujjavanich-oI4RZb1+6EReLsYL91UIxL5dPsmED6B0@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.