Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3826246imm; Mon, 15 Oct 2018 05:00:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV60IiRHqQa3BO/YRJrh+4fXXbxSc6VFCchpDy0YBpkQA0Si+GhCBOSbOfucWYiUaaFj+QZQT X-Received: by 2002:a62:7788:: with SMTP id s130-v6mr17231642pfc.189.1539604824753; Mon, 15 Oct 2018 05:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539604824; cv=none; d=google.com; s=arc-20160816; b=xT7IrI+6qVO29xz3eI4hCL1U2X1ARvZGiX65bRrZrs3xSgrxRMdl5PY/zmBmfv4dOc KflkbrpSpPQKKk094jLx6q8xvsIGKDJ3iylzoKwgSJaNRQanoCivQ+NvxobuS199YLpx hWaNPO1DkS7qhlNl/UoZkD0IzEmAT8OJ+Tf5eDIacC+6GxONFspiPNHBKEcOFTEWiB6k C2SUSqzvVMQiaFzTPskq10b9S1pO2GIDfdYNX+aFVZo8U1IUNqKRXlc15I0NVhcKLFj9 mfjkiUYcCYshGFc1ME11DIHjg5JTjkqBDzqyEBlKjv2AVIofaoB/EUtLfn5HlaP0WndZ G59w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+wA/SSIjFiNKtL2S4Mc/EU0I/dZapFfAaR7iRgtXDdA=; b=GpTyv7faHGhG08dad0H5M4QoGAUpwmt4cbR7xfGLT9doSRA8EYlnvF6hTMr53rEEhK 82PIM2y2k5WxPwc0YLiFajm1VYgHM6j9Y43Exf/vwnCpVAsVH3e9TQFuDD5X6INFb0Ph 2KMCi98QeeCpyRpmd9YfSEdxLimFXRN0whBqi/WJOMwksRDzntHPGg9qW4U1g6weU4t9 OAAQByJUDXImOwGNvQ3Thx8oWgybbeGWSRa1e2ylHcX/RYqSw5QEO2kUDxlosr83iaHv 0JKL6wjmVhEJk4jsy+2a0VZLCgs48u+ACKtNYL8eipZVPC2UqqVxQ8iAXEY6oLVlYwbc evzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=RVvS+WT+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20-v6si8877376pgk.586.2018.10.15.05.00.09; Mon, 15 Oct 2018 05:00:24 -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=@rasmusvillemoes.dk header.s=google header.b=RVvS+WT+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726702AbeJOTog (ORCPT + 99 others); Mon, 15 Oct 2018 15:44:36 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:38248 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbeJOTog (ORCPT ); Mon, 15 Oct 2018 15:44:36 -0400 Received: by mail-lf1-f66.google.com with SMTP id g89-v6so13860935lfl.5 for ; Mon, 15 Oct 2018 04:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+wA/SSIjFiNKtL2S4Mc/EU0I/dZapFfAaR7iRgtXDdA=; b=RVvS+WT+lKAKm2pO0Fqij9wN8kfcI1iuSnsX5m6iVFWGI7IB5ibffNv+0xJbPTQhvY Gb6TWl8oLFKgTGZaEfZFq/8P3Ie2RNpMMysUsSmNLT7OoQJRt+3gk8zWmYbwEVVVZhoX qEhoqmRvk56ij+T2F/4wISaW2CqXFMQ6hrvLk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+wA/SSIjFiNKtL2S4Mc/EU0I/dZapFfAaR7iRgtXDdA=; b=aiUduWN09iG2+4xqAk50TLEi9CSKjz7/M5Jl6a8W3JYB266n8qri2JT8i/NOq/TFko ogEgD+SQiQcH5qq3eN5Pnpj/9D4nPuRRk11modWSxWLWebdpU86Cd1prmbcfPaqB/ZJN rMUsePlbxaD5zu4rv18BaXSRESxAeOiTzXNgXHzhKZMOX/184EF9vq6yVUD1QNZClJ3L R+gARi7BvbmcgYJwiFcnETGOihETY++Llb706bWwV2+9XkGjjBtlC+Tn1MjqBai37mhy 6RbmyMDL4jIAmKgPmf6D2ckhdHbwb9z8wkz+nyza78/sgA6cc9nBjgURihG0iIKxb6rY 4JBg== X-Gm-Message-State: ABuFfogkfofv096D50wQyAsXw4ACyc0x7UngaHuxM2DwkCG3+KAQKcao ugreAXAann4eNXZCQoAjfb++sw== X-Received: by 2002:a19:cece:: with SMTP id e197-v6mr2191420lfg.152.1539604776037; Mon, 15 Oct 2018 04:59:36 -0700 (PDT) Received: from [172.26.255.55] ([193.47.71.171]) by smtp.gmail.com with ESMTPSA id b132-v6sm2141550lfe.56.2018.10.15.04.59.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 04:59:35 -0700 (PDT) Subject: Re: [RESEND PATCH v4 3/8] gpio: 104-dio-48e: Utilize for_each_set_clump macro To: William Breathitt Gray Cc: linus.walleij@linaro.org, akpm@linux-foundation.org, linux-gpio@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, andriy.shevchenko@linux.intel.com References: <5906381114b14d5b0359510a1d23accbd239eaa5.1538441919.git.vilhelm.gray@gmail.com> <822be05b-092b-41c2-3c31-8981acd5cb9e@rasmusvillemoes.dk> <20181014041933.GA7335@icarus> From: Rasmus Villemoes Message-ID: Date: Mon, 15 Oct 2018 13:59:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181014041933.GA7335@icarus> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-10-14 06:19, William Breathitt Gray wrote: > a bit value of 0 in the > bits array does not necessarily mean the input was not requested, but > may instead mean that the value at the input is 0; sure enough, but... > therefore, the caller > must keep track of the requested inputs rather than try to deduce them > from the values in the bits array. ...I don't agree that this logically follows. A caller might reasonably expect not to find any bits set in positions other than those in mask. A simple example would be caller that just tried to ask "are any of _these_ inputs set"; it would be reasonable to implement that using bitmap_empty() on the returned bitset, without first having to mask by the mask he passed in. Rasmus