[PATCH 0/5] firewire: cdev: refactor packet callbacks in process context

Takashi Sakamoto posted 5 patches 4 days, 11 hours ago
drivers/firewire/core-cdev.c        | 50 +++++++++--------------------
drivers/firewire/core-transaction.c |  8 ++---
include/linux/firewire.h            | 22 +++++++++----
3 files changed, 34 insertions(+), 46 deletions(-)
[PATCH 0/5] firewire: cdev: refactor packet callbacks in process context
Posted by Takashi Sakamoto 4 days, 11 hours ago
Hi,

The address handlers in the cdev layer are now invoked in process context,
following the change to use a workqueue for all packet callbacks in the
1394 OHCI driver[1]. This allows the cdev layer to use GFP_KERNEL for
memory allocation and replace a spinlock with a mutex where appropriate.

This series first updates the kerneldoc for the address handler, and then
refactors the cdev layer accordingly.

[1] https://lore.kernel.org/lkml/20260919115017.859169-1-o-takashi@sakamocchi.jp/


Takashi Sakamoto (5):
  firewire: core: fulfill kerneldoc for address handler
  firewire: cdev: use mutex for phy receiver list
  firewire: cdev: use GFP_KERNEL in address handler
  firewire: cdev: refactor add_client_resource() to drop GFP flags
    argument
  firewire: cdev: refactor add_client_resource() to have release
    callback function

 drivers/firewire/core-cdev.c        | 50 +++++++++--------------------
 drivers/firewire/core-transaction.c |  8 ++---
 include/linux/firewire.h            | 22 +++++++++----
 3 files changed, 34 insertions(+), 46 deletions(-)


base-commit: d34653cbe03fb090325a61566348cabc2d9c83df
-- 
2.53.0
Re: [PATCH 0/5] firewire: cdev: refactor packet callbacks in process context
Posted by Takashi Sakamoto 3 days, 17 hours ago
On Sun, Sep 20, 2026 at 05:36:54PM +0900, Takashi Sakamoto wrote:
> Hi,
> 
> The address handlers in the cdev layer are now invoked in process context,
> following the change to use a workqueue for all packet callbacks in the
> 1394 OHCI driver[1]. This allows the cdev layer to use GFP_KERNEL for
> memory allocation and replace a spinlock with a mutex where appropriate.
> 
> This series first updates the kerneldoc for the address handler, and then
> refactors the cdev layer accordingly.
> 
> [1] https://lore.kernel.org/lkml/20260919115017.859169-1-o-takashi@sakamocchi.jp/
> 
> 
> Takashi Sakamoto (5):
>   firewire: core: fulfill kerneldoc for address handler
>   firewire: cdev: use mutex for phy receiver list
>   firewire: cdev: use GFP_KERNEL in address handler
>   firewire: cdev: refactor add_client_resource() to drop GFP flags
>     argument
>   firewire: cdev: refactor add_client_resource() to have release
>     callback function
> 
>  drivers/firewire/core-cdev.c        | 50 +++++++++--------------------
>  drivers/firewire/core-transaction.c |  8 ++---
>  include/linux/firewire.h            | 22 +++++++++----
>  3 files changed, 34 insertions(+), 46 deletions(-)

Applied to for-next branch.


Regards

Takashi Sakamoto