Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp453266ybz; Wed, 29 Apr 2020 03:19:49 -0700 (PDT) X-Google-Smtp-Source: APiQypIcbnM4AYgLZfHqqbrjC6PG/oMXj26fWvm6oJzshz5GzfPAVuKxS/VkgcRncip27C7nMvJH X-Received: by 2002:a05:6402:1296:: with SMTP id w22mr1611998edv.364.1588155589803; Wed, 29 Apr 2020 03:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588155589; cv=none; d=google.com; s=arc-20160816; b=YMj8sH0Adl+y8emq6KYNIfnzICJyDSbhfmZTXZQ7qQIMbODEsLf4ac//KFkIyvwzJv EUYzqIMTk7c0qq+I/pkT23XmcLdsIMdzjaveCeKMdEjud9X4igAAstToVS+q7EFL/yoJ lWlYwbpfhyIh8MxPj3bBN/uBNZLS+jT5JwYYxzHLLGipr4RtQ73wjO+hYlskSd2u6mWM 13HWw9lwj6R0hCWez7OL+/rd593BbOBvP4LozfTaVP/06z46AqIiyg9v3q+RUKN/iXrt jwZOsx2+mUOKitJisjBOW8yHKO2EMELP9Sie5UiByvHhPt2iSDmlsP6XHxZOl+D1DCbN R67Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=aPRC83RCQKNBiH6Y5Rf3DXJG5hZP6OFEHSSiHMEWrAo=; b=HHoEkm4hsUj2/BeSvq05OoEYzuD5vVhpBZEe+MBQ5NyTuVbOI/hydxDOgc8zrj7vTq WWqbeEUJfo743VP0zCUkEZbhuJIFCcy/7gwIY63TdwsyhBlJ36OHVgBhpTWkY4cBqiKE 2hqBqKWtA/NkVPqF1T1cbRcbBIzNZ0EqUP1agQ6M6syGT9V/jx41IiDu+qsGm8PO0ieT NvR8AH/i6VDwitzhgizoS3dH7fBZFkv8sCkYIUKAZGslTZx753/0mckeRGSohoAwSLj6 D3XOroGt1Tv1y9G9bbH8/ekbF1NkenNzYH8M5xdUtYY01aieNhjLw+UH72tSv8Sq03K0 8uAQ== 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 t24si3405530ejb.144.2020.04.29.03.19.25; Wed, 29 Apr 2020 03:19:49 -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 S1726800AbgD2KRn (ORCPT + 99 others); Wed, 29 Apr 2020 06:17:43 -0400 Received: from mga05.intel.com ([192.55.52.43]:30681 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726621AbgD2KRm (ORCPT ); Wed, 29 Apr 2020 06:17:42 -0400 IronPort-SDR: 3IM+E+WeE7+4VkJwoxzrB9BZH/FghVldTZDBMh/hAJ66IYSWnFsXUT1fAw5/Uv2964DspL7cIm MEQgNmVnTo1w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 03:17:41 -0700 IronPort-SDR: eE+O1+6e1XtGtd8JUdDlakeYwWPFk4LNtvwubLqQnCneIupXarg2zWhgxwP/6zJHH+XbmHkf8n cqRnVG+imodg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,331,1583222400"; d="scan'208";a="276127910" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga002.jf.intel.com with ESMTP; 29 Apr 2020 03:17:39 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jTjmg-003huG-1Q; Wed, 29 Apr 2020 13:17:42 +0300 Date: Wed, 29 Apr 2020 13:17:42 +0300 From: Andy Shevchenko To: Syed Nayyar Waris Cc: akpm@linux-foundation.org, vilhelm.gray@gmail.com, rrichter@marvell.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/4] gpio: thunderx: Utilize for_each_set_clump macro Message-ID: <20200429101742.GE185537@smile.fi.intel.com> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 29, 2020 at 04:37:41AM +0530, Syed Nayyar Waris wrote: > This patch reimplements the thunderx_gpio_set_multiple function in > drivers/gpio/gpio-thunderx.c to use the new for_each_set_clump macro. > Instead of looping for each bank in thunderx_gpio_set_multiple > function, now we can skip bank which is not set and save cycles. > + const unsigned long bank_size = 64; Shouldn't be rather definition? -- With Best Regards, Andy Shevchenko