linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Daney <ddaney@caviumnetworks.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-ide@vger.kernel.org, linux-mips <linux-mips@linux-mips.org>
Subject: Re: [PATCH] ide: New libata driver for OCTEON SOC Compact Flash interface.
Date: Fri, 21 Nov 2008 09:47:55 -0800	[thread overview]
Message-ID: <4926F44B.2090205@caviumnetworks.com> (raw)
In-Reply-To: <4926EF55.7080004@ru.mvista.com>

Sergei Shtylyov wrote:
> David Daney wrote:
[...]
> 
>>> What stops the following occuring
> 
>>>     ATA irq
>>>         BUSY still set
>>>         Queue tasklet
> 
>>>     Other irq on same line
>>>     ATA busy clear
>>>         Handle command
> 
>    Is CF interrupt indeed shared with anything?
> 
>>>     Tasklet runs but command was sorted out
> 
>>> (or a reset of the ata controller in the gap)
> 
>> Probably nothing.  I will try to sort it out.
> 
>    It's the need for the tasklet that seems doubtful to me...
> 

The interrupt occurs *before* the device de-asserts BUSY.  A small pause 
is needed to allow the device to clear BUSY and allow libata to function 
normally.

Calling ata_sff_host_intr() while BUSY is asserted causes the driver to 
fail, as it is expecting to be called from a true IDE interrupt routine. 
  Delaying calling ata_sff_host_intr() until BUSY is clear (using the 
tasklet) seemed to be the cleanest way to write the driver given that we 
are using an interrupt generated by DMA complete.

David Daney.

  reply	other threads:[~2008-11-21 17:49 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21  2:24 [PATCH] ide: New libata driver for OCTEON SOC Compact Flash interface David Daney
2008-11-21 10:21 ` Alan Cox
2008-11-21 17:05   ` David Daney
2008-11-21 17:26     ` Sergei Shtylyov
2008-11-21 17:47       ` David Daney [this message]
2008-11-21 18:07       ` Alan Cox
2008-11-21 17:49     ` Alan Cox
2008-11-21 16:40 ` Sergei Shtylyov
2008-11-21 17:29   ` David Daney
2008-11-21 18:14     ` Sergei Shtylyov
2008-11-21 18:43       ` Chad Reese
2008-11-21 17:46   ` Alan Cox
2008-11-21 17:37 ` Sergei Shtylyov
2008-11-21 18:12   ` Alan Cox
2008-11-22 13:57 ` Sergei Shtylyov
2008-11-22 14:52   ` Alan Cox
2008-11-22 15:05     ` Sergei Shtylyov
2008-11-23 17:14       ` Sergei Shtylyov
2008-11-24 20:40     ` David Daney
2008-11-24 22:33       ` Sergei Shtylyov
2008-11-22 15:13   ` Sergei Shtylyov
2008-11-22 18:38     ` Chad Reese
2008-11-23 15:13       ` Sergei Shtylyov
2008-11-23 15:24         ` Sergei Shtylyov
2008-11-23 17:10           ` Sergei Shtylyov
2008-11-23 17:32     ` Sergei Shtylyov

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=4926F44B.2090205@caviumnetworks.com \
    --to=ddaney@caviumnetworks.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=sshtylyov@ru.mvista.com \
    /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 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).