Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5543054rwl; Mon, 3 Apr 2023 23:16:46 -0700 (PDT) X-Google-Smtp-Source: AKy350Yj8H4skIS8t4RrM0BVli4D9BLieS7xYEJArGadsUKdJRCGo/1t36M2PlvpFFlM66opGM3W X-Received: by 2002:a05:6402:391:b0:502:2148:2980 with SMTP id o17-20020a056402039100b0050221482980mr1293760edv.30.1680589006390; Mon, 03 Apr 2023 23:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680589006; cv=none; d=google.com; s=arc-20160816; b=W2u39qS2kmdilb909hNIcuCJaDWqSlj0rOC7MGrcbZm4zV54T0/ULmQgB1oOARxG4+ Lp8chUvwIqBAN7xmOdEV+gdUldChOT45Aonv5NwSWQ3EJZsyDfYU9ufa6wbx97VYHnbs 7M5r1hjZ9J4HMO1X+cIl/NIZNy0qOj7zA1MMnx91RK9pLKjMA9Nsb4znYB0FXHFw2roF 0RZqBSXlXqIgQwBYpWVyYhNPqXlrjI4wMPvrixzRAGUrNaN+t+AGSRBEUMRIWn5FgibH 2FbVqPFV/b1VQ24k5ecbWl5lDA5peSnWpJ5YL8phJ+QFHkzeB75qlYjHGtEHhW+3oGcN 2Tww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=NDz3sevc3ifgOeukaV3v9gsrq3saq6INBsKFJVJQAXo=; b=z2IjV88TsK0X08hZ9piqGd6Qlj3zC3tf0iQS+u7CUKpOBiaPe2D8pspGkLt77tmfg0 BNtg2dJkbFlVMzFXx2EYwRyj1JoFonLL7cQoVDyWbvHxgf6JPQkOM9biHTrOxm3dH30d uZRsKQp0kkhqpeQa+6oq4OHL7frU+sNtozIlxRoUvmAQ5R73Djqauw1KAmCPbbHxf+f5 JuMtFhkNrbGnuTwP5imQCqqiBK2BG/9J9uvLqGuNjmBj868EeRScwbMEtsAku9BiXncP vLJFuYuieJgx2+dX2akO27mJHM5a1A1WjHFTfeZCYbh7IEnO/TjGYTOe3O41R+G0UcYH nPMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hBLmjPB3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be6-20020a0564021a2600b004ad0caf3dc0si267851edb.480.2023.04.03.23.16.21; Mon, 03 Apr 2023 23:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hBLmjPB3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233686AbjDDGOS (ORCPT + 99 others); Tue, 4 Apr 2023 02:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233658AbjDDGOR (ORCPT ); Tue, 4 Apr 2023 02:14:17 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA80A1FE1 for ; Mon, 3 Apr 2023 23:14:14 -0700 (PDT) Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20230404061411epoutp0239cd9028c720bb87c5d48d5145e199a6~SpqfwgNF12900629006epoutp02i for ; Tue, 4 Apr 2023 06:14:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20230404061411epoutp0239cd9028c720bb87c5d48d5145e199a6~SpqfwgNF12900629006epoutp02i 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/YpRonvaYDcL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stQifbsErowFWyeyFjxk 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 Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230404061409epcas2p2e97fff5459b405db0d5a206e2ad38f82 References: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.17.1