Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp341413pxb; Thu, 5 Nov 2020 01:12:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwg5QvK48ilSGgmEaDRLnuGtBIQkjbX3a+ufpTjN9Jvd3F5jaA4M9mwxeXAWj/pwq9n4W0l X-Received: by 2002:a17:906:c096:: with SMTP id f22mr1317466ejz.488.1604567579246; Thu, 05 Nov 2020 01:12:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604567579; cv=none; d=google.com; s=arc-20160816; b=CV0eLLi3Vdhuvl1ZUYlsrpqrXrzWFJOc2HYrSq/hCdL8Nc1TEFLTSFTfm0laEp8oqr h4my3/5SSCeqheYIMnEqgbzGRL6PXXoNy5Z7EOWKhpi1BvlPw4Ze0aQGDI0dlx9fdNeS oQTruBhoRVPputcAiOm+Jj9pZi5TzfnBDXzgfsL9PlVTemAPNcky/D+nBth6XzUx3gat YNbCIY/xaWDZDXU6DR+iUb0/RYb6HquLjYcjZDHfys/BKbgKPPkMKXSNnhENDBqxx7vT BkhMZ+GZTo3Rle/iS4nnFeCFFTU5R6kYQ1+9uK1kFYTTAmrm0SjLaWOq/uAK/q9NS5p8 NEaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=R0y5gVIpn/AdoIrclQ35fvG8jExsjx9oUlGQ4SSdRvM=; b=XbLqHgY9tts2bl4bMXt1UU3JSkJ36GthHTCOyrSnCDJExIWQCDg/Nhv4PwPFjdslFj CrA4KTkUdeYwCVkxyxVG8DmmS7gJnlymMRbKrAR8nutiUjsGjc9SypW7m4jrHot4+ZhX /qHgzV3YlU6sTPlMX0zUmzYLHvaMYzzyBT+mCyNWfNPF/cMWwm7KupZfemS/VIVI1Tky PyYTDwV5k2bC1rTCY4RA9aqh5hyPMpbsPNvwf1SfL3Ch4yWANyqf4MJPxToiO+yBhNrc /G4qfi58+LZS+bpSaZ/EQcq8n9Tmz3xFMK03VFsNy/B9b8f4KztS/Gyk2dczx+NBUdcm SmVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OBDEBRw1; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si825620edj.45.2020.11.05.01.12.36; Thu, 05 Nov 2020 01:12:59 -0800 (PST) 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=@linaro.org header.s=google header.b=OBDEBRw1; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730766AbgKEJLK (ORCPT + 99 others); Thu, 5 Nov 2020 04:11:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbgKEJLJ (ORCPT ); Thu, 5 Nov 2020 04:11:09 -0500 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79297C0613D2 for ; Thu, 5 Nov 2020 01:11:09 -0800 (PST) Received: by mail-lf1-x144.google.com with SMTP id v144so1186110lfa.13 for ; Thu, 05 Nov 2020 01:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R0y5gVIpn/AdoIrclQ35fvG8jExsjx9oUlGQ4SSdRvM=; b=OBDEBRw1XQC3TF3Ujh14Do4dSNZfC5XcJwZ3/bgFQ+sx4K3XUmiyLaQCtmaraJniD2 dI4T8c1xdRCYc6hOieisMIn/BXIYYXXtbrCoXXUVcu/n+dNMu9HYYQeMgGgHgLzHavoN LVWiu97oelCd0Chcpw0NeQODveRSIQ3u2xOhva3fn5rWs41Uv4WPEsBnKriGOIqQzXaw F2ndncW0lLmvkp/UJuETbVOhB9Xu32Mzoac95D9wwg9vHDOuqEoFLTr3BRoVVNWUSiDY ZMKimJPPn31JOs76+XDZArTABgEXph3X4yOAOpezGHK0+DR1MN4bp/BbwS4ynjAbxx0E mN1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R0y5gVIpn/AdoIrclQ35fvG8jExsjx9oUlGQ4SSdRvM=; b=N4rU4UxkpitmzRFTxGK5y0z8D+BwcwL0Mzmi5vyGwNghAXLtMkG/ifiQws7JR4RVRY 3hhPke5w4bAjgbQTRTZhOUKU4nLKbbephEpML46LBhEemkFEokblX6hy9bmmgWUmlE/T nuaK407LdbDla+aEV76oemP26NOv7eeRs0ZPO8mwMuJH2CqwY9Ni/1Z7+2cIpNzle1Lf di5kwc8MtYEhFXblldj6Ggs8H4JiBW0JmErsBRLXQGh0Qz4652lcMNtBHC0e/6/uCZ5h D1xwuijiY/cPAhkf+1L2+/AOl7k01UXj/VRGP6XQ+4ZTzCN8zHT1ZYQZY7ju4J+Ny88J 88GQ== X-Gm-Message-State: AOAM532RVFuwHakVEcQ7BDkIzGyRF50xGeX9W6VdeMTwoYz0M/8BV4tK aQdd6D34qyiuUsiFMUEBOHxRbu+zfOletpmUQ62612oa/7Icsw== X-Received: by 2002:a19:824f:: with SMTP id e76mr564699lfd.572.1604567467941; Thu, 05 Nov 2020 01:11:07 -0800 (PST) MIME-Version: 1.0 References: <5e94ad3c156b98d2ed28617b2ca25bacadc189d5.1603055402.git.syednwaris@gmail.com> In-Reply-To: <5e94ad3c156b98d2ed28617b2ca25bacadc189d5.1603055402.git.syednwaris@gmail.com> From: Linus Walleij Date: Thu, 5 Nov 2020 10:10:57 +0100 Message-ID: Subject: Re: [PATCH v12 3/4] gpio: thunderx: Utilize for_each_set_clump macro To: Syed Nayyar Waris Cc: Andrew Morton , Andy Shevchenko , William Breathitt Gray , Robert Richter , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 18, 2020 at 11:41 PM 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. > > Cc: Robert Richter > Cc: Bartosz Golaszewski > Signed-off-by: Syed Nayyar Waris > Signed-off-by: William Breathitt Gray > --- > Changes in v12: > - No change. Acked-by: Linus Walleij If Andrew merges this through his tree. Yours, Linus Walleij