public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rene Herman <rene.herman@keyaccess.nl>
To: Andrew Morton <akpm@osdl.org>
Cc: Ingo Molnar <mingo@redhat.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	video4linux-list@redhat.com,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] V4L1: make PMS not autoprobe when builtin.
Date: Sun, 10 Aug 2008 23:37:29 +0200	[thread overview]
Message-ID: <489F5F99.1000905@keyaccess.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

Hi Andrew.

Alternate version of the PMS patch sent yesterday. This one makes it 
need explicit enabling when builtin and doesn't change anything when 
modular as per Alan Cox's comments.

This is a deprecated, unused driver meaning it doesn't matter. It still 
fixes that (randconfig testing breakage) which it is supposed to fix.

Rene.

[-- Attachment #2: 0001-V4L1-make-PMS-not-autoprobe-when-builtin.patch --]
[-- Type: text/plain, Size: 1325 bytes --]

>From e089b11a8eee4876c2c65988a9f423a1ae111d7a Mon Sep 17 00:00:00 2001
From: Rene Herman <rene.herman@gmail.com>
Date: Sat, 9 Aug 2008 20:39:19 +0200
Subject: [PATCH] V4L1: make PMS not autoprobe when builtin.

The old Mediavision Pro Movie Studio legacy ISA V4L1 driver was
found to hang the boot during Ingo Molnar's testing of randconfig
kernels. Have it require a "pms.enable=1" kernel parameter to
enable the driver when builtin which avoids such problems.

This is a deprecated and, very likely, unused driver. Nothing
changes modular moreover.

Signed-off-by: Rene Herman <rene.herman@gmail.com>
---
 drivers/media/video/pms.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/pms.c b/drivers/media/video/pms.c
index 00425d7..ede522a 100644
--- a/drivers/media/video/pms.c
+++ b/drivers/media/video/pms.c
@@ -1019,10 +1019,22 @@ static int init_mediavision(void)
  *	Initialization and module stuff
  */
 
+#ifndef MODULE
+static int enable;
+module_param(enable, int, 0);
+#endif
+
 static int __init init_pms_cards(void)
 {
 	printk(KERN_INFO "Mediavision Pro Movie Studio driver 0.02\n");
 
+#ifndef MODULE
+	if (!enable) {
+		printk(KERN_INFO "Not enabled\n");
+		return -ENODEV;
+	}
+#endif
+
 	data_port = io_port +1;
 
 	if(init_mediavision())
-- 
1.5.5


             reply	other threads:[~2008-08-10 21:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-10 21:37 Rene Herman [this message]
2008-08-10 21:37 ` [PATCH] V4L1: make PMS not autoprobe when builtin Alan Cox
2008-08-10 22:06   ` Rene Herman

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=489F5F99.1000905@keyaccess.nl \
    --to=rene.herman@keyaccess.nl \
    --cc=akpm@osdl.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=video4linux-list@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox