Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2754778rdb; Mon, 4 Dec 2023 06:47:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmwgJSlq/LfH0pFgNM+66bVfU5qF6ey8pDomqmX/CZQjuN/CO75rOBesDynngUJ9vLjxMF X-Received: by 2002:a05:6a21:a5a7:b0:18c:908b:e16e with SMTP id gd39-20020a056a21a5a700b0018c908be16emr1607363pzc.24.1701701251506; Mon, 04 Dec 2023 06:47:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701701251; cv=none; d=google.com; s=arc-20160816; b=L1KPIrp3vcB6TgwRe+SqAlZhn91nBwqaYPTH3IPA0HJmFBz8glNf+j2InmezAhKK5F Y5zkWG9Hm4esx6BjPlQ701CG+ZCD6R7Eun3zIKTvwiA6K01HAg39uPKhKp4+YwgP7Y52 /4YRvriLqdWeTKynUqPgNoddYWyGhiyoP5i3o5fY/77IY+9JffU21yr0QzkS8mz8vogv B4fZjAy9OxtxvZkqYjNQzZXETK5EBzAd2pLJVIzgMPu0g+FYVlaH4+7SmqSQINuHIYGv mtm3KYOUehFPMbn7JjfJOaII/EZ/A9XVqmrh41B0OfRYhTbJjSqkoc8Ith6e4DFsWU+w a/mA== 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=0vucZ1p7lmrLTgOrAv8yDP9iwaoHQ9uGpar2Z2YYKFs=; fh=RjYdPg2Jsr5zvCXeViBqmtHRGjosPDhhwIDdb1MrpAY=; b=lU2kNVNiJhxCrmjglyc/+f/u8wqfj4aP2nHN6KRiiM1yIi8HkdYbEu2ebT3umTgAhv InhyuC0MjfuPXGJYuiOtwQXftY7lL310haAvbTkzM9R0WauKd1L0SMuuGBhILtQg3qdl vCY80UuA8hX1gD/MTAEjiCUPET1Tj7KhG1ngDrKMLntVARMPNZAWEuI/MqK1f9164caU 9XpGDfUGKIOMNEjpesI52dqH8dbe2kJxjrUr0FltYNMgqURbaC+XQDhcZ57g4RpTeSb7 Az/CaNrnEiZMljWw3r7Xc0QVn9pXPGMuFvmf21xdcSkvN7Ag8smmTAoXDvuNXVkFFoEt SgQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XykgohPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y18-20020a056a00191200b006cc0288a7basi7991485pfi.33.2023.12.04.06.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 06:47:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XykgohPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3492380A22FB; Mon, 4 Dec 2023 06:47:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234155AbjLDOrV (ORCPT + 99 others); Mon, 4 Dec 2023 09:47:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234203AbjLDOrH (ORCPT ); Mon, 4 Dec 2023 09:47:07 -0500 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58A02135 for ; Mon, 4 Dec 2023 06:47:11 -0800 (PST) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5d74186170fso18281237b3.3 for ; Mon, 04 Dec 2023 06:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701701230; x=1702306030; darn=vger.kernel.org; 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=0vucZ1p7lmrLTgOrAv8yDP9iwaoHQ9uGpar2Z2YYKFs=; b=XykgohPdN98MPrT/aD9Ahw5v0XrZDQ7GI7RiABqMLJkVH/MQCevD2rLKCn+qXQOd31 /cAwXMSz5bYdysMRt5mMgl8xlkgUwLJlmKxW2pjhPmyuyIF8C2SLoT5rq6tZeaa/oSPz znKAlVGGL2Bs6/Z1b44FUQk5KL6JQHZWrZX35Oe6EDqLBAG6iLMguwUQNal76ZyiYU2G fzyj/PphdO7Y9vnxlg+HWN+W0S6qXb6pMPt4t36Lj5CoK/X8e3sAM47DjCHmM+gl9Yef yvQyZFcqTjIUqiRxWaTOheY9XPjBF762VsejWsporr2baORywN7BKgLZSVnGkp84EYxH iYvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701701230; x=1702306030; 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=0vucZ1p7lmrLTgOrAv8yDP9iwaoHQ9uGpar2Z2YYKFs=; b=ZW3ByXn00091+MpC3rbspN+LN4DAcDe+WXRl3OWmvwgndOKomib+l2URm9GILlxpvp BhIAmodxIUcSsTkHFwctMtCT3T6unBiLAYE45UmBrdXTKw1Mz7tQQm/OvMds2d5352mb LdIen5B0Us7q4X4p7929DYfRlJpjSdtdlGzIblFLyo2C5PF/pAt6nizurTTA1N0PdXr4 N9hmn9OytwSfkSrH5TJAKjuIoNz8lvCJfJ94C/GTj11jF2BzH4iENparz9HeOQ3YlHQm 483aW72hTaXyh/4hO5X5DY2crQ3t6AXHKzPA1Xs7Q3DSCVtTkgz752me5q5f9PzeiNuA W6TA== X-Gm-Message-State: AOJu0YzcukTANAOLtG/6tU1ICbWfGA59JeFw7jN3ulQHE9P+kiycZf/Q kvRKWNVU32l7D3hpNeVyuuZFgEODvOylYTDXZkOVEg== X-Received: by 2002:a81:4426:0:b0:5d3:7ee5:d0db with SMTP id r38-20020a814426000000b005d37ee5d0dbmr2558189ywa.20.1701701230569; Mon, 04 Dec 2023 06:47:10 -0800 (PST) MIME-Version: 1.0 References: <20231203032431.30277-1-mario.limonciello@amd.com> <20231203032431.30277-3-mario.limonciello@amd.com> In-Reply-To: <20231203032431.30277-3-mario.limonciello@amd.com> From: Linus Walleij Date: Mon, 4 Dec 2023 15:46:59 +0100 Message-ID: Subject: Re: [PATCH 2/2] pinctrl: amd: Mask non-wake source pins with interrupt enabled at suspend To: Mario Limonciello Cc: Jiri Kosina , Benjamin Tissoires , "open list:PIN CONTROL SUBSYSTEM" , open list , Basavaraj Natikar , "open list:HID CORE LAYER" , Marcus Aram , Mark Herbert 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 06:47:30 -0800 (PST) On Sun, Dec 3, 2023 at 4:25=E2=80=AFAM Mario Limonciello wrote: > If a pin isn't marked as a wake source processing any interrupts is > just going to destroy battery life. The APU may wake up from a hardware > sleep state to process the interrupt but not return control to the OS. > > Mask interrupt for all non-wake source pins at suspend. They'll be > re-enabled at resume. > > Reported-and-tested-by: Marcus Aram > Reported-and-tested-by: Mark Herbert > Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2812 > Signed-off-by: Mario Limonciello I applied this patch (2/2) to the pin control tree for fixes. Yours, Linus Walleij