Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5424708rdb; Wed, 13 Dec 2023 08:15:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPVRCxPm9AjYshksIax3ixV4hznreqkzNILyVN5Uii6yOw9tNP6KZrwnOO7qGWd5YK128x X-Received: by 2002:a17:902:c407:b0:1d0:6ffd:6107 with SMTP id k7-20020a170902c40700b001d06ffd6107mr9960392plk.41.1702484152077; Wed, 13 Dec 2023 08:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702484152; cv=none; d=google.com; s=arc-20160816; b=WuAoL7EXMHvT5nRb7T+5zU6I/sx5NryyM2FfRJuzoc0zSMD90ixrLWehvnBvxPz2sk e6CjsL3KmsAQ3fV6+9IGKOfQPHgoZdzZHGzDzkbqFv0GAHcrJ1EO2RhTxDF11eTFh/Gv TVBevqZHhHo23HvSH5W1hoTIqw3O5DzDsiFEcHwEC1xt54jhQIkhugyDkHVgrZB3RxbH brgay6W9kOb5o2v6LQArRRMuqvuX6RpEZ1gdZtOSB4+ks1Oq8IgVYNEhoSHSvRiGxDap /Fwn8ErF4jcdXjoD418MxocXgXEhn9EpCwYMxvXQL3CoWtzAF/SbYAPaH00/wmTlxBkR 7qrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yOUUHWkNOhCahFmCbRTrRuCSJdVjqTTZ7BE6QBv4gRw=; fh=2tiXm94URdiNoC6su0rBT0aJnKl1hJDBdw2+cYBwXCo=; b=l6bRRaUl1wCDfdy+lBVJcVSdrFRE0OkmTWKbSr7MF4ytQ1GbFwRA+rSSXBebD793fe lLfeY5OE1c28rGtlY9InsguIvEzjJ984z/AA0mTgU0trq9677h9evPOJtrWY4SBbAdFC eX92V2RUJbGWsjALC/L6xycvHj1jgEQS6BL+fEOET7ckxDi4YSK88C+3fvpJ15n1G2F/ SVApkiwFOEqov0DFvl7Cywkl0YYQaa4cDlcl2goPpLjHnj9uzeK6PBmijWW/h2Tf+Bkq SaLgzZAMSsMn0vQ4C3ccdcwAz2t8kwPcZaohS8+agcaJ4ajXszofJETfYzFDBwlzN66R xtow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bCrUun2p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id x19-20020a170902b41300b001d0c442d76dsi9778774plr.246.2023.12.13.08.15.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:15:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bCrUun2p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3424B80834A7; Wed, 13 Dec 2023 08:15:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235454AbjLMQPg (ORCPT + 99 others); Wed, 13 Dec 2023 11:15:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235450AbjLMQPK (ORCPT ); Wed, 13 Dec 2023 11:15:10 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9708128; Wed, 13 Dec 2023 08:15:15 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-6ceb93fb381so5228846b3a.0; Wed, 13 Dec 2023 08:15:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702484115; x=1703088915; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=yOUUHWkNOhCahFmCbRTrRuCSJdVjqTTZ7BE6QBv4gRw=; b=bCrUun2pXb4KlbJLJpLphGoCnowzdXkbMiK1/B2CbzJLA5YyIqykxhAnWL5uypDyll mRwjvmPTQFZq2/2Pr2SL6tKRhfkcIZEIEPP+MdkuuzCnZB0nhqEYHGuRC+tRG75iy20g 3P22X1brI7SvZL4UxXXI7xZaJDeknEe1x+dxnupy8V6CRXPOtd+iFWqydin7gZloiB11 +N2JZL/m5n96FdrxwbA9Vc9ukfh9fqCZ6T3SEoX3p9QUDEzBib2fPjPvXMsJHhrx5S7L CvKRiiT8m6NqLOwOIgOCIbKXMr3Q04bTH1+HnLIcRralnEnRHY6S2tFME4XOblLtULfi IJwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702484115; x=1703088915; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yOUUHWkNOhCahFmCbRTrRuCSJdVjqTTZ7BE6QBv4gRw=; b=Fbz3WAy/0YVGfAVXyOtedPE0SpAogdm+GeGPEx3b/fNMiRiNv53ycZ5WBLN0lUQRDU SRqpY3+9G/p2snnWxR1YFeGXHDvGJBJnPOvv3L/xmNOXY0+wUDUTGUS9xwbNTIs8pmzK 6wVW21dQdiPFGWCi/KiWgzXZcwaABVTNjXD5yH0yRhHMjdGNg9BJKZ4PJQLMN39qE6Hp Ac6QZI+XRFCVx5zd5nTemUblAgZrn+iNaetU4vuvUnfv20sBIH01F9ta9bac42roICdr jsEBb6JrGvcfTsxZ5qHlqL0UyRV7kxnLCTCFLs3fQD1+0zn5rZLVI3KHpQOVTxyUDlT1 Mvwg== X-Gm-Message-State: AOJu0YyPaOGVCFMllqu/6AGpkMv3xSfQgp6vGlt5viHHt6izQASP3YDK j5JCJqu47WPd7qQtUywW8bUoQlO3OBQ= X-Received: by 2002:a05:6a00:189d:b0:6ce:2731:47b8 with SMTP id x29-20020a056a00189d00b006ce273147b8mr11025494pfh.24.1702484114891; Wed, 13 Dec 2023 08:15:14 -0800 (PST) Received: from rigel (194-223-186-106.tpgi.com.au. [194.223.186.106]) by smtp.gmail.com with ESMTPSA id x11-20020a056a00270b00b006ce7e65159bsm10127487pfv.28.2023.12.13.08.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:15:14 -0800 (PST) Date: Thu, 14 Dec 2023 00:15:10 +0800 From: Kent Gibson To: Bartosz Golaszewski Cc: Andy Shevchenko , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org Subject: Re: [PATCH 1/4] gpiolib: cdev: relocate debounce_period_us from struct gpio_desc Message-ID: References: <20231212054253.50094-1-warthog618@gmail.com> <20231212054253.50094-2-warthog618@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 08:15:49 -0800 (PST) On Wed, Dec 13, 2023 at 04:40:12PM +0100, Bartosz Golaszewski wrote: > On Wed, Dec 13, 2023 at 3:27 PM Kent Gibson wrote: > > > > > > > > > > +out_unlock: > > > > + spin_unlock(&supinfo.lock); > > > > > > No use of cleanup.h? > > > > > > > Again, that is new to me, so no not yet. > > > > Yep, please use a guard, they're awesome. :) > Before I go nuts and switch everything over, is it ok to put a return within the scoped_guard - it will automatically unlock on the way out? Cheers, Kent.