OSDN Git Service

usb: core: update comments for send message functions
authorJaejoong Kim <climbbb.kim@gmail.com>
Wed, 18 Jan 2017 06:19:04 +0000 (15:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 09:34:40 +0000 (10:34 +0100)
commit123b7b30814221b007aaa47584eb2c87b4450d97
treedf94ed24ca12f497ffc5ceb4ba211407f22d7b13
parenta47b66da0380dd1ebcf2fbfa5fc41c4b6af8a460
usb: core: update comments for send message functions

The commonly use of bottom halves are tasklet and workqueue. The big
difference between tasklet and workqueue is that the tasklet runs in
an interrupt context and the workqueue runs in a process context,
which means it can sleep if need be.

The comment for usb_control/interrupt/bulk_msg() functions note that do
not use this function within an interrupt context, like a 'bottom half'
handler. With this comment, it makes confuse about usage of these
functions.

To more clarify, remove 'bottom half' comment.

Signed-off-by: Jaejoong Kim <climbbb.kim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/message.c