From patchwork Wed Apr 19 06:06:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaewon Kim X-Patchwork-Id: 13216426 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 0E65AC77B73 for ; Wed, 19 Apr 2023 06:29:07 +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=clLBqSGLeJygMKlqzUGc+uzsRUAmksA5BvhBRFT5JvI=; b=PFQrRhK4cuSGgJ 3TtDOb9Nhex+1ZasUaz/dy5tuafbVqNT1uyQ8E80sW5d8nbLPcxQObQEIgizdJpFNlMrATsyMbQmx OHUTaK8ffIVjePPH7fbaLdFEkdClEuhi++VzB67wz12RNeHn7p5YKDnACxkfKNTJe1QL9S8QeSQpM XhQl/D4vCiYr1JRoxmWgT5vhmFcJ70esvVu/TWwU5SCNl7Y9g8lk5+wYS90LUxowSccabODYgCBwl ZHLSAzc6A2mzDIl8anXE/ta7OsBZT+FcTvVhnttsTn2UyI9eurcUPGffnogzRpL2RKvoTbZLSioiq zACt5cl/MtPNM5/PBTTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pp1IZ-004EVf-0N; Wed, 19 Apr 2023 06:28:11 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pp1IS-004EKJ-23 for linux-arm-kernel@lists.infradead.org; Wed, 19 Apr 2023 06:28:07 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230419062756epoutp047b31a4d37240bd9a2b31011fae6d6da4~XQhyPoTsH1261212612epoutp04W for ; Wed, 19 Apr 2023 06:27:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230419062756epoutp047b31a4d37240bd9a2b31011fae6d6da4~XQhyPoTsH1261212612epoutp04W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1681885676; bh=Zz2fXoPYH2Rn3Zva7blHYTNJEnyfvGkirJElZNBYSb4=; h=From:To:Cc:Subject:Date:References:From; b=cgD9XolMXBpcltEkDUehQOgW95hGrQdBpftoAL4UUtuIPOhIo9JWbruCo/x5cmzvZ 4xlSNUX7DflEXUASdZ5WQaFbAdHWpc7GoW7BL2GlTBWmK7LIaaEYrKzM1wWwvpkkKO yMGKusYs9MRV0NSM7LXrkyjBNU5RlZ/538Ikb+jc= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20230419062755epcas2p22790a323aac8b3409c357121bbd8d5b4~XQhx7kcrp0810808108epcas2p2w; Wed, 19 Apr 2023 06:27:55 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.91]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Q1W7H47Gkz4x9QC; Wed, 19 Apr 2023 06:27:55 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 6D.89.09938.BE98F346; Wed, 19 Apr 2023 15:27:55 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20230419062755epcas2p4c3c7c1e0d58e964f6e884f75ae120d91~XQhxHFb6Z2825128251epcas2p4O; Wed, 19 Apr 2023 06:27:55 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230419062755epsmtrp23e5beae0425cbd39d45e5c172491eff2~XQhxFuotX0106901069epsmtrp2P; Wed, 19 Apr 2023 06:27:55 +0000 (GMT) X-AuditID: b6c32a47-ca5fd700000026d2-80-643f89eb3ca7 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 90.71.08609.AE98F346; Wed, 19 Apr 2023 15:27:54 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.55]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230419062754epsmtip28c0708de49b9264767aff73757c29aa1~XQhw5KhSs0529605296epsmtip2T; Wed, 19 Apr 2023 06:27:54 +0000 (GMT) From: Jaewon Kim To: Mark Brown , Krzysztof Kozlowski , Andi Shyti , 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 v2 0/4] Improves polling mode of s3c64xx driver Date: Wed, 19 Apr 2023 15:06:35 +0900 Message-Id: <20230419060639.38853-1-jaewon02.kim@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEKsWRmVeSWpSXmKPExsWy7bCmhe7rTvsUg5MT5C0ezNvGZrH4x3Mm i6kPn7BZXN6vbbGj4Qirxd7XW9ktNj2+xmpxedccNosZ5/cxWTR+vMnuwOVxfcknZo9NqzrZ PO5c28PmsXlJvUffllWMHp83yQWwRWXbZKQmpqQWKaTmJeenZ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SXmKPExsWy7bCSvO6rTvsUg3OvrS0ezNvGZrH4x3Mm i6kPn7BZXN6vbbGj4Qirxd7XW9ktNj2+xmpxedccNosZ5/cxWTR+vMnuwOVxfcknZo9NqzrZ PO5c28PmsXlJvUffllWMHp83yQWwRXHZpKTmZJalFunbJXBl7D5+grmgj61iwYJrbA2Mt1i6 GDk5JARMJDbtncjaxcjFISSwg1Fi+63trBAJGYnlz/rYIGxhifstR6CK3jNKrHo/iRkkwSag LfF9/WKwBhGBpYwSN7ulQIqYBe4xSryc9I0JJCEsYC/xddoOdhCbRUBVYsHv7WCreQVsJRYd vwy1TV5i9YYDzBMYeRYwMqxilEwtKM5Nzy02LDDKSy3XK07MLS7NS9dLzs/dxAgONi2tHYx7 Vn3QO8TIxMF4iFGCg1lJhPeMq1WKEG9KYmVValF+fFFpTmrxIUZpDhYlcd4LXSfjhQTSE0tS s1NTC1KLYLJMHJxSDUxS7Z+fP+bIexUkdGzr5KpHQh2ZL/KP9aW/dl+i0us8bVJW+n/feRva oy5N2XmTtfrAFzGN1+rVcxcYrJ+aWDHV4l7D0/eRbBIPFA+59/3T6dx5L+pTkufEIzPOd77m PDbtBHf/HuXQppzgj8bGRm4cvIkbfOtj5WVVZLLerNVMrNB+nfBgh3H1B7+MrscyOcJh+n8L mlJOT5hltkH97V4Hlr0/2VsqebgV2Q++Nr27X0iyNFXYRrt74+Jw/o/F/RZrTm5y/elysum5 152sjeUpJvbCIqffaG7vceV9f38uc+TXSb/jXgS8OpBuLSPzqkbJXvtukabkxxV/6x7/Ku/Q 2Kfp8+H3Gwlv5mXJyUosxRmJhlrMRcWJANNi3FylAgAA X-CMS-MailID: 20230419062755epcas2p4c3c7c1e0d58e964f6e884f75ae120d91 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230419062755epcas2p4c3c7c1e0d58e964f6e884f75ae120d91 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230418_232805_203264_C5243D30 X-CRM114-Status: GOOD ( 14.08 ) 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 1. s3cx64xx driver was supporting polling mode using quirk for SOC without DMA. However, in order to use PIO mode as an optional rather than a quirk, when DMA is not described, spi operates with pio mode rather than probe fail. 2. Fixed the problem of high CPU usage in PIO mode. 3. If the transfer data size is larger than 32-bit, IRQ base PIO mode used. Jaewon Kim (4): spi: s3c64xx: changed to PIO mode if there is no DMA spi: s3c64xx: add cpu_relax in polling loop spi: s3c64xx: add sleep during transfer spi: s3c64xx: support interrupt based pio mode drivers/spi/spi-s3c64xx.c | 85 ++++++++++++++++++++--- include/linux/platform_data/spi-s3c64xx.h | 1 + 2 files changed, 76 insertions(+), 10 deletions(-)