Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp489726imc; Sat, 16 Mar 2019 06:46:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTZzZYz3tinSgeYw3xavJaIUJ41PMYzplt1Gvf7D411cx3M6aOxctLxh35NMHWzhf9Fp4Y X-Received: by 2002:a63:540c:: with SMTP id i12mr8607351pgb.69.1552743990995; Sat, 16 Mar 2019 06:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552743990; cv=none; d=google.com; s=arc-20160816; b=IIbrA7474EYt5lzeeVZBVSRc8K9Rfvq43Mxv8djhDOpKAD5CktYnBkedn1V66yDdtx oMdvEvRD4KZM2W3UythnF7VD7xJrWrnLFtCXzhhZJjXhuRH58zHjNIL/JCAIDIJmoKGg 0tXobmxFVBJdD/mRGquc8LE1o6sD5enpbXlB6V8elhetQ673YludbO+l/7C/e9ZAgI1a msv0YaaRUhLo9tN3+M/dY4PvVoBAHPzAaSSlrL7+zknA5VZUpg7mufRIWxT6ji0caKMF QCrsmHTj9k7wJLZ0xu1ERpe2Ez4GDoP0nwX3DPEzZcSb7pyzi0DzVRLVRjFoa+hsXENG Wjbw== 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=95DqCY61MIRM/MZb/inQusdbxOgdGD0C6LXcoaTEM/8=; b=j52oxrr8n6hs1seA3Q+HE7D0kkOjfucGwSCi0xZFd7mq5Wws+O5f/sEg0r+XJbFO31 7pDzNuVTE2EjL8RimDuYWqVUmc/sRFVEx+NW+6ypDiTWHVhR8Ibbmqh2wiJijdFkSWVW o2fEnJ3HlZHEclwYAxU0PEA1o5Tq6v5UH2T4N7x2rBDiyyLQ6M1HmgIE2dvWkQImBbz1 Btoj3KQoYqlcM4TE+KjqzmQ2OGtoF35NBr3PZrlMl4M+3U2HkkrywNCbvAjJgA6zzO45 yRIgF9F2Jhu9ipThR2Nm7xYSq/qODwbrjFmlToqgDG9m4aTjbyWoLCPElPBPGMakWtRJ mlhg== 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 u7si4640523pfm.159.2019.03.16.06.46.14; Sat, 16 Mar 2019 06:46:30 -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 S1726861AbfCPNpY (ORCPT + 99 others); Sat, 16 Mar 2019 09:45:24 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:48633 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbfCPNpY (ORCPT ); Sat, 16 Mar 2019 09:45:24 -0400 X-Originating-IP: 86.206.237.96 Received: from windsurf (lfbn-tou-1-411-96.w86-206.abo.wanadoo.fr [86.206.237.96]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 205B040006; Sat, 16 Mar 2019 13:45:19 +0000 (UTC) Date: Sat, 16 Mar 2019 14:45:19 +0100 From: Thomas Petazzoni To: Guenter Roeck Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Mark Rutland , Frank Rowand , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jan =?UTF-8?B?S3VuZHLDoXQ=?= Subject: Re: [PATCH v2 3/5] gpio: use new gpio_set_config() helper in more places Message-ID: <20190316144519.07805478@windsurf> In-Reply-To: <20190316014352.GA6124@roeck-us.net> References: <20190207162859.26252-1-thomas.petazzoni@bootlin.com> <20190207162859.26252-4-thomas.petazzoni@bootlin.com> <20190316014352.GA6124@roeck-us.net> Organization: Bootlin X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, 15 Mar 2019 18:43:52 -0700 Guenter Roeck wrote: > > diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c > > index cf8a4402fef1..9762a836fec9 100644 > > --- a/drivers/gpio/gpiolib.c > > +++ b/drivers/gpio/gpiolib.c > > @@ -2762,7 +2762,7 @@ int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce) > > } > > > > config = pinconf_to_config_packed(PIN_CONFIG_INPUT_DEBOUNCE, debounce); > > - return chip->set_config(chip, gpio_chip_hwgpio(desc), config); > > + return gpio_set_config(chip, gpio_chip_hwgpio(desc), config); > > Are you sure this is correct ? This patch results in a number of tracebacks > in mainline. Reverting it fixes the problem. > > gpio_set_config() seems to pack config, but it is already packed above. > That seems a bit suspicious. I'll have a look. In the mean time, I'm fine with the patch being reverted. Thanks, Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com