From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4246EC4332F for ; Thu, 1 Dec 2022 23:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VhXWFGjuC27wSPWN4XJIszgl4neYXvK0F4DgwUBzPfU=; b=HNO0Cfl1Mn7VUXzUnnBD+V+G60 3M4w/gqF+sMlJ4ZryquG5FzsegQYqgLtImg+KbG4e7lMtzTjhp/V1tSkRo66aqi7ZejCSqtKV8BZA AMCjJrv3ODAWPTUxefjafhSUlz/cL/uobo29LHQdi+4KYZna+3aGfR/L8Vw8JHpVy2CeXbOst/FbG Ak+H3Pe9k/Ur/3CCNI2oynM0//STnxdI207uqx6FkizlNPa9aX8OhCtFK4zrxRdhXldtirOdGVk0v 2l/QRtnAERVLdtLquu4cFzhdRs6A7TFFNE2IiQWCTSqSCnwCAMoqGkBUSAE5Fys7Sn433skglOlXw Zi/mnVJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0ssP-00BdVo-Oj; Thu, 01 Dec 2022 23:21:57 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0sFs-00BQWV-CD for linux-arm-kernel@lists.infradead.org; Thu, 01 Dec 2022 22:42:09 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3CC90B81F72; Thu, 1 Dec 2022 22:42:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9948FC433C1; Thu, 1 Dec 2022 22:42:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669934525; bh=ILDcuQPQ0P6LMEU7XozooiCZHpPcni+OPJtYOt+KBG4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FszLgQkBcN9W/NkjDzWYuKNu27IopkZoOdP+ZBsktfd27eOfxAv6BqAg3QuURnacL Nlivka3FvL1FCtJWJn8OQfnKWJQ7UvXxtBFNH5RCV368as6TV6yE2ly2Uhutz7AHjz 2c1wALiAu0Bs4ax1zQW5D5yC6gTG02MGU5b8pfjNIHYsS3zvIUKZxb6BbMkbNE6wn6 3B/vgSv+SQptkcum5hRD/y+W87bQX5V/4fALeNVzi7W27FTb6zZpSTDfKCYwfRz6NI 3rk7kfxEvHwoguTEveHwEafoLmJ8eO3TYHXcg+O+eK2gULkzvuW4FGptVTB73kAB56 DOSSDUynv2ExA== Date: Thu, 1 Dec 2022 23:42:02 +0100 From: Wolfram Sang To: carsten.haitzler@foss.arm.com Cc: michal.simek@xilinx.com, shubhrajyoti.datta@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] i2c: cadence: Fix regression with bus recovery Message-ID: Mail-Followup-To: Wolfram Sang , carsten.haitzler@foss.arm.com, michal.simek@xilinx.com, shubhrajyoti.datta@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221128105158.1536551-1-carsten.haitzler@foss.arm.com> MIME-Version: 1.0 In-Reply-To: <20221128105158.1536551-1-carsten.haitzler@foss.arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221201_144208_761832_5CA19F5A X-CRM114-Status: GOOD ( 19.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0003402812814956029==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0003402812814956029== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="guh+gwQS+Eh/KDBC" Content-Disposition: inline --guh+gwQS+Eh/KDBC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 28, 2022 at 10:51:58AM +0000, carsten.haitzler@foss.arm.com wro= te: > From: Carsten Haitzler >=20 > Commit "i2c: cadence: Add standard bus recovery support" breaks for i2c > devices that have no pinctrl defined. There is no requirement for this > to exist in the DT. This has worked perfectly well without this before in > at least 1 real usage case on hardware (Mali Komeda DPU, Cadence i2c to > talk to a tda99xx phy). Adding the requirement to have pinctrl set up in > the device tree (or otherwise be found) is a regression where the whole > i2c device is lost entirely (in this case dropping entire devices which > then leads to the drm display stack unable to find the phy for display > output, thus having no drm display device and so on down the chain). >=20 > This converts the above commit to an enhancement if pinctrl can be found > for the i2c device, providing a timeout on read with recovery, but if not, > do what used to be done rather than a fatal loss of a device. >=20 > This restores the mentioned display devices to their working state again. >=20 > Fixes: 58b924241d0a ("i2c: cadence: Add standard bus recovery support") > Signed-off-by: Carsten Haitzler Fixed this checkpatch check: CHECK: Unbalanced braces around else statement #55: FILE: drivers/i2c/busses/i2c-cadence.c:1272: + } else and applied to for-current, thanks! --guh+gwQS+Eh/KDBC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmOJLbYACgkQFA3kzBSg KbaFHg/+NOUmAhWQClMmII+ahnTIiIwOV8w1yaU6ZYq2BUyFQfQ1Eh5N4wSfoeCH Zp8g1zWV2MLznhdXNcLVkFQWFvshcoMFA2TXjnCA/R1psxixa+Dj0WO2e+1jGUd0 U4/MZJeqgc5sqJj4tmomgNWql/npgKt9UzUU8etJm6YGumYzdj1dMDgTVSu7gayA xKJyZ1VZjxHOb4Rnzpk/62uEX4lATgWxcgArttjY9o/PdZjfQ/xDeQd+UnqzGaHF 18mDZiSeUeO7sstpEAmP4O/tj3jJBQqPHxiJnxjwljrYqEF5mYHhpxKjKNaAgfWD EjgOqELccLSPCPnNuhnZ9bmYtZNkO820x+jIRDuOuJauQwNUVgAPjSta/dwDKE53 bNyVucCQM8uXDCa/xGIlzRcdbQFiDEtWH+zwNej7GTb7bcP/KFBaeWxYPjgU4mbJ zViw2I8tz52ormzThKKuZ7Uc9JOZeXfkLEFd9mUY9xLV+sP9QSRGkjRmYIDYkt3+ irA+JkBOknqEPqgU96EPeiTr6yq+lUPkzl4NIEL41i4qugpGl+bXW0ODbtmwr8n4 TVUfNAnbIXGWwiCaGIOni0jCGLdsUMwovuKBrTHpyIWyJx292rGmAdu8ASeiTapo 14osGlpuh1y9xGADTbgVt97Z0qxZP47QHaDW5zkKKxeGBYnjesk= =zXXy -----END PGP SIGNATURE----- --guh+gwQS+Eh/KDBC-- --===============0003402812814956029== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============0003402812814956029==--