Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26766431rwd; Mon, 3 Jul 2023 14:48:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6J+Sh0YB4StGZ3cSVx+iHXKOREz9xuOxLolTTM0ckjNPIH4SyY5SIja++ndCLnGRhIj0yS X-Received: by 2002:a05:6870:b604:b0:1b0:37a:97cf with SMTP id cm4-20020a056870b60400b001b0037a97cfmr12169768oab.43.1688420892923; Mon, 03 Jul 2023 14:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688420892; cv=none; d=google.com; s=arc-20160816; b=OYZ1ZHk9twzNSMcO7jyerfWUWr6oba2fofD2Gz17STi74qAcxLtqbzTYhifNGWp/m5 UNycMb4KpV3RbhjZof1ePbi814AK2FApnlw25QB0R1gvfokfhnlcgd72GhdJPwLENu2I E9/B9mBjjWrCYEjHGBuUWUc3VuyW55cwFyeZUy15gXNlgX1AztfmQuXawk17PmSH9x/Q cYXDaw0ih1tNzlFEbV1bTQ7HJIrRZKyhqeDkINPB4skADd5cztfGelHltJrB6DQY6Nxk hyo7GLwQNCZ14eyC8rLioDkLZM9SSL2A5oJMyQWg3IQZme9RiFiBgufam+cJzBDcYZwy oA7w== 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-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=Ssbj1PFOsnJUEZU7BVz+uElsMi7DT1rOVwV3vPDdRFs=; fh=n8nJS9qAkNWhTT/cCJLLG6L/dqY6KRmsSs/ek/3r7hg=; b=B9AQHXNqmHaV7MFlj+qXMHh55P8/tMJOisXLLIY1oQkXi/Eh1H2tCYYdbIE5wm3nvB 2TDjmeGtKvLIfSZ2Eu7EzrAGzmttge7fr+e3/b0E28bj0wf11s3QgHAUzQy9KhdYLGhj DSnJpLH3W+L8DrfkP12kMCQOng27f1gj8rYLGEuvRT+IzW+p6uCP6SFoGI6rc1G5f9Oc pkgFTxNcdFeAMUAurGrtls7xgPtzKAZ6WyM5/mo0C65Gz9+zcrVynRn0CnQrZjanP1mZ 17pwJyqJtmFTieGEc14MKhUgy9MaqvgxAAL0927k8i7eMmC03yOIdS5s935wO1G4BWrC koiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h62-20020a638341000000b005538a669b5fsi8423799pge.212.2023.07.03.14.47.59; Mon, 03 Jul 2023 14:48:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbjGCVdh (ORCPT + 99 others); Mon, 3 Jul 2023 17:33:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbjGCVdg (ORCPT ); Mon, 3 Jul 2023 17:33:36 -0400 Received: from fgw22-7.mail.saunalahti.fi (fgw22-7.mail.saunalahti.fi [62.142.5.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 940911A7 for ; Mon, 3 Jul 2023 14:33:35 -0700 (PDT) Received: from localhost (88-113-24-87.elisa-laajakaista.fi [88.113.24.87]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id 42b1666a-19e9-11ee-a9de-005056bdf889; Tue, 04 Jul 2023 00:33:33 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Tue, 4 Jul 2023 00:33:33 +0300 To: Mario Limonciello Cc: Basavaraj.Natikar@amd.com, Shyam-sundar.S-k@amd.com, linus.walleij@linaro.org, npliashechnikov@gmail.com, nmschulte@gmail.com, friedrich.vock@gmx.de, dridri85@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] pinctrl: amd: Unify debounce handling into amd_pinconf_set() Message-ID: References: <20230630194716.6497-1-mario.limonciello@amd.com> <20230630194716.6497-4-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230630194716.6497-4-mario.limonciello@amd.com> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fri, Jun 30, 2023 at 02:47:15PM -0500, Mario Limonciello kirjoitti: > Debounce handling is done in two different entry points in the driver. > Unify this to make sure that it's always handled the same. ... > -static int amd_gpio_set_debounce(struct gpio_chip *gc, unsigned offset, > - unsigned debounce) > +static int amd_gpio_set_debounce(struct amd_gpio *gpio_dev, unsigned offset, > + unsigned debounce) Side note: Are you going to fix unsigned --> unsigned int? The former is discouraged. ... > +out: out_unlock: ? > raw_spin_unlock_irqrestore(&gpio_dev->lock, flags); > > return ret; -- With Best Regards, Andy Shevchenko