Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1864719imc; Tue, 12 Mar 2019 02:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZnBFXUxPnrVh+DlTnBkZyWoqwwzqHEdqK5EgkvYU+pnH3tGbFcH6Re1r+STR4eX1hXITx X-Received: by 2002:a17:902:70c9:: with SMTP id l9mr13455066plt.131.1552381888832; Tue, 12 Mar 2019 02:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552381888; cv=none; d=google.com; s=arc-20160816; b=NFNqXc/IUEfr5skRjbOhPyxYUwmuIsC2MZM8TzbC3Tl2lpgU+pIuQyPckY65zosnI1 A3gGLbzgpv0CYVWPJpMAGNtxnWoZRjtVBMiZJpfNz2DZgV6Wimsq6HWeXDXxQFBObmZD EF4GwD/TeKJT8futeSLyIZkCDK3MTG9Vf/tjBCbO0zP03Z+PAfHilOqil9LehQCTkMAi fppck6q6GWcl2tUZMJRf32bs3/JGTVvoCc2p9FSO5LqcIX50S1KZykMPQZ5ObIanaJPZ bYhLP2HkfsfeMlY7rsxfH1yFQtjXZaV5f4tW4mMvsbBMiCeZrN8NXFuO4/UYjodNs0sz auOA== 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=uESbAd7eRXMtsVpdmmaP/lysiuv/xe62ER6tRfhGMXQ=; b=lRHDzIcUkATG8RCgTXdZc/O69kVGnVyMxEwd4mGhlULRJqPYzMD4ZL4FAuCb1Z9884 P6TA/m8vOCRFdoTAfo7YGse3PVMnbrRDuFFRBpNVBPDj0x3rgRvsTb32F5O7nUhedKsD i8yalf+6RkiVOSk0zYO7P3tK98d/wHqO7qp0wIW1bis0Cupd3YS5HP2zJmS5JBoxPr97 Lfc0bCciKqmruYgHt9rCTaHlWUTcoEIRGeugTJu2RoWaS+evn2b5v6TwV82XoM03MgbP m6HX3P6JejCg1Ry0wOZdZFQ9ytM4mNHyIPJkZDf2Wo5PQoktR/b7fT4FE+U1SNd2LPd2 +aoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Jtc/Oq/w"; 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 j136si7040611pgc.308.2019.03.12.02.11.12; Tue, 12 Mar 2019 02:11:28 -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="Jtc/Oq/w"; 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 S1727636AbfCLJJU (ORCPT + 99 others); Tue, 12 Mar 2019 05:09:20 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46758 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbfCLJJT (ORCPT ); Tue, 12 Mar 2019 05:09:19 -0400 Received: by mail-pg1-f193.google.com with SMTP id a22so1302365pgg.13; Tue, 12 Mar 2019 02:09:19 -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=uESbAd7eRXMtsVpdmmaP/lysiuv/xe62ER6tRfhGMXQ=; b=Jtc/Oq/wSxjL/ni8zkezreuwSif3heNAGlbaNXkHj9wnRsGseGXxQtaZfPKtF6OLvQ pBv+Ev6o4n2t4Lo8c1OTSX1uCOtTFXWWnxlzpP8B+JcTx8h806hE0bz9OFFYI8jlBkAi qwJdvvmJGXDr0AVukYPG98Skh1UEJfkbKAnaZVa/deWLZMSIRqypdDYOiaBEx8sTnb6E y0oBosMTKOSVxCu8SoYK2TmWyzRXUJN4r5YhGGV9gPN4EgsR9KAmLlAHziHQhDGi+kNH bWkXFzuar2j/aja0ym8F25LuRpYPX+N014Fp3Lcby+3Id4NqWLuIjRhp4B1sPDS7kLDS F7WA== 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=uESbAd7eRXMtsVpdmmaP/lysiuv/xe62ER6tRfhGMXQ=; b=AZZznHSo4NhHd6It318dWwNlJyKheHwgfkZJYOhwB4dbDwPqxVDkbwPOJA8ktCL+wH +MuKxen4mUekhYgGg45HtzK72k0/SCILNgdbf/b+wk0T0Kea2hGCVUO5TBOzaVy8uJ9D 5FqOADjsTscTrXtLAwCthj9muYVrPqv/p8d/gb/avrnr71dF3Z6qNcSUFV25J/bwW93Z jWyHkk5Znczq/gafIyb8M5acgDaOzN2g+np9bFlulfQTfXNMDGXJJ+dcw5CtwMLXRb2I IjYNfKqdFSwvGADMIsk1xymc+MhqvIINRFOARS22d8xoJHMAR9YJOkAACZ77+eKo7/Xd v1Ew== X-Gm-Message-State: APjAAAW4KDvNkPOV8j0iU/6oqH4ZEGTOr/JbvO0RtX3VKz/k3Xo/WGVr 6yyM2VdKCfHhR8CmLee4kKrXfqd/n/vFI2W7XAA= X-Received: by 2002:a63:ed45:: with SMTP id m5mr12443882pgk.265.1552381758611; Tue, 12 Mar 2019 02:09:18 -0700 (PDT) MIME-Version: 1.0 References: <0840d55707dacd1121659723246fa9f55737f426.1551598603.git.vilhelm.gray@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 12 Mar 2019 11:09:06 +0200 Message-ID: Subject: Re: [PATCH v9 9/9] gpio: uniphier: Utilize for_each_set_clump8 macro To: Masahiro Yamada 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 10:58 AM Masahiro Yamada wrote: > 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. Effectively means you introduced an ABI, which we are not supposed to change, where the number is carved in stone for all hardware covered by this driver + DT pair. If you would ever need another one it would require extending existing bindings without dropping them away. > Then, dt-bindings is out of realm of operating system. Exactly! > If I am doing wrong, I take back my comments, though. -- With Best Regards, Andy Shevchenko