Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2245048ybb; Fri, 27 Mar 2020 01:45:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuv6DFlMeCkBmQyu+Y4gp3QWkdSRgNlyf8xoxB7EX1m7gHHbkoCGkvXVQoV3NnPM7d0RWBG X-Received: by 2002:aca:3302:: with SMTP id z2mr3292812oiz.3.1585298757810; Fri, 27 Mar 2020 01:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585298757; cv=none; d=google.com; s=arc-20160816; b=MMo4gLvCIiQmFJC4NpKJ36MKSP9WHIQk23BWhmVg0RhFJHOsbuWILqif02vPWwnwFB xeQn8fFD2jvzLwyq+vRaGnd6dHYEqz5vcChus6lhsqSK1FcDPY7WLoy8/LF8HyoEqbX/ HbjLltAkZbMUg5cdahb5G9SwboFaVrIamAwXdJRugt3wUTCv7epVv5wPxwv0L44SJxpc hJg1rlw2rvj6FUUhpBX6jFafXTBym9IbV7SbUxvl1vNqc164FokxxAfJG2U46u1Y3Z9x XdJgzMvFkXldydhU59bpKYocMjovye3y46GVb8Cqs3npuLcU5eui5zAxCE+bUA5a+/O9 IGWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=eOBjyRt4JV8Fw0zzDZumBm7LVivMqi17PPfNiqHh3qk=; b=EDhNvO1ssZ6C1slw23Hzjw4+d87ifvxVDIgQFYhb10ywudgtZ7hfxUyhfdEazcPdxA G09wVWY/kzHkC3YicaoAqz9ECps6o108rB6NSY2Q/HTyfuf97rLKLTVu0Tny9Knv54rC PDUC10SUPzUh4HRz9n7cFCM3tRMiWUvpTeha6ewmFMxpnYWUYZsVWj5+MCZHdpU1XEEW nXeHdFcE4O+w2Cy1bL2CZJWLuLb7k0OsIJC7KQaBEEoc58sFAYTWBw5j/jTAwbUHQDcr +yNsORY2fYbIVCvG9xv2/D+Ma097dzoADFZe9ZEX6kJaYekb5jax/efGfrZ3Fjdt3Vox ig0A== 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 p20si2068782oof.69.2020.03.27.01.45.45; Fri, 27 Mar 2020 01:45:57 -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 S1726518AbgC0IpX (ORCPT + 99 others); Fri, 27 Mar 2020 04:45:23 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40997 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbgC0IpX (ORCPT ); Fri, 27 Mar 2020 04:45:23 -0400 Received: by mail-ot1-f68.google.com with SMTP id f52so8906097otf.8; Fri, 27 Mar 2020 01:45:22 -0700 (PDT) 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; bh=eOBjyRt4JV8Fw0zzDZumBm7LVivMqi17PPfNiqHh3qk=; b=nNNtvb5JIc83n6idKlCJmdznoRwgO2XqukBnIqMVHR2iYiS1c0eQbQxNV+khns1Etz 4a19wgV6Bu+yyQykC346Oc4laIsycpZmkDZQ0pAcfB7Tbbt/rWcA0IHWz6GZc4OK6RMH Tel2tXBp7fRhFyuFxu2Hh4l0hxBSQ+6kK6e0mQjk5I5SFffAaGKUCbxNcbeyzT+kCZFB TAVpLLmGR4zveD8PAUUZAp5yjfQmOs74roa7w2JDayt1VpGBdyhZdHgL4T2fRsOI0H3f QmTNvvo0o3CMGcyz2wtZWaabIwwkAwHjyuMDpl+xGCNnA+rR6ThX9QppUZPlgRaeVZPH V8Qg== X-Gm-Message-State: ANhLgQ2yJ40qSCH3ljnZDz/B3IlhkWOVH4uThm15uwGHNJx/erY3xT64 6UQMHcA8JUP371nKFCQblVc83c4CQTK89rUxvok= X-Received: by 2002:a9d:7590:: with SMTP id s16mr9385922otk.250.1585298722494; Fri, 27 Mar 2020 01:45:22 -0700 (PDT) MIME-Version: 1.0 References: <20200324135328.5796-1-geert+renesas@glider.be> <20200324135653.6676-1-geert+renesas@glider.be> <20200324135653.6676-5-geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 27 Mar 2020 09:45:11 +0100 Message-ID: Subject: Re: [PATCH v6 5/8] gpiolib: Introduce gpiod_set_config() To: Linus Walleij Cc: Bartosz Golaszewski , Jonathan Corbet , Harish Jenny K N , Eugeniu Rosca , Alexander Graf , Peter Maydell , Paolo Bonzini , Phil Reid , Marc Zyngier , Christoffer Dall , Magnus Damm , Rob Herring , Mark Rutland , "open list:GPIO SUBSYSTEM" , Linux Doc Mailing List , Linux-Renesas , "linux-kernel@vger.kernel.org" , QEMU Developers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On Thu, Mar 26, 2020 at 10:26 PM Linus Walleij wrote: > On Tue, Mar 24, 2020 at 2:57 PM Geert Uytterhoeven > wrote: > > The GPIO Aggregator will need a method to forward a .set_config() call > > to its parent gpiochip. This requires obtaining the gpio_chip and > > offset for a given gpio_desc. While gpiod_to_chip() is public, > > gpio_chip_hwgpio() is not, so there is currently no method to obtain the > > needed GPIO offset parameter. > > > > Hence introduce a public gpiod_set_config() helper, which invokes the > > .set_config() callback through a gpio_desc pointer, like is done for > > most other gpio_chip callbacks. > > > > Rewrite the existing gpiod_set_debounce() helper as a wrapper around > > gpiod_set_config(), to avoid duplication. > > > > Signed-off-by: Geert Uytterhoeven > > --- > > v6: > > - New. > > This is nice, I tried to actually just apply this (you also sent some > two cleanups that I tried to apply) byt Yue's cleanup patch > commit d18fddff061d2796525e6d4a958cb3d30aed8efd > "gpiolib: Remove duplicated function gpio_do_set_config()" > makes none of them apply :/ /me confused. That commit was reverted later, so it shouldn't matter. I have just verified, and both my full series and just this single patch, do apply fine to all of current gpio/for-next, linus/master, and next-20200327. They even apply fine to gpio/for-next before or after the two cleanups I sent, too. What am I missing? Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds