Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7087408rdb; Wed, 3 Jan 2024 04:23:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMnKT6DfQ480BXZeSqhTYEsDuAJQORvCSOLONJ9u96Qj/fvJKpVr6hWhqwsU8Ob4A97pIA X-Received: by 2002:a05:6512:110a:b0:50e:7b4d:8883 with SMTP id l10-20020a056512110a00b0050e7b4d8883mr8687784lfg.58.1704284620677; Wed, 03 Jan 2024 04:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704284620; cv=none; d=google.com; s=arc-20160816; b=TvGFOV5HaYarDprb+hvlQPR2kIBiH05M+qCeFHnZbquzJHtxaSCMwcOSYJHV9WUumk 9OryafEMFTeeKEIW4R3Z3h/2y+yBadwYhcmQOKdT4F4BhE+hjq89Zvg3udxu6fMZV0AS lshWo8Ikm4IN22fslZBR/4+dwB1qsEcHHt9ETc063wyqICNDWbtZeISv6eam0Qewf9Bk p+9a4SdfmHhrc4/FsOG8h78Jzbpjp1Vp5B5Qiy1b5PObXz8TveK9S3/ANGI/dlfvuTsN Olr27CYqw7cWmKtNxAN/x3V670fl/WlAjvblltXNSJtpwhOVVTBmZbhCZXtf2ofdyO34 Vz1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=obISvGs9I/FiLIUrUT0YRJl1ktPq7CYVC3XVwciU/UI=; fh=yb34UjeNQUdzUoQiLbFIP08qKqDh8Mhircw7x9PwKs8=; b=xYdeM6094hD144N4s9h4t+6zDA/vHIqkqPCjSx3nIZ8pvhAptH+QCRWUvcxmki1dL0 cL5LRHkc+C26gw9+T1CMmYYVRo467hpFXiMXyi47Cb/cWCsgDyJMpRP6oZ+Cm0i+iDtF 9DCJv7fXqlfRuR9eTy09unt43RG5I98dJugvNxQg1eLIPMTj0lGHQiMbXVpwdED3J0Y6 WGy7LmcILjU44twtHMXzl5rtvWq4P3Wpk4YuF81juJx22vw7fVQfn5dY3Bm8X3nz9B3p YtYGFojuI5y7NwLD6a0XjQeI5p6DUDSRyZt8eytlbyy4xI4sYaiYdeAEQIITgF7IUIHP ShIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E9mSVbTY; spf=pass (google.com: domain of linux-kernel+bounces-15511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z9-20020a05640235c900b00554ae146096si9782291edc.279.2024.01.03.04.23.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 04:23:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E9mSVbTY; spf=pass (google.com: domain of linux-kernel+bounces-15511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 666EE1F23E17 for ; Wed, 3 Jan 2024 12:23:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74FDB1A27F; Wed, 3 Jan 2024 12:22:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="E9mSVbTY" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 619B9199D9; Wed, 3 Jan 2024 12:22:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704284548; bh=lvVhhUPH6kgSD2hH7kfMwPENfYjI5v43CDGfoYJVRe0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=E9mSVbTYG4tlQT1A7IfwrqibQxxjhvypSmCoxWCccB8QSi16wIajqfsJDJq6dmLJ/ PTucrbfUU0HyfT5wkpHwRVnQCpEjRDlAeYxUXI8A86eYgEfrfuxLxAhwA4sZK/UeOg rEk8mYSfJ1ackWN/aW2sFJF5hUwdUjL6sYexWjfCBcBsXE6/CsarDJ1yAZFQ8JNnfI yDL0EGeXpotrbN4wyRjq5lyEZWC66VIARJk7sY5XYDCTRsHMHUEP7LmV831qOMQj9I LdiVTPqGD/+k3u7mHwkl/aRnNvR0i8nyCfq1q3ZUFdEZMfN1FyBezRhLDnxRxr6Cbx dpIUxvcIiyqOQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 9BC163781F8C; Wed, 3 Jan 2024 12:22:27 +0000 (UTC) Message-ID: <709e7af4-21d5-408a-9989-98493232421f@collabora.com> Date: Wed, 3 Jan 2024 13:22:27 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 09/24] arm64: dts: mediatek: mt8173: Enable cros-ec-spi as wake source Content-Language: en-US To: Mark Hasemeyer , LKML Cc: Sudeep Holla , Rob Herring , Andy Shevchenko , Krzysztof Kozlowski , Konrad Dybcio , Raul Rangel , Tzung-Bi Shih , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20240102210820.2604667-1-markhas@chromium.org> <20240102140734.v4.9.Ic09ebe116c18e83cc1161f4bb073fea8043f03f3@changeid> From: AngeloGioacchino Del Regno In-Reply-To: <20240102140734.v4.9.Ic09ebe116c18e83cc1161f4bb073fea8043f03f3@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 02/01/24 22:07, Mark Hasemeyer ha scritto: > The cros_ec driver currently assumes that cros-ec-spi compatible device > nodes are a wakeup-source even though the wakeup-source property is not > defined. > > Some Chromebooks use a separate wake pin, while others overload the > interrupt for wake and IO. With the current assumption, spurious wakes > can occur on systems that use a separate wake pin. It is planned to > update the driver to no longer assume that the EC interrupt pin should > be enabled for wake. > > Add the wakeup-source property to all cros-ec-spi compatible device > nodes to signify to the driver that they should still be a valid wakeup > source. > > Signed-off-by: Mark Hasemeyer Reviewed-by: AngeloGioacchino Del Regno