From patchwork Tue Apr 4 06:00:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaewon Kim X-Patchwork-Id: 670247 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 78E78C761A6 for ; Tue, 4 Apr 2023 06:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233721AbjDDGOY (ORCPT ); Tue, 4 Apr 2023 02:14:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233236AbjDDGOU (ORCPT ); Tue, 4 Apr 2023 02:14:20 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7A6619B2 for ; Mon, 3 Apr 2023 23:14:14 -0700 (PDT) Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230404061411epoutp03fde20c2a20db4647dd1690d772ff0282~Spqfw85kw3195931959epoutp03h for ; Tue, 4 Apr 2023 06:14:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230404061411epoutp03fde20c2a20db4647dd1690d772ff0282~Spqfw85kw3195931959epoutp03h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1680588851; bh=NDz3sevc3ifgOeukaV3v9gsrq3saq6INBsKFJVJQAXo=; h=From:To:Cc:Subject:Date:References:From; b=hBLmjPB3OLhfxmHZDImLmBZTZ7Xd0Vxemgda8/5KFrk6rVlJMQskn4Z4B3NUU5z9w eWkKkxKVmHzFQsGk4qQHI/Obdo5lqp22/Ddq8f+Bhd3NfYNvj9emHETL5QjUuOvFNq qqRPlQus71yo6IY3N+YG7+wa8gY6oz/WOgty+tFw= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20230404061410epcas2p4c088f4bbdc5fb33fc184bd3e97ae0021~SpqewrRNA2302623026epcas2p4Y; Tue, 4 Apr 2023 06:14:10 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.102]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4PrHXK4DGPz4x9QC; Tue, 4 Apr 2023 06:14:09 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id DB.90.27926.130CB246; Tue, 4 Apr 2023 15:14:09 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20230404061409epcas2p2e97fff5459b405db0d5a206e2ad38f82~Spqd2cCCD3117631176epcas2p24; Tue, 4 Apr 2023 06:14:09 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230404061409epsmtrp12554d4ca421464b977dc4b9d337a47e5~Spqd1mJ0r0601006010epsmtrp1J; Tue, 4 Apr 2023 06:14:09 +0000 (GMT) X-AuditID: b6c32a46-a4bff70000006d16-0f-642bc0312f8f Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 59.8A.31821.030CB246; Tue, 4 Apr 2023 15:14:09 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230404061408epsmtip1308de21da364f1ac17fa5df75212d9ca~Spqdn_adG3068830688epsmtip1J; Tue, 4 Apr 2023 06:14:08 +0000 (GMT) From: Jaewon Kim To: Krzysztof Kozlowski , Andi Shyti , Alim Akhtar , Mark Brown , Rob Herring Cc: linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park , Jaewon Kim Subject: [PATCH 0/3] spi: s3c64xx: improve SPI polling mode Date: Tue, 4 Apr 2023 15:00:08 +0900 Message-Id: <20230404060011.108561-1-jaewon02.kim@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNKsWRmVeSWpSXmKPExsWy7bCmqa7hAe0UgwkTpC0ezNvGZrH4x3Mm i6kPn7BZXN6vbTH/yDlWix0NR1gt9r7eym6x6fE1VovLu+awWcw4v4/JovHjTXaL1r1H2B14 PK4v+cTssWlVJ5vHnWt72Dw2L6n36NuyitHj8ya5ALaobJuM1MSU1CKF1Lzk/JTMvHRbJe/g eOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wcoBOVFMoSc0qBQgGJxcVK+nY2RfmlJakKGfnF JbZKqQUpOQXmBXrFibnFpXnpenmpJVaGBgZGpkCFCdkZC7ZOZC14yF7xd91L5gbGmWxdjJwc EgImEoe2PGEHsYUEdjBKzHyr2cXIBWR/YpRonvaYDcL5zCjx4ckUFpiOP7cXsUF07GKUmPDQ FqLoI6PEtD1/wIrYBLQlvq9fzAqSEBE4yiixfedbMIdZ4BujxMKjc8DahQWsJa71tTGB2CwC qhLTe3+ygti8AnYSN3esYIVYJy+xesMBZpBmCYFb7BJvT2+FutxFYvKnbewQtrDEq+NboGwp iZf9bVB2tkT79D9QgyokLm6YDdVrLDHrWTtjFyMH0EWaEut36YOYEgLKEkdugT3ALMAn0XH4 LztEmFeio00IolFN4v7Uc1BDZCQmHVnJBGF7SHz++JEREiixEh29vxgnMMrOQpi/gJFxFaNY akFxbnpqsVGBETySkvNzNzGCU52W2w7GKW8/6B1iZOJgPMQowcGsJMKr2qWVIsSbklhZlVqU H19UmpNafIjRFBh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/PZC+Y7VYXFzKo8wzXFffXjehgQt708z5D9xZyzY1Dnjex1vYOtbmexD two7DiYcOrRAd8WJ7GqJNTN1CpdWHv2Rc2VxT/IENcNpSw5rPnQJf7b4qRXTudkp+55Zn6xe +Oro0UVHDQ8949Tz3moR+umL7Wfl7oAC46jvwVHuP7+fujXtf8mj/NKVhq83/CvhZVl+K2vy mv5tu6L3Z+7f9GCF/78ZbJzXjhu8jfmw6efykMhVQlxrnvUa/DE99j2kcIL5rkvXDX4c/lSZ ue7c2YdyU4qjPARfffpRXab0Saeg7cMZzz1KLMUZiYZazEXFiQCsrSkOsAIAAA== X-CMS-MailID: 20230404061409epcas2p2e97fff5459b405db0d5a206e2ad38f82 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230404061409epcas2p2e97fff5459b405db0d5a206e2ad38f82 References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This patchset improves polling mode of s3c64xx driver. s3cx64xx driver was supporing polling mode using quirk for SOC without DMA. However there are situations in which spi polling mode should be supported in some environments. To solve this situation, polling mode can be used selectively by using device-tree as well as quirk. When using the existing polling mode, the CPU utilization goes up to 100% becuase it checks register too frequently. In order to improve this problem, IRQ is used by using the FIFO Trigger Level function. Jaewon Kim (3): spi: s3c64xx: support spi polling mode using devicetree spi: dt-bindings: samsung: add samsung,spi-polling property spi: s3c64xx: support interrupt based pio mode .../devicetree/bindings/spi/samsung,spi.yaml | 6 ++ drivers/spi/spi-s3c64xx.c | 77 ++++++++++++++++--- include/linux/platform_data/spi-s3c64xx.h | 1 + 3 files changed, 72 insertions(+), 12 deletions(-)