public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Stefan Schweizer <genstef@gentoo.org>
Cc: linux-kernel@vger.kernel.org, i4ldeveloper@listserv.isdn4linux.de
Subject: Re: [PATCH 2.6.17-rc3] Fix capi reload by unregistering the correct major
Date: Mon, 8 May 2006 13:00:29 -0700	[thread overview]
Message-ID: <20060508130029.08a9a962.akpm@osdl.org> (raw)
In-Reply-To: <e307i4$f1h$1@sea.gmane.org>

Stefan Schweizer <genstef@gentoo.org> wrote:
>
> I am having the bug
> FATAL: Error inserting capi ([..]/capi.ko): Device or resource busy
> when I try to reload capi after loading it.
> in dmesg: capi20: unable to get major 68

This is odd.

> I attached a patch to fix the issue which is caused by setting the major to
> zero when registering the chrdev succeeded. Please apply
> - - Stefan
> 
> errors in the dmesg:
> 
> CAPI Subsystem Rev 1.1.2.8
> capifs: Rev 1.1.2.3
> capi20: Rev 1.1.2.7: started up with major 0 (middleware+capifs)
> <-- here you see that it was set to 0.
> (after unload and retry)
> capi: Rev 1.1.2.7: unloaded
> CAPI Subsystem Rev 1.1.2.8
> capi20: unable to get major 68
> <-- the chrdev has not been unlinked

> --- drivers/isdn/capi/capi.c.orig	2006-04-29 18:40:25.000000000 +0200
> +++ drivers/isdn/capi/capi.c	2006-04-29 18:27:22.000000000 +0200
> @@ -1499,7 +1499,6 @@
>  		printk(KERN_ERR "capi20: unable to get major %d\n", capi_major);
>  		return major_ret;
>  	}
> -	capi_major = major_ret;
>  	capi_class = class_create(THIS_MODULE, "capi");
>  	if (IS_ERR(capi_class)) {
>  		unregister_chrdev(capi_major, "capi20");
> 
> 
> 

What does "unload and retry" mean?

An `rmmod capi;modprobe capi' will reset the major to 68, so you must mean
something else.  What?


  reply	other threads:[~2006-05-08 19:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-29 17:25 [PATCH 2.6.17-rc3] Fix capi reload by unregistering the correct major Stefan Schweizer
2006-05-08 20:00 ` Andrew Morton [this message]
2006-05-09 17:12   ` Stefan Schweizer
2006-05-12 22:16     ` Stefan Schweizer

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=20060508130029.08a9a962.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=genstef@gentoo.org \
    --cc=i4ldeveloper@listserv.isdn4linux.de \
    --cc=linux-kernel@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