Re: [PATCH] soundwire: bus: fix off-by-one when allocating slave IDs

Dan Carpenter
2026-01-12T08:49:26Z

On Mon, Jan 12, 2026 at 11:26:51AM +0300, Dan Carpenter wrote:
> On Sun, Jan 11, 2026 at 10:27:08AM +0100, Markus Elfring wrote:
> > …
> > > Using SDW_FW_MAX_DEVICES(16) therefore allows an ID of 16 to be
> > > allocated, but the IRQ domain created for the bus is sized for IDs
> > > 0-15. If 16 is returned, irq_create_mapping() fails and the driver
> > > ends up with an invalid IRQ mapping.
> > …
> >
> > See also once more:
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.19-rc4#n659
> >
>
> Markus, please only comment when it's a bug in the patch instead of
> wrong advice about commit messages.

Sorry, if that was unclear. The link is a real link to the documentation
which says:

- The body of the explanation, line wrapped at 75 columns, which will
be copied to the permanent changelog to describe this patch.

The rules that we write down are simplified guidelines which are designed
to be easy explain. 75 is the upper bound where checkpatch will complain.
But I think line wrapping at 72 or 74 characters is more common. Either
way it's fine.

regards,
dan carpenter