From patchwork Wed Oct 25 12:17:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 738884 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 6D979C0032E for ; Wed, 25 Oct 2023 12:17:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343753AbjJYMRt (ORCPT ); Wed, 25 Oct 2023 08:17:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343767AbjJYMRp (ORCPT ); Wed, 25 Oct 2023 08:17:45 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CE4418B for ; Wed, 25 Oct 2023 05:17:39 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20231025121735euoutp02ad4cdf1efbc299bb8aef6afba4c312cd~RWOCByZmP2623326233euoutp02A for ; Wed, 25 Oct 2023 12:17:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20231025121735euoutp02ad4cdf1efbc299bb8aef6afba4c312cd~RWOCByZmP2623326233euoutp02A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1698236255; bh=koPmnIYR71MLFlw+rXLBLGv9mCLgWqZkiQU0rYit4sc=; h=From:To:Cc:Subject:Date:References:From; b=t4QhUNIUTrf9qz+kqjlsdgGot6auWNAn7Qx1TCd03shSHkv9KgGVTeH71oGZ7q6KC QwgniJdWdinUxpe6ty4X5Hi00jwA03RhFimTk3wHsnA6y30LMUjSlWj31k7VSm/1t6 3O5cbHcZAp1hHvFdnzntawdQZcwvLiayLUv3XPuA= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20231025121735eucas1p246d9725304ab07e9689ac3ab638e7eed~RWOBpXS8j1127511275eucas1p2L; Wed, 25 Oct 2023 12:17:35 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id F9.C0.11320.F5709356; Wed, 25 Oct 2023 13:17:35 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20231025121735eucas1p22b65a2c0bc6d30342c4935e3903823a1~RWOBXsbsS0172101721eucas1p2n; Wed, 25 Oct 2023 12:17:35 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231025121735eusmtrp1ae83709764d1ef5dc79590213cc257b4~RWOBXFbHf2882328823eusmtrp1O; Wed, 25 Oct 2023 12:17:35 +0000 (GMT) X-AuditID: cbfec7f4-97dff70000022c38-2d-6539075f8d8f Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 29.B7.25043.E5709356; Wed, 25 Oct 2023 13:17:34 +0100 (BST) Received: from AMDC4653.digital.local (unknown [106.120.51.32]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231025121734eusmtip28e9ff31896a5b187787f2384d39232d6~RWOA57erR0336403364eusmtip2Y; Wed, 25 Oct 2023 12:17:34 +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 v2 0/3] Add atomic transfers to s3c24xx i2c driver Date: Wed, 25 Oct 2023 14:17:22 +0200 Message-Id: <20231025121725.46028-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmleLIzCtJLcpLzFFi42LZduznOd14dstUg6YXQhYP5m1js7j/tYPR Yu/rrewWHX+/MFrMOL+PyWLtkbvsFnf3z2V0YPfYtKqTzePOtT1sHn1bVjF6fN4kF8ASxWWT kpqTWZZapG+XwJXx7thmpoKf7BXT705ha2DcwtbFyMkhIWAisWDbIiYQW0hgBaPErs32XYxc QPYXRom/N1tYIZzPjBJL/u5lguno/HAQKrGcUWLqktdsCC33FjGCVLEJGEp0ve0C2yEi4CAx b+13dpAiZoHLjBLT5mwDGyUs4CSxoH8XWBGLgKrEg/eb2EFsXgFbiWNr9rNDrJOX2H/wLDNE XFDi5MwnLCA2M1C8eetsZoiaiRwSHz64QtguEns37IOKC0u8Or4Fao6MxOnJPSwgR0gItDNK LPh9nwnCmcAo0fD8FiNElbXEnXO/gC7iANqgKbF+lz6IKSHgKLFzohiEySdx460gxAl8EpO2 TWeGCPNKdLQJQcxQk5h1fB3c1oMXLkGVeEjsO8cLCelYidOrW1kmMCrMQvLXLCR/zUK4YAEj 8ypG8dTS4tz01GKjvNRyveLE3OLSvHS95PzcTYzA9HL63/EvOxiXv/qod4iRiYPxEKMEB7OS CG+kj0WqEG9KYmVValF+fFFpTmrxIUZpDhYlcV7VFPlUIYH0xJLU7NTUgtQimCwTB6dUA1Nx V/oc93k7bPtNTy+3Wx/9+/C8RVet6p+7eCpG6wZwRbT53F3tbbexVMhr/xVGdXPvjDeL9p5y eP9wue6XeXwP/H9N07mlLqFzTOhL9e8i81bXvcbzxPm8799t/HT+gXj+whWeyf8WLcz0/PKO 87OL1VITo2qjWM2+81+fB23Kvfd969XHfyqkf+sxHDXwffcnpZEn4+0my/UbE9pP1/v+2HRF cP5KpXcbo7acW/LUdfN0l4/RLNdjbXuP6rW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/aLx0 eeq0g7x/Tpo8lE3kVmIpzkg01GIuKk4EAIVLuwX3AgAA X-CMS-MailID: 20231025121735eucas1p22b65a2c0bc6d30342c4935e3903823a1 X-Msg-Generator: CA X-RootMTR: 20231025121735eucas1p22b65a2c0bc6d30342c4935e3903823a1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231025121735eucas1p22b65a2c0bc6d30342c4935e3903823a1 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") to hide warnings observed during system reboot and power-off. Almost everything needed for that was already in the driver as so called polling mode. Unfortunately, that polling 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 Changelog: v2: - updated and extended commit messages Patch summary: Marek Szyprowski (3): i2c: s3c24xx: fix read transfers in polling mode i2c: s3c24xx: fix transferring more than one message in polling mode i2c: s3c24xx: add support for atomic transfers drivers/i2c/busses/i2c-s3c2410.c | 55 +++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 19 deletions(-)