linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Rework of request firmware
Date: Sun, 20 Mar 2005 20:25:17 +0000	[thread overview]
Message-ID: <1111350317.23995.83.camel@localhost.localdomain> (raw)
In-Reply-To: <9e473391050319200625032789@mail.gmail.com>

On Sun, 2005-03-20 at 14:50 -0500, Jon Smirl wrote:
> On Sun, 20 Mar 2005 20:27:24 +0100, Kay Sievers <kay.sievers@vrfy.org> wrote:
> > But if the config event does not know how to fulfill the request, it may
> > cancel the operation by triggering the sysfs attribute. And that will
> > lead to a failing device initialization which is an event that userspace
> > is interested in.
> > Again, the way such errors are send to userspace in a sane way, needs to
> > be solved for this to happen ...
> 
> I was going to remove the cancel operation. Userspace would only be
> able to signal: completed or restart.

If I don't have the requested data to copy to the driver. What should I
do?

> Status and user_data would be permanent attributes on the device.

If the driver needs 2 requests to set up and something goes wrong: Which
one should I load into the attribute now? I'm lost lost with that
layout.

> I added a field to 'struct device' to track the progress of the loading.

Could you please define the requirements for that subsystem _first_ and
make sure that everything we currently know of is covered before adding
stuff to the core. I'm pretty sure that this will have to change several
times before we get that right.

> If the driver is removed and there is a pending kernel thread waiting,
> the device layer has enough info to get rid of it.

How do you remove the busy driver?

> status=0 offline
> status=1 on-line
> status=2 waiting for user space action
> status=3 user action complete
> 
> Setting status=2 would clear the data and get ready to receive new data
> Setting  status=3 indicates that load/action is complete.
> User space can't set states 0/1
> 
> A timeout would leave everything as is, but generate a user readable
> message to fix things.

Why should we do that? If userspace can not fulfill the request, why
should we keep the kernel state around?

> Exiting the module would remove all pending threads, cleanup, and set status=0.

Yeah, sounds very much like the current oops'ing firmware_class. :)

> Userspace could possibly set a state=4 which would reset the data load
> and regenerate the event. All that need to be remember is the
> environment variable string.

That's the problem. Who remembers what?

How do we handle devices which are not fully registered until they got
the request handled successfully?

Kay



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2005-03-20 20:25 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-20  4:06 Rework of request firmware Jon Smirl
2005-03-20 13:37 ` Kay Sievers
2005-03-20 15:35 ` Jon Smirl
2005-03-20 16:47 ` Jon Smirl
2005-03-20 17:16 ` Kay Sievers
2005-03-20 17:19 ` David Zeuthen
2005-03-20 17:39 ` Kay Sievers
2005-03-20 17:52 ` Kay Sievers
2005-03-20 17:52 ` Darren Salt
2005-03-20 18:00 ` Kay Sievers
2005-03-20 18:24 ` Jon Smirl
2005-03-20 19:02 ` Jon Smirl
2005-03-20 19:17 ` Kay Sievers
2005-03-20 19:27 ` Kay Sievers
2005-03-20 19:50 ` Jon Smirl
2005-03-20 20:25 ` Kay Sievers [this message]
2005-03-20 20:39 ` Jon Smirl
2005-03-21  2:37 ` Kay Sievers
2005-03-22  0:29 ` Linas Vepstas
2005-03-22  2:25 ` Kay Sievers
2005-03-22  3:06 ` Jon Smirl
2005-03-22  8:27 ` Roman Kagan
2005-03-22 10:45 ` Kay Sievers
2005-03-22 10:55 ` Kay Sievers
2005-03-22 14:37 ` Jon Smirl
2005-03-22 17:53 ` Linas Vepstas
2005-03-22 18:09 ` Linas Vepstas
2005-03-22 18:43 ` Jon Smirl
2005-03-23  1:08 ` Greg KH

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=1111350317.23995.83.camel@localhost.localdomain \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@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).