* [PATCH] firewire: core: use macro instead of magic number for mismatched gap count
@ 2026-12-05 8:02 Takashi Sakamoto
2026-12-06 1:08 ` Takashi Sakamoto
0 siblings, 1 reply; 2+ messages in thread
From: Takashi Sakamoto @ 2026-12-05 8:02 UTC (permalink / raw)
To: linux1394-devel; +Cc: linux-kernel
GAP_COUNT_MISMATCHED represents a gap count of 0. Use it instead of the
magic number.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
drivers/firewire/core-card.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c
index df1e25548a5f..9b0a3e71a2af 100644
--- a/drivers/firewire/core-card.c
+++ b/drivers/firewire/core-card.c
@@ -548,7 +548,7 @@ static void bm_work(struct work_struct *work)
* may treat it as two, causing a gap count inconsistency
* again. Using a long bus reset prevents this.
*/
- reset_bus(card, card_gap_count != 0);
+ reset_bus(card, card_gap_count != GAP_COUNT_MISMATCHED);
/* Will allocate broadcast channel after the reset. */
} else {
struct fw_device *root_device = fw_node_get_device(root_node);
base-commit: 33fc113b2ccb4e34a504f59d0af017ac313ddc8a
--
2.55.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] firewire: core: use macro instead of magic number for mismatched gap count
2026-12-05 8:02 [PATCH] firewire: core: use macro instead of magic number for mismatched gap count Takashi Sakamoto
@ 2026-12-06 1:08 ` Takashi Sakamoto
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Sakamoto @ 2026-12-06 1:08 UTC (permalink / raw)
To: linux1394-devel; +Cc: linux-kernel
On Sat, Dec 05, 2026 at 05:02:42PM +0900, Takashi Sakamoto wrote:
> GAP_COUNT_MISMATCHED represents a gap count of 0. Use it instead of the
> magic number.
>
> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> ---
> drivers/firewire/core-card.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-next branch.
> diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c
> index df1e25548a5f..9b0a3e71a2af 100644
> --- a/drivers/firewire/core-card.c
> +++ b/drivers/firewire/core-card.c
> @@ -548,7 +548,7 @@ static void bm_work(struct work_struct *work)
> * may treat it as two, causing a gap count inconsistency
> * again. Using a long bus reset prevents this.
> */
> - reset_bus(card, card_gap_count != 0);
> + reset_bus(card, card_gap_count != GAP_COUNT_MISMATCHED);
> /* Will allocate broadcast channel after the reset. */
> } else {
> struct fw_device *root_device = fw_node_get_device(root_node);
>
> base-commit: 33fc113b2ccb4e34a504f59d0af017ac313ddc8a
> --
> 2.55.0
Regards
Takashi Sakamoto
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-06 1:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-05 8:02 [PATCH] firewire: core: use macro instead of magic number for mismatched gap count Takashi Sakamoto
2026-12-06 1:08 ` 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®