Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp707107ybl; Wed, 28 Aug 2019 04:15:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLorv+9vjfkut0UHuKTdI9WSc0h43azGr+CdSKLxnyg6uA5p6PBjn8FofzFahiCdwICuE9 X-Received: by 2002:aa7:9907:: with SMTP id z7mr3873371pff.13.1566990914695; Wed, 28 Aug 2019 04:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566990914; cv=none; d=google.com; s=arc-20160816; b=U5/eZX3GAKmC1P+c/2hKRr7y1yvgGWaAIzYaWH8aARGsR2GCrwu3dtZjEKO+S9mZno 8SOBQ2Z8SDAETF2nGD4W9rCn8QqsfZ6v1ffNiLd45MVHK4w3CBLxSrC79r+ivtcThNlz dRfB+NhXZUv1AdMbQnNSjPlb9i8Im8OnE+Wm/MEY2vdPW04KS9D2Ge3WXuQjrSoT006E m3Q+OVTOGTb53iLgnLypTmwHB16Pag9DOVQgYmJaMQt0kxf0npZd0x3dEkoYdrZywQR5 JCG3I0/92Rs1ArtyR9qXU+Nw6xoNZEIM+r8C4O+9NBa58ESZ8bjZoaJIqX6ERHccVP1w lrSQ== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=WWBzCG2iEeQwyPD+lz8VryDQu1QeGDFeov81Ac3qqRY=; b=FjXqUNhadstl/n1IPlrlvRQs8xXxnkab1YhrKk+Z4nqLheTTRB01Nu4hFthEre/s+I lNKP3xqq8udTF52oeW8Y1YCE3HHq9srisUc0v7GU0uKv1K23xau9HMSP6AmyLoTQu6yy RxIPMsDCkn6V8J5ayT4nJat5urmuY87ll0AxPOxYtHR8gxgBmBwhqB5kWgdNT8Qvb+oD +aqDaBkisBXgGh+Z3hnJdHHn0G5eG05dGP+h0xuIa1KHj5hrcxNbOOf+1Wqj/8Ei/OPm fxg51P0IoqIxWppTXRsaLduZDshjvWfNoDj3nUR+wsNZwmJqlLhvkEmAO7ORZr122/QP J2dQ== ARC-Authentication-Results: i=1; mx.google.com; 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 h4si1724345plk.268.2019.08.28.04.14.58; Wed, 28 Aug 2019 04:15:14 -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; 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 S1726571AbfH1LNc convert rfc822-to-8bit (ORCPT + 99 others); Wed, 28 Aug 2019 07:13:32 -0400 Received: from protonic.xs4all.nl ([83.163.252.89]:58726 "EHLO protonic.nl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725991AbfH1LNc (ORCPT ); Wed, 28 Aug 2019 07:13:32 -0400 Received: from erd988 (erd988.prtnl [192.168.224.30]) by sparta (Postfix) with ESMTP id 9B71F44A0065; Wed, 28 Aug 2019 13:15:28 +0200 (CEST) Date: Wed, 28 Aug 2019 13:13:30 +0200 From: David Jander To: Bartosz Golaszewski Cc: Linus Walleij , linux-gpio , LKML Subject: Re: [PATCH 1/2] gpio: gpio-pca953x.c: Correct type of reg_direction Message-ID: <20190828131330.6a28e5cc@erd988> In-Reply-To: References: <20190827064629.90214-1-david@protonic.nl> Organization: Protonic Holland X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Aug 2019 12:56:28 +0200 Bartosz Golaszewski wrote: > śr., 28 sie 2019 o 10:38 Bartosz Golaszewski > napisał(a): > > > > wt., 27 sie 2019 o 08:46 David Jander napisał(a): > > > > > > The type of reg_direction needs to match the type of the regmap, which is > > > u8. > > > > > > Signed-off-by: David Jander > > > --- > > > drivers/gpio/gpio-pca953x.c | 6 +++--- > > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > > > diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c > > > index 378b206d2dc9..30072a570bc2 100644 > > > --- a/drivers/gpio/gpio-pca953x.c > > > +++ b/drivers/gpio/gpio-pca953x.c > > > @@ -604,7 +604,7 @@ static void pca953x_irq_bus_sync_unlock(struct irq_data *d) > > > u8 new_irqs; > > > int level, i; > > > u8 invert_irq_mask[MAX_BANK]; > > > - int reg_direction[MAX_BANK]; > > > + u8 reg_direction[MAX_BANK]; > > > > > > regmap_bulk_read(chip->regmap, chip->regs->direction, reg_direction, > > > NBANK(chip)); > > > @@ -679,7 +679,7 @@ static bool pca953x_irq_pending(struct pca953x_chip *chip, u8 *pending) > > > bool pending_seen = false; > > > bool trigger_seen = false; > > > u8 trigger[MAX_BANK]; > > > - int reg_direction[MAX_BANK]; > > > + u8 reg_direction[MAX_BANK]; > > > int ret, i; > > > > > > if (chip->driver_data & PCA_PCAL) { > > > @@ -768,7 +768,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip, > > > { > > > struct i2c_client *client = chip->client; > > > struct irq_chip *irq_chip = &chip->irq_chip; > > > - int reg_direction[MAX_BANK]; > > > + u8 reg_direction[MAX_BANK]; > > > int ret, i; > > > > > > if (!client->irq) > > > -- > > > 2.19.1 > > > > > > > Applied for v5.4. > > Actually the second patch depends on the first one, so moved it over to fixes. Btw, they are both bugfixes, IMHO it would be valuable to have them in 5.3rc if possible... there is some severe breakage there right now. Best regards, -- David Jander