From mboxrd@z Thu Jan 1 00:00:00 1970 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 277E2E8181A for ; Tue, 26 Sep 2023 11:11:55 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=N3qZAEqG2A+gA7rpsOBo94lKfzTvkzsSK0Pax1jWvuE=; b=3A/SVKeTabsXJA J1kn8HILrlWyv/0u9aN65d/zAcDDT4CZStio+qf5u9CbDDQJGpoAXjF6P9vSShc6y4Jc9yXAXua2A l5VV9wwajyVTCnZ//ij+NN7wpMDlNblLonzn7lywmRcOMBs6I7IQfqE0Xp6mg+YG7J34ebsYng/RU fANnb+6gGu1IBQ0jwm2aisemcBUsu+dETdiFY0OG74GWb+qQTPEPZ/95swLCJlb8X/1RX/fYqqV6T 1WtvOAwHhWHBAXfuTJgdf5CXKSz8bHdiJEOOi/vj5hjuHqUqo9dCMyT5YUeKZI2U0GRkgSTeHQOfB +hvJ3BhV1PyfM36XrB2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ql5yR-00GEHb-16; Tue, 26 Sep 2023 11:11:27 +0000 Received: from mgamail.intel.com ([134.134.136.100]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ql5yO-00GEH4-0V for linux-arm-kernel@lists.infradead.org; Tue, 26 Sep 2023 11:11:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695726684; x=1727262684; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bcmQvoUINisqkhRF3+IALIewrp6wbQqm3oJ9C0S/4TA=; b=alWl1JUkXQePMmvAZaoIdnDUUON1GWQW62pzJ7dRnSuFgz/0nPoB9h7S 1W61o6St7ee9eWF7PNHehpBv7BiBRbYtr8QsazN5U5Wqt7D+jCbcuf53n Yu7vo4q0bY6FbZA7nJASKJiZndaaRN0jmTWbbnzI/mEY2tiAegJz1hDWr rNF5VfhHDRUFrTK+U9XN8I3UahNCYEEy26kKGniDsOgxZVr3Hei9v2cov DkinhIbCfwhq+YKGLHiIlSgjz45jCUDevnlgy8Udjmkk96XSv1IZb8w8A c9p8zb2IVZE3FJieRniHMF0Cox+CMEMRUCjmbid51dmRo3wQqidVpLCcw A==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="448039813" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="448039813" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 04:11:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="698432385" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="698432385" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 04:11:18 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1ql5yF-00000000aM0-0723; Tue, 26 Sep 2023 14:11:15 +0300 Date: Tue, 26 Sep 2023 14:11:14 +0300 From: Andy Shevchenko To: Kent Gibson Cc: Linus Walleij , Bartosz Golaszewski , Yury Norov , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shubhrajyoti Datta , Srinivas Neeli , Michal Simek , Bartosz Golaszewski , Rasmus Villemoes , Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH v1 4/5] gpio: xilinx: Replace bitmap_bitremap() calls Message-ID: References: <20230926052007.3917389-1-andriy.shevchenko@linux.intel.com> <20230926052007.3917389-5-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230926_041124_264355_166D0DAB X-CRM114-Status: GOOD ( 18.11 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 26, 2023 at 06:41:00PM +0800, Kent Gibson wrote: > On Tue, Sep 26, 2023 at 08:20:06AM +0300, Andy Shevchenko wrote: > > We have sparse and dence masks of the line mappings based on > > dense > > > the view point (Linux numbering or hardware numbering). Since > > the Linux side uses sequential bits for the mask, we can simply > > convert a Linux number to the hardware one and vise versa by > > vice > > > counting set bits in the respective mask. Hence replace > > bitmap_bitremap() calls by simpler equivalents. > > > > With this done the dence mask is not needed and thus dropped. > > And dense again. Thank you, Kent, I really appreciate your help with my poor English, nevertheless it would be nice if you can look at the last patch and maybe even test it, so we have a bit of confidence that it works as expected. (The spelling will be fixed in the next version.) -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel