Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2297687img; Sun, 24 Mar 2019 05:10:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9H3CnQ+kz8ibaUMI1wPgy0SWSNQAsPzKZFbzNh9DsQtgnW3K06hKm/+FipHo0zTHSUoq9 X-Received: by 2002:a63:cc03:: with SMTP id x3mr17973699pgf.121.1553429447977; Sun, 24 Mar 2019 05:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553429447; cv=none; d=google.com; s=arc-20160816; b=Ryf+JXzkIf3GlY0cAXaiEMrrClWPNFrxYscVYqs8SKqfVSACGfRqEyUpO6UsLyFMfi weIkjtq3L1WUch203njL7LhdTxXdUSxDQzu8y8JuT66Il18wYjFksLXQeXSENi3uekRv 0zc9uPbCOn3flE8Z7ceWEyOgQ73mcrcfymNnDuy5ycB4qTsx13FnP8IAOobCek19dDPR kl6zkWpeNsXHkt7RBdyvnaQeMN5unDK3X+2P3SXhdnXsIOHzaXQg4FKsOgzgY9pXTNrf Z0F14KHtND2QmsXRl2ttv7DH+EQ4GIlKwj2/Eo8AhB5ZuUQdo0/7nQRm4mvNbM4Hdy/R +z3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VHMQh4Fxw7DuEssbrRlPu0oxFwy4l1mv21FNEgGkcOw=; b=w0b4jP20gcK3IUPWFzh3BENIz0GjaUub5utCt3XcHKwZwHE+nxtrudAkHZLE2xiVck n8QHh6Xjvnf25nJuZ5NFHIaxZpBK+FdMBF0v22yUhsVD6OeM/aqvSYDR1ofs5S8B5N3K BQh/Yn37oebv9EuM/OEaTpTNSf4XLEW4FYIhzJOci2y2om0Kso6SbYfvLUb9zMNr3JRa bVbE/X/mZOEFIG5yhN/ioIEH81ZwfradoRJKkEzmlFBMeHnY2mXYoq9K83ah0AtmP2yB oMHfP2UIqbHFIZYLQLsGINuP0Muk4dixN1CTRvBQnR3WEuwxlXjMBqbxweVD85cRau2d cRvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="dt9t/cVZ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g5si10951577pgq.486.2019.03.24.05.10.32; Sun, 24 Mar 2019 05:10:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="dt9t/cVZ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728745AbfCXMIn (ORCPT + 99 others); Sun, 24 Mar 2019 08:08:43 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34452 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbfCXMIl (ORCPT ); Sun, 24 Mar 2019 08:08:41 -0400 Received: by mail-pg1-f193.google.com with SMTP id v12so4558165pgq.1; Sun, 24 Mar 2019 05:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VHMQh4Fxw7DuEssbrRlPu0oxFwy4l1mv21FNEgGkcOw=; b=dt9t/cVZq7y/Ccz8c+ICIfRtP7bCCAmeqzihhAyFEsdi33gJuQQUMoOpYJH/UHg76r MAhFHApB9okRHR4ueCbVi8tVlh71c5Vmvtd8EgckSQpl4t+t5mtz+Kka6S/vtZrZyjqD hOZphzhukHDJAZHqFxgjEyIH1XGMgM3hDrxI1ePsD8dT+ivd4xB88+oDAZipIGf35H5+ yMZhi3aKnFU4blxYG+s//jOyCkOqhnqm2HgIY5jWMoPwSAkrYN8r6r307hD/vsVqtmBJ 8Wppn1SsuYNXEaOPu7P5RUV2L/AfdpleOZOPvbmCVSR6yTLzL6yMfybK/EC7wO5C8ym0 bvmA== 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=VHMQh4Fxw7DuEssbrRlPu0oxFwy4l1mv21FNEgGkcOw=; b=Wd6+O5AWqkJ6PI0H9If72Ls1xtMsEZuM5EhulFFTc3cL1AOlrOSJ5rpTPZdfjNFdRL VY4lYdJgJn3YZtrfZgRFeegMRgqQCwhFnVu8XNX0bA5vPVESWl1fvUXiZhG+HJ7E+Y2n JzJN1FjchwQ8xVx1lLMm3AELZ8e+9sHd4/NN8xOyjtzwGDH2dtcfhBvAYPWpFsI1lq/r GkKNitTZZzEv7FVXySc1/Z7GLH+Mgl21IY4heJMhrhJcX/vtjHjQrnebMlk+10LvebbT 4c21lSIAseYddr68g2w3FtdKgKh+Jmdfyd4xWdkKpJ3hxNBofg7aJR3uP8lMdOekqcRM svzw== X-Gm-Message-State: APjAAAVdVi/hWiqddFs4jow6coMo+ryTdXIk71Be37nxXuGdhK7N0OMs CScKH/sabULW1IKQocbRfHWTuXpNpLn0felBlWI= X-Received: by 2002:a17:902:8349:: with SMTP id z9mr57954pln.144.1553429320607; Sun, 24 Mar 2019 05:08:40 -0700 (PDT) MIME-Version: 1.0 References: <20190322191202.GC9224@smile.fi.intel.com> <20190324040704.GA8285@icarus> In-Reply-To: <20190324040704.GA8285@icarus> From: Andy Shevchenko Date: Sun, 24 Mar 2019 14:08:29 +0200 Message-ID: Subject: Re: [PATCH v10 00/10] Introduce the for_each_set_clump8 macro To: William Breathitt Gray Cc: Andy Shevchenko , Geert Uytterhoeven , Phil Reid , Linus Walleij , Andrew Morton , "open list:GPIO SUBSYSTEM" , Linux-Arch , Linux Kernel Mailing List , Rasmus Villemoes , Masahiro Yamada , Bartosz Golaszewski , linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 24, 2019 at 6:12 AM William Breathitt Gray wrote: > > On Fri, Mar 22, 2019 at 09:12:02PM +0200, Andy Shevchenko wrote: > > On Thu, Mar 14, 2019 at 09:29:32PM +0900, William Breathitt Gray wrote: > > > Changes in v10: > > > - Fix off-by-one error in bitmap initialization in the > > > test_for_each_set_clump8 function > > > - Fix typos in clump_exp array definition in test_bitmap.c ("0x28" > > > should have been "0x38") > > > - Utilize for_each_set_clump8 macro in intel_soc_dts_iosf.c > > > > One more, can you look at gen_74x164_set_multiple() ? It seems a candidate as > > well, if I'm not mistaken. > > We can utilize the for_each_set_clump8 macro in the > gen_74x164_set_multiple function, but I skipped over it earlier since I > noticed it used the BITS_PER_BYTE define rather than a hardcoded 8. If > it always loops 8 bits at a time, then we can use the > for_each_set_clump8 macro; Yes, see below. > otherwise we would need the more generic > for_each_set_clump macro to handle the non-8-bit looping cases. > Will BITS_PER_BYTE always be defined as 8 bits? It's not correct question, the right one "is the hardware always in 8-bit chunks". And datasheet is crystal clear about this. This very old and famous IC has 8-bit from the 70-s (IIRC the epoch of the design). So, it is always in 8-bit chunks. -- With Best Regards, Andy Shevchenko