summaryrefslogtreecommitdiffstats
path: root/include/linux/usb/otg.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2010-09-29 10:55:49 +0300
committerFelipe Balbi <balbi@ti.com>2011-02-18 14:05:54 +0200
commitcccad6d4b103e53fb3d1fc1467f654ecb572d047 (patch)
tree83403c73c85247aeffa82ceaea6d9a5ec726235d /include/linux/usb/otg.h
parent002eda1348788f623dc42231dcda5f591d753124 (diff)
downloadop-kernel-dev-cccad6d4b103e53fb3d1fc1467f654ecb572d047.zip
op-kernel-dev-cccad6d4b103e53fb3d1fc1467f654ecb572d047.tar.gz
usb: otg: notifier: switch to atomic notifier
most of our notifications, will be called from IRQ context, so an atomic notifier suits the job better. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/otg.h')
-rw-r--r--include/linux/usb/otg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h
index da511ee..6e40718 100644
--- a/include/linux/usb/otg.h
+++ b/include/linux/usb/otg.h
@@ -75,7 +75,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;
@@ -235,13 +235,13 @@ otg_start_srp(struct otg_transceiver *otg)
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) */
OpenPOWER on IntegriCloud