Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp766634rwr; Fri, 5 May 2023 04:56:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/BnrLWIbqSNASIExYLXkGjKLzNNHvPXmZYr1XKrmIzlLyHxwcMLkLzVZlqgwOb8ns5qV1 X-Received: by 2002:a17:90a:4801:b0:23d:16d6:2f05 with SMTP id a1-20020a17090a480100b0023d16d62f05mr1252677pjh.22.1683287791075; Fri, 05 May 2023 04:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683287791; cv=none; d=google.com; s=arc-20160816; b=hz/dfQqwBGdxMNcoOazuDs0kZr6KNGAxzH1W7LZqsIWEqYTCO+HuCI1EcgWsuZObj2 816yxKd5s75GAdVYyqdjP8bBoBwJ8/nivppbw48mXBqVgWRglkJbXmD9nr5erllTY9Ns 2NT7DeiozR7YwgTYuvl0KKM5++hYgQmeNbAT1MoR29rwEBJtuAPyLwoEc6b0acLOeIdm kODz9sxNVVGq9IRZhzTirwR3ngcNcayJKMQrELZ5Lav39JTMtZbMrI3fFvkqLEmjQCw0 3c684oN8+wdD5pdtmEdI2TDaaAW1czcpZ5t3VDGcx2aHvT5d7kL5Up1s3IrWkkP69ejY cOeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ujLLumrKh4q+bshtlIQ6r54rkrCQR8hj9C2xEoyLMFo=; b=jolAOe25nAwLRMsdrzliW/soPe6QHGkA4AOULnhpcqY6qlMLkBDrIa8HanmHqT/8M0 fnWDv6NVgghMk6tqSkRDstGy1fboGFIgQ6J6wpnvLd46KEw4XGdnmq/RInW4+xzrY9BL u5xcap0y9dwS2MLXp2aIM8dlmjEsxMDrvQe3v1Z0CKmnH3DILqZjmshjA6jPr9hVWLrG sE2guADIL6cmr5DvyqhLBhNie24XCuCcPAcm+Cnpirxn6CrrDW8lZEl6qsVNUFFbOs9O Tb6/4KU2pwIz2zfyDykfdS6wdgtoO7GczFcTzDaTVMcR4S/1ZNT3g5ZIoe6hkDzxUSUj JUAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TfNrY4h1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7-20020a637807000000b0051b4f4a2032si1757228pgc.599.2023.05.05.04.56.14; Fri, 05 May 2023 04:56:31 -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; dkim=pass header.i=@linaro.org header.s=google header.b=TfNrY4h1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231893AbjEELn6 (ORCPT + 99 others); Fri, 5 May 2023 07:43:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231671AbjEELn5 (ORCPT ); Fri, 5 May 2023 07:43:57 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 410DEAD2A for ; Fri, 5 May 2023 04:43:56 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-55aa1da9d4aso28535567b3.2 for ; Fri, 05 May 2023 04:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683287035; x=1685879035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ujLLumrKh4q+bshtlIQ6r54rkrCQR8hj9C2xEoyLMFo=; b=TfNrY4h1C7phIcd7lcuwhAN5y160ShZqKhwyHQ0csa1IwEkQrcnzG2A+sxNyRSAWHw XlKH+c68P1CICMVnAevc/iAhJ2lfGjq1GDMdzcnEPSyVwlMOmkwMyGDOO2h4sz9RFm0f QWGrEDJ23O839qREbS8t6pbhg8FdQA5Ofc6rkeXQpmeRPo3xFkArAicHRJJvQ9gnsfTg PXwvfj6ev/NUVV683ez8bn8iZZQfPkhnK9lmuLWOhuML89t734fxfhVZTpda9wgNgUYd f3xIMPe4Z0+Ukfvv3BoiGgL+IFeJkvlX1zEZVB6IDKKEwBDec4XeSeGgXPk0nZpfCHkU TL4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683287035; x=1685879035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ujLLumrKh4q+bshtlIQ6r54rkrCQR8hj9C2xEoyLMFo=; b=KVT+7BvIDE2dfxM1Ak3nSKXN4M1q4q6ZIESxBuub37CJYMS4EoqZqbtN2GoR+vpfeb eADuvSw94KKWOw0wdnNavUh9YrbsjtVb/Rgif8opBhdMeRp9g6aKpHPB297dW0edUdcQ IDKfyzsmvnB+Ly36rUeRxZ79Sjz78dmSFsdLBS/S2eQ+iwv+puWsHqUVsaJ+2IOoocgE kcdGQi3aB6J0uyN6oivVhld1WKQAiwPOdBd2cNiS4Ua2mHTpq7tWYpqKczLw0LYFpoC2 9Ma1+DMwoQjt1E9EG/VdOj8dcs+SFlgnqF39lIr7hgBdrCUEHVap7lOXfGM7X4+Qb0jj TUjA== X-Gm-Message-State: AC+VfDx3Y6T/IoDsd56subndmdDqUs9WX1uVjqR8RWcnBedz8Mt4oAYD /E+Ch7a2XQ5cwt8yBkx/BxK5Jf53f7xAVHQla/UwgA== X-Received: by 2002:a81:6dcc:0:b0:55a:1c79:8eab with SMTP id i195-20020a816dcc000000b0055a1c798eabmr1036671ywc.32.1683287035463; Fri, 05 May 2023 04:43:55 -0700 (PDT) MIME-Version: 1.0 References: <20230421120625.3366-1-mario.limonciello@amd.com> In-Reply-To: <20230421120625.3366-1-mario.limonciello@amd.com> From: Linus Walleij Date: Fri, 5 May 2023 13:43:43 +0200 Message-ID: Subject: Re: [PATCH 0/4] pinctrl: amd: Adjust handling for firmware misconfigurations To: Mario Limonciello Cc: linux-gpio@vger.kernel.org, nakato@nakato.io, korneld@chromium.org, richard.gong@amd.com, Shyam-sundar.S-k@amd.com, Basavaraj.Natikar@amd.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Fri, Apr 21, 2023 at 2:06=E2=80=AFPM Mario Limonciello wrote: > commit 4e5a04be88fe ("pinctrl: amd: disable and mask interrupts on probe"= ) > had intended to work around firmware problems on a Microsoft Surface > device but actually masked other real bugs in firmware and the driver. > > Before this commit, "wake on lid" doesn't work properly on a number of > systems, but this is because debounce handling was improperly configured > in the driver and due to a bug in this commit it gets configured a > different way. > > commit b26cd9325be4 ("pinctrl: amd: Disable and mask interrupts on > resume") attempted to build on top of this to mask issues on resume, but > it happened to "fix" the bug in commit 4e5a04be88fe ("pinctrl: amd: > disable and mask interrupts on probe") which "broke" wake on lid since > the debounce handling was programmed differently. > > This was reverted in commit 534e465845eb ("Revert "pinctrl: amd: Disable > and mask interrupts on resume"") which fixed the wake on lid. > > To fix this series of unfortunate events and prevent them in the future > this series corrects the GPIO0 debounce handling and reverts commit > 4e5a04be88fe ("pinctrl: amd: disable and mask interrupts on probe"). A ne= w > patch that is safer is included that will fix spurious interrupt handling > and is expected to fix the issues that both > commit 4e5a04be88fe ("pinctrl: amd: disable and mask interrupts on probe"= ) > and > commit b26cd9325be4 ("pinctrl: amd: Disable and mask interrupts on > resume") attempted to fix in a more scalable way. I applied the series for the next kernel cycle (becoming v6.5). If it gets urgent to get this in we can move it into the fixes (for v6.4 an= d stable) but at least this way we get some rotation in linux-next and wide testing of the patches. I will push it once v6.4-rc1 is out. Yours, Linus Walleij