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 3DDBBC001B0 for ; Mon, 14 Aug 2023 13:24:54 +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=4bsVnvmsEhPk5RZA1SAD8IlXu5CgByt8NYg9GbN1QGA=; b=N8u7fu3aENUe8UlBiilc52S/bG 8EwuFEUrjoUCcjgqBvtD8dHkqR/UHCeza/2+/qOmwNqbAyd0aUGIKQCp5gD/ZzNjhTdNxROSPVaiW q6kBeRofwtSCSmoV9A4H0wwUQi8zO49F1te5rmaQfOJxv8217/btlSVXAUBvHF742+rHuhjcf76V3 dIDBlVekD/TEuEDrPFRTA6+8usRfy6gxLfb3IV7HA4WOdpdKfhgtbor3QLMpYGi6E/mKDEzetmsBF BQOWkI6qCxPMtFQ+7xZdjWlOtW2GRPFoqxpQSrddLGd0sxm4DTGiRmHWGizOGrVtwKu/7fiQQTvK4 /axV4/Ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qVXYc-00H9Nu-04; Mon, 14 Aug 2023 13:24:30 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qVXYZ-00H9Kj-05 for linux-arm-kernel@lists.infradead.org; Mon, 14 Aug 2023 13:24:28 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 098F365192; Mon, 14 Aug 2023 13:24:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85E34C433C8; Mon, 14 Aug 2023 13:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692019465; bh=xDsBbZUty7U2Sot+dr0Kjlb6tifPa2UGZKF1gCvlKlY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GLFRavb57kioBbI80SaDqSiFfLid8pLeRnADfIexZAVUy3btfYdgAZbEgVrk6UF1V 4oIuQhHyWtw2w3NZwY3wW6VouJqt4I87cqyIFbjNBRtvFhp8gKR1E7FrYOn0Jk71Lc t+fr8r0YfGfVNf3NeOZ3njiRSE+/xMPPjtjiRiqINpKJin96WU+TwN7CYxnYCn4GdH XFRwBibbEy/Ui8P4YXgMN51tgtvTac4ock8Pq+7dvCFpkiVnxSE1xcxZFgY+mKWSHL tBtXS70S0ZP+QsHcoGNQqgTBaRKuT1i6V6tyX0oqbC6NzWBwCktjq65GQ2flO1q346 BXaZZzQAaPvbg== Date: Mon, 14 Aug 2023 15:24:21 +0200 From: Wolfram Sang To: carlos.song@nxp.com Cc: andi.shyti@kernel.org, aisheng.dong@nxp.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, xiaoning.wang@nxp.com, haibo.chen@nxp.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5] i2c: imx-lpi2c: return -EINVAL when i2c peripheral clk doesn't work Message-ID: Mail-Followup-To: Wolfram Sang , carlos.song@nxp.com, andi.shyti@kernel.org, aisheng.dong@nxp.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, xiaoning.wang@nxp.com, haibo.chen@nxp.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230726092238.3424116-1-carlos.song@nxp.com> MIME-Version: 1.0 In-Reply-To: <20230726092238.3424116-1-carlos.song@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230814_062427_110961_4B54E4ED X-CRM114-Status: GOOD ( 12.03 ) 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="===============7162911272142285450==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7162911272142285450== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="U5kREtmhN3WZibhq" Content-Disposition: inline --U5kREtmhN3WZibhq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 26, 2023 at 05:22:38PM +0800, carlos.song@nxp.com wrote: > From: Carlos Song >=20 > On MX8X platforms, the default clock rate is 0 if without explicit > clock setting in dts nodes. I2c can't work when i2c peripheral clk > rate is 0. >=20 > Add a i2c peripheral clk rate check before configuring the clock > register. When i2c peripheral clk rate is 0 and directly return > -EINVAL. >=20 > Signed-off-by: Carlos Song Applied to for-current, thanks! --U5kREtmhN3WZibhq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmTaKwUACgkQFA3kzBSg KbZ+gQ/9ERQwHso4k3Fs2EMYQ8jnWYVLUbaMe6erNehzBkFlEoH3XA04I9Dk+0/H tM1vJvmFBMDiO2ZmvfSVBeCiQRGuc5PG5QWifb847I7Aqtmq1SpH/cRgj7Exzc8y HKSu3ybxH1NlPEH2Yq0JnPPHed5UE8oXtwB52rYBlwcRido6IrtDQJcWYPwegeG6 QpbsXzCt62MOva1azcmtW2O3HNdYVYRbSe2H7wXdsAByV2qJtYrs6dwHwip2+8+r 6vBlkThpo+4hi82sD3lYk/LwQ5NJJAWDny96HCZNt75bcbcwvLBxcH10eORxoKGT 4cpOeGgM+1E3qx7CKsjhliu1RP0nLRrgMwRjSm/aP3cN5MJeX6/HI/2RJXp4lQNj Auxv8qa4C6sDdBmMkv0odYZXSSKmVG55Cpj3m4t4P+9gbQXIasyePyQDq4hB60Bb AzKDQZ4UcZZImTwBMykPyM/TNvrP1/oTfkUr2OHEhjF8cDnvnUStX3n9RlDskN6p DZrYhMvieLXXeNM4PAV1iYsFOyFHnO3ujuIrp/SQUJExQcDIIZ3kvCD9ssLELmCz 58QpNz1XxX+ykYqBebjJxMos8PMSYDLdLD2nD2iDGlb95wWWSnYSqgke/ExvcSZN uzHBV8JrkE5cp+UOSsYDnWV8912AaCD1o+L3wJYty/U2MDrsFV0= =IamS -----END PGP SIGNATURE----- --U5kREtmhN3WZibhq-- --===============7162911272142285450== 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 --===============7162911272142285450==--