All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wells <wells_kevin@yahoo.co.nz>
To: Steven Toth <stoth@linuxtv.org>
Cc: linux-media@vger.kernel.org
Subject: [PATCH 3/4] tm6000: Use mask when getting XFERTYPE from bmAttributes
Date: Sun, 05 Apr 2009 12:46:13 +1200	[thread overview]
Message-ID: <49D7FF55.70109@yahoo.co.nz> (raw)

# HG changeset patch
# User Kevin Wells <kevin.wells@kahusoft.com>
# Date 1238885144 -43200
# Node ID 02d3a231b99e1eef922679f1381eecd0b9990d23
# Parent  3140e621a17b536eb1487f8f9ad5b7b6a8ff8341
Use mask when getting XFERTYPE from bmAttributes

From: Kevin Wells <kevin.wells@kahusoft.com>

Priority: normal

Signed-off-by: Kevin Wells <kevin.wells@kahusoft.com>

diff -r 3140e621a17b -r 02d3a231b99e 
linux/drivers/media/video/tm6000/tm6000-cards.c
--- a/linux/drivers/media/video/tm6000/tm6000-cards.c    Sat Apr 04 
23:39:18 2009 +1300
+++ b/linux/drivers/media/video/tm6000/tm6000-cards.c    Sun Apr 05 
10:45:44 2009 +1200
@@ -446,7 +446,7 @@
                    interface->altsetting[i].desc.bInterfaceNumber,
                    interface->altsetting[i].desc.bInterfaceClass);
 
-            switch (e->desc.bmAttributes) {
+            switch (e->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) {
             case USB_ENDPOINT_XFER_BULK:
                 if (!dir_out) {
                     get_max_endpoint (usbdev, "Bulk IN", e,

                 reply	other threads:[~2009-04-05  0:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=49D7FF55.70109@yahoo.co.nz \
    --to=wells_kevin@yahoo.co.nz \
    --cc=linux-media@vger.kernel.org \
    --cc=stoth@linuxtv.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.