Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7087298rdb; Wed, 3 Jan 2024 04:23:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyDKrxiRdP2QixGnDoLK7bqjek5wf1lrleied9PST8CmIa6/yAymk8aYu3ii08VhYBimx5 X-Received: by 2002:a17:902:6849:b0:1d4:70e5:e188 with SMTP id f9-20020a170902684900b001d470e5e188mr4946486pln.94.1704284599390; Wed, 03 Jan 2024 04:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704284599; cv=none; d=google.com; s=arc-20160816; b=b3KyJ4MCpSvUD4NRW9U8/QDLF/1F9AZZv3tn1yqtM7R5H+zrB+WDseI60YZ7kyUTxJ cWllBpOgUNx/ujuajuCLiTvpcHErWUOEDiGk0c3Nxg3k3Uc12GBLR6Nuj7ZIXdlI9aTp FsBqFWWaFLXjex6hnvfpmXuNt7F79aFFKLyaHDhTyEpUSwEN30qwfS2ETNOCimHdtNIU D+cpMoMuYpwcFohqalQ0l+bHmb6acqomaKk7DM42b/l/WIG+q5WcxE1vrB3x9TAsJ+IF mR9s3ShdWdp8YK5DcgJ9pRf/Amwn0Luh+ZB0QgaR0Qe9Sj2xwt3+qS/1G2frCnY0iVIT qi2w== 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=ong4gX/2lpia+Mq71HogjGNMFhGwrXd3EYB87pSjXszsP38GHmbsZgLE4a+Es6PXE7 w3CXgh9t+bipMEjig6N4yOy3M3ueeI/Rbxd77DrmWZsOXIq0QwSUpBQsBPOpKW+OG13N 7tfzZUMpTZw0KG++c+CUHoz5ACcQaADpHIhwTPZGPdC0rvSAxWa+qspRTjuGRnXVg0xb lsLuPuWDhKRPXw77dM4ddyLaEwUjTDGnAKAeWVbIvdv8YxI7MPtiahknRC1vtykBltQg fyAOnwk7WW14oWRWdXMUvN15BMOkxMeV8myDp8IECf+u9/AVwm4fo4hcVS/Ga2uHu3r4 OpMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=w6XzCUFg; spf=pass (google.com: domain of linux-kernel+bounces-15510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15510-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b13-20020a170902650d00b001d06d47c3c8si21662853plk.299.2024.01.03.04.23.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 04:23:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=w6XzCUFg; spf=pass (google.com: domain of linux-kernel+bounces-15510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15510-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7F716B22D33 for ; Wed, 3 Jan 2024 12:23:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB0E7199B6; Wed, 3 Jan 2024 12:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="w6XzCUFg" 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 B158819445; Wed, 3 Jan 2024 12:22:27 +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=1704284546; bh=lvVhhUPH6kgSD2hH7kfMwPENfYjI5v43CDGfoYJVRe0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=w6XzCUFgB3H98jqHBnOApHd8s1sjcmHuz8l4aAt+ReNgpa5z+bdnvch81dpvk2PXt hiZqs3c4mY3WXQT/82CTp/rtVjeWnl2+xG19FmqL1EYM1xXbk9i6vXjsysERWc2VWS f7xvsL42YhQonM0utr9I2tmZEq8q8cNH5/cOS0UzntOezYSV7UoOEX4RNRjifzyybF HJhg/dZCr4sx5X50+cHKH5b3wvTq5LlpHrhtpxZRMyzfwfRhoMxPTr3JTPXSvLEEcc iGJdblo5EEXPdQLosoR1gnmgmQDNElNqQ46MiclRCWA/jpbK7loXqD6obQQi9rPltg vnzBP/hW5TLrg== 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 097A43781433; Wed, 3 Jan 2024 12:22:24 +0000 (UTC) Message-ID: <212b0bd5-0b4a-49fe-bd8f-ac66c93cc98b@collabora.com> Date: Wed, 3 Jan 2024 13:22:24 +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 10/24] arm64: dts: mediatek: mt8183: 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.10.Iba4a8b7e908989e57f7838a80013a4062be5e614@changeid> From: AngeloGioacchino Del Regno In-Reply-To: <20240102140734.v4.10.Iba4a8b7e908989e57f7838a80013a4062be5e614@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