From patchwork Mon May 10 19:46:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12249259 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=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 60163C433B4 for ; Mon, 10 May 2021 19:48:45 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 08545613DF for ; Mon, 10 May 2021 19:48:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 08545613DF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:References:List-Owner; bh=9yy5tn276TWd982ua4+1sxETmFBhre6kVG4ezRym5TQ=; b=SnbULW3HHk79XC4vxIueOzpT7g AY6RXGb9Cn+NtI0WWCJN4mtKiYvMwi87+R6DKR0pl8/4kAx6GxKNU7uzdJ/tMXabxUtEluBSyso0x hcj2TRtEEHruvJtqmjZ5S4dn5I0yJH0yW/ldpVxcYAlOMcN+ov7u3526leSXw9M2bPtOZzRASMWnF hqSH952TJiLuUVuh9g4RM/rcpVVmhZfPyHE333yRejQI31T6wYpb7lEZmXpd9kRw3b9OoEC1mMNux 1nCMoPliEb/pAknDMgYsZdE3iawtDpgmirjgAMtb1DlSQCTrJayymvuwbzvUWY6M4A+YfXfZZMpHZ b8vpkKIg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgBrN-00FarR-RN; Mon, 10 May 2021 19:46:33 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgBrJ-00Faqq-Ey for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 19:46:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=WJstXiXUlC4aWIyR2sQU95JqE/r2MqJSiD4OYasvcRI=; b=jhaVhbDAiBWOtZTg8O4jayk1p9 0hBMwmS/q5Lc3KixEqEdUV9i0NrhUNg7+v9s5af0KUzjcano2OPWJbNJXq1eHC+N6mUpbr2s3DDLu BrPNO/9Rj6r8zWjOPrdvdDN/ttnUcyDZ7hVjS60P3ph1Eyjj93//OQAlXWtK9OEGoUp0c3qvxhGLm bH91EHUu3AbYPU6nwZRvRc6MgPR7cYRpEL6uD8UaGrlL9DbAspBF3AMeCvCYObuzmFsWAXPQLcFU6 MzymmRKw4vPFewbIaUXwaXWraBsh6BN8x++SCat1zuVFoGh1X0zOk2SG7FOaUyqhltUaSBGbs37D5 OOkrEoDg==; Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgBrF-009587-Mo for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 19:46:26 +0000 IronPort-SDR: /SRHzoIe9EjZdHO/yR3AVKRWZBD+ow3WK817gCEEhqoneRJW3qL1E8VdM+6CIIX+rqvtiFh4qV LhQ7pEZ4sROQ== X-IronPort-AV: E=McAfee;i="6200,9189,9980"; a="199324457" X-IronPort-AV: E=Sophos;i="5.82,288,1613462400"; d="scan'208";a="199324457" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 12:46:23 -0700 IronPort-SDR: rQOmPbBk1u0U42ydnosK78/S6fYmI0rCOa0X+CDxowOjiy84uoMZlp2YGbn4WYPaGDahJEAElW ZfRBh855v4wA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,288,1613462400"; d="scan'208";a="433955808" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 10 May 2021 12:46:20 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id BCDB2D7; Mon, 10 May 2021 22:46:40 +0300 (EEST) From: Andy Shevchenko To: Linus Walleij , Srinivas Neeli , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Shubhrajyoti Datta , Michal Simek , Bartosz Golaszewski , Yury Norov , Rasmus Villemoes Subject: [PATCH v2 0/5] gpio: xilinx: convert to use bitmap API Date: Mon, 10 May 2021 22:46:28 +0300 Message-Id: <20210510194633.11943-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_124625_801960_704E5014 X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The change in the series has been inspired by [1], which, I think, can be improved. Here I present the view how it may be done. [1]: cover.1617380819.git.syednwaris@gmail.com In v2: - folding followup fix into patch 4 - added Tested-by (Srinivas) - added Ack (Yuri) - added Rb (Michal) - rebased on top of v5.13-rc1 Andy Shevchenko (5): bitmap: Make bitmap_remap() and bitmap_bitremap() available to users gpio: xilinx: Correct kernel doc for xgpio_probe() gpio: xilinx: Introduce xgpio_read_chan() / xgpio_write_chan() gpio: xilinx: Switch to use bitmap APIs gpio: xilinx: No need to disable IRQs in the handler drivers/gpio/gpio-xilinx.c | 385 +++++++++++++++++++------------------ lib/bitmap.c | 5 +- 2 files changed, 198 insertions(+), 192 deletions(-)