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 5F5EFC61DA4 for ; Fri, 3 Feb 2023 16:38:52 +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=R0AIxFq8RKOmGyC8ZcqtAkU7Vio7Hv9YyYAJR1vBBKU=; b=zvNd2e6UQDpinEOyGgyxWS8vMb rfLT+K9WaqxGQQdoha6daye+iKQaGOH9MiTP+wHoMSFqbIhR0RLe3QiJGslc+Bn9TJOMqUGbwoRVx A5epaC4XbmPH9WUUSDoIN49GlV5wP92PhKHRGoqUYm0+CdZJhkrGMC0VvcM6EbgbWR4U12qjUtYw2 T95wBxHVdkK2Bc77soJLk7FywRI/zx8ynuIjqtvJJDhj31iggXw44tgnd1DA5ikLajD0nfRLcUPDM dHtxCOXfn8M4hkfgdLbbZZnxUmPllqAWI2BK4XUZlzmw6DY4XaVdMjmE5AR+veKsahLqtSTYNAlWZ +/bBf0PQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNz4R-002xhL-Vi; Fri, 03 Feb 2023 16:37:52 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNz4O-002xfE-0T for linux-arm-kernel@lists.infradead.org; Fri, 03 Feb 2023 16:37:49 +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 6D485B82B5B; Fri, 3 Feb 2023 16:37:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BC2EC433D2; Fri, 3 Feb 2023 16:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675442266; bh=dNdaVxb5PW4CEkafXT121IOkVxBQlTcPIzvvxb+Shog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O1axfvjCiSUKDXPD3Actda8QebRerb8Rc7oEZI3daQS77lp2kpLbZdvLklJE4j7o1 OpLeT4H6MpQVbW5hW2MdSyfSugo4m+eXSYgc/oe71zcZVdtgqDPJ0QAGCbcc0ruB4z /UwAXE9nAeentalFDTUsrAEzfPkXLUfkjaI9uoWFqAtdSAGlmUutaZ7xSYHbwjUIw4 5x/TXupr4T8kNw8nMkviwkIZNA+RKu9u5B4LYlKjk8YEjnnuJ8Q9MVMWyMt7o/MNHj e3hfxGm+6bd1jj/zv8Oy2cgr5vmYQiXx1M0BI+wM8rbUkeI7wu1oKNf+iVJci74YCE q5Rk9dIA3H0rQ== Date: Fri, 3 Feb 2023 17:37:43 +0100 From: Wolfram Sang To: Manikanta Guntupalli Cc: michal.simek@xilinx.com, michal.simek@amd.com, devicetree@vger.kernel.org, andrew@lunn.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, git@amd.com, srinivas.goud@amd.com, shubhrajyoti.datta@amd.com, manion05gk@gmail.com, Raviteja Narayanam Subject: Re: [PATCH V4 5/9] i2c: xiic: Add smbus_block_read functionality Message-ID: Mail-Followup-To: Wolfram Sang , Manikanta Guntupalli , michal.simek@xilinx.com, michal.simek@amd.com, devicetree@vger.kernel.org, andrew@lunn.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, git@amd.com, srinivas.goud@amd.com, shubhrajyoti.datta@amd.com, manion05gk@gmail.com, Raviteja Narayanam References: <1675330898-563-1-git-send-email-manikanta.guntupalli@amd.com> <1675330898-563-6-git-send-email-manikanta.guntupalli@amd.com> MIME-Version: 1.0 In-Reply-To: <1675330898-563-6-git-send-email-manikanta.guntupalli@amd.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230203_083748_377571_FF106129 X-CRM114-Status: GOOD ( 14.25 ) 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="===============6373700925405543201==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6373700925405543201== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="REmZzdpqahJJ1gqK" Content-Disposition: inline --REmZzdpqahJJ1gqK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 02, 2023 at 03:11:34PM +0530, Manikanta Guntupalli wrote: > From: Raviteja Narayanam >=20 > smbus_block_read is added to xiic driver to read from few sensors > which support this command. Since the number of bytes to read is not > known prior to transfer, xiic standard mode is being used for low level > control of IP. >=20 > Signed-off-by: Raviteja Narayanam > Signed-off-by: Manikanta Guntupalli > Acked-by: Michal Simek Applied to for-next, thanks! > - return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; > + return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL | I2C_FUNC_SMBUS_BLOCK_DATA; Note: Since you implemented I2C_M_RECV_LEN anyhow, you get the emulated I2C_FUNC_SMBUS_BLOCK_PROC_CALL basically for free, so you could also use I2C_FUNC_SMBUS_EMUL_ALL here. If you'd like this, please send an incremental patch. --REmZzdpqahJJ1gqK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmPdOFYACgkQFA3kzBSg KbaDaA//Yq0UOuaVYq4VArqrqfGs+W/4qmgRccjYbdWjLcx77XAadAlJiWJ/YQAH 525PAd5ziSDB6B3VNKu6BZIXaLzYuYxbE3qLZjjro28r4Bl0oJA9SCjH8T19K4AW D4o+aePktMjRC9yJ+iagGQPcP7NgfozMbT0w7uho0KqV8WU3xVDOOEAJ7k1qxTjU lg7quCuXm33+fou1MjEgsUq2iRCfxJfyQaShEk+YgANTEP4A+9Vqg4SMGyp/SBcg Y3suJZIBczR1of6V/XN7ufL4nV+FRZizGFAyNO/SHYLg5k0xd9/wMAtGv3XcE6HJ 7JM2ghVUWQ7lgo0cSdqghTfpJT3zVxTOdqq7XBF4qXhrztz8ZDOEXzBwRzB71bpY awmRRLHe2lZRYKYqc3tOKUEQXceE9Sg0lDc7jVZqwtw1kVt1dwmVdjdwilraGuib t5lzXcNEctOE+e/0eT5kwpzWWB4eC3ZndZbM63FixY3sc37Mhjwh0WSXUoz/n5pX dkZdwY/pKlG+5BHiXf+mry7HrNrD8sX5xqhIbZBofF88xBJmRlgFILk3p4DEox3e lhBs7u1Dvgb04JphTWpd+2JUO7KXM8RijjZ081AijMsHyUSRgdtBhnsXA2rtJBzb XQCWQp4yNFuEOy3QR2dIKhH2IWIzhJoXGSshdtyF9tjzBYQvshc= =wNvz -----END PGP SIGNATURE----- --REmZzdpqahJJ1gqK-- --===============6373700925405543201== 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 --===============6373700925405543201==--