Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp368757rdb; Thu, 21 Dec 2023 11:25:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyoxfF9bv4KBp5ZDMvQAJrUkhUgfXHYZ6O5QuKCcfwBDrJlvQO2inb1M9GSu1TJ/vyfhEh X-Received: by 2002:a05:600c:c1a:b0:40d:3c5b:1b16 with SMTP id fm26-20020a05600c0c1a00b0040d3c5b1b16mr142748wmb.29.1703186714095; Thu, 21 Dec 2023 11:25:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703186714; cv=none; d=google.com; s=arc-20160816; b=uK0trCHGnVICp4E1Uaykw6lGA6ftvjXrAMXdUuJWA8Vt7hDwGNEaNjIVqHqCtelIB5 OYUJXD4UVZ+CAX5+CR/nusPGIfoR9iVx83TQp1VPit6GtquCkY2oO9OSv56HeR+9h242 EB/LOOx7qMxK8TH3egGG1Jxk96z85/o78S6GSb+zhTegBHqNzOOq2UchDg9j0mykoWQQ PgwwTT74qFv+k8Ef74QMMczdnuDTZBptlAP3JcNfyE4CWovH6nGAdLxV2kMm4oCTI4xm 0VcpgDr6ynwuYQvRXWtJmcgMJKwDqgbMZuLFt5Ip9MhZbF98xIJKZM1SfxAY6QunGhA/ xD1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=pyEpdFOQv4rMJbBA9Es6fXu/Nsh9v5HKx1M12+JoxNE=; fh=kyZd1qaMvKcd6CaFr4kzb2cS1NAzAQ77fHlJGtwKKZU=; b=Ei5C990tFm6uV3zk6yhqvmXsAKRh5Xyk7WYyOx7YLzaMjR0pcp/C1VElcs/b7xawej CWwiO0OY8RN9VGlmWriAQ4JGCXuvKx5csxwBV3GVyCmM0TsGwDJh5cZfCo2P5vwqcHa1 skT+lF/u2Tcn29T6+vVzGFUQWhwps80OKzd7iXF846wuEBe+pBMnVRMbam0l6OjLtGB/ Y+IOSkbLzcwEPE5vdFBaMTAR7q1N7BfGUbMIrYxMt8N8qnDK8Yl9BU1ZKaAJYr0+eD8P 0FthnFJkt7JzHdnEYfJTVlQCmIovHaRGCWz+0VNWUDXlF977jNR789U600VKiOj8NpSI PGlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="d/IqM4bi"; spf=pass (google.com: domain of linux-kernel+bounces-8994-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id wh15-20020a170906fd0f00b00a26aa3fa032si628933ejb.130.2023.12.21.11.25.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 11:25:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8994-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="d/IqM4bi"; spf=pass (google.com: domain of linux-kernel+bounces-8994-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8994-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CD0021F24C72 for ; Thu, 21 Dec 2023 19:25:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5B6B651BA; Thu, 21 Dec 2023 19:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="d/IqM4bi" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (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 99D41651AC for ; Thu, 21 Dec 2023 19:25:03 +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-yw1-f182.google.com with SMTP id 00721157ae682-5e248b40c97so12297367b3.2 for ; Thu, 21 Dec 2023 11:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1703186702; x=1703791502; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pyEpdFOQv4rMJbBA9Es6fXu/Nsh9v5HKx1M12+JoxNE=; b=d/IqM4bitnlnondtFa8D/fyxj8Rp1rnFn2kX+ueU2/EJPvguIt+Brl9phkH4l0hWKR IBHb7RKGSjNezPJqRUIN7YlulpKxYNZVQr1llSF4ObGBMUp4BvGEwPsOZE+Hl6PTLtNy ZvUFbFpMuDQZoovn6WKfX9DfxnTE5wmu/imDg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703186702; x=1703791502; h=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=pyEpdFOQv4rMJbBA9Es6fXu/Nsh9v5HKx1M12+JoxNE=; b=XetrOZ84u+IUWwKRBFsNtadYVzqSOmoaA8hMGxtkDPzjnt/BFAVWlLhNyr0bLddpdz JKoBeiBGFoLaFVhxrBp3lErDG9acWSvFty89+FZ5jqkzRD4aMS39v6LuVrj1iNqPF5GP UyS/7si3NLDgN0Xoobu/9uzJ+0Y6F2kp3Ccu8YYQ+pr5IjekC3jWKjHsdTHlQAeUQYkh px9qNY7i2m2g/ZS8UzZHcUSQvVHnvgMW7y4v/c2IWq5+Ey06fh3fAGiW4Qn7DS3cJsfy l20hLmRxNNTFHxueHYjTIOcy+FVWDqC7/IsXH90XTWQyL3e2tsspJc8Uaw20hz/9CafI 5qvA== X-Gm-Message-State: AOJu0YwB+7X2L8j9K5Xs7l4QICclD3kqSxqDRtw+kucejPeBCbXDRM9A d0DI2jYbeNrVh4kNxJSHURh3KLSlBMrczAIJBmmOqAPe6dBE X-Received: by 2002:a05:6902:1828:b0:dbd:990b:be32 with SMTP id cf40-20020a056902182800b00dbd990bbe32mr231162ybb.17.1703186702509; Thu, 21 Dec 2023 11:25:02 -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.6.I06b059021de1bf6103e60a73211f078f2af75d17@changeid> <7199b7b7-238e-45de-96f1-0f04d0fa718d@linaro.org> <50dceec0-3a43-4363-8404-d701f726acc0@linaro.org> In-Reply-To: <50dceec0-3a43-4363-8404-d701f726acc0@linaro.org> From: Mark Hasemeyer Date: Thu, 21 Dec 2023 12:24:51 -0700 Message-ID: Subject: Re: [PATCH v2 06/22] ARM: dts: samsung: exynos5420: Enable cros-ec-spi as wake source To: Krzysztof Kozlowski Cc: LKML , AngeloGioacchino Del Regno , Tzung-Bi Shih , Raul Rangel , Konrad Dybcio , Andy Shevchenko , Rob Herring , Sudeep Holla , Alim Akhtar , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" > >> You do not need this property, if driver assumes that. Just enable it > >> unconditionally. > > > > The goal of this patch series is to change exactly that: to prevent > > the driver from unconditionally enabling the irq for wake. > > But why? What is the problem being solved? Is unconditional wakeup in > the driver incorrect? If so, mention it shortly in the commit msg, what > is rationale because existing one does not justify this change. The cover letter talks about it: "Currently the cros_ec driver assumes that its associated interrupt is wake capable. This is an incorrect assumption as 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. I can add wording to the dts patches to help clarify. > > The driver works across numerous buses (spi, uart, i2c, lpc) and > > supports DT and ACPI. > > SPI+DT systems all happen to need irq wake enabled. > > > >> I don't think anything from previous discussion was > >> resolved. > > > > Which previous discussion do you mean? In v1 it was suggested to split > > https://lore.kernel.org/all/20231213221124.GB2115075-robh@kernel.org/ Hmm, I thought that was addressed [2]. I was referencing the existing binding documentation. From there, there was discussion about updating the docs to clarify what was actually intended (patch 3 in this series). I also addressed the ABI break concern in the thread and mentioned it in patch 22. "For device tree base systems, it is not an issue as the relevant device tree entries have been updated and DTS is built from source for each ChromeOS update." Is there a specific concern you feel is not resolved? Or can I make something more clear? [2] https://lore.kernel.org/all/CANg-bXCG61HFW7JFuAd3k+OrCG_F9F3e8brjM-pmBauS53aobQ@mail.gmail.com/