Linux-i3c Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Manikandan Muralidharan" <manikandan.m@microchip.com>,
	linux-i3c@lists.infradead.org
Cc: Frank.Li@kernel.org, "Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH 3/3] i3c: mipi-i3c-hci: add Microchip quirk to set response buffer threshold
Date: Fri, 04 Dec 2026 08:48:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-249434@kernel.org> (raw)
In-Reply-To: <20261204083449.933526-4-manikandan.m@microchip.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] i3c: mipi-i3c-hci: duplicate HCI_QUIRK_MCHP_RESP_BUF_THLD quirk
--

commit 6f42f923623195ae52b4eb176df9cb4bca2f0339
Author: Manikandan Muralidharan <manikandan.m@microchip.com>

i3c: mipi-i3c-hci: add Microchip quirk to set response buffer threshold

This commit adds a new HCI_QUIRK_MCHP_RESP_BUF_THLD quirk for Microchip
SAMA7D65 and uses it in __hci_pio_init() to program QUEUE_RESP_BUF_THLD to 0
instead of 1.

[ ... ]

> diff --git a/drivers/i3c/master/mipi-i3c-hci/hci.h b/drivers/i3c/master/mipi-i3c-hci/hci.h
> index 0137c91e84cf3..10015a43cc7e8 100644
> --- a/drivers/i3c/master/mipi-i3c-hci/hci.h
> +++ b/drivers/i3c/master/mipi-i3c-hci/hci.h
> @@ -181,6 +181,7 @@ struct i3c_hci_dev_data {
>  #define HCI_QUIRK_DMA_ABORT_REQUIRES_PIO_RESET	BIT(8)  /* Do PIO queue SW resets after DMA abort */
>  #define HCI_QUIRK_DMA_REQUIRES_HC_ABORT		BIT(9)  /* Use HC_CONTROL ABORT to abort DMA */
>  #define HCI_QUIRK_MCHP_OD_PP_TIMING	BIT(10) /* Set OD and PP timings from gclk for Microchip */
> +#define HCI_QUIRK_MCHP_RESP_BUF_THLD	BIT(11) /* Set resp buf thld to 0 for Microchip platforms */

[Severity: Low]
Can this reuse the existing HCI_QUIRK_RESP_BUF_THLD instead of adding
HCI_QUIRK_MCHP_RESP_BUF_THLD?

HCI_QUIRK_RESP_BUF_THLD from commit ced86959d28c ("i3c: mipi-i3c-hci: Add a
quirk to set Response buffer threshold") already covers the same behavior
(programming QUEUE_RESP_BUF_THLD to 0 for controllers that interpret it as
N+1), and microchip,sama7d65-i3c-hci used it prior to this patch.

Checking HCI_QUIRK_RESP_BUF_THLD directly in __hci_pio_init() would avoid
duplicating the quirk bit, keep reg_queue_thresh consistent for AMDI5017 as
well, and allow removing amd_set_resp_buf_thld() and its call in
i3c_hci_bus_init().

If a separate Microchip quirk is still needed, the commit message should
explain why HCI_QUIRK_RESP_BUF_THLD could not be reused.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204083449.933526-1-manikandan.m@microchip.com?part=3

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

  reply	other threads:[~2026-12-04  8:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  8:34 [PATCH 0/3] i3c: mipi-i3c-hci: derive SAMA7D65 SCL timings from gclk Manikandan Muralidharan
2026-12-04  8:34 ` [PATCH 1/3] i3c: mipi-i3c-hci: move shared SCL timing register offsets to hci.h Manikandan Muralidharan
2026-12-04 20:22   ` Frank Li
2026-12-04  8:34 ` [PATCH 2/3] i3c: mipi-i3c-hci: add Microchip quirk to derive SCL timings from gclk Manikandan Muralidharan
2026-12-04  8:57   ` sashiko-bot
2026-12-04 20:30     ` Frank Li
2026-12-04 20:29   ` Frank Li
2026-12-04  8:34 ` [PATCH 3/3] i3c: mipi-i3c-hci: add Microchip quirk to set response buffer threshold Manikandan Muralidharan
2026-12-04  8:48   ` sashiko-bot [this message]
2026-12-04 20:34   ` Frank Li

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=sashiko-outbox-249434@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-i3c@lists.infradead.org \
    --cc=manikandan.m@microchip.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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