linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacek Kawa <jfk@zeus.polsl.gliwice.pl>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.0-test11 -- Failed to open /dev/ttyS0: No such device
Date: Mon, 1 Dec 2003 08:28:00 +0100	[thread overview]
Message-ID: <20031201072800.GA2026@finwe.eu.org> (raw)
In-Reply-To: <microsoft-free.87vfp1nuxh.fsf@eicq.dnsalias.org>

Steve Youngs wrote:

>   >>I _think_ this patch will bring back auto-loading of the serial module
>   >>for you.  Please let me know how it goes. 
> 
>   JK> Well: patched, installed new serial_core.ko, then depmod -a, and
>   JK> try to access ttySwhatever.
> 
> As Russell said, the patch was wrong, revert it.  Sorry about that, my
> bad. 

Nothing bad happened :)

> I'm pretty sure that the problem has its roots in...

> --- a/fs/char_dev.c	Sun Nov 23 17:33:38 2003
> +++ b/fs/char_dev.c	Sun Nov 23 17:33:38 2003
> @@ -434,7 +434,7 @@
>  
>  static struct kobject *base_probe(dev_t dev, int *part, void *data)
>  {
> -	request_module("char-major-%d", MAJOR(dev));
> +	request_module("char-major-%d-%d", MAJOR(dev), MINOR(dev));
>  	return NULL;
>  }
> ...from Rusty, which went into 2.6.0-test10.

> Does this work any better?

> --- linux-2.6.0-test11/drivers/serial/8250.c	2003-11-27 11:03:42.000000000 +1000
> +++ linux-2.6.0-test11-sy/drivers/serial/8250.c	2003-12-01 11:40:44.000000000 +1000
[...]
> @@ -2195,3 +2196,4 @@
>  MODULE_PARM(force_rsa, "1-" __MODULE_STRING(PORT_RSA_MAX) "i");
>  MODULE_PARM_DESC(force_rsa, "Force I/O ports for RSA");
>  #endif
> +MODULE_ALIAS_CHARDEV_MAJOR(TTY_MAJOR);

1. Yup, with first patch revertet everything works as before
2. With both patch applied I don't have to manually load
   any module (8250 and serial_core are autoloaded), but
   my pseudomodule serial isn't loaded anymore.

Thanks!

bye

-- 
Jacek Kawa  **SPAM - Stowarzyszenie Polskich Artystów Muzyków**

  reply	other threads:[~2003-12-01  7:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-30  7:17 2.6.0-test11 -- Failed to open /dev/ttyS0: No such device William Park
2003-11-30 10:23 ` bert hubert
2003-11-30 11:36   ` Jacek Kawa
2003-11-30 15:54     ` Steve Youngs
2003-11-30 16:00       ` Russell King
2003-11-30 22:22       ` Jacek Kawa
2003-12-01  2:17         ` Steve Youngs
2003-12-01  7:28           ` Jacek Kawa [this message]
2003-11-30 19:05     ` William Park
2003-11-30 18:40   ` William Park

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=20031201072800.GA2026@finwe.eu.org \
    --to=jfk@zeus.polsl.gliwice.pl \
    --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;
as well as URLs for NNTP newsgroup(s).