public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marko Kohtala <marko.kohtala@gmail.com>
To: Jason Dravet <dravet@hotmail.com>
Cc: linux-kernel@vger.kernel.org, linux-parport@lists.infradead.org
Subject: Re: [Linux-parport] [RFC]: add sysfs support to parport_pc, v3
Date: Mon, 2 Jan 2006 21:50:08 +0200	[thread overview]
Message-ID: <9cfa10eb0601021150y646fe728s@mail.gmail.com> (raw)
In-Reply-To: <BAY103-F835CFFD193D6F76C5527FDF2D0@phx.gbl>

2006/1/2, Jason Dravet <dravet@hotmail.com>:
> Here is a new patch to parport_pc that adds sysfs and thus udev support to
> parport_pc.  I fixed my earilier problem of the kernel oops (I forgot the
> class_destory) and I can insmod and rmmod this module all day long with no
> side effects.  I do have one question why do both lp and parport nodes have
> to be created?
>
> What do you think of this patch?  What would be the next step to get this
> into the kernel?

If your problem is that you do not get /dev/lp0 created automatically,
I think a better way to get that solved is to find out a way that the
module lp is loaded automatically when a printer is found on the
parport.

Maybe you should look into drivers/parport/probe.c and have it do
request_module("lp") when it finds a printer attached to the parport.

Some paride (or SCSI) devices could also be probed for using a
pre-IEEE1284 daisy chain command that gives a 16 bit device ID, and
proper drivers loaded with some module aliases including the device
ID. If something unidentifiable is found on the parport then maybe the
ppdev could be loaded so that userspace drivers will have an interface
to work with.

I fear that some people would find this too smart to be useful. I'd
expect them to request at least a module option to parport to disable
it.

Most people are happy with just "lp" in /etc/modules.

  reply	other threads:[~2006-01-02 19:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-02 15:39 [RFC]: add sysfs support to parport_pc, v3 Jason Dravet
2006-01-02 19:50 ` Marko Kohtala [this message]
2006-01-04  1:08 ` Greg KH
2006-01-04  3:24   ` Jason Dravet
2006-01-04  9:14     ` Jan Engelhardt
2006-01-04 22:31     ` Andrew Morton
2006-01-05 16:17       ` Marko Kohtala
2006-01-05 21:25         ` Kay Sievers

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=9cfa10eb0601021150y646fe728s@mail.gmail.com \
    --to=marko.kohtala@gmail.com \
    --cc=dravet@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-parport@lists.infradead.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