From patchwork Wed Jan 27 00:16:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12048667 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D845EC433E0 for ; Wed, 27 Jan 2021 00:19:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B94120691 for ; Wed, 27 Jan 2021 00:19:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B94120691 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:MIME-Version:Message-Id:Date:Subject: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=ggFPXg0Pw35LlysAzbvuX3duUtf+bUAI4bXdcBBcAuU=; b=UTuzmW0CG8hTieQaM8Rj4qV48 jckPqPrwQrt9HWlRV5ILNe2HHYexpo3vrxXdaAnwTypTOo0G3aX6I0YlXwvxxWDjjcQVYXWjG4+CU w1OaBgAWRWzyNQXLEqYLV8W2OQbos992de+73m+ezsl/1qTGIv91sxtdaF3QtkRXZnHr5Gf3PRpQW iuvLfAgrGyz/YEMB8H/Z9Y5U9SeWF5iaFU4cMSfJAzlXrW8d3JeHNbi2A8WuEMbuZePvug0zag4Cz bKv0IJdkUvMw53pq8tjbqdtEqGqwHRCM7WRoLcR0S4xEEuZB8uPV33HxecBuugNhiF+lcin9FDtxJ L9FABZYbA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4YWA-0003l7-HE; Wed, 27 Jan 2021 00:17:06 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4YW6-0003jJ-TB for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2021 00:17:04 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210127001655epoutp03d4e3ded48e918ba40149cce89fa8c91d~d7qCcPUEP0427104271epoutp03l for ; Wed, 27 Jan 2021 00:16:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210127001655epoutp03d4e3ded48e918ba40149cce89fa8c91d~d7qCcPUEP0427104271epoutp03l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1611706615; bh=bsKjPI8dJEliK0xVfo3u1qjuGRVdT83SjJXrgzobAhk=; h=From:To:Cc:Subject:Date:References:From; b=bkoYM76cpO6L4P/pWhPY9Ca+DSTazzIZKu5rXLZId+dUJ8tG8ehSQ8sTZCjXTUOhs K3F8h5IJYzUsd2m6mbzCzc83EZo8v5EdFlw9IFWQseczE5MHDfNXDkRnydrCOFDxPk /vNq1RRPjctYPGuVbkAhcNGWlQstSzYxsd5mP0DY= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20210127001654epcas2p40ab53364d8dbfa334113819602416d9d~d7qB2zdrw2030920309epcas2p4I; Wed, 27 Jan 2021 00:16:54 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.40.184]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4DQPKw3j8pz4x9Pv; Wed, 27 Jan 2021 00:16:52 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 31.29.10621.DE0B0106; Wed, 27 Jan 2021 09:16:45 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20210127001644epcas2p13cbc984fecc3ac7700a422488b488135~d7p4hp67R1532715327epcas2p1M; Wed, 27 Jan 2021 00:16:44 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210127001644epsmtrp23221aaacf2ec3df5371d340ce85df2ff~d7p4g0YFi1792817928epsmtrp27; Wed, 27 Jan 2021 00:16:44 +0000 (GMT) X-AuditID: b6c32a45-34dff7000001297d-4f-6010b0ed90af Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id A1.79.13470.CE0B0106; Wed, 27 Jan 2021 09:16:44 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210127001644epsmtip1e5a8bccb2f11d5199af35c81f076d940~d7p4TpERh1392513925epsmtip1Z; Wed, 27 Jan 2021 00:16:44 +0000 (GMT) From: Chanho Park To: Tomasz Figa , Krzysztof Kozlowski , Sylwester Nawrocki , Linus Walleij Subject: [PATCH] pinctrl: samsung: use raw_spinlock for s3c64xx Date: Wed, 27 Jan 2021 09:16:31 +0900 Message-Id: <20210127001631.91209-1-chanho61.park@samsung.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgk+LIzCtJLcpLzFFi42LZdljTVPftBoEEg5YlShaX92tbnD+/gd1i yp/lTBabHl9jtdg8/w+jxYzz+5gsDr9pZ7VYtesPowOHx85Zd9k9Nq3qZPO4c20Pm8fmJfUe fVtWMXp83iQXwBaVY5ORmpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+Ti E6DrlpkDdI6SQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYptSAlp8DQsECvODG3uDQvXS85 P9fK0MDAyBSoMiEnY+Lv9+wFU7krbn3cyN7AeJazi5GTQ0LAROJk817mLkYuDiGBHYwS7d9u MUI4nxglHrf8Y4JwvjFKHGo6xw7TMu/dcXaIxF5GicuTJ0H1f2SUmLRxHzNIFZuArsSW56/A ZokIrGSUWP58IdgsZoFJjBLvnj9nBakSFrCXuHpyH5jNIqAq8WvCXLBuXgE7iS/HV0Ptk5c4 ufYwE0RcUOLkzCcsIDYzULx562xmiJpb7BKdsxy6GDmAbBeJDT9zIcLCEq+Ob4EaIyXx+d1e NpAbJAS6GSVaH/2HSqxmlOhs9IGw7SV+Td/CCjKHWUBTYv0ufYiRyhJHbkFt5ZPoOPyXHSLM K9HRJgTRqC5xYPt0FghbVqJ7zmdWiBIPiQt3y0DCQgKxEqe2TmOcwCg/C8krs5C8Mgth7QJG 5lWMYqkFxbnpqcVGBYbIkbqJEZwktVx3ME5++0HvECMTB+MhRgkOZiUR3vfKAglCvCmJlVWp RfnxRaU5qcWHGE2BgTuRWUo0OR+YpvNK4g1NjczMDCxNLUzNjCyUxHmLDR7ECwmkJ5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Sxc C54H1riWf3HZs7VkqWey71MV6+ft1TIPTUU8y06cdN22pXm7auPpTxF+95uk2a57Oc3PTcnc mL3lh1ei2Z6Ov6oaLx4lS018vCisSndtBEclN4OwY0MRf+0XHVsfI+3aFNPrl6e86TBXe5pp rumr+TL/ipOTfLeycDfzp3Wqd4vaD1dGr7u8YdoM6aii1JYFDX+tFbQKsz8c3OvxJKQpZL9d m3zOfZYP38O53qY19Z/3Om+V8v/mk653hrpKLMUZiYZazEXFiQD0EZWuzAIAAA== X-CMS-MailID: 20210127001644epcas2p13cbc984fecc3ac7700a422488b488135 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210127001644epcas2p13cbc984fecc3ac7700a422488b488135 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210126_191703_536585_FE6FB102 X-CRM114-Status: GOOD ( 17.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, Chanho Park , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch converts spin_[lock|unlock] functions of pin bank to raw_spinlock to support preempt-rt for pinctrl-s3c64xx. Below patch converted spinlock_t to raw_spinlock_t but it didn't convert the s3c64xx's spinlock. Fixes: 1f306ecbe0f6 ("pinctrl: samsung: use raw_spinlock for locking") Cc: Tomasz Figa Cc: Krzysztof Kozlowski Cc: Sylwester Nawrocki Cc: Linus Walleij Signed-off-by: Chanho Park --- drivers/pinctrl/samsung/pinctrl-s3c64xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/samsung/pinctrl-s3c64xx.c b/drivers/pinctrl/samsung/pinctrl-s3c64xx.c index b8166e3fe4ce..53e2a6412add 100644 --- a/drivers/pinctrl/samsung/pinctrl-s3c64xx.c +++ b/drivers/pinctrl/samsung/pinctrl-s3c64xx.c @@ -286,14 +286,14 @@ static void s3c64xx_irq_set_function(struct samsung_pinctrl_drv_data *d, shift = shift * bank_type->fld_width[PINCFG_TYPE_FUNC]; mask = (1 << bank_type->fld_width[PINCFG_TYPE_FUNC]) - 1; - spin_lock_irqsave(&bank->slock, flags); + raw_spin_lock_irqsave(&bank->slock, flags); val = readl(reg); val &= ~(mask << shift); val |= bank->eint_func << shift; writel(val, reg); - spin_unlock_irqrestore(&bank->slock, flags); + raw_spin_unlock_irqrestore(&bank->slock, flags); } /*