From patchwork Tue May 2 06:28:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaewon Kim X-Patchwork-Id: 13228542 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 151BEC77B7E for ; Tue, 2 May 2023 06:51:30 +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-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=ucJMXwruCLtcZ2fN0buPdpMWJPdUuEYuHkkwmpX5SVc=; b=3tOVnETXOGzhLw bHV8HK/aTKNjZFVGIR8R/Laooo1Xx92pJdtQRHXzGNSUwoudpjud1E2rJh1Fg6MPpRc3xD2wo8LGw WIFaPnD9w153YYoNVxZzKnsEiLgnSkgrFoySv9725qA+GH9AIHnaZ2J4h2RxrImTxLZFGbh2DM+C9 CPlCQkNdDQXfnSXsaIK5zOeCXxSODC1V2KEXL0wS/aFE+eVabg0MJcO8uLka0XY0ZxQkb/FGUZ1io A7IZRGBkVBeU6bz5utO8PaO7WmhAy0wAxoEEAOlF9PAGdd96+btJXZbO7h/k4vaCXgnFOzCwWqer6 91nOwOwDHCKega/Zn4VQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ptjqN-000OU7-0h; Tue, 02 May 2023 06:50:35 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ptjqJ-000ORI-2x for linux-arm-kernel@lists.infradead.org; Tue, 02 May 2023 06:50:33 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20230502065026epoutp0210241812f434548aa60be48fd80e4370~bQOJgO00J2352423524epoutp027 for ; Tue, 2 May 2023 06:50:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20230502065026epoutp0210241812f434548aa60be48fd80e4370~bQOJgO00J2352423524epoutp027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1683010226; bh=q9YWqwZshFXhhq++WvNm/JUJLCR4C19Tey40Db2nw7w=; h=From:To:Cc:Subject:Date:References:From; b=VIjERLHDZt9FIYLDE9JVnU5Jt//bQgMawr7/6ANK0CnAOVyYX1Wht/AjLrDLdPTL2 REBgrV+zI5rEw4xXSEPF91SALtVhsHq2/8l8AREcpbbOrJQUZZUJz5kdnP12VIEXgV /wYQ8yCwkrGUy9ge7y6eOpnhJajqelKO0nlyj5Po= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20230502065026epcas2p468274824a65607dd394f196d155da44b~bQOJKxcrM1117111171epcas2p4E; Tue, 2 May 2023 06:50:26 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.90]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Q9W1F5Rq3z4x9Q3; Tue, 2 May 2023 06:50:25 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id C4.E4.22936.1B2B0546; Tue, 2 May 2023 15:50:25 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20230502065025epcas2p16f5a02e6990d6f2b2257f001979ebcf9~bQOIIAqlX2045420454epcas2p1g; Tue, 2 May 2023 06:50:25 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230502065025epsmtrp257d1b0d3cc600b53bd3239fd4365d404~bQOIHVFyF2944229442epsmtrp2L; Tue, 2 May 2023 06:50:25 +0000 (GMT) X-AuditID: b6c32a48-475ff70000005998-ab-6450b2b164e0 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D2.C8.27706.1B2B0546; Tue, 2 May 2023 15:50:25 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.55]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230502065025epsmtip1b3cc80aaa95a3bd11030231e839d2e77~bQOH5jt0l1187211872epsmtip1d; Tue, 2 May 2023 06:50:25 +0000 (GMT) From: Jaewon Kim To: Krzysztof Kozlowski , Andi Shyti , Mark Brown , Alim Akhtar Cc: linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chanho Park , Jaewon Kim Subject: [PATCH v3 0/3] Improve polling mode of s3c64xx driver Date: Tue, 2 May 2023 15:28:10 +0900 Message-Id: <20230502062813.112434-1-jaewon02.kim@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEKsWRmVeSWpSXmKPExsWy7bCmme7GTQEpBst+a1s8mLeNzWLxj+dM FlMfPmGzuLxf22JHwxFWi72vt7JbbHp8jdXi8q45bBYzzu9jsmj8eJPdgcvj+pJPzB6bVnWy edy5tofNY/OSeo++LasYPT5vkgtgi8q2yUhNTEktUkjNS85PycxLt1XyDo53jjc1MzDUNbS0 MFdSyEvMTbVVcvEJ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sWy7bCSnO7GTQEpBmsu8Vk8mLeNzWLxj+dM FlMfPmGzuLxf22JHwxFWi72vt7JbbHp8jdXi8q45bBYzzu9jsmj8eJPdgcvj+pJPzB6bVnWy edy5tofNY/OSeo++LasYPT5vkgtgi+KySUnNySxLLdK3S+DK+LBvHnvBL/aKLwc+sDUwLmfr YuTkkBAwkZg5aS9TFyMXh5DAbkaJr/MnsUAkZCSWP+uDKhKWuN9yhBWi6D2jxKPrP5lAEmwC 2hLf1y8GS4gILGWUeLznMQuIwyxwj1Hi5aRvYFXCAnYSi6Z9ZgexWQRUJX7NuwoW5wWK/2w9 CbVCXmL1hgPMExh5FjAyrGKUTC0ozk3PLTYsMMxLLdcrTswtLs1L10vOz93ECA43Lc0djNtX fdA7xMjEwXiIUYKDWUmE90OhX4oQb0piZVVqUX58UWlOavEhRmkOFiVx3gtdJ+OFBNITS1Kz U1MLUotgskwcnFINTMUNLM+/rGPvuXh/ZUb3i0s7r70+N/Vvg+q3k/c9ml7tmMEdcSA4Zb7o zYnbYw9e0yrYsi94r7az3lUhtbAbfy92exjc3xBsoh+xtpE17axOexqbgvdpR0eTvzyF9Zsj XLxvP5paY9jsnt6j3ptqICdefNxKart3f9rluMeb+Y+ITvu18l/19zUidUY/390M5uSRr2o0 FO84p/v1jcAtvvmdwoo5Bhv23DzcdzKw6RfDtojWarHfkTnBKYKS0ycnvWuZz5hWPrNy8e8Q Yd9lnRP+ZtVn5xwu9WB5dsbaIfqLme93t9Ni2xcKc0XeXvkoZdHqFVLPAnwin/8rijump/HQ dr96xoFg5dvM/Tz5SizFGYmGWsxFxYkAFe8ZnqYCAAA= X-CMS-MailID: 20230502065025epcas2p16f5a02e6990d6f2b2257f001979ebcf9 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230502065025epcas2p16f5a02e6990d6f2b2257f001979ebcf9 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230501_235032_426148_08389A36 X-CRM114-Status: GOOD ( 15.98 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Previously, polling mode was supported as quirk for SOC without DMA. In order to use it more flexibly, it is supported when there is no dmas property in devicetree, and the issue of using excessive CPU usage in polling mode is solved by adding sleep during transfer time and supporting interrupt mode. Changes in V3. - Fix patch commit message. - Change of_find_property() to of_property_present() with code cleanup - Remove cpu_relax() related patch. - Changes use_irq variable type to bool Changes in V2. - Switched to polling mode if there is no dmas property in devicetree. - Add cpu_releax() in polling loop - Add lower limit in IRQ mode Jaewon Kim (3): spi: s3c64xx: change polling mode to optional spi: s3c64xx: add sleep during transfer spi: s3c64xx: support interrupt based pio mode drivers/spi/spi-s3c64xx.c | 81 +++++++++++++++++++---- include/linux/platform_data/spi-s3c64xx.h | 1 + 2 files changed, 70 insertions(+), 12 deletions(-)