Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3655176ybl; Mon, 3 Feb 2020 04:15:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxrY6odP42Q6VPpA/+avqJzYI+ZNPIsYwdHLb1SnGQo2wE9IEOsORXbLQL1yG6gklQQfvmw X-Received: by 2002:aca:cdd5:: with SMTP id d204mr14393706oig.134.1580732103387; Mon, 03 Feb 2020 04:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580732103; cv=none; d=google.com; s=arc-20160816; b=cnxUJdEjr8nqhOt7y+IpurW4bnnyNYDCORCM29e32cZTidscAyBmhQvyAdC/3bf7ut +UKRrAliCzvoE6QXMaf8zJGB5IqhuQD6nyelYoGZxXubLHJafdtfZyLwAV8ZtuQiPEIp l/TaL0qkB76Ft9UUnaACrOBI6GIRJnsUEh6WzsZr8P5vNc3i9JrnOj4pEwHJwLcBi96f qlXyCO65DXZL0TAUOWWqxbk1RllohO4cJLXHOKKnQVcp2LGHNPguXn8G3DFubbhJR/vS bAZ1dIZdal3SivSrBct210r/ypGSqH6SAyCKHUicblAcFsjTiNvcvwF9VHH9jDY0fa+J 5XLw== 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=OEJ+A4YOxXmg2doai7LuIU0V5wHQ//U/Mj3H+TVAh7c=; b=Ikf9cUXq08HA4otgFa7swJzGvOYRpIKl0Xc68FHhLwO7Pr31GopTVPs2JESF+RTb71 pQr1u+GHSRYwGk+ukr+67E67rn1ZHD7tUtyD3XdP1jshOXisJhj+OYPMRQVpspltrgPI yw1gkhL9yYVMrCUB3Nd29YLyqhgzhOXw6xIJ3oi6qpb02GZ3Z8/KO6VcPQU1s64UjeWE oCZ1JESt2pVlHBuKSlACvlZDDyKVEMXgyfTligTqI7yRiHf4GupC365xRVZGv8xrGkfx V0V5OfwUtN7hPsKbxlL53ri5MHwLorlrh1Buu06+1ARSO3BKzphiEOpUWu9qhFq4lANK wfvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=WpgPJuW5; 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 i20si9354497otk.270.2020.02.03.04.14.50; Mon, 03 Feb 2020 04:15:03 -0800 (PST) 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=WpgPJuW5; 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 S1727725AbgBCLFL (ORCPT + 99 others); Mon, 3 Feb 2020 06:05:11 -0500 Received: from mail-qv1-f66.google.com ([209.85.219.66]:46677 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727268AbgBCLFL (ORCPT ); Mon, 3 Feb 2020 06:05:11 -0500 Received: by mail-qv1-f66.google.com with SMTP id y2so6537408qvu.13 for ; Mon, 03 Feb 2020 03:05:09 -0800 (PST) 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=OEJ+A4YOxXmg2doai7LuIU0V5wHQ//U/Mj3H+TVAh7c=; b=WpgPJuW5nI3+4Rfo01VjSKn6FJqckk1o757wWJDFicvI916HMhqZyF7IBM881Jn9r3 ZlVLnmX3QUdGQxJWOE5TUldYoB4vfnvXnFbcdZ+cy1KhVd2mKDeSWluSRjHSmvoHjgoi wIvQRbDI0reAW4dvZqzgw3TmFKeH/9nqnUkiu3kyP0Mzyah0qLxEkDV1rl2kjAq6pzu3 kFKOtL2ipKcSGe5AF7JCzJ8VklLxPsMpgAs/PchKxc3yAWhY1k/KWeZgDJWWJMVal572 mWzqhEYgl15mncWY7lzOzzTmVCnJ6Q4ZYSKp64Jvns8ygRzFqq86NzQ4BVvsidxR/tnp EZkg== 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=OEJ+A4YOxXmg2doai7LuIU0V5wHQ//U/Mj3H+TVAh7c=; b=Bpg/qtEUJ9Pm5uQe0Nek3SgA/tkkm2VKR614uBv8kvb/csEinNG7vp3DqSUs2v/hFI dXqIqbzLEOq3hErrS/9SsRWPEf2DmVh28RZM/n6qWzyMsfuuqJehAkNdCOsNGNRJ2Miz jbIJpr7U5f69UiYhtQjoFgsvxMNAYojQ9um435jndK1OPGBK2+RsEkm3DFafQuMvttXS yimpvB/en5RiRpABLpJkIW/DlS4PVtMJYcXD0LjRauiJzV+sBG+U9525lMT3+rYz5UZ4 Yy3R/qVAO0ttngat1ZkJ0kYuubcO5IXvv5IzMURTWYZxZQfCSWheEplZvJvtWbzI5W5G LVxQ== X-Gm-Message-State: APjAAAWduJTxikL+CUba3g5vtmXZuVk2QwttDcUk/4JMdtK5b1jJ3KPt vEwPq6Ldr6rbvFE6UjgAjoQYV5MLAsepEbEfun58CQ== X-Received: by 2002:a0c:f28f:: with SMTP id k15mr5153632qvl.76.1580727908949; Mon, 03 Feb 2020 03:05:08 -0800 (PST) MIME-Version: 1.0 References: <20191224120709.18247-1-brgl@bgdev.pl> <20191224120709.18247-3-brgl@bgdev.pl> <20200201195232.GA17364@roeck-us.net> In-Reply-To: <20200201195232.GA17364@roeck-us.net> From: Bartosz Golaszewski Date: Mon, 3 Feb 2020 12:04:57 +0100 Message-ID: Subject: Re: [PATCH v4 02/13] gpiolib: have a single place of calling set_config() To: Guenter Roeck Cc: Bartosz Golaszewski , Kent Gibson , Linus Walleij , Andy Shevchenko , Greg Kroah-Hartman , linux-gpio , LKML , Andy Shevchenko 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 sob., 1 lut 2020 o 20:52 Guenter Roeck napisa=C5=82(a)= : > > On Tue, Dec 24, 2019 at 01:06:58PM +0100, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Instead of calling the gpiochip's set_config() callback directly and > > checking its existence every time - just add a new routine that perform= s > > this check internally. Call it in gpio_set_config() and > > gpiod_set_transitory(). Also call it in gpiod_set_debounce() and drop > > the check for chip->set() as it's irrelevant to this config option. > > > > Signed-off-by: Bartosz Golaszewski > > Reviewed-by: Andy Shevchenko > > Reviewed-by: Linus Walleij > > This patch made it into mainline, even though a regression was reported > against it by Geert. Please note that it is not just a theoretic problem > but _does_ indeed cause regressions. > > Guenter > Hi Guenter, I'm sorry for this, I was still largely unavailable for the past two weeks. I'll address it today, this time for real. Best regards, Bartosz Golaszewski