Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26767353rwd; Mon, 3 Jul 2023 14:49:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZtU+irvGnUd0Gh9rQ3Lu4mrSeAOLj5bjjIUMMgJIdP466g7oTGCZ5qozSSrHfY+4Z+dVL X-Received: by 2002:a05:6a00:17aa:b0:676:ad06:29d7 with SMTP id s42-20020a056a0017aa00b00676ad0629d7mr16644182pfg.15.1688420954757; Mon, 03 Jul 2023 14:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688420954; cv=none; d=google.com; s=arc-20160816; b=K5UG5SIdWPKIyO0kqINvOyAr5Plq1dNoUSz2RWGoya3dghlDZrOHTul55f1aVS3aIf am64rbVMbfDwCL5VGmNkav+UpZSAhHJ91vu1ehzOOnwoIPeA2iJDNh33KODAVPRw5RYH yqY1bjcWFSafevD0BTJmIUe2ILF9i2YSqD30zO2SB6xBCL66yQ2EE53i3CIosxnuOK7w oA+M1v+S8Ww9ITFvnu1FyJZuW3iCf8Qq6KOXnEKpc9ShxDpPI7be36iYSqLiaR8YSJfo L3pDS7ur8OPtYpgt4bv60MdeSTatIJuGYLdFDUiVUT5oduomsytfvSvUv9PyZKfzaqXV Ejgw== 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=JmMQU/cMH8P9xeBZLu7bYB1XXtHX2w8HHfwShHvuIXc=; fh=n8nJS9qAkNWhTT/cCJLLG6L/dqY6KRmsSs/ek/3r7hg=; b=mDTojfoTOy5nczRzBLQjF3B7NxCB9cwdZot35ATpOnDtXEhk3vtqLrRi8B4N1H9CT3 WuujnxPtTdPhOpwErob88HEwHYAdhId4wHUDC3gG20pJzwJ4/EMwX0LmqXz3nsba2cyw xCvM8K1I/d3Fpf4P2t+gUEqmJDAaJqNkT+2U1tc9cH7BpyGhkQMJasggUVUFjE4moD4B SqmYeFWeEARZr5X2Cugvd1ib3tE9m4KfYLgTZCRDIMZKLeRJ49HkS0cB0U9U6F6dvbfq iR/DRglI4uck2PwMeOgIwGg2ItL6e9UWAny3tBunlPVovXuzmlDl4EoZQxJOlC6KIsxL HxAw== 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 m21-20020a056a00081500b0067f9d269213si12662093pfk.171.2023.07.03.14.49.02; Mon, 03 Jul 2023 14:49:14 -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 S230214AbjGCVfq (ORCPT + 99 others); Mon, 3 Jul 2023 17:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjGCVfp (ORCPT ); Mon, 3 Jul 2023 17:35:45 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C35ED1A7 for ; Mon, 3 Jul 2023 14:35:44 -0700 (PDT) Received: from localhost (88-113-24-87.elisa-laajakaista.fi [88.113.24.87]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 8f925d03-19e9-11ee-b3cf-005056bd6ce9; Tue, 04 Jul 2023 00:35:42 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Tue, 4 Jul 2023 00:35:42 +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 4/4] pinctrl: amd: Use amd_pinconf_set() for all config options Message-ID: References: <20230630194716.6497-1-mario.limonciello@amd.com> <20230630194716.6497-5-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230630194716.6497-5-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:16PM -0500, Mario Limonciello kirjoitti: > On ASUS TUF A16 it is reported that the ITE5570 ACPI device connected to > GPIO 7 is causing an interrupt storm. This issue doesn't happen on > Windows. > > Comparing the GPIO register configuration between Windows and Linux > bit 20 has been configured as a pull up on Windows, but not on Linux. > Checking GPIO declaration from the firmware it is clear it *should* have > been a pull up on Linux as well. > > ``` > GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x0000, > "\\_SB.GPIO", 0x00, ResourceConsumer, , > ) > { // Pin list > 0x0007 > } I beleive we do not need so many heading spaces in the above > ``` > > On Linux amd_gpio_set_config() is currently only used for programming > the debounce. Actually the GPIO core calls it with all the arguments > that are supported by a GPIO, pinctrl-amd just responds `-ENOTSUPP`. > > To solve this issue expand amd_gpio_set_config() to support the other > arguments amd_pinconf_set() supports, namely `PIN_CONFIG_BIAS_PULL_DOWN`, > `PIN_CONFIG_BIAS_PULL_UP`, and `PIN_CONFIG_DRIVE_STRENGTH`. ... > Fixes: 2956b5d94a76b ("pinctrl / gpio: Introduce .set_config() callback for GPIO chips") Can you group fixes at the beginning of the series? -- With Best Regards, Andy Shevchenko