mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@nokia.com>
To: Grazvydas Ignotas <notasas@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
	Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>,
	Linus Walleij <linus.walleij@stericsson.com>,
	Felipe Balbi <balbi@ti.com>, Tejun Heo <tj@kernel.org>,
	Samuel Ortiz <sameo@linux.intel.com>, Hema HK <hemahk@ti.com>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Yang Ruirui <ruirui.r.yang@tieto.com>,
	David Brownell <david-b@pacbell.net>
Subject: Re: [PATCH] usb otg: use atomic notifier instead of blocking notifier
Date: Wed, 19 Jan 2011 12:33:23 +0200	[thread overview]
Message-ID: <20110119103323.GC4693@hedu-HP-Z800-Workstation> (raw)
In-Reply-To: <20110119092011.GA23624@darkstar>

On Wed, Jan 19, 2011 at 05:20:11PM +0800, ext Yang Ruirui wrote:
> --- linux-2.6.orig/include/linux/usb/otg.h      2011-01-17 09:39:11.000000000 +0800
> +++ linux-2.6/include/linux/usb/otg.h   2011-01-19 16:38:06.649546989 +0800
> @@ -74,7 +74,7 @@ struct otg_transceiver {
>         void __iomem                    *io_priv;
> 
>         /* for notification of usb_xceiv_events */
> -       struct blocking_notifier_head   notifier;
> +       struct atomic_notifier_head     notifier;
> 
>         /* to pass extra port status to the root hub */
>         u16                     port_status;
> @@ -234,13 +234,13 @@ otg_start_srp(struct otg_transceiver *ot
>  static inline int
>  otg_register_notifier(struct otg_transceiver *otg, struct notifier_block *nb)
>  {
> -       return blocking_notifier_chain_register(&otg->notifier, nb);
> +       return atomic_notifier_chain_register(&otg->notifier, nb);
>  }
> 
>  static inline void
>  otg_unregister_notifier(struct otg_transceiver *otg, struct notifier_block *nb)
>  {
> -       blocking_notifier_chain_unregister(&otg->notifier, nb);
> +       atomic_notifier_chain_unregister(&otg->notifier, nb);
>  }
> 
>  /* for OTG controller drivers (and maybe other stuff) */

Is drivers/power/twl4030_charger.c ready for atomic notifiers?

-- 
heikki

  reply	other threads:[~2011-01-19 10:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19  9:20 Yang Ruirui
2011-01-19 10:33 ` Heikki Krogerus [this message]
2011-01-21 15:34   ` Grazvydas Ignotas
2011-01-19 10:40 ` Felipe Balbi
2011-01-20  2:06   ` Yang Ruirui
2011-01-20  4:01     ` Felipe Balbi
2011-01-19 15:18 ` Ming Lei
2011-01-19 15:30   ` Felipe Balbi
2011-01-19 15:38     ` Ming Lei
2011-01-19 16:01       ` Felipe Balbi
2011-01-20 15:51 ` Mian Yousaf Kaukab
2011-01-19  9:22 Yang Ruirui
2011-01-19  9:19 ` Dave Young
2011-01-20  6:46 ` Felipe Balbi

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=20110119103323.GC4693@hedu-HP-Z800-Workstation \
    --to=heikki.krogerus@nokia.com \
    --cc=balbi@ti.com \
    --cc=david-b@pacbell.net \
    --cc=gregkh@suse.de \
    --cc=hemahk@ti.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mian.yousaf.kaukab@stericsson.com \
    --cc=notasas@gmail.com \
    --cc=ruirui.r.yang@tieto.com \
    --cc=sameo@linux.intel.com \
    --cc=tj@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

all inboxes | Powered by JetHome®