Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5715025imu; Wed, 30 Jan 2019 02:18:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN7hiyryQuqyvJlUYqZJ15c1MtDDFQ7cLsCBay08AKFs5wqLhpHrFIiPdHcRSbLUr8l51ALZ X-Received: by 2002:a63:e711:: with SMTP id b17mr26277750pgi.363.1548843510064; Wed, 30 Jan 2019 02:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548843510; cv=none; d=google.com; s=arc-20160816; b=gMgKyITVqSvaTlA8qu/PXleH3NleoWXBaXFyqKbQozHD0t3b6eM43SNRk4giftFgGD MndT6KKr1snI7adgevBCvXcwDYyzcJ2qTUt3lc1O9vakNRqA7uOw5uts9TnWI09KNybb fEw9ZXH87/vg1QKx/QnKNyqiTWkVuEPXsaCEUMEBK3zoCmlcxIUW5mfGp20cPwm3YGrx wiUxgvOxbKbLoQQupvv21PakLzGj7S5z3rC6qu9znrDmCKsPW4UDlV4Ai6VgMNxiwKpo kTGn6PuLhLXUumyizH6E2LZtG0ltEkhkQyxj5+h6APGlu6BmDcGajLBa4EFEMPXutar0 rsjA== 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=Red5zHbN+lfXs3TYegn7hFfQkcfngwOiw9+CgmEYEx4=; b=Ey+Ar1KXgni3w3MwStUSzcQX+oN0/wN5JVXE71xK5u4pEvr7qlS1G9KDLy4sucbKnA YrmZUks6yRoNyFC1RLZ9p3/hVJ+6pau6YI0jHHz145tv2zvjWSJEPQvr3NmQ9vvafS9P 36oP/bRKTVevwBDX4TdW6B9JmP0sSkp+8ysJ61J/7OsAOTL7Z0slnnxq/YgjcB1Pc95m lDEy62MpA4slq7fJh7ZDK5PewFoPd4RUKfPAEThkfhptN0ZhGl1v38f5mtRvg3jEeJ0u o2PEl7mgy7REY8kiASzhh9o6n0Vp5XHkAm8CdCz78GCk+Xzem7JQN5gXY1mYiHsZwaTU elaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GRBYwUMk; 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 u10si1079895plz.119.2019.01.30.02.18.14; Wed, 30 Jan 2019 02:18:30 -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=@gmail.com header.s=20161025 header.b=GRBYwUMk; 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 S1730616AbfA3KRo (ORCPT + 99 others); Wed, 30 Jan 2019 05:17:44 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:36694 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbfA3KRo (ORCPT ); Wed, 30 Jan 2019 05:17:44 -0500 Received: by mail-it1-f196.google.com with SMTP id c9so9672293itj.1; Wed, 30 Jan 2019 02:17:43 -0800 (PST) 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=Red5zHbN+lfXs3TYegn7hFfQkcfngwOiw9+CgmEYEx4=; b=GRBYwUMkCBmM+fjs8B0DOm3e2M43i3pzNKgORHuRgs+RkctA+fRuVTxW8qEalrywtI JCSyZozfbC1jNtc5+3GASxIt0tEqFJqiL2qWw9i4a6WjJnacKBL9e9ifCpKRHq2tvxvD bpNy4b5vsmkvovTxVoEN+9poFAnEAn8Cw2y0GR+m95uRI5SSFSLvrkIZxlhT7xVFDH2h Po/nX9soVLXHRuFqPKiy4QJ7ZKywS8+Ai+PHZ1a1F79YL9tOoqXme7C2V2zUuB3j04Mq 8GzaVv4Zgk2nSE5MEXSCdIotZCv1jKwjYgU7Wg2pOy/dyM1oVumsX/qCo3rdGjpR4SW2 LfWA== 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=Red5zHbN+lfXs3TYegn7hFfQkcfngwOiw9+CgmEYEx4=; b=syq3G+lKoBaEmG7+MQsHW5MO0W+efft5GKUoEls2LD0fPiEnRIVEt0nqLgvikrow4J OiWDaOv3VWPT2l2e8e0H4drksM1g6aKAZFgUx71NxsSEMSz5DIMjixmzI9WDetwntWNY uiqhXdNtAHbVDhs0eGhJqfaM850xkYy6CtS5uTTCWeVjKtfcAeLOsDL/bct1IeR6pfI9 oR5ZaVrHH4UPCY9ko56otf1yfsiOB0yW9hni1+0tyu1l90UAG5OK17sNENfthrThphnv 409uEFqQJn9Z7PAdVKk3x+VF0MeoGR7SDAv3CCezrQmisJ0uV6+huI3XJvSlT0zo5sGy 4kyQ== X-Gm-Message-State: AJcUukc/zsi4gx8BfAzpxaYYztMSGemKn7XWLbZz4OGLMFKYgIY0LjuD QZxLU+mGlW22EQqJIYh43kk= X-Received: by 2002:a24:5a8f:: with SMTP id v137mr14864048ita.65.1548843463078; Wed, 30 Jan 2019 02:17:43 -0800 (PST) Received: from icarus ([2001:268:c0a5:3348:60b5:ec84:e7a7:e417]) by smtp.gmail.com with ESMTPSA id 79sm1005090itx.11.2019.01.30.02.17.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 02:17:42 -0800 (PST) Date: Wed, 30 Jan 2019 19:18:14 +0900 From: William Breathitt Gray To: Andrew Morton , linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk Subject: Re: [PATCH v8 0/8] Introduce the for_each_set_clump8 macro Message-ID: <20190130101814.GA3668@icarus> References: <20190129170734.688a6adf91267cc6f1b5fa08@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190129170734.688a6adf91267cc6f1b5fa08@linux-foundation.org> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 29, 2019 at 05:07:34PM -0800, Andrew Morton wrote: > Do we have any expectation that these facilities will be used by > anything other than GPIO? If not then perhaps they should be sited > within drivers/gpio (presumably as a standalone module) until such a > need is found? I can move it within drivers/gpio since my only use at moment is for these gpio drivers I maintain. However, moving it to the gpio subsystem does make it less likely to be seen by authors in other subsystems who may have use for it -- so there is the chance that this becomes isolated and untilized only amonst the gpio drivers. That may not be such a bad thing in the end; I suspect it will be easy to spot if other subsystems start implementing their own for_each_set_clump (if other subsystems would even have such a need for it). Linus, if I move the for_each_set_clump macro and related functions to drivers/gpio, should I move the code into the gpiolib.h and gpiolib.c files? Or would it be best to implement this as a separate standalone module, and make a Kconfig dependency for those gpio drivers which require it? A standalone module feels somewhat overkill for such little code in my opinion. William Breathitt Gray