From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: linux1394-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org, Jay Fenlason <fenlason@redhat.com>
Subject: Re: [PATCH rfc] firewire: add isochronous multichannel reception
Date: Thu, 29 Jul 2010 18:12:59 +0200 [thread overview]
Message-ID: <4C51A88B.3040807@s5r6.in-berlin.de> (raw)
In-Reply-To: <tkrat.c7f7ffc33f9f1ed2@s5r6.in-berlin.de>
Stefan Richter wrote:
> static int ohci_queue_iso(struct fw_iso_context *base,
> struct fw_iso_packet *packet,
> struct fw_iso_buffer *buffer,
> @@ -2587,14 +2761,17 @@ static int ohci_queue_iso(struct fw_iso_
> {
> struct iso_context *ctx = container_of(base, struct iso_context, base);
> unsigned long flags;
> - int ret;
> + int ret = -ENOSYS;
>
> spin_lock_irqsave(&ctx->context.ohci->lock, flags);
> - if (base->type == FW_ISO_CONTEXT_TRANSMIT)
> - ret = ohci_queue_iso_transmit(base, packet, buffer, payload);
> - else
> - ret = ohci_queue_iso_receive_packet_per_buffer(base, packet,
> - buffer, payload);
> + switch (base->type) {
> + case FW_ISO_CONTEXT_TRANSMIT:
> + ret = queue_iso_transmit(base, packet, buffer, payload);
> + case FW_ISO_CONTEXT_RECEIVE:
> + ret = queue_iso_packet_per_buffer(base, packet, buffer, payload);
> + case FW_ISO_CONTEXT_RECEIVE_MULTICHANNEL:
> + ret = queue_iso_buffer_fill(base, packet, buffer, payload);
> + }
> spin_unlock_irqrestore(&ctx->context.ohci->lock, flags);
>
> return ret;
Where is the brown paper bag...
There should be break; at each case. Updated patch is at
http://user.in-berlin.de/~s5r6/linux1394/pending/1171-firewire-add-isochronous-multichannel-reception.patch
--
Stefan Richter
-=====-==-=- -=== ===-=
http://arcgraph.de/sr/
prev parent reply other threads:[~2010-07-29 16:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-29 15:08 Stefan Richter
2010-07-29 16:12 ` Stefan Richter [this message]
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=4C51A88B.3040807@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=fenlason@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
/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
all inboxes | Powered by JetHome®