Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1377936pxb; Fri, 1 Oct 2021 09:22:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYpmTsAfr7A1WS4oWq/ccRW9pO2RUE0+XV2deonByFd5UPXOEfwYcvsDwJ23/7A14L6CHS X-Received: by 2002:a50:e14c:: with SMTP id i12mr15116891edl.125.1633105320191; Fri, 01 Oct 2021 09:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633105320; cv=none; d=google.com; s=arc-20160816; b=B/YJr7yXB5px51f8Z8KrTewjUWuG5W169gPI8S0NfX+HYlSBw4jEhdJ/dx5UOoCqUe UOpQ4XqZQ+iLhHJ2a+jsTZ9qGhaLg0LOxXI5rgnxGhfgF+yjvGMFEC/quhGZngG61vyx ivYQl5TntYsLRpVYK2IboYdIgso3LZkuc3/c587PEiUGZS3p36fC2W8M1e6Q5BtAf9SW RhNl2QNUgS+Bmq01GC6bkmCV4aoEvHuh5sh8PPfHoSwM0sLtrPeJSyaS/61XufMuueN6 q3AaegwaM4c92PiFseM3SiNer9hMHLMPYv9KZum46KK6KOddwRXz15fEGUY6piQd4d+r fBsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=wk0G5yb0Pu+jU8dSjG8NyghWV+VHyRrTbH7tD0+2cpQ=; b=Sy5jMgmcHqWgxkeZjkas9S/MJU4SGj0CqbXQDdULlKCqn8TvISUncEyQW8khzr44Ga L2sk/XPzEd8jUiNtyRWz67/9TL94GzPN2wKuEvwOC9dWxSazHMPN5gct+jZppjkJ/ci9 NJVVCP3tbiIcrynzl4QEK3MME3hJI+n+Q4xq2smNlchm/lfXNjVy+ZAks0jidwTOVpxl FQ32oZfNne8zmFzTzRU0bZF9rXSwY0Upaej7uh+5l3+ywKmRHN4uDTsiKatQlTQKySRj uIdeSecXsQgdO/sBmmUYHkiV6Ir5QT7iVB7SmI+8J5uSsB1d5GuNhftXFxweRVzjUwaM HPWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nakato.io header.s=fm2 header.b=O8iIJe4b; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=S763rGZV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si7215408ejl.82.2021.10.01.09.21.32; Fri, 01 Oct 2021 09:22:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nakato.io header.s=fm2 header.b=O8iIJe4b; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=S763rGZV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354742AbhJAQTU (ORCPT + 99 others); Fri, 1 Oct 2021 12:19:20 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:52169 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354781AbhJAQTT (ORCPT ); Fri, 1 Oct 2021 12:19:19 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B36DB32027AE; Fri, 1 Oct 2021 12:17:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 01 Oct 2021 12:17:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nakato.io; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=wk0G5yb0Pu+jU8dSjG8NyghWV+ VHyRrTbH7tD0+2cpQ=; b=O8iIJe4bKW9pnxZDc78Y1iez/ECgJ6O2QswTg6oufb gY6Ww7q7TURQa7ep8IfXfZV3GnC0+nNUxyI5u6gmCWEGCo0YpESa0IQiHW/XjBuq Xp8FKfHoOOOeZIwRWP/bRk9Mlg0rKzAG5sy33OCMIQ1vibJncTWwEN644J9JWHxq 1ygNwkFEPZ8XUNzTZDUJ3IWJQ/IwelA9elBPcAayYyKsaFuINsFCEXNEg1Ru3Yc8 8GN2kzdmzLudcGRv8YyxvgViuHh1ZahbzXF2ay8fW35oEnGnqzOA8v5NgC4bWTN3 lEasJa1e2VcMyvszBQSVm1MF9dAbkdXngk/2Hw64/tPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=wk0G5yb0Pu+jU8dSj G8NyghWV+VHyRrTbH7tD0+2cpQ=; b=S763rGZVNBApJuqTAJvov1XIbNXA38Ums D35DdoUcEaDR0dTV9zVB0RrcwzxkyEJAbJOLRO0IO8QACxBMcY74/xqC4tNsf+gs 0PsdaE/R6nZ5hv0EQ/IdExZYaG1GnAatEW7pW5a/ukCD/M43JyayDJj+EmWt9HHg iA8AWXd16MgyfrnUleksWLgz+bTgAyPlfVtVSe+vXXCmu7lrAYFGcepDU7Ltv1Ja 0DKYk7+eLA0heyHE6aIrEFzBKwkNN6wEqkW0WOLarnwcMJHp7baihUsLTh8zjeHv iQib6DGh+upszslID7XiDAFxTClkqwRqRTw0GJbqY3CZ0+fDlF1Yw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekiedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepufgrtghhihcumfhinhhguceonhgrkhgrthhosehnrghkrghtohdr ihhoqeenucggtffrrghtthgvrhhnpedvveetteefiefgfeejueehkeekteeigfduveduie fhhfetjeejgeetvdeuhffgvdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepnhgrkhgrthhose hnrghkrghtohdrihho X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Oct 2021 12:17:32 -0400 (EDT) From: Sachi King To: linux-gpio@vger.kernel.org, basavaraj.natikar@amd.com Cc: linux-kernel@vger.kernel.org, Sachi King Subject: [PATCH 0/1] pinctrl: amd: pinctrl: amd: disable and mask interrupts on probe Date: Sat, 2 Oct 2021 02:17:13 +1000 Message-Id: <20211001161714.2053597-1-nakato@nakato.io> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On a Microsoft Surface Laptop 4, I've found that the GPIO controller is preconfigured with a number of interrupts. I'm not sure if this is device specific, in which case I could propose a quirk, or a more general issue. Prior to https://git.kernel.org/torvalds/c/acd47b9f28e5 which will be in 5.15, this device exhibited failed resumes that would result in high power consumption and no reliable way to resume the device. Following that patch the device exhibits spurious wakeups. As far as I can tell interrupts should be disabled and masked as a default state, so ensuring this is the initial state should be safe as a default action. Sachi King (1): pinctrl: amd: disable and mask interrupts on probe drivers/pinctrl/pinctrl-amd.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.33.0