From patchwork Thu Sep 28 19:24:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 727531 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D056E7F154 for ; Thu, 28 Sep 2023 19:24:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230320AbjI1TYd (ORCPT ); Thu, 28 Sep 2023 15:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbjI1TYb (ORCPT ); Thu, 28 Sep 2023 15:24:31 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B29A1A4 for ; Thu, 28 Sep 2023 12:24:29 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230928192427euoutp014e6bb95190ff7176aa5177d378275c7e~JJoBISate1397613976euoutp01Q for ; Thu, 28 Sep 2023 19:24:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230928192427euoutp014e6bb95190ff7176aa5177d378275c7e~JJoBISate1397613976euoutp01Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1695929067; bh=jvtL1VAu+j8Nux3YIh70DiO3Jj6LPp7eha068sZx0eI=; h=From:To:Cc:Subject:Date:References:From; b=Eebf0wcZjxK/k/e5PTXcWNA/i8OP+Mw1mHS6bDOfaHBb8Sxs1hSP3mgZ385sAFvJj tHChLp1Jj18wk5erP6rgHlKyd5znHtJ2wCRO4Y+t6SBKUr5LlaJYSQJg9Ef/0xlYg9 +cCqefzPLVQaI/DhF/QRKfEu5sqBE3ko3XXkwNfU= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230928192426eucas1p20569a4214c499fa5fa10008bcbeaefd7~JJoAW0Zhu2294422944eucas1p2I; Thu, 28 Sep 2023 19:24:26 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 20.9A.37758.AE2D5156; Thu, 28 Sep 2023 20:24:26 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230928192425eucas1p28a9aa6cca0b858dde92213eea1a58b08~JJn-2xlrC2293122931eucas1p2E; Thu, 28 Sep 2023 19:24:25 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230928192425eusmtrp2057f928de75cdfe135ebacdc9b4870bb~JJn-2SLj-2795027950eusmtrp2g; Thu, 28 Sep 2023 19:24:25 +0000 (GMT) X-AuditID: cbfec7f5-7ffff7000002937e-80-6515d2eaa398 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 81.F9.25043.9E2D5156; Thu, 28 Sep 2023 20:24:25 +0100 (BST) Received: from AMDC4653.digital.local (unknown [106.120.51.32]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230928192425eusmtip24e3882211f961020d6f6ad96ae781824~JJn-YtM9Q2608726087eusmtip2T; Thu, 28 Sep 2023 19:24:25 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Alim Akhtar , Andi Shyti , Wolfram Sang Subject: [PATCH 0/3] Add atomic transfers to s3c24xx i2c driver Date: Thu, 28 Sep 2023 21:24:11 +0200 Message-Id: <20230928192414.258169-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA01Sf0yMcRz2fd/rvfea4+2KPl2hXatNcWnCmSRbOGNza2Yro46+Kq7krpCx lbYktEM/dNWFbFLr2lrdpGiduHJSK7tFnTCJs8qPTlTirrfw3/N5Pp9nz/N896VJwUUnIZ2Q lIKVSXKFiHLm6B//fLbS2r0IrzI85Elea/WUZMCWjST3P9VzJdm/xpDkWucDQlLdauFKLM2l KIwrra08T0n7zU2UNLeuEkm/1S6VcaKcQ2KxIuE4VgaGxjjHa616KnmSOnm2+AuVjjqcchCP BiYYPhf0kA4sYCoQtA7YeWc7HkPQ+cFKssM3BHmF45w5Rc9Qz+ziNoJu41MOK7dLSvJ3OjDF BEHOcA7lwG5MGGirx7kOAcn0ICgo0ROOhSuzCdp0FvsRTXMYX7BYhA6az4SCeqwXsWbLoLml g2R5F2gvejfjRdr5zPrimRDAFNHQ1vCOYgXhcCuzdLabK1iNdVwWe8HvhjKCFZxDcH1yYHZQ I0gfejlrtwH6n03MJCKZ5VBzL5ClN8P30XEnBw3MAugddmFDLIAr+kKSpfmQnSVgr/1AY9T9 tW3p6iZZLIVSk5lg32ofqDNNXDXy1vxXTfNfNc2/DNcRWYnccaoqMQ6rVifhE2KVPFGVmhQn Png0sRbZP4xp2mi7iyqsX8QGRNDIgIAmRW78N30CLODHytNOYeXRaGWqAqsMyJPmiNz5ARvb DwqYOHkKPoJxMlbObQmaJ0wnmH754Qn/qI1C05r4NKGOvnQp/O1lt8nx4KqQiAjB2tiFh7QZ L9u/BhE+cHr66kKcuNemNk3lBelSdGhHW9/oUJ5Csd/z2Po+7yXz40ebAw97a1p9I9ylpo84 uKbsVcudYVud72cf848t2ynR8c5dsl03tNFDH0cqjhHlHhlmgw9ZNW+k8VGtOxaPXBBfeVzS 2L8tpm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AYkiU5H9b3g1a08uu204yfmU 2dpNBp4FLkViTgscvAoKdh5WYinOSDTUYi4qTgQA+Lqi7fYCAAA= X-CMS-MailID: 20230928192425eucas1p28a9aa6cca0b858dde92213eea1a58b08 X-Msg-Generator: CA X-RootMTR: 20230928192425eucas1p28a9aa6cca0b858dde92213eea1a58b08 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230928192425eucas1p28a9aa6cca0b858dde92213eea1a58b08 References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Dear All, This patchset adds support for atomic transfers, which has been added to the i2c core recently by the commit 63b96983a5dd ("i2c: core: introduce callbacks for atomic transfers"). Almost everything needed for that was already in the driver as so called polled mode. Unfortunately, that polled mode has been tested only with single message write transfers so far and it turned out that it doesn't work well with read and multi-message transfers, so first it had to be fixed. Best regards, Marek Szyprowski Patch summary: Marek Szyprowski (3): i2c: s3c24xx: fix read transfers in polled mode i2c: s3c24xx: fix transferring more than one message in polled mode i2c: s3c24xx: add support for atomic transfers drivers/i2c/busses/i2c-s3c2410.c | 55 +++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 19 deletions(-)