From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21C3D1B4F1F for ; Wed, 3 Jun 2026 09:19:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780478366; cv=none; b=DK0rmIH0eqUBAjIiLwv7jhoYamXwzaI7FKFAuBBrnM3MvUmuKV28nOrfi1GRd4o44h/s+UHq2fXMvbN6tBzNfqPoJGP4hSrkynLiM90cGTovShtqWgufxrnxrjhkbMkOL3BY4XunSsI8vjs7p2FFn3N35vOEaHeNuiRCvYNZyx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780478366; c=relaxed/simple; bh=ox5Hfim7OXzdy4CsWYeM5j5AVPQcn2SoPHZtnHyyhxM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SBVaMjfWkDTp5UjYrLY3R6SsUa+a9DwseDz1TVRG1y8mtnKHaElWsTYK8YZTNL9mLOa93SrXXP1Li4ztg8HawDUYfnXzVv4iVjEoWd6HTDyW3u0m3N6xgt5S8b/5dvH9KYM8Dh8dSKxP9bjYUkeLGd+Iuvmd1UIdRXRMs1U+fuw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=aXnUoJc7; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="aXnUoJc7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=Uq9f U7AXRK7LsWpMVeb6SeERHivJR3tgaFKWpY/Pd4g=; b=aXnUoJc7txPDX9GqT8xI z+Oye/s8ic9HTiTcQbbax7u04+1LKa9x6Dfafg4xtHOS46QzbhbGqp0kroi9VWv9 m3mBCz8Ha3O5SLwqDiM0Pzc53SJtqxY8d+4wsdjMUT7KFNVZpkMiVkavq/+l9xx4 kmZo0sFEt67ADS2eoeHRtMbdeleoZnV7oZhT5E7fikAqfW6Vr1xSycG18MQ6dw8w 1LhqyCRoRCz30HhDz0SqELN93JdlAxn48wJsD1qG0JpmRN3PoI9x9KkIzQcScq1R FWGoaboLkG3a65mBkKn43JGpVUaosIux59BYyb2yiENQvdmqIbB58YGYdtK5cFlX kg== Received: (qmail 3214735 invoked from network); 3 Jun 2026 11:19:20 +0200 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 3 Jun 2026 11:19:20 +0200 X-UD-Smtp-Session: l3s3148p1@BtAx7FVThuEujnsK Date: Wed, 3 Jun 2026 11:19:20 +0200 From: Wolfram Sang To: Johan Hovold Cc: Andi Shyti , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Phil Reid Subject: Re: [PATCH v3 02/10] i2c: core: fix hang on adapter registration failure Message-ID: References: <20260511143715.729714-1-johan@kernel.org> <20260511143715.729714-3-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EeghvUUimabcsKpa" Content-Disposition: inline In-Reply-To: <20260511143715.729714-3-johan@kernel.org> --EeghvUUimabcsKpa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 11, 2026 at 04:37:07PM +0200, Johan Hovold wrote: > Clients may be registered from bus notifier callbacks when the adapter > is registered. On a subsequent error during registration, the adapter > references taken by such clients prevent the wait for the references to > be released from ever completing. >=20 > Fix this by refactoring client deregistration and deregistering also on > late adapter registration failures. >=20 > Fixes: f8756c67b3de ("i2c: core: call of_i2c_setup_smbus_alert in i2c_reg= ister_adapter") > Cc: stable@vger.kernel.org # 4.15 > Cc: Phil Reid > Signed-off-by: Johan Hovold Reviewed-by: Wolfram Sang Until tomorrow noon latest, I will have all patches reviewed. --EeghvUUimabcsKpa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmof8ZgACgkQFA3kzBSg KbaP3RAAmknIFw83V3UaTbift1VDhN79cbWs2o8w5IJwBA8lomSb5cI1s7BMiJjL Xna+h2NYJ41kZYpTatMLHPlGNFLydEfyrStDITH2BcTgJdfilBgGRB9sQqw8K09K EvCBTxKn7OsNPfbQtyAK929UTRhrILe333Pdvw9JVx8AL1wvsRchHF2WklpYgGjt fuBi6kNrhGh89NdmL748Vxz5aonGTO8w0x+d4n/rDDroRJndKCd8OrEvSSW4mNJj ZDVIE27dy/l7ekDVGvTZsNQvFrAv2C+WE14oP3KJ0k3aBjChmC60ilMUHa2WBhlX ag2+gDmyQ0MUdHJOhcfWaQEFpGfFuuEv1ccBuUy0CY7JUAuG2Lpy0CQ20EKd46co 8RgzC4uVON+uQwo9b91nLbVl//hIVJvNHT6dq5V9Ei+r7gyi5wYYFYvSROP19bkW N+lBi1x0ijNT6Yv6cHtOG91w5uRyGsnQ5SxDtuC1HO5sU+dDWNutIm6jcAZkiB5k vbTzFVUssDkeebAfZuXXhWhTtTNJlQkoDBiaLxPqx6fpd30KKoz1hi+3zAjuL7X0 Uz1o9lvxeOaVYOp9goaAss+oOqYffGJaKreprCz5imlIJifTj1eIHMgXJmd+JxWY 6tsPl+hdzgS2OftkYJYhBpt2uTXkHN1w+MqZePsBdW/JpV3WTOU= =DWLg -----END PGP SIGNATURE----- --EeghvUUimabcsKpa--