mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: linux1394-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] firewire: core: use macro instead of magic number for mismatched gap count
Date: Sun, 6 Dec 2026 10:08:39 +0900	[thread overview]
Message-ID: <20261206010839.GA93461@sakamocchi.jp> (raw)
In-Reply-To: <20261205080243.73769-1-o-takashi@sakamocchi.jp>

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

      reply	other threads:[~2026-12-06  1:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  8:02 Takashi Sakamoto
2026-12-06  1:08 ` Takashi Sakamoto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261206010839.GA93461@sakamocchi.jp \
    --to=o-takashi@sakamocchi.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®