Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp911766ybe; Wed, 4 Sep 2019 09:31:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7P2XiyGI6CC0EIrRZCkrkBdx7OhUYnjDk88Rkuge1fYCEnBQANs/NXBbhZ7fpidcO7Igv X-Received: by 2002:a63:e14d:: with SMTP id h13mr35734341pgk.431.1567614688515; Wed, 04 Sep 2019 09:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567614688; cv=none; d=google.com; s=arc-20160816; b=xgd8hySrcFfAj82QsY4QkWdnsxf1W/bKOGAXYFbzYRiAlPIXyMOFW3GL3F+sQ8kPcu GENWmgRb1oYXeuzmXv4LS3ea9lzeURdGEJLOI2Yj44DGJOBlHimN7ylXrn30I8WdCbhz qG7aXxmzG+oZ29EpSBWgsChoylm1EnyiLJ5K8378lmCAvcZv3OjaX8btp/iurkgoAYC5 JCRZ2WBksu1HHgGpappEjnhzblPF48zFUeDln7ClsccSCnh7mLJeV/fy6dJkqFzlVagP gidjyNHujBqOMvCHbef6ijiDl6z0fd1CMV91Sv8nUSrr0dggAICmz25T+dvOrSQnoEzk BAXw== 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=0Bk5FCrmIebdNTJxqeSp5asp911jjtdI8aFxkaoSkUA=; b=JJLC7WLGXsM1BCjipJYklSWKrYTtCyJy9pAwmrzMxScJxY63X+lTXl0nl65OkVZQ/t ednFWV4ibLYX8dz++heHC8TCfXOiI6CdQk7ncpKdEueZJOXDum5p9BgBUNrWxnxdbOFz krYlAvVRevfusfIPPJCwyJe0vGq44nEVy3Mx2BZvoaBaWUueDqCVtmAbK/UEPsY+htlx VIgH4hesQM5fp5KrolenhOZTyW8oVK7KXEb0qWU+JyJxLCHXyfwdpgfxywidkdjVJVbJ ZrRufTa9H6md6DrAP5k8Vpri8SwCFgKpHMCJj4FIdc8t/goiUwtzPT5XNOEbYc/GnYpD xJeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z7MJE3qJ; 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 u6si17728154plr.69.2019.09.04.09.31.11; Wed, 04 Sep 2019 09:31: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=Z7MJE3qJ; 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 S1731783AbfIDQaV (ORCPT + 99 others); Wed, 4 Sep 2019 12:30:21 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41163 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731520AbfIDQaV (ORCPT ); Wed, 4 Sep 2019 12:30:21 -0400 Received: by mail-pg1-f196.google.com with SMTP id x15so11513960pgg.8; Wed, 04 Sep 2019 09:30:21 -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=0Bk5FCrmIebdNTJxqeSp5asp911jjtdI8aFxkaoSkUA=; b=Z7MJE3qJHR8e1zg4M/OzjRMI8uXwVNEOcJS7BGFiaDV6mFALldUUSXDzH7MDyjvIPC N3ORyV1v0tHe0bs85LwIt8W3EDERZ9+ixgYiqYntooIRtWwd0cs7l/fnCUltEybL5LnU AxSYEpWniZ9Vc9HG6/XZyqZTO3u9wlVyUmwU9p7BU8s7K7YCcQ2O8/SGOBjo4uPyS6zx nsN0/ojOMkS3Jj2Vk7LwCMkBQY3EvHhBSKnV2G+lZMK7koE2fAZwP+wc19x3joGmOyTQ d/eDjlbD1Ea+xJ4ZG3I1n6BpTMlO0Ow++2Hu03dK+pWgvMIOwmtd/bC/EWjXYZh9p51n BSiw== 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=0Bk5FCrmIebdNTJxqeSp5asp911jjtdI8aFxkaoSkUA=; b=Oo4AMOULWdLQUiKg7EyC7fcRpvnfr/gLe47rjo4JPJGQgpN55pY+w3JL/QdIDRvmmy hOfxGRTUib/jYtmHTzWembWqmyR095OGiWLdS/+qyOYL0bUsNQzZGfxf+3ZqD4MGJZa6 L3qjQRIgVnLawOe3quuOUf0rP3xq8ApNaLKq4KjHt83QwMM8SXygJ4wWodi2HgP9uEqc /UMKave6HMGBA2dBSrb7++aCJvyZr8Qffv319Js2cu2ldr1k+nHL9vb3s9GpXhsk4S6W GF1AEoCUuYukejux/+AnIGxwlSm4rktvT+ufxpJK/gSt7e4XoSlcztQdOnKikQ3GGc3F f/DQ== X-Gm-Message-State: APjAAAXknD6Zkg903t7BL5F7n7hoP+Wuy8XzYRNs0CPNvJGqDWbZX4Ug 0z03MXQBV1znBFXLk1O+2NpQ63QHgwwimg4uiN4= X-Received: by 2002:a17:90a:19c4:: with SMTP id 4mr5998093pjj.20.1567614620706; Wed, 04 Sep 2019 09:30:20 -0700 (PDT) MIME-Version: 1.0 References: <20190904061245.30770-1-rashmica.g@gmail.com> <20190904061245.30770-3-rashmica.g@gmail.com> In-Reply-To: <20190904061245.30770-3-rashmica.g@gmail.com> From: Andy Shevchenko Date: Wed, 4 Sep 2019 19:30:09 +0300 Message-ID: Subject: Re: [PATCH 3/4] gpio: Add in ast2600 details to Aspeed driver To: Rashmica Gupta Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , linux-arm Mailing List , linux-aspeed@lists.ozlabs.org, Linux Kernel Mailing List , Joel Stanley , Andrew Jeffery 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 Wed, Sep 4, 2019 at 9:14 AM Rashmica Gupta wrote: > > The ast2600 has two gpio controllers, one for 3.6V GPIOS and one for 1.8V GPIOS. > > Signed-off-by: Rashmica Gupta > - for (i = 0; i < ARRAY_SIZE(aspeed_gpio_banks); i++) { > + banks = (gpio->config->nr_gpios >> 5) + 1; Same comment as per the other patch. > + for (i = 0; i < banks; i++) { > +static const struct aspeed_bank_props ast2600_bank_props[] = { > + /* input output */ > + {5, 0xffffffff, 0x0000ffff}, /* U/V/W/X */ > + {6, 0xffff0000, 0x0fff0000}, /* Y/Z */ Perhaps GENMASK() for all values? > + { }, Comma is not needed here. > +}; > + > +static const struct aspeed_gpio_config ast2600_config = > + /* 208 3.6V GPIOs */ > + { .nr_gpios = 208, .props = ast2600_bank_props, }; Seems curly braces missed their places. > +static const struct aspeed_bank_props ast2600_1_8v_bank_props[] = { > + /* input output */ > + {1, 0x0000000f, 0x0000000f}, /* E */ GENMASK()? > + { }, No comma. > +}; > +static const struct aspeed_gpio_config ast2600_1_8v_config = > + /* 36 1.8V GPIOs */ > + { .nr_gpios = 36, .props = ast2600_1_8v_bank_props, }; Location of the curly braces? -- With Best Regards, Andy Shevchenko