Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4617595img; Tue, 26 Mar 2019 13:04:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVPupGwbnpoWYYWdFHIIx/e9k4QpYpa9NcbB7IbxA93qjsy8gaSVMmXFSh+UyrgoMLpj4o X-Received: by 2002:a63:2b03:: with SMTP id r3mr29650829pgr.1.1553630653205; Tue, 26 Mar 2019 13:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553630653; cv=none; d=google.com; s=arc-20160816; b=dbymVU3ZkoU5A4tcaXO4b2JLvL3KsNwPdunKLyonCydSt6H0UOpiOYJX4yykO2Sq3A UgBuydSwo+xnxhJ/BT/tDi4dIVHOZ3WHE09PbIijbKCS9Kk1XmMZ3Ige8hOWv6N/RaEX 9QOysXA77d8SiBU+W3XQZIE6U6Gee1ffE8Y1ZlRiOWOC9AAAxsrhJBelCC0+gNguKsvz aYZUnv0uDLtszX7pCQkLAsnHh/OZLEmbtLz0rQQzBg/cK8WFoXTs1uvlWac3KkddtGxX aXFnI1onQs6IVsHTmcK1vzoKbIP4mkKJp07b41QeXgWXde/Cn6A/jOEvz4nXjNJphRvd 6EJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UCNORsKkR6DTRgKLd7wxUec1B8EozazJHrB8dBBozXk=; b=gt+4n9u/+bnmslsgGqAm8xHB/Ro4PJZlgZLivZDWfCH3F5kB1VA/V3GjOSvc9lHG5R WvzOp8Jcq40v1YCba7SJ1O+hXiGVnyuijvDPnxxXpe0NK8tLryt+Sxz5NYdwdRDWnbjB 8x7mSM4EBftO/yt+b7msShzZcwChJngW4imqMPBhFK19dp1oDBOD3ElC8qJhNCgb1Ew4 CKJhSy999XhRzgq0G4IlrhyU9aO7o0AfurVjXEjXaW9zyp5GsSbgu2X95QPWQdt7L0sg lfY0yb+QEJSgC7khOGL+KYQb/E/1GR8/Fvy2m6Qry0sztvZDVc6zhtUP6vHfEqqEzPYP s5Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=INI2SKS5; 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 y6si16794073plk.126.2019.03.26.13.03.57; Tue, 26 Mar 2019 13:04:13 -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=fail header.i=@gmail.com header.s=20161025 header.b=INI2SKS5; 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 S1732513AbfCZUDF (ORCPT + 99 others); Tue, 26 Mar 2019 16:03:05 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:41380 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfCZUDF (ORCPT ); Tue, 26 Mar 2019 16:03:05 -0400 Received: by mail-pf1-f193.google.com with SMTP id 188so3125107pfd.8; Tue, 26 Mar 2019 13:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UCNORsKkR6DTRgKLd7wxUec1B8EozazJHrB8dBBozXk=; b=INI2SKS5Ug5LVJQ8KFm07rzF9dlcNMr5LUWk4Ux0jjXAajQSoDDEfkFNyCTE3lgdZ/ qWap56xLTVRncJFoFoURKuOg8CpD3zhvqPmLpKPCmNPxW6onfh+f+MyAxvK8cZE6Xc96 Rvg0HExV5zN2LfpnOBQyMYYIWW1yLwYNW6qFLCogju+Ze3tJi3+XIC+cuRDEo9vshtcJ sPiwIeJDLvmU3j0cq66CXLrnM/dbWDuHGIfEiXdj2D9OoxkEWeum07kgEIW8vo6kgKxP iwEElHmB6KymUFI2gMEtceQVLCI4OTvqBTICfh7deAYR3OayEujj9xltPLxDfuadPmnD RdSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=UCNORsKkR6DTRgKLd7wxUec1B8EozazJHrB8dBBozXk=; b=TyZtIZMgi99DPfrttfXKu461c2HHyh8wesOP4JhbhmNFE99QBxD7gyvqU0UjeIrX/C xIRa5hYki7C5WkdLuMzkgxY61eRNy3FYhzmFQLlLi0+5/1/v9vQYIUYKptg1riYDS7oI ZSr7uY/s384nA7VbEBXMDT2U3F8F9m/zNg7CY3s67TT4Gynmr2jVZDjZ5HQlZb1/K8ZZ 8pPH9lWYzKpS68Vr4ys6CHFQg6dX7vqpMBFSlCoHG75OIgt8LvSUSqG979pyejTNee9s pmeDGxXVXP7g6v7SU2TC9uTqdq4eBDEMiC2gMmoYz2+iug0bdPU/re1MjFlBwlv8QQIt Qdxg== X-Gm-Message-State: APjAAAXPIkYEw7GI/BpMId1TpMAYTH/ZXn818rbJn2aywGn/y6mIATiD dbTOeCA7CSvPVhQ1O6Em5Zc= X-Received: by 2002:a63:2c55:: with SMTP id s82mr24420765pgs.356.1553630584528; Tue, 26 Mar 2019 13:03:04 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id k124sm20080402pgc.65.2019.03.26.13.03.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 13:03:03 -0700 (PDT) Date: Tue, 26 Mar 2019 13:03:02 -0700 From: Guenter Roeck To: Thomas Petazzoni 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 =?iso-8859-1?Q?Kundr=E1t?= Subject: Re: [PATCH v2 3/5] gpio: use new gpio_set_config() helper in more places Message-ID: <20190326200302.GA15712@roeck-us.net> References: <20190207162859.26252-1-thomas.petazzoni@bootlin.com> <20190207162859.26252-4-thomas.petazzoni@bootlin.com> <20190316014352.GA6124@roeck-us.net> <20190316144519.07805478@windsurf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190316144519.07805478@windsurf> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 16, 2019 at 02:45:19PM +0100, Thomas Petazzoni wrote: > 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. > The problem is still seen in the latest kernel as of last night, and I did not see any further activities. Should I send a revert request ? Guenter