All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: tom.leiming@gmail.com
Cc: kay.sievers@vrfy.org, greg@kroah.com, arjan@infradead.org,
	linux-kernel@vger.kernel.org, Ming Lei <tom.leiming@gmail.com>
Subject: Re: [PATCH] driver core: remove polling for driver_probe_done(v2)
Date: Fri, 30 Jan 2009 11:05:55 +0100	[thread overview]
Message-ID: <20090130110555.116f747a@gondolin> (raw)
In-Reply-To: <1233282702-6274-1-git-send-email-tom.leiming@gmail.com>

On Fri, 30 Jan 2009 10:31:42 +0800,
tom.leiming@gmail.com wrote:


>  /**
> + * driver_wait_probe_done_and_dev_appear
> + * wait until the probe sequence is finished _and_ the dev @name appears.
> + *
> + */
> +void driver_wait_probe_done_and_dev_appear(char *name)
> +{
> +	pr_debug("%s: probe_count = %d\n", __func__,
> +		 atomic_read(&probe_count));
> +
> +	wait_event(probe_waitqueue, (atomic_read(&probe_count) == 0) &&
> +		  name_to_dev_t(name));

probe_waitqueue is only woken at the end of really_probe(), not when
whatever needs to be done to make the device available is done...

> +}
> +/**
>   * driver_probe_device - attempt to bind device & driver together
>   * @drv: driver to bind a device to
>   * @dev: device to try to bind to the driver

  parent reply	other threads:[~2009-01-30 10:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-30  2:31 [PATCH] driver core: remove polling for driver_probe_done(v2) tom.leiming
2009-01-30  5:04 ` Arjan van de Ven
2009-01-30  9:59   ` Ming Lei
2009-01-30 10:05 ` Cornelia Huck [this message]
2009-01-30 10:17   ` Ming Lei
2009-01-30 10:30     ` Cornelia Huck
2009-01-30 10:51       ` Ming Lei

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=20090130110555.116f747a@gondolin \
    --to=cornelia.huck@de.ibm.com \
    --cc=arjan@infradead.org \
    --cc=greg@kroah.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tom.leiming@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.