From: Sebastien Jan <s-jan@ti.com>
To: Carlos Chinea <carlos.chinea@nokia.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [RFC PATCHv2 2/7] OMAP SSI: Introducing OMAP SSI driver
Date: Tue, 18 May 2010 16:05:55 +0200 [thread overview]
Message-ID: <201005181605.55809.s-jan@ti.com> (raw)
In-Reply-To: <1274173640.7755.22703.camel@localhost>
On Tuesday 18 May 2010 11:07:20 Carlos Chinea wrote:
[cut]
> > > + val |= __raw_readl(omap_ssi->sys +
> > > SSI_MPU_ENABLE_REG(port->num, 0)); + __raw_writel(val,
> > > omap_ssi->sys +
> > > SSI_MPU_ENABLE_REG(port->num, 0)); +
> > > + msg->status = HSI_STATUS_COMPLETED;
> > > + msg->actual_len = sg_dma_len(msg->sgt.sgl);
> > > + spin_unlock(&omap_ssi->lock);
> > > +}
> >
> > Don't you need to check the queue related to this transfer at this point,
> > to start the potentially next queued transfer on the same channel?
> > (calling ssi_start_transfer(), like in ssi_pio_complete()?)
>
> No this is done in ssi_pio_complete(). Notice that we do not call the
> complete callback at any point here. We just arm the pio interrupt for
> that channel and transfer direction. AFAIK, this is the SW logic
> expected by the OMAP SSI HW.
Ok, though I would not expect the interrupt to fire in an Rx scenario as the
fifo would have already been emptied by the DMA for this transfer (unless you
rely on the next transfer initiated by the peer to make the Rx interrupt fire
on this channel?)?
next prev parent reply other threads:[~2010-05-18 14:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-07 15:18 [RFC PATCHv2 0/7] HSI framework and drivers Carlos Chinea
2010-05-07 15:18 ` [RFC PATCHv2 1/7] HSI: Introducing HSI framework Carlos Chinea
2010-05-07 15:26 ` Randy Dunlap
2010-05-07 16:11 ` Carlos Chinea
2010-05-07 16:18 ` Randy Dunlap
2010-05-14 14:22 ` Sebastien Jan
2010-05-18 8:37 ` Carlos Chinea
2010-05-07 15:18 ` [RFC PATCHv2 2/7] OMAP SSI: Introducing OMAP SSI driver Carlos Chinea
2010-05-14 14:41 ` Sebastien Jan
2010-05-18 9:07 ` Carlos Chinea
2010-05-18 14:05 ` Sebastien Jan [this message]
2010-05-26 7:27 ` Carlos Chinea
2010-05-07 15:18 ` [RFC PATCHv2 3/7] OMAP SSI: Add OMAP SSI to the kernel configuration Carlos Chinea
2010-05-07 15:18 ` [RFC PATCHv2 4/7] HSI CHAR: Add HSI char device driver Carlos Chinea
2010-05-07 15:18 ` [RFC PATCHv2 5/7] HSI CHAR: Add HSI char device kernel configuration Carlos Chinea
2010-05-07 15:18 ` [RFC PATCHv2 6/7] HSI: Add HSI API documentation Carlos Chinea
2010-05-07 15:18 ` [RFC PATCHv2 7/7] HSI CHAR: Update ioctl-number.txt Carlos Chinea
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=201005181605.55809.s-jan@ti.com \
--to=s-jan@ti.com \
--cc=carlos.chinea@nokia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.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 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).