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: 13199167 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 37C65C761A6 for ; Tue, 4 Apr 2023 06:15:22 +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=+momwZoIukfkRIA3UcWbsvzdx8ktRbE8yDjqThkW+DM=; b=y9g+AGcn75nihy TtcfjWdrFKU0/iAEQBCJinynV4hg7jVqpgNZ4mn5/MMiUxngReADoRgidryZbNGB4DmDq5EBuwXqq IiVpjEWSylaceza4fINU5ukT2YcYm6mC69pD4n3x0HqH0rBghvAU2Nl6MTZSch71wZrbN4cCemkgJ wVLpj05qAJn795a5loi0cvw+YNL6IvmS8F0KRomFJ4gJZi1jP8vT18CBb6Xs5pZNK9aUoMaYZB0vJ sUjz+5A6PRZ2bXfz6/ZjU8zMptnAAjDb2cVIkgU0WQl3ykLX4RNhczvvGhN7cmyRBpiuKfElrMix6 TqhCckKvpYp8PnI4mWMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjZw1-000ARX-0X; Tue, 04 Apr 2023 06:14:25 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjZvw-000AOw-0B for linux-arm-kernel@lists.infradead.org; Tue, 04 Apr 2023 06:14:23 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230404061411epoutp03d1664e96019273f835a2ad5811554b68~SpqfnP__i3202032020epoutp03l for ; Tue, 4 Apr 2023 06:14:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230404061411epoutp03d1664e96019273f835a2ad5811554b68~SpqfnP__i3202032020epoutp03l 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+cTssWlVJ5vHnWt72Dw2L6n36NuyitHj8ya5ALaobJ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H+AwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLLMWRmVeSWpSXmKPExsWy7bCSnK7hAe0Ug2PnmC0ezNvGZrH4x3Mm i6kPn7BZXN6vbTH/yDlWix0NR1gt9r7eym6x6fE1VovLu+awWcw4v4/JovHjTXaL1r1H2B14 PK4v+cTssWlVJ5vHnWt72Dw2L6n36NuyitHj8ya5ALYoLpuU1JzMstQifbsErowFWyeyFjxk r/i77iVzA+NMti5GTg4JAROJP7cXAdlcHEICOxglutc2skAkZCSWP+uDKhKWuN9yhBWi6D2j xI4DZ8CK2AS0Jb6vXwyWEBE4ySjx+0wTE4jDLPCHUWLqkf9MIFXCAtYS1/rawGwWAVWJ6b0/ WUFsXgE7iZs7VrBCrJCXWL3hAPMERp4FjAyrGCVTC4pz03OLDQuM8lLL9YoTc4tL89L1kvNz NzGCQ1BLawfjnlUf9A4xMnEwHmKU4GBWEuFV7dJKEeJNSaysSi3Kjy8qzUktPsQozcGiJM57 oetkvJBAemJJanZqakFqEUyWiYNTqoEpvmjbssqy7CUby9faPhT2/lSyaRH32mzN2ZUrcsIU M72uNhm9dWb0eGzp/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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230403_231421_011922_3DCF7106 X-CRM114-Status: GOOD ( 14.04 ) 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 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(-)