From patchwork Thu Apr 8 14:55:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12191683 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=-11.8 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,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 AFBB3C433B4 for ; Thu, 8 Apr 2021 14:57:59 +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 3F3D261130 for ; Thu, 8 Apr 2021 14:57:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F3D261130 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=S4i0cPlJSLIqsDNhrJHh0R+9uysRBVUVVL3pRwOoA5I=; b=Uzf4mpZHTHKsn1X7uy8D82uj9W kaJY7+qQEXiH3GrIGa5wIWhCfLTEdPrVflsfiBcEGv3hM8ik9OXxPOk003mODslNktALP1LrdPzOC i1psQxUZn1fi49I1nKzMbLA89HBNw06msAlbVdcE9iBImHR6WiQv6TZ6QJEw+UFxTFgOqsaQNNv5e MqXC7F8vTpT0RMidAKwcZzcLPiAl9HZEIoMMXgTr+ELQ0M8GrPfDe2InCTxUSPrTZHC+UnP0b8K3J tegAIh9npobrOA8EDxYdQNJuIE7uKONWBgKhtof2c3HzsfpTaXr0lDSLNTACJWpZP+U2l07At88tx o9GjUk8A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUW4c-008IVx-NW; Thu, 08 Apr 2021 14:55:58 +0000 Received: from mga14.intel.com ([192.55.52.115]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUW4Y-008IUc-36 for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 14:55:56 +0000 IronPort-SDR: egpkOkwlGMpXwAWd7t65QkyoLQ0MiWLCxRPAGV2p0PsWGNmUrw6OFurnauTliq73rZvZ+SXZJ6 ed/ETuPm7T2A== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="193098970" X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="193098970" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 07:55:52 -0700 IronPort-SDR: dgf9RWywikSAzthwS691EXZl6/fOl7kLiVbTciktdFgqtU1LTXY2jXSI/nYXzHVZd1WtVwMQMT HGLUUUljGp4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="613364323" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 08 Apr 2021 07:55:48 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id ECC3AFC; Thu, 8 Apr 2021 17:56:04 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Shubhrajyoti Datta , Srinivas Neeli , Michal Simek , Linus Walleij , Bartosz Golaszewski , Yury Norov , Rasmus Villemoes , Syed Nayyar Waris , vilhelm.gray@gmail.com Subject: [RFT, PATCH v1 0/5] gpio: xilinx: convert to use bitmap API Date: Thu, 8 Apr 2021 17:55:56 +0300 Message-Id: <20210408145601.68651-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-20210408_155555_028790_81721E68 X-CRM114-Status: UNSURE ( 9.79 ) 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 can be done. The series marked as RFT since I have no hardware and I perform compile test only. The patches 1 and 2 can be (independently) applied for v5.13, but I'm not in hurry with the series, due to above (lack of real testing). So I'm flexible in a way how it can be proceed. [1]: cover.1617380819.git.syednwaris@gmail.com 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 | 377 ++++++++++++++++++------------------- lib/bitmap.c | 5 +- 2 files changed, 190 insertions(+), 192 deletions(-) Tested-by: Neeli Srinivas