Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp336675ybe; Tue, 3 Sep 2019 23:59:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyv3Kr8Y4XOQP7LmOaGvro10WPNg/yLBysVnT6mOJ2gsO//AT+CvKc2QFGfKXlvLXrhNHAy X-Received: by 2002:aa7:9303:: with SMTP id 3mr24595532pfj.29.1567580365770; Tue, 03 Sep 2019 23:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567580365; cv=none; d=google.com; s=arc-20160816; b=cyumYWQjtSQhMJEQvYxlvDtjBADJKsnI0WTq9pMU/MJcr/SsV9egPO2KaPWbljY3Xf F4FV5egry89XfzdIHeubBS13oxoD8ja9EvWqEAJaxoKIYDPeGDr5kO68avo5MP/xOf0a ZjlR5fcddIDxv77egDmsu0qeJKrMNPUDlZaWTMUxyQMGIQKG29rJ1rgvwHgT0SzaF6fU eo1gwdEtOmVbLtK9gg4AirpiKKT+4LB/fEQDj6VQH/HR76qBhxESIXvKnoFc6dkIr+22 VR4gJNVurmflmAbbKJR/Fs+kANTRxjNn6RwS3q/tcFPeZjh+gL2YjZpsZMZs9W8R20yH aqew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Dt75WhUIfHVQfvigwZn6/besGZVEJEtBIQcEOqZ+B54=; b=IARmpV+g36FB7UlA+MbYZnpZS7WsfVcFwsRnkXAzjqyHx64e/yT9bc58VsKE8azTYN uDhXP3uKezP7N4G6U+GMOfhnCTrFT73KaNtyXLNtsihtxqLp/Df/vEn0b9pH9sXy+Fvc 2jRYEQQlO+r04nPSpE3iYOTX06LzxSH5PB+d9AoR17RZazGya6PLrK6MU2tP8dilsU0x tgyr+aG/2UoRpYKR8uazdpKwd47b9ZZ566FI9aoMyIMktIa9ooOdaaETAhrtFZS/XTWv 1LOGF9G+mYUmQlMMplUVi+206u/d8o4gyphl6BNzw6cqpVz8ny8/VO8jYEM35vZ5TXCQ fJrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Pvsm0jkN; 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 l184si16492542pge.286.2019.09.03.23.59.09; Tue, 03 Sep 2019 23:59:25 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Pvsm0jkN; 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 S1728946AbfIDG55 (ORCPT + 99 others); Wed, 4 Sep 2019 02:57:57 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:33314 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728921AbfIDG54 (ORCPT ); Wed, 4 Sep 2019 02:57:56 -0400 Received: by mail-ot1-f68.google.com with SMTP id p23so19574783oto.0 for ; Tue, 03 Sep 2019 23:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Dt75WhUIfHVQfvigwZn6/besGZVEJEtBIQcEOqZ+B54=; b=Pvsm0jkNiRhObMK4vm9PFjK6gDG1RInx1dfQIY+anapAMmQ7BBqa+FSp2oQcED/5ZB fMFHq1bQSJaQxWDjSZDwYSgSZiGzcMYKOHp3BHHpvmkR/bFVtnN1/nZhEyIerU3Ius5Z nhj9GQwxsboOGg+Xy6lXBu8TMN5aY7NAg746v/3ONWMWbQRN3cS84RI2pA4veYqocRhW Tk70wmmQirUWHbVtRF2QYa5Fa7ZUVBzx4h5df3jv2vIplCQB6rnVK09hgrU5zieTdwdI HxM/Gs7C8qN25BCH3ub6QKRMsgVuWSajuOJsabMCCXmOevSJjqfqamqw3aKhEiPWNJMV /Q6A== 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:content-transfer-encoding; bh=Dt75WhUIfHVQfvigwZn6/besGZVEJEtBIQcEOqZ+B54=; b=erDtQ3vl0KhOZ8wx3Bc6BcPB8NqQztsY7iVjrl9lLk+bhSzHMDKxxIFXg7HxNy9O13 IU5nHckmjVwpwON48I5iUFjamcJ5MGNgiPulLCUR3nZ/xY/XgVfDR+k/zV90rzwZhMz5 8Hd8yNdGwx3kheQF49fzIlPCJRKmzpQPeZ5OoAEV0sZORA9tS3OobQdTM7mgaAqEf3EW PGNSsxRHEkaTqBiI90BpXVpjZ3DzGnM4d78J/mdHLItfzfpd8fmhUoSPnSDge1nml5q5 4mqHTRz9MHNVwiXL2iZsJHI3zD5N0dU30OIiM9a01pErJH8fNtFisr3xexrWmVe2xkLU nCng== X-Gm-Message-State: APjAAAVc+4aHVjeUZQsc33Rj/d26yUgsbkmeGXX3IVHnAUFhyHT9+QUQ 8jWCXxkSwNNFbp9p51kmwKBi1nKEMjp8/4GBBHR6Dg== X-Received: by 2002:a9d:6c0d:: with SMTP id f13mr1329516otq.85.1567580275770; Tue, 03 Sep 2019 23:57:55 -0700 (PDT) MIME-Version: 1.0 References: <20190904061245.30770-1-rashmica.g@gmail.com> In-Reply-To: <20190904061245.30770-1-rashmica.g@gmail.com> From: Bartosz Golaszewski Date: Wed, 4 Sep 2019 08:57:44 +0200 Message-ID: Subject: Re: [PATCH 1/4] gpio/aspeed: Fix incorrect number of banks To: Rashmica Gupta Cc: Linus Walleij , linux-gpio , arm-soc , linux-aspeed@lists.ozlabs.org, LKML , Joel Stanley , Andrew Jeffery Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 4 wrz 2019 o 08:13 Rashmica Gupta napisa= =C5=82(a): > > Fixes: 361b79119a4b7 ('gpio: Add Aspeed driver') > Please, add a proper commit description. Checkpatch should have warned you about it. Bart > Signed-off-by: Rashmica Gupta > --- > drivers/gpio/gpio-aspeed.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c > index 9defe25d4721..77752b2624e8 100644 > --- a/drivers/gpio/gpio-aspeed.c > +++ b/drivers/gpio/gpio-aspeed.c > @@ -1165,7 +1165,7 @@ static int __init aspeed_gpio_probe(struct platform= _device *pdev) > gpio->chip.base =3D -1; > > /* Allocate a cache of the output registers */ > - banks =3D gpio->config->nr_gpios >> 5; > + banks =3D (gpio->config->nr_gpios >> 5) + 1; > gpio->dcache =3D devm_kcalloc(&pdev->dev, > banks, sizeof(u32), GFP_KERNEL); > if (!gpio->dcache) > -- > 2.20.1 >