Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp61595rdh; Wed, 20 Dec 2023 16:10:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHedwVl74abOuQLYDNXB2r2JdgFyoZx9OwMpnkw7TgTdBkJ+zngrJr2WH1hm1Qw6Z2m8qY1 X-Received: by 2002:a92:d948:0:b0:35d:59a2:92ab with SMTP id l8-20020a92d948000000b0035d59a292abmr18512092ilq.63.1703117452831; Wed, 20 Dec 2023 16:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703117452; cv=none; d=google.com; s=arc-20160816; b=a/ZHl3nOIE5gJ9pTdMB+OpDXZxHZehdoWTMTp3q30UwFYFKstVLWs7d+zES+4Mk8rd L/kRalvQfiwWCk0GPx6TC4LjLn81oOsNOUCp0pvrrCIO9r7Lfc5K1gnS4vpvcLITTyRt Om1IVQihEAJ5A6l6WoW6ZOZ+g7C2lHC12zKObd3+mrjqIcNJu5RaS6BXuuIDbJZm2rm4 7vDQemyYpir24aH42sx1tWzQXxHB37yNqNGXQaj9tAEB05ler6GBZSzV0xo6KUZYDGrz NLmAVsnIrdzH6Rh4DvwmHdHr5pi+xWF+cOXd7/JSTiq2m04ZBSt3sELsm9qdQnz1BNWg hacg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=nx51Lf1EjqWvC8rwAJ0h4wGEFzTa9kT6CKikSA5ehKQ=; fh=PH0uosvVLEIqkmgcym6k0XlTw1nO7hDnG8o/SEmxzBI=; b=QFJ//Mdt5JWCm6aOGazGgS+CxBAxB/K8XbLrnNTrJKKShtKWB6YxCbZZCHucj5xs1G KGMpagmhkFuaRB9nLRGr5pHWVJzjXTVmxGyjapQXhe4S14gmSk7C31fczwAAuyEB6gqJ U+nrKzPyZvFoqQhcAgFFJCdpXWyGIMrnlGhMyYilv+yhlmdHmYfEHX67uY0D2Nnqzq5P 3ljD2oIjt+mQ9beDsfpz9YcFxlTM88cp4kCEjn2tjjX8KhsLkGVgaFK0jXtPzS2L3111 fLQVq0vRxticLpJBvtwLCndNky8yvh7wfU2iitNyAzYBTYNRfCequorBoLnl5vpwALqN 0OZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SzcsQQGq; spf=pass (google.com: domain of linux-kernel+bounces-7679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m62-20020a632641000000b005cd82e43aa3si544989pgm.321.2023.12.20.16.10.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 16:10:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SzcsQQGq; spf=pass (google.com: domain of linux-kernel+bounces-7679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 785AA2867A4 for ; Thu, 21 Dec 2023 00:10:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E0C7659; Thu, 21 Dec 2023 00:10:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="SzcsQQGq" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9F22623 for ; Thu, 21 Dec 2023 00:10:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-553a65b6ad4so295943a12.0 for ; Wed, 20 Dec 2023 16:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1703117441; x=1703722241; 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=nx51Lf1EjqWvC8rwAJ0h4wGEFzTa9kT6CKikSA5ehKQ=; b=SzcsQQGqdYukzPoSaijoG0zHMpBJaB0aLYnA92/fBYoIkkLgEfnTY7Vd30WbCbos9A uHq6lKeIjV4ffCJoJb1QAjd0Ewskug9Onyq3TxIqWciR50+QLa7E6HX1rE+Q55gIYnVP lRo6VsvFanjMbHVxSUtMwikCW0jNzasEI+PE4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703117441; x=1703722241; 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=nx51Lf1EjqWvC8rwAJ0h4wGEFzTa9kT6CKikSA5ehKQ=; b=lnSfHnvLiWhsDbare4sbl/Wun+iHY8k/TP9qVqliHr8XRBJguliDYRog0zc29D4po1 +uRALAfhnY7hQD6IbcN+dGX4Egx1ZXv3DfLuqaD5WPmdXjsqT98dSbA9XW8Pfpc31BvI c4kz3elldVSqAX4JZY5C8R42iCuTeoJdSp289bsUEx/z3CV8QKCDgMUs0vxgxYQ6O8uQ 29EK7tKsX5ar6aZj0swRxrl4vCOWVcfM0ukm/jS0Rsp9L62L7LKY+onvPjbecFG1zvlA jl4mzKS8PMP0u9GlbQJSG0S5E/PPJvt+lXkIutMcZJO5o/0TeA75ZurnXQWLFp6gjotJ vZTQ== X-Gm-Message-State: AOJu0YwLbSsqJIMp0nx3H97FdF5AHDZEAuXD1rxTozwVDGWbgmxcebSh OMJBrJEt9hRoPsQx0b5UPW3vYOvJUUWyurz3RHERjazA X-Received: by 2002:a17:907:72c1:b0:a23:6462:4d66 with SMTP id du1-20020a17090772c100b00a2364624d66mr3615468ejc.85.1703117440886; Wed, 20 Dec 2023 16:10:40 -0800 (PST) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id vz10-20020a17090704ca00b00a269b230c0esm347511ejb.34.2023.12.20.16.10.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Dec 2023 16:10:40 -0800 (PST) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-54744e66d27so4737a12.0 for ; Wed, 20 Dec 2023 16:10:40 -0800 (PST) X-Received: by 2002:a50:d69c:0:b0:553:d734:3f5a with SMTP id r28-20020a50d69c000000b00553d7343f5amr2325edi.4.1703117439793; Wed, 20 Dec 2023 16:10:39 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231220235459.2965548-1-markhas@chromium.org> <20231220165423.v2.13.I2ee94aede9e25932f656c2bdb832be3199fa1291@changeid> In-Reply-To: <20231220165423.v2.13.I2ee94aede9e25932f656c2bdb832be3199fa1291@changeid> From: Doug Anderson Date: Wed, 20 Dec 2023 16:10:27 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 13/22] arm64: dts: qcom: sc7180: Enable cros-ec-spi as wake source To: Mark Hasemeyer Cc: LKML , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Tzung-Bi Shih , Raul Rangel , Konrad Dybcio , Andy Shevchenko , Rob Herring , Sudeep Holla , Bjorn Andersson , Conor Dooley , Krzysztof Kozlowski , Rob Herring , cros-qcom-dts-watchers@chromium.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, Dec 20, 2023 at 3:55=E2=80=AFPM Mark Hasemeyer wrote: > > 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. > > Add the wakeup-source property to all cros-ec-spi compatible device > nodes to match expected behavior. > > Signed-off-by: Mark Hasemeyer > --- > > Changes in v2: > -Split by arch/soc > > arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1 + > 1 file changed, 1 insertion(+) It's hard to get context with just the dts patches, but digging up the cover letter and other patches from lore I see you point at `Documentation/devicetree/bindings/power/wakeup-source.txt` which says that devices that can wakeup should have this property. ...and our EC can wake us up, so this looks right from that point of view. Also the yaml file for cros-ec says it's fine to have this property. I think it was used when things were connected via i2c since the i2c subsystem needed it. ...so from a bindings perspective it also seems fine to me. ...and looking at the code in Linux, I guess things work today because cros_ec_spi_probe() unconditionally calls device_init_wakeup(). ...but even with the code today I believe it should be fine to add this property. So with all that, this patch looks fine to me. Reviewed-by: Douglas Anderson