Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2020218ybz; Thu, 30 Apr 2020 09:26:52 -0700 (PDT) X-Google-Smtp-Source: APiQypIkyCfO6yxXiQd5BVi/gHOMxgH4buTUw9jstHrr9nzpQrw9F/hjlUeunpDFsEL63wKppiBI X-Received: by 2002:a05:6402:204e:: with SMTP id bc14mr3607133edb.199.1588264012077; Thu, 30 Apr 2020 09:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588264012; cv=none; d=google.com; s=arc-20160816; b=NO5EGjscBIY4GE98/IoAp20H94JLCehQR3wpiOcTXyCUTIDJJw+iHgllgsFxbO85D/ yJzDCgC13p+J3nj1sWrVcuUYv+jUxdWLHLnYdYfNL1D7SzJbODvn/MyuwHt1oY1zWDFp wczgxBF4p3ogdqJ2oqH+I1yaGaPbJqvPTJn+CTU8weuu3uZj3ci81A9bt4CVWEfWcI2z fK9zb7K/XIFE1P7bVTlN3n8rWHzdjrDTwLJ7jqPvBJ8UbYqKDPCcymavdYQSWBd4HPlQ 2C0oFFFF85kz2Ie9l5lUenNKd5XF5s/3SPTF85iCcOpdIbIl/72R47IOU8byPgcp9oWK 7Qhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6hCrcx7D1IDeNZAz3WM653SH5Zf1li3FyaYMgWSZV10=; b=urLIWNLpbgsCOX2fgYuKXoQMgJmPVb10wapQiSYndqLmD08woxgvJUqEg3EEWgkCWX xkmItnpigcPSFIKw3T3rQzfPjT9hmoH72YpQkDwKsQ5zgrCAtQE+ewgFl0gTe0vnjAPo jlcLLmsdVoGK4HBVaT6ojf5xtoW4sWoQ+gi9Up9KO/Gh7zEt7cfiEUnvC65bbN8jXUok kLqjsCJI67IAwz0jfOmxDBKYGP1AtLrIQh6lo5EEAt1hbyJxb99746gI8+Zmbu2uhViu wJz/uRfM0xQ4f/Rz9r/Hnnnis0gsQnpge7buaFoFi5bJzD+VI1uFII0XtY7elWccOLMI KRcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=khVobuD+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si48296ejh.494.2020.04.30.09.26.28; Thu, 30 Apr 2020 09:26:52 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=khVobuD+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726782AbgD3QW5 (ORCPT + 99 others); Thu, 30 Apr 2020 12:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726411AbgD3QW5 (ORCPT ); Thu, 30 Apr 2020 12:22:57 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF4F8C035494; Thu, 30 Apr 2020 09:22:55 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id q124so2959543pgq.13; Thu, 30 Apr 2020 09:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6hCrcx7D1IDeNZAz3WM653SH5Zf1li3FyaYMgWSZV10=; b=khVobuD+wLTE4Vvd7irrCNwIATVVxx7BODKqed/nvfb3jaKN0Q9GDkfdJmkhc7NFFi w8e9KCeKqgbrVN7D5MeL8v7DwyUWF3UXnx+2qFFr8jxS3Q1qN3Czf/7pnXcEWeSW9kSw pHvra7EV+7IMRR84eg5q5QRCqs3ewkhsDaetsNTPPoXhVUah5c+ktzzxfFa30qRmlC9T FEZi7+WMls4qiMh6sCWMMndyRyUu49dWtGkVIR5rmheWxu5SoZR+3gCDqtM5wrNWHzG+ 5qeQGGheakucxv/8CdAu3JAU2xM3xwKqG8D+U5cakfUfqFHjL0yxCGcRR9YVaY5xQi4M lY9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6hCrcx7D1IDeNZAz3WM653SH5Zf1li3FyaYMgWSZV10=; b=cXZcqAeHqdsLTJOXVIn473z855RioLib5eK+GvFsTCfNd9gY56Flu6hozlnl7bQR0Y fgTAkn5NxjXTUtkTBurvXxl5PGbXvZHOssGfpCwm3iGc/P48ewfrx8uY27n/qMDsLjEO S9l6g+JEaKtJ4mqziv2dRwafvv0qw35ZdFsIkslg4qZ7DrQ11k26ccv3vWbjtUwk7p/o 5gNcI3Fs9HymBLDREBaIGjBi+CMnDUPU57xixK81FxMxeXt4TaLeE1C0n5oWid3lYaeT SLUTACorYjj3re4JqCzVNsguWz+dVH2tb00DqHhx5s5g9mQLFjiQd0cMeF0visg8zKdN SjjQ== X-Gm-Message-State: AGi0PuaLLHwSO0rwydCdZQDhpSbWzNFr4PLp7eQ5U23r7mXaX6XWpft5 rGSyG/Uhk5TSr+u86+rRKa8= X-Received: by 2002:a62:158f:: with SMTP id 137mr58768pfv.219.1588263775318; Thu, 30 Apr 2020 09:22:55 -0700 (PDT) Received: from syed ([106.210.97.7]) by smtp.gmail.com with ESMTPSA id 3sm258099pfo.27.2020.04.30.09.22.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2020 09:22:54 -0700 (PDT) Date: Thu, 30 Apr 2020 21:52:46 +0530 From: Syed Nayyar Waris To: Andy Shevchenko 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: <20200430162246.GB7107@syed> References: <20200429101742.GE185537@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200429101742.GE185537@smile.fi.intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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 01:17:42PM +0300, Andy Shevchenko wrote: > 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? Thanks. I think you mean macro definition. I will incorporate this in my next version. > > -- > With Best Regards, > Andy Shevchenko > >