[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110119103323.GC4693@hedu-HP-Z800-Workstation>
Date: Wed, 19 Jan 2011 12:33:23 +0200
From: Heikki Krogerus <heikki.krogerus@...ia.com>
To: Grazvydas Ignotas <notasas@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...e.de>,
Mian Yousaf Kaukab <mian.yousaf.kaukab@...ricsson.com>,
Linus Walleij <linus.walleij@...ricsson.com>,
Felipe Balbi <balbi@...com>, Tejun Heo <tj@...nel.org>,
Samuel Ortiz <sameo@...ux.intel.com>, Hema HK <hemahk@...com>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Yang Ruirui <ruirui.r.yang@...to.com>,
David Brownell <david-b@...bell.net>
Subject: Re: [PATCH] usb otg: use atomic notifier instead of blocking
notifier
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists