From: "Frank Schäfer" <fschaefer.oss@googlemail.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: em28xx: module parameter prefer_bulk ?
Date: Wed, 26 Dec 2012 19:55:38 +0100 [thread overview]
Message-ID: <50DB482A.60302@googlemail.com> (raw)
In-Reply-To: <20121224131625.128de19c@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 647 bytes --]
Am 24.12.2012 16:16, schrieb Mauro Carvalho Chehab:
> Em Mon, 24 Dec 2012 12:25:38 +0100
> Frank Schäfer <fschaefer.oss@googlemail.com> escreveu:
>
>> Hi Mauro,
>>
>> now that we prefer bulk transfers for webcams and isoc transfers for TV,
>> I wonder if prefer_bulk is still a good name for this module parameter.
>> What about something like 'usb_mode', 'usb_xfer_mode' or
>> 'frame_xfer_mode' with 0=auto, 1=prefer isoc, 2=prefer bulk ?
> while keeping it as-is is not bad, IMHO, we can change it if people prefer
> renaming it.
>
> usb_xfer_mode sounds good for me. Feel free to submit a patch if you want.
See attachment.
Regards,
Frank
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-em28xx-rename-module-parameter-prefer_bulk-to-usb_xf.patch --]
[-- Type: text/x-patch; name="0001-em28xx-rename-module-parameter-prefer_bulk-to-usb_xf.patch", Size: 1846 bytes --]
>From b95be429befa40264eb29a63310cc0ab0bca1090 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Frank=20Sch=C3=A4fer?= <fschaefer.oss@googlemail.com>
Date: Wed, 26 Dec 2012 19:12:37 +0100
Subject: [PATCH] em28xx: rename module parameter prefer_bulk to usb_xfer_mode
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Since we have now 3 modes (auto/isoc/bulk), usb_xfer_mode is more suitable than prefer_bulk.
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
---
drivers/media/usb/em28xx/em28xx-cards.c | 11 ++++++-----
1 Datei geändert, 6 Zeilen hinzugefügt(+), 5 Zeilen entfernt(-)
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c
index a0eed7e..c5e1d2d 100644
--- a/drivers/media/usb/em28xx/em28xx-cards.c
+++ b/drivers/media/usb/em28xx/em28xx-cards.c
@@ -61,9 +61,10 @@ static unsigned int card[] = {[0 ... (EM28XX_MAXBOARDS - 1)] = UNSET };
module_param_array(card, int, NULL, 0444);
MODULE_PARM_DESC(card, "card type");
-static int prefer_bulk = -1;
-module_param(prefer_bulk, int, 0444);
-MODULE_PARM_DESC(prefer_bulk, "prefer USB bulk transfers (-1 = auto, 0 = isoc, 1 = bulk)");
+static int usb_xfer_mode = -1;
+module_param(usb_xfer_mode, int, 0444);
+MODULE_PARM_DESC(usb_xfer_mode,
+ "USB transfer mode for frame data (-1 = auto, 0 = prefer isoc, 1 = prefer bulk)");
/* Bitmask marking allocated devices from 0 to EM28XX_MAXBOARDS - 1 */
@@ -3399,13 +3400,13 @@ static int em28xx_usb_probe(struct usb_interface *interface,
goto unlock_and_free;
}
- if (prefer_bulk < 0) {
+ if (usb_xfer_mode < 0) {
if (dev->board.is_webcam)
try_bulk = 1;
else
try_bulk = 0;
} else {
- try_bulk = prefer_bulk > 0;
+ try_bulk = usb_xfer_mode > 0;
}
/* Select USB transfer types to use */
--
1.7.10.4
prev parent reply other threads:[~2012-12-26 18:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-24 11:25 em28xx: module parameter prefer_bulk ? Frank Schäfer
2012-12-24 15:16 ` Mauro Carvalho Chehab
2012-12-26 18:55 ` Frank Schäfer [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=50DB482A.60302@googlemail.com \
--to=fschaefer.oss@googlemail.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.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 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.