mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Aniket Limaye <a-limaye@ti.com>
Cc: Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, lianfeng.ouyang@starfivetech.com,
	s-jain1@ti.com, andriy.shevchenko@linux.intel.com
Subject: Re: [PATCH v5 2/2] i2c: Add Synopsys Advanced I2C (DWC_i2c) driver
Date: Tue, 1 Dec 2026 17:43:15 +0000	[thread overview]
Message-ID: <9c6d2830-f502-4b88-84fe-59f2dfb4e71e@sirena.org.uk> (raw)
In-Reply-To: <20261111-tda54-upstream-i2c-v5-2-280a4a779b24@ti.com>

[-- Attachment #1: Type: text/plain, Size: 1554 bytes --]

On Wed, Nov 11, 2026 at 02:05:49AM +0530, Aniket Limaye wrote:
> Add a new platform driver for the Synopsys Advanced I2C (DWC_i2c),
> controller mode only.
> 
> The register offsets are defined with respect to header registers for
> each block. These header registers are discovered at runtime by walking
> the block header chain.

This is working well for me, the needs of my platform are not really
demanding so that's relatively basic in terms of stress on the driver
but once I'd got the platform integration sorted everything just worked:

Tested-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Mark Brown <broonie@kernel.org>

I need to sort some non-technical things before I can send the support
for the platform I'm working with publicly, it's all extras to support
ACPI enumeration and add the relevant device specific data.  Thanks so
much for doing this, you've made my life a lot easier!

Apologies for the time it took me to complete my testing here, it's been
very hectic.

One minor note:

> +static int dwc_adv_i2c_xfer_one_part(struct dwc_adv_i2c_dev *dev)
> +{

> +	if (!wait_for_completion_timeout(&dev->cmd_complete, dev->adap.timeout)) {
> +		dev_err(dev->dev, "controller timed out\n");
> +		i2c_recover_bus(&dev->adap);
> +		dwc_adv_i2c_init(dev);
> +		return -ETIMEDOUT;
> +	}

We should probably disable the interrupt at the kernel level (not just
the hardware) while we're recovering from a timeout, PREEMPT_RT means
there might be some rather delayed interrupt handling still in flight.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2026-12-01 17:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 20:35 [PATCH v5 0/2] i2c: Add Synopsys Advanced I2C (DWC_i2c) support for TI TDA54 Aniket Limaye
2026-11-10 20:35 ` [PATCH v5 1/2] dt-bindings: i2c: Add Synopsys DWC_i2c controller Aniket Limaye
2026-11-11  0:05   ` Mark Brown
2026-11-11  8:41     ` Krzysztof Kozlowski
2026-11-11 13:24       ` Mark Brown
2026-11-12 18:16         ` Aniket Limaye
2026-11-12 18:40           ` Mark Brown
2026-11-10 20:35 ` [PATCH v5 2/2] i2c: Add Synopsys Advanced I2C (DWC_i2c) driver Aniket Limaye
2026-12-01 17:43   ` Mark Brown [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=9c6d2830-f502-4b88-84fe-59f2dfb4e71e@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=a-limaye@ti.com \
    --cc=andi.shyti@kernel.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lianfeng.ouyang@starfivetech.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=s-jain1@ti.com \
    /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®