Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp462290pxf; Thu, 8 Apr 2021 06:45:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqA1DjjPoW7TvmgIblW++UPpzoMWmGIQZquxX+83mZLc0rKLbfjdtK/YF0GAWMEBigRma0 X-Received: by 2002:a17:90b:3884:: with SMTP id mu4mr8567819pjb.128.1617889535132; Thu, 08 Apr 2021 06:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617889535; cv=none; d=google.com; s=arc-20160816; b=M4R50JmqQMahgujZT6FsX7si5fQ+lZk72q/pvprCgY9of4910VKkOk2HPeFjjJYUkE CSPu9qvjP3R/x8Ko1UnTzStC8C3zy5I9Js+grX2d6GUkzQ2kFycK5MlivoVVWUFp8SMF l+OLTk+GoUQ9kTVwSNzCB6hmXSDbmGNkYE6aVPNSNzaeaxd/hFRtXRqyfVd5sOmUD6Yo ui1w2/FzxRkIZx+z3yHeTyQeKe/CuVLlQ4oGOO7edfN9oLBVkC+EToytWiRzfxuNb21v X36KdMJqWgFXZDAUMmt+HYL35MJvI/sK5LMqQT0PKm01HFtlYY1pt3J3jI4yy7DBRrcT 2fFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=VlrKxw+VvMR/B2/OEK1LRkzLYJq9GJJY51WC8P6NIMk=; b=G8TebmT7UhanwfU+59WdZf1OF4VsbjcRz3wBcxnvUtp3+oP2/Lnh3dUwriBCVLk2bR 7j/56kRZRJF5lpwSjvX33pUFQ0LThpvl4Y+sKuTUgofEu3qiRwwTIHz7xRfcWlqf7eVY PU2ZJge/C2Js7ZSr7B1yidr7whyYx3UTbsNRQc1QZ2PbVSQTqrepuG1hn81rEvKaYgMz KN99fjGrl/IeqczWTnE955gmyg+GdnuC7bFTdkfOIOYDsKlMEHEn48g303b3sKhou/y6 KwVB6C3abVkgHdRwQancNzrs3gh0bQz2squpBgbWgKoB6l2uCIlbq/C6vpHQVLNqHRR3 Svhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co9si6286375pjb.33.2021.04.08.06.45.18; Thu, 08 Apr 2021 06:45:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231759AbhDHNoT (ORCPT + 99 others); Thu, 8 Apr 2021 09:44:19 -0400 Received: from mga14.intel.com ([192.55.52.115]:49529 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230467AbhDHNoT (ORCPT ); Thu, 8 Apr 2021 09:44:19 -0400 IronPort-SDR: D0IDdpfWIPGn71mElnTLQpn/Azhp9Ocee2S1xKw4e/VDboEPJy6FnCA6YvydRcfsyuLVzcb7PA bB34oavQ42jQ== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="193083305" X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="193083305" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 06:44:08 -0700 IronPort-SDR: pNrSlgTlZdTqtJX7jbiAg0jD68NtTajV16pphbVVkRI//nol6aVyCEb9VhRN50o5sv3qWzJH17 3Xys1RtdtFPw== X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="441760078" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 06:44:04 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lUUwz-002IhZ-2n; Thu, 08 Apr 2021 16:44:01 +0300 Date: Thu, 8 Apr 2021 16:44:01 +0300 From: Andy Shevchenko To: Syed Nayyar Waris Cc: bgolaszewski@baylibre.com, vilhelm.gray@gmail.com, michal.simek@xilinx.com, arnd@arndb.de, rrichter@marvell.com, linus.walleij@linaro.org, yamada.masahiro@socionext.com, akpm@linux-foundation.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, linux-arch@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [RESEND PATCH v4 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 02, 2021 at 10:07:36PM +0530, Syed Nayyar Waris wrote: > This patch reimplements the xgpio_set_multiple() function in > drivers/gpio/gpio-xilinx.c to use the new generic functions: > bitmap_get_value() and bitmap_set_value(). The code is now simpler > to read and understand. Moreover, instead of looping for each bit > in xgpio_set_multiple() function, now we can check each channel at > a time and save cycles. As promised, I have looked at this with a fresh eye and NAK from me. Sorry. This is less than a half baked solution. I spent couple of evenings, so I'll come up with full conversion of this driver to the bitmap API. And yes, as I have told you like half a year before, bitmap_get_value32() and bitmap_set_value32() is much more useful (and I actually implemented them locally for the sake of conversion). So, summarize this I do not think we have real users of the proposed API. -- With Best Regards, Andy Shevchenko