Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1795057imc; Tue, 12 Mar 2019 00:19:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwsZO9gP2TKk6fCyc4cg4S9Pd0Z9yFjrifM4jb60FSl03S1UHNpQYSWIVWu72rI/651nbc X-Received: by 2002:a17:902:2ec1:: with SMTP id r59mr1384237plb.171.1552375140765; Tue, 12 Mar 2019 00:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552375140; cv=none; d=google.com; s=arc-20160816; b=qzArVVSAyxJJhhaTbog31i9U8W9a+oYESa7FWlT+eBRmT6QBF8jcu8H5unJ7G6pkPj fMCeDIK1gOu5LvLfa/AXNZI0BL6rWIVp8DyZEo3ycCnVfRwNq9e1A1prk8DQNEmSMwBy CLRw4Dgkvw9VNzoTTcvL8e9kXs2icnVanYyCqr2pR+8iNHJSq9NHgM6wE9JUkEWMEppu J9LJpqv+JttHrHnDSDRrEaxKjaA118o4jMipYxC89NFRtCqOp/wFWkSgbKLUtiiY0ZfH ekfBNmME+d5dzFGyM0j0x4zCV2cByRXkE5auCts7Tg6bIvuZ/3h+sGCLZSh23brFAaFQ XdKA== 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=qNQpguhyRnMbrzI92caoHlRZ09jfujw5oCsCLJF/TaM=; b=xKU9excFBG3n9ogxgSdkv6v5Q/zTtfKI4qrYTjnayS5VCP3xdFsRoopU+Id9J84JuW s64akhXdGqyDI6hI5ME8uEVQz43/JGhK4fhGjWCB7wc2LoCAtXqSyfV7NM/YlDg+EKEv zLUvzDvVWNyDNtMcwWHjz5MPhBnv7ZoNGembOVMtn9E9q/kj8WMvM+omPYCKeW/KZhJr /QpQFcuyfjJbSo7GYLliv1rQAznp2ngf9csKbiBPyobXaue7MaNxXTAxxtfNSXi7Wgc3 X1QgyCdhJKF3hXBGk3XAKHXWZ1yQq4+YRdm6b8hc1akndRDVAs1Hfax6o+8AEH77vf7U P3/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B8EKQTpG; 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 v16si7454955plo.33.2019.03.12.00.18.44; Tue, 12 Mar 2019 00:19:00 -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=B8EKQTpG; 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 S1727503AbfCLHR6 (ORCPT + 99 others); Tue, 12 Mar 2019 03:17:58 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34589 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbfCLHR5 (ORCPT ); Tue, 12 Mar 2019 03:17:57 -0400 Received: by mail-pg1-f194.google.com with SMTP id v12so1156724pgq.1; Tue, 12 Mar 2019 00:17:57 -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=qNQpguhyRnMbrzI92caoHlRZ09jfujw5oCsCLJF/TaM=; b=B8EKQTpGPk+w848JeuDsV5WddtLEuUIpzTVTMvL5R40kNUn5UBJln20xee5EqZE6t2 pwhilxseGRf3RogELyHvTUo0atfdONL4F4jatr2aB/YygCiMm106qjsxV3FOFQIlq9OF uprt8RR5cESfrmpTxdAI5dLH5x/OlHsUo/Mb7/ZKwI/889Y9trBNPRBqRMu6KhzwZzf6 WyPQIbhbwfyFvHcCuE+yo/d70Sw4HjD/Ap7J+pbsGyomOmV68Sa07TH9R9zEONVjUkPg ywoDuN00QB8wtxcfZ0emfbuWhEGOLC8+Cb+1ZfCADjGcTdUb1XQ50tYecBpFllpp4rPG TQuQ== 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=qNQpguhyRnMbrzI92caoHlRZ09jfujw5oCsCLJF/TaM=; b=QHr7p1pcSqUU6PIntGM1dz3r4tahi3H/YDJ6RFYY8dQNwCy08fjpMikYRLgIcgThAr e/41SlHQOG/UcER4Df3fNDyjXpQf3e4ilwBaSLIe1jiEsSUs/AyXGqa8Hxq+79zZCFwM 1i4IwHXo7sWJtNWVBkrqqssahGis9Bdu2DAy8O9CMnLEPSuSTyO9AtrB8YVWieQ+t+V0 3wIqdRgBq+DK/oZyWMY+uZ70sad1B9PARZWa7LmJC+pxOI8YiVIU4thi1oEiouQbxR86 es9UKKS7AGSZh+/IciERDZeP4Caia98+WgrWlx0SVioaN7wExZdhLDJL93okdUCUo5Eq cpxw== X-Gm-Message-State: APjAAAVfyCfRCTy4H4Qh08/IczxGlNdI09t5qI/J27jo97ZKEtdQC449 UxdKtIPWm4zcywX6VHrekrJmhTYnSsO0BtL0B+IYLJme18Q= X-Received: by 2002:a62:1d90:: with SMTP id d138mr31092733pfd.232.1552375076973; Tue, 12 Mar 2019 00:17:56 -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 09:17:46 +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 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? -- With Best Regards, Andy Shevchenko