Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1855222imc; Tue, 12 Mar 2019 01:58:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfTmoePMR7SgpPL5Ps9ykcvsZRNFJ5vjN3OI4mqjo3qTGKgsnuHTP4JWU80mXOxa4mFR8L X-Received: by 2002:a63:c307:: with SMTP id c7mr34299285pgd.386.1552381130578; Tue, 12 Mar 2019 01:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552381130; cv=none; d=google.com; s=arc-20160816; b=ypSoeVXMZxd2deiFI6c0uUzYzayzdZXn0SzJdmcY7E4j6I/aQSxC55iXyWq7JmFNvI c01Jd0UT6AtlBpYN5e4hM/8QHJOHzqBmv/GFX34QQLkQzPesi2sDtytuNei0ggn7bbcF CjXfvgfgWyt34lIJdrkKl1GNk+XRAlT3oOu+aecYcwmPYQeWE/9x4w3RgcJZ/pMH7Iv7 e/Ls+8vNrviTA0ASMt4x381+oHxSW0kU6YNltHc7jy/efpojtqiE+Ely/8Tdx793u4gV 3R1xrxnc9WpgrPXtN90rr8yIDDiJI+XpqTdD8WvkDoZXKeKnO+gz+hcL6+n51Tqcz7oL gpMw== 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:dkim-filter; bh=PGIGkDw9UbKSM/oVEyNzdkHYBeSIE+rx/yXJyP5zE7E=; b=0SDWWPR47vuhHoi38dANYOlVwuDT04n41NnuMM1H8xekUKkjfqPzDoO1HvGEC71wfM ttQ4mb25N4vid6Cw7y4fhoSyfDlac5PKzdwcA4wqV7BxjJcQHW8qdTXP2SshAyFwHZzj qvDNdd0LoaZOLkrUHK+3V+V0c4vfqw1Dd4ohVq3Rqfm+Hj4APBg126oHtgG+uZVBGGDz Ul8QTF9cQksqvZPepeRBj35Fm/lc8TvZEbRJ9KKRWjbROMX7lrohXLRWpSdqdNF9XLnG xIkLSBszDQrifWPYflWOwH+VNK2Qy3df4PxuBRtudiz+7avmxyeGwNwFC1d85CuRKFaK 9opw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=C70CvSRK; 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 l186si6832102pgd.67.2019.03.12.01.58.34; Tue, 12 Mar 2019 01:58:50 -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=@nifty.com header.s=dec2015msa header.b=C70CvSRK; 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 S1727619AbfCLI6E (ORCPT + 99 others); Tue, 12 Mar 2019 04:58:04 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:51001 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbfCLI6E (ORCPT ); Tue, 12 Mar 2019 04:58:04 -0400 Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x2C8vwFx027608; Tue, 12 Mar 2019 17:57:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x2C8vwFx027608 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1552381079; bh=PGIGkDw9UbKSM/oVEyNzdkHYBeSIE+rx/yXJyP5zE7E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=C70CvSRKhWN7w2LsjHLnc/egk36lFWReqSwwElYmNr1hmC+o+hXdgRZnMEJRyM9YF +ArTNrC+z96L55D8S5pf3LyyOuibPqi2lrLf+uILXl4t3Gp6wkAkOZd6/GhLUuvvzt kPJ6QIvUtB1KPQk3twzx8TED8Bh21Fz0o+FQLr3sljN9J0snXn7vVOmd3O4jByV08s mnzwgFzqisKHgs0I1OW8Lx4ob3HoS4sq2sDuZH5r4HJPserxBEjxZAPvNSQfiULxOL tJr3e8tSbiwtVBCadLcRfLG/xj/wdPXp7B5yLIQ6OuU8JNlnpxkBB4s7fv6QV1W8+G lCh69SoPNuefg== X-Nifty-SrcIP: [209.85.217.45] Received: by mail-vs1-f45.google.com with SMTP id n14so1086751vsp.12; Tue, 12 Mar 2019 01:57:59 -0700 (PDT) X-Gm-Message-State: APjAAAWfrt6oguXthr0gIihHMXcSxTbGMqa7N7TaG/NwsSqF9dqRL7GP Vngf2Ky2p6tPs+p4lAwyQ9gsL7i/SVUIMtREtbQ= X-Received: by 2002:a67:76d1:: with SMTP id r200mr1000966vsc.54.1552381078195; Tue, 12 Mar 2019 01:57:58 -0700 (PDT) MIME-Version: 1.0 References: <0840d55707dacd1121659723246fa9f55737f426.1551598603.git.vilhelm.gray@gmail.com> In-Reply-To: From: Masahiro Yamada Date: Tue, 12 Mar 2019 17:57:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v9 9/9] gpio: uniphier: Utilize for_each_set_clump8 macro To: Andy Shevchenko Cc: William Breathitt Gray , Linus Walleij , Andrew Morton , "open list:GPIO SUBSYSTEM" , linux-arch , Linux Kernel Mailing List , Andy Shevchenko , Rasmus Villemoes , Bartosz Golaszewski , linux-arm-kernel 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 Tue, Mar 12, 2019 at 4:19 PM Andy Shevchenko wrote: > > On Tue, Mar 12, 2019 at 6:40 AM Masahiro Yamada > wrote: > > On Sun, Mar 3, 2019 at 4:51 PM William Breathitt Gray > > wrote: > > > > > > Replace verbose implementation in set_multiple callback with > > > for_each_set_clump8 macro to simplify code and improve clarity. An > > > improvement in this case is that banks that are not masked will now be > > > skipped. > > > Please do not do this. > > > > Nothing in this driver says the GPIO width is 8-bit. > > Huh? > > https://elixir.bootlin.com/linux/latest/source/include/dt-bindings/gpio/uniphier-gpio.h#L9 > > Isn't a hardcoding? Semi-hardcoding. I needed to factor out some magic numbers shared between DT and drivers. Then, dt-bindings is out of realm of operating system. If I am doing wrong, I take back my comments, though. -- Best Regards Masahiro Yamada