Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5725752imb; Fri, 8 Mar 2019 00:32:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwjdE6+g0nFJqVTqRyNiBA2ITz/y0WJT8vhcpt/hqMqdKAMv9EKXL7abk1fE6AcXv3SWXln X-Received: by 2002:a17:902:b58c:: with SMTP id a12mr17577154pls.102.1552033923807; Fri, 08 Mar 2019 00:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552033923; cv=none; d=google.com; s=arc-20160816; b=qITn8BlUuquttoAbKfBN/O1vA90ZW1rsWlxkvHCPr7tc0LuPGZz6jm40SryFV6ZeD3 XRtgr2UExut1KPQ0U2UTLi1t3crByQzTH+abkoVyf6LdH4eWO+J8Nzz4os75CAHAYWjO +SJbQcosoFUrtsra/rfWYRm82qM2L/AqKJ5UnpsXiNl83oEVQKzePgPExpEeskyoEPIX tcNCYc+u2yBpy51B8pv1FfPFtjM1dbArt5RllMq5NpNhVmv8ijQmS5r9Mh9TjWPaeaES nz4WsB0t5o3g1FsBgFyNZ1TGZzfDDIG+/vYYT5MKLQ+rRKoaLpHk/xs4V62zNbj3pKaF PZ5Q== 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=OeGknBImCwDa6WrD4Xh0Jx61jsaPHf3owyqhxOIhbAU=; b=YCjxBP11kja5KQ1hvVfDqE1OKKVSJE18jGaiw/Wjn8qukdnjW9VoXH2YrsLTsAlFV5 vDwHQTxNd0fVPjkEj83VpdvqdLa/iISehGOGzbjZldlbv3TIBqhOZNZpKXvZ9+KDfK2y NxO58ZkH5QWaAj4qjysk5zyneG8GcsKWvAS/CT1eG8rg3mJLEVWY/deDcy+lJObQIe1s 8vUrOgQb6gq1J2HwD45mVtkqE67gUsUL8+m5MFsccoQO/oDxWnxls3s9V/3119YxB20W V3JW4ztRAneqweFRhRYiLPq3zPTp8MksluI8BfVbnckJKCeREXGKYVHLihDu4SciaNfc 3cuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rm9BhiV+; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z64si2915483pgd.505.2019.03.08.00.31.47; Fri, 08 Mar 2019 00:32:03 -0800 (PST) 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=@linaro.org header.s=google header.b=Rm9BhiV+; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726298AbfCHIbO (ORCPT + 99 others); Fri, 8 Mar 2019 03:31:14 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:45367 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbfCHIbO (ORCPT ); Fri, 8 Mar 2019 03:31:14 -0500 Received: by mail-lf1-f68.google.com with SMTP id f16so13703503lfk.12 for ; Fri, 08 Mar 2019 00:31:12 -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=OeGknBImCwDa6WrD4Xh0Jx61jsaPHf3owyqhxOIhbAU=; b=Rm9BhiV+WwauLBIh0Vylx3DsxkTOcwI3R1J28jrRVWvxIG3JQRnNE/aEQyvq0wGmOE YUGAkNFgHc3DsqnUWhRINWViY+Hu+0RbW5DS8DmehC+G61RVYWuVwXsviMrdYVadfVfx pmK1A5zrqN+afJonTDbUNpCyfjbN2UJbMQ1UZUeSbpYgWZ7hvQ+vQSuzNVMOKlskJ49K quuwFdvLrRwgAmD4kloq2avbfOi4vJYNJ/zfhFpQMy0A95oBYIw4xg8GB05AR0rcDRDK jp4BZKD6Dl/3NBw7irfJBF3sY+BOEuB2nf+YRNBOeOrSB0arNERdsrCpHvHlVfngA7Ej fXCg== 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=OeGknBImCwDa6WrD4Xh0Jx61jsaPHf3owyqhxOIhbAU=; b=IF00lnb5Repqs/8XR+Cpv9c7SRENFvSO7+LR50lmE9Tvl2GPncaXhapEjP74hsqdda 149+WMu7gUkVlusWtFiuLF+w9o2J3ltRe5u3Fy+xTFnT8mdF7Ha4rJG2QvT5Du5XhO9h PufyK6LmfAj1+ybqm0L5ujbUVEmFDmpFiL1z7ufSmn2NwdDgsGVP42QKxMp5jf10ir98 lyRgf7yF7ZqJSjGIDb+YGO9m1H1YcqYAXhEEhGXEwT8oq9tCm9uAfhcGNHcHeUG7rrpQ PqK+Gkq0IUyfbiD5ZwrkPrLgtX7KrJq1DvLxDCkV19apQ9vhohn9g4/7hkTjIC56gV2S dfyw== X-Gm-Message-State: APjAAAWl3wh4S8Fur4b7zc3SVlbO4TVCT8tKQIg4oD3hIzESi64WOhae bcgPUqLNiauaqXGVviON4MpQ9SzFz7AiWCrVuKCIsQ== X-Received: by 2002:a19:9e8b:: with SMTP id h133mr3524932lfe.167.1552033872019; Fri, 08 Mar 2019 00:31:12 -0800 (PST) MIME-Version: 1.0 References: <12b3a364ac7fc32194fa6f55911dd800aca92a56.1551598603.git.vilhelm.gray@gmail.com> In-Reply-To: <12b3a364ac7fc32194fa6f55911dd800aca92a56.1551598603.git.vilhelm.gray@gmail.com> From: Linus Walleij Date: Fri, 8 Mar 2019 09:31:00 +0100 Message-ID: Subject: Re: [PATCH v9 1/9] bitops: Introduce the for_each_set_clump8 macro To: William Breathitt Gray , Andrew Morton Cc: "open list:GPIO SUBSYSTEM" , linux-arch@vger.kernel.org, "linux-kernel@vger.kernel.org" , Andy Shevchenko , Rasmus Villemoes , Masahiro Yamada , Bartosz Golaszewski , Linux ARM , Andy Shevchenko , Arnd Bergmann 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 3, 2019 at 8:47 AM William Breathitt Gray wrote: > This macro iterates for each 8-bit group of bits (clump) with set bits, > within a bitmap memory region. For each iteration, "start" is set to the > bit offset of the found clump, while the respective clump value is > stored to the location pointed by "clump". Additionally, the > bitmap_get_value8 and bitmap_set_value8 functions are introduced to > respectively get and set an 8-bit value in a bitmap memory region. > > Suggested-by: Andy Shevchenko > Suggested-by: Rasmus Villemoes > Cc: Arnd Bergmann > Cc: Andrew Morton > Reviewed-by: Andy Shevchenko > Reviewed-by: Linus Walleij > Signed-off-by: William Breathitt Gray Andrew: would you be OK with this being merged in v5.1? If we need to move the code to drivers/gpio that's OK (though I think it's generally useful) but I need to know to proceed with the William's nice optimization of these drivers. Yours, Linus Walleij