mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
firewire: ohci: use workqueue to handle events of AR request/response contexts
This commit adds a work item to handle events of 1394 OHCI AR request/response contexts, and queues the item to the specific workqueue. The call of struct fw_address_handler.address_callback() is done in the workqueue when receiving any requests from the remove nodes. Additionally, the call of struct fw_packet.callback() is done in the workqueue too when receiving acknowledge to the asynchronous packet for the response subaction of split transaction to the remote nodes. Link: https://lore.kernel.org/r/20250615133253.433057-3-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
This commit is contained in:
@@ -557,9 +557,10 @@ const struct fw_address_region fw_unit_space_region =
|
||||
*
|
||||
* region->start, ->end, and handler->length have to be quadlet-aligned.
|
||||
*
|
||||
* When a request is received that falls within the specified address range,
|
||||
* the specified callback is invoked. The parameters passed to the callback
|
||||
* give the details of the particular request.
|
||||
* When a request is received that falls within the specified address range, the specified callback
|
||||
* is invoked. The parameters passed to the callback give the details of the particular request.
|
||||
* The callback is invoked in the workqueue context in most cases. However, if the request is
|
||||
* initiated by the local node, the callback is invoked in the initiator's context.
|
||||
*
|
||||
* To be called in process context.
|
||||
* Return value: 0 on success, non-zero otherwise.
|
||||
|
||||
Reference in New Issue
Block a user