mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] firewire: ohci: refactor local AT request/response handling
@ 2026-09-13 10:13 Takashi Sakamoto
  2026-09-13 10:13 ` [PATCH 1/5] firewire: ohci: use in_range() macro to detect CSR address ranges Takashi Sakamoto
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Takashi Sakamoto @ 2026-09-13 10:13 UTC (permalink / raw)
  To: linux1394-devel; +Cc: linux-kernel

This series refactors the handling of asynchronous transactions to the local
node in the OHCI driver.

The current implementation has several special cases for transactions to
the two CSR address ranges on the local node. The code for detecting these
cases and generating the corresponding response packets is spread across
conditional and switch statements, making the handling difficult to follow.

This series first factors out the detection of the CSR address ranges and
local AT request/response packets. It then simplifies the response handling
and separates the request and response paths into different helper functions.

No functional changes are intended.


Takashi Sakamoto (5):
  firewire: ohci: use in_range() macro to detect CSR address ranges
  firewire: ohci: add helper function to detect local AT
    request/response packets
  firewire: ohci: refactor multiple calls to fw_fill_response()
  firewire: ohci: refactor local response packet handling
  firewire: ohci: refactor handling of local AT request/response packets

 drivers/firewire/ohci.c | 137 +++++++++++++++++++++++-----------------
 1 file changed, 78 insertions(+), 59 deletions(-)


base-commit: b5da1bc987ce48b61cd623c7821f1e7172b0e597
-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-14 21:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-13 10:13 [PATCH 0/5] firewire: ohci: refactor local AT request/response handling Takashi Sakamoto
2026-09-13 10:13 ` [PATCH 1/5] firewire: ohci: use in_range() macro to detect CSR address ranges Takashi Sakamoto
2026-09-13 10:13 ` [PATCH 2/5] firewire: ohci: add helper function to detect local AT request/response packets Takashi Sakamoto
2026-09-13 10:13 ` [PATCH 3/5] firewire: ohci: refactor multiple calls to fw_fill_response() Takashi Sakamoto
2026-09-13 10:13 ` [PATCH 4/5] firewire: ohci: refactor local response packet handling Takashi Sakamoto
2026-09-13 10:13 ` [PATCH 5/5] firewire: ohci: refactor handling of local AT request/response packets Takashi Sakamoto
2026-09-14 21:46 ` [PATCH 0/5] firewire: ohci: refactor local AT request/response handling Takashi Sakamoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®