Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp822669imm; Fri, 31 Aug 2018 14:27:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZQgnQgqCQwhQ0GTDSZn+nMWdh9I8rLRXQSY6XfVcQD3XpYjl/Dv1jzdqsurKBRTAKmTGVJ X-Received: by 2002:a17:902:468:: with SMTP id 95-v6mr8117865ple.122.1535750869998; Fri, 31 Aug 2018 14:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535750869; cv=none; d=google.com; s=arc-20160816; b=qFED6/YEebvT2FKSqH49NYPe88Vx3IyjN0ITu9DFjrdoU0m1NvioeacuQZgXn0QXhq y3vvytMpiOZ/6WpvPTxD2nASQItiTDnjxIEJq7hI3lon78/nJpKCmRFnIEK+iVyNUl0u teH9xaQDPACh44FKC3cSwn7HpDT4i8krInRO/SY4E7zNQ48BMOS/kR9KdBrMBu8eLZDF 3WoYVizgSGgrf6w9ASypkpBq/7EMwhSJAln6SfYtolMIfS6Khd2xHyhagADL7NgFMJD8 Db2R6jnL6zBkcS20JHnFEGc1LKntBf8m5FgSEwWoKn/k+BLCr9vdLZMIh6w+h91Yx3NG ydYw== 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 :arc-authentication-results; bh=j1nSmX2lqdcK7cjjN0dtzKa3tALV9wgDsaltmPtnYBE=; b=vX23r3LS7RPyugRCTTOdDuakMYOpKYQqC/Pt5lfN5WFKcozcKBq9OBnJrTstSH+SJZ MidjtYEXm4ytjJDiuY2XePo8Va9xu17w2JnM1y06dRoNggDLAZsrehAYkiHQZDBv+Vnb bi16OPMKd4Kv6rnuCgwSiZW2nx00d60VNEl+hryNp3eKssrGI7xcgQJrfNNP5LWrB0sy TCRZX4LW1JdayGhehsBZJeSIb8Md5dJdleqOfL4FIYlIWUbzs57J62cZrOBcG0HTxYXf cDxhYWj1s9HgNnnNonSrQ6xoqdjHloUqMMPV6gjLqJC2B0HcSJtoRrR+vMY/WpWYeppQ jLWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qcw+X3Tv; 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 d40-v6si11085760pla.217.2018.08.31.14.27.35; Fri, 31 Aug 2018 14:27:49 -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=qcw+X3Tv; 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 S1727579AbeIABft (ORCPT + 99 others); Fri, 31 Aug 2018 21:35:49 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38495 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727234AbeIABft (ORCPT ); Fri, 31 Aug 2018 21:35:49 -0400 Received: by mail-wr1-f66.google.com with SMTP id w11-v6so12386411wrc.5; Fri, 31 Aug 2018 14:26:28 -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=j1nSmX2lqdcK7cjjN0dtzKa3tALV9wgDsaltmPtnYBE=; b=qcw+X3Tv8zcr1FVvlX9bpMFSyxhNDvcekKOlaFDFomx9pNAL4sHVrH3zDsuUkLIWIE H815ZftDe3UH3c9hCoPTkKjzhoSckbryMek8bHvT1ybDM/NZQpVhGoW4ciyHgDDTo4td RUMOsCq6Q83qaHJw+nb8oDAcsnmDOvla9p5nge5oXFm7Ymjnurtw+m1IDl39+Ozes+Ra EVpJHxobQJ2UiAJlgm0QJppaRAhAhoVJ4HS3pVIyRFp/K7sfi1TOH3PjaZUHsLdCnuK/ HI4NoiJjeYgM26HQo53dxOcxGEnaCR5g5efa2sqg0T36hZWcsQgiiVWJun32y9zRn2eL btUg== 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=j1nSmX2lqdcK7cjjN0dtzKa3tALV9wgDsaltmPtnYBE=; b=mUpts03wvR9dFqZkkOq/avr0nYS6E02wvPV9zH93TtUtKkPZ/7gWL1BPxdc17J3lhj OyUL7jNGzTonBnStlEVRhCvBoFyXmJKSMBJZDk8tNiWvDVQmdTUOa4Vn8PJl8KyNM7ga 8QHkAJyTbOIFRyoKvLV58n70DspvxAMLtfK3BxOy7nTye4JoHGVxMHOvGr7Q6P+4GVSy 3YouLicN3LeXqp7K/rKYI/NCydKmQioNIMD/2aIj2FxW2EcO3VpDAJE7YnqzzQmAtOyg zdysj/dWUur2+PBVfWe/OCoowcaSAWHa9R6N0x7Wif5JwxqEDHHgsQvCg9xlRLsg042/ uNcQ== X-Gm-Message-State: APzg51ClApXkMABksCQQXbdHGxDuymj14eGEKioVw9RzHBvF+YrJovsp BTpH3LvGHTbofZS76GRR1IzKotVVw2DTOGLUQxcFKA== X-Received: by 2002:adf:ae5a:: with SMTP id u26-v6mr3589818wrd.246.1535750787783; Fri, 31 Aug 2018 14:26:27 -0700 (PDT) MIME-Version: 1.0 References: <1534549659-15883-1-git-send-email-justinpopo6@gmail.com> In-Reply-To: <1534549659-15883-1-git-send-email-justinpopo6@gmail.com> From: Gregory Fong Date: Fri, 31 Aug 2018 14:26:01 -0700 Message-ID: Subject: Re: [PATCH v2] gpio: brcmstb: allow 0 width GPIO banks To: Justin Chen Cc: linux-gpio@vger.kernel.org, Linus Walleij , Brian Norris , Florian Fainelli , bcm-kernel-feedback-list , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 Fri, Aug 17, 2018 at 4:48 PM wrote: > > From: Justin Chen > > Sometimes we have empty banks within the GPIO block. This commit allows > proper handling of 0 width GPIO banks. We handle 0 width GPIO banks by > incrementing the bank and number of GPIOs, but not initializing them. > This will mean a call into the non-existent GPIOs will return an error. This is clearer now; thanks for rewording! > > Also remove "GPIO registered" dev print. This information is misleading > since the incremented banks and gpio_base do not reflect the actual GPIOs > that get initialized. We leave this information out since it is already > printed with dev_dbg. > > Signed-off-by: Justin Chen Looks like I'm a bit late on the response, but in case you feel like adding it Linus: Acked-by: Gregory Fong