From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796147000; b=wY8CktfrUHYm+YNsCriwAagZQMCJrqH4jTmhjj3nMeTszAMpQ+5MvtV0fVfLKTVo03W1 WUUEBAjZnYYFKnPdlQpOTo0dEvLNSyYjwXiRT3OD7CQBtPrFTxcXTfFD6uedFqLOBqUie 2Tas0c0zVKmdpG0nZ+NWJ3OE7q5BfyGTB6GYmx4fHLPsgujK2JS+sqb281azC/LbMZyD6 AUw5sxbpIE/jLRSnTvgNoEWBx26vctp13SLjl+bEaBlZG1hqsoZEiDxy5mvX0lyNW56gq SqcbL3lrVN2poYcxd3pniso8bXHK/zLmex300DnK4eKPwAn7Q03dOQTyyw5AIXeBhCA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796147000; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To: X-Cookie; bh=LWLtpWtTJEJI250RZBn8glwNa61GIFJV6RelBOzLk5U=; b=0OLFNQIEhmNS6LnZHk0uFZqZ6e9ZvgbhWafEsQceFA4NXJ1Okzkt1ppzMP//iscJLozA unzz6dYzunzycDNGvXr3+VND7Daw/SPy8JmV1g5BUNqQtAVoqBJDO2sLytPz/6zoFbxEG HYeA0MkUuSMlUB8Gze8xIyuM2aHADGU/8Yc+quHDGc0e6pihPrHjJqOrTrlJK//EzK0bF CXx7CwyswY/guZh6fA6L2Nvee/iU+QABca72gMMOoUqmbZGogz5NZR3ChV4JtAlWosRsw Bfj1PKsD3c8TrbPV+dlHCJ1ueQQHpUsDh+aiVltRu+pzcYmwUQSwBoXdmW+0A83uvcA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DTMDmSpC; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9304606A320; Tue, 1 Dec 2026 17:43:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DTMDmSpC Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF88A1F01834; Tue, 1 Dec 2026 17:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796147000; bh=LWLtpWtTJEJI250RZBn8glwNa61GIFJV6RelBOzLk5U=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DTMDmSpCmNmBebCZFDH8agVoB986OFvT10DfrASDVt7qd5I7GoOhWuSUXDQmNdYS5 I8Mp8x7UnlAzSEMkXNLMPHgmKGFkfMc+BycC+v94u8X2FwJk4QzUuZeZksWAhVmaJo fRu5foasL6M+ngK8XSBurGRwo3cpvCTi/+g0HbjyMG912c9Gn4OE3qAAw7PJurGbnp uLs53ejX/g+RAOtDHBiCGx3G11MHYQ4snQTJq/Ext9C5ig7R7QgS+v8off2ZQZFsjc ALC9fYtrh9cWNqbGxWg5gB7zPBu2BmK7UpCqjSaFb4g6WEcy02YClAeQyvJCTovskv Zl72IIdu/6eGg== Date: Tue, 1 Dec 2026 17:43:15 +0000 From: Mark Brown To: Aniket Limaye Cc: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , 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 Message-ID: <9c6d2830-f502-4b88-84fe-59f2dfb4e71e@sirena.org.uk> References: <20261111-tda54-upstream-i2c-v5-0-280a4a779b24@ti.com> <20261111-tda54-upstream-i2c-v5-2-280a4a779b24@ti.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="doCxr7hsHTClmjWA" Content-Disposition: inline In-Reply-To: <20261111-tda54-upstream-i2c-v5-2-280a4a779b24@ti.com> X-Cookie: Madness takes its toll. --doCxr7hsHTClmjWA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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 Reviewed-by: Mark Brown 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. --doCxr7hsHTClmjWA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmsPBzIACgkQJNaLcl1U h9Ca+wf/Zatsb0YhbwxoXodIhIHQNjR2Cyyax4TLqkKYKMztdcSGndQN6yOaMxQg dfueLYw6k8zUmjTITHMEQPgfzzCWOuwnxN3SrG9h82DCwM7I91dcsj7h6Yr0M/MV 86llEdlT+HU6Xq3ifG73bsmVeBfd+BMjselR63Pepa4/u/wPnNmfpsH50Kp4VtM/ qbQkiA+ydYsibWsTCIxelgB2kk+upQ6nm+fdTP0Ok0GvLSmOX2voXvihiGx2Q5lC zLfms60dg5N2iRduRM+OiYPkofoOGK1lRirclHjqKyts5QZ4k9VgqXD9QCvqoGC/ fioCWPos7IoGF/2RSnkDEYycp0+aZQ== =/2Kp -----END PGP SIGNATURE----- --doCxr7hsHTClmjWA--