Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp403152rdb; Thu, 21 Dec 2023 12:34:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFupdMZ0UJMi4yF6dlMncPN0gggu+MWh7duR9m0tMHpZUWPHoK0UP8rUhySzHdwManPgOUe X-Received: by 2002:a50:874c:0:b0:553:37e1:a5d with SMTP id 12-20020a50874c000000b0055337e10a5dmr89757edv.64.1703190870567; Thu, 21 Dec 2023 12:34:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703190870; cv=none; d=google.com; s=arc-20160816; b=oRMQMMgZeAKNoOfKwULu+MbJnQKZojAlPG3/ndmG4VH2eJby3anOYzeNRd8XmlMRjG kMmd24q9kEW4FvvHj8A2uIeQ5ol4BwgvaE8ij/sv9ntvoCkzngvVoaNCwLLvlEN22Qu1 /Vr78+EE8cJdPWcxpFLHIvHnXi0snztCjpEQt7RVBbWvwD4EjnZPdTsCMXSBhwGe84vL fZsX0emDKfHM4mtQMOkxgLsLOWbZM7Eqw5laQHEN7sBzdGZtdnZZ60J9ckVCd7nvbF+h EUUP/fTs27hZ3VS3u/nlppZY1eGZL+EdcuY4WapwWnzbU/5A7kuxAjZVFyNbR0OMAcZV llSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=weIpIdWwjVmiz/xcLJ6YWeltfk+PtaKRQRUN8dbLvcE=; fh=W7b8ZoTcGFYV9d1/WaFWQlMn6yrOwoLElctldkCEWyw=; b=ryf+Yab/jFEd3IMrDgGE2JUS+1Dmdgii7lgCxrEXS+hnMmRoFcupzU3frHG8Z6vS4T 7ghCknpuABfe1I89xGzOWyIgQAkmnfMtR09P6OCkWkdFUT3V6ANLQ4PABD/5bxO3xueK NzDQ7KtrQUUAnmkMHcr0xX4PI7tB9aid4z8RVSfwNJHnoG9UM2j1JVLUqUwlwA2oqubN Hi7SDajfIfsIrVe57w0OoZzSyJXiMbbnYJNcwPT2ReZ3Gv5EHvL+G4CJjX/uO2ghCc3+ /zn53ecODryvB9PMtXJmkXCyV/AiWQHM4PG+elxicn+LkYPh19xYgiDU6n6a2lE+rZYX Z1Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r5LCBAZt; spf=pass (google.com: domain of linux-kernel+bounces-9049-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9049-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f3-20020a50d543000000b0055390d3c062si1155416edj.529.2023.12.21.12.34.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 12:34:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9049-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=@linaro.org header.s=google header.b=r5LCBAZt; spf=pass (google.com: domain of linux-kernel+bounces-9049-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9049-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 53BC61F25FE2 for ; Thu, 21 Dec 2023 20:34:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B8AA768F0; Thu, 21 Dec 2023 20:34:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="r5LCBAZt" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 B7E35328D5 for ; Thu, 21 Dec 2023 20:34:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-5542106d393so1151670a12.1 for ; Thu, 21 Dec 2023 12:34:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703190858; x=1703795658; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=weIpIdWwjVmiz/xcLJ6YWeltfk+PtaKRQRUN8dbLvcE=; b=r5LCBAZteDp1OjfLPPjmTAUdh1FfB8BbDAqwS67/gSXY5ZudLOw0NA5uaKBIE8HKDw 0VsFfglXwMOtWXoXFCvmW0bJQ7Z0suaLYp0qsrwZO0hxG2zOTcRDEJtehf907Ypkn7XE aig8pnkXCqLutX4VOV6dTY0saOckY44dQRCH78qtwWMXh7NZyo79tFHEVpDElb5928WJ vXHvNpROrLwL4o9q6boeho4F83+oK5VhqGOOW7W1lhDxNOkpDhkwsL2uzH1ls0M/8+AP AIVHKfKNGqvgWWkHj+a89hWIwu7kTx5dQwkYDplzU5bHZ9wzBy3/9ftjZRFucf5zyt6X RF5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703190858; x=1703795658; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=weIpIdWwjVmiz/xcLJ6YWeltfk+PtaKRQRUN8dbLvcE=; b=A27qmlLVwofTIyRjH4M2uxXi8VZbzLLmQYcNsy8V/XN18138P86vSr+Ow/8xmcID6v +FsCxqHzL51tfynizMCKNH2OkoAs37sKRC0Bga2znKIJA7UpV8TuKZxBUiEh98eOrZX/ qwD/BIlFQTen+LWg5OGmFGxACdydZFlZ4B9yh2iv1R4sz4V4A3HpBzlbbiqhZ+WplJ/M d1JB062W9oVvdCYeCqS6IVDD4TUGh8y5TT8acFK8ZqlyTOhuAZijYcrwfUVjBg2huGo1 01l1BSonN58V8FKQOxBvNbAi+Bx7p4nMWVUQ2hNwgX2YZguCILRp7GPooNk5mAIY5Bw0 GEJw== X-Gm-Message-State: AOJu0Yzh7kq3YRlEuWrBlyMk5WpNr8OMC8L4WFbpsi0vbrdnc7ZLKbN5 VcQBBbvEmxW0Ydey9ZFN93FwRwVVxQahCQ== X-Received: by 2002:a05:6402:b10:b0:553:76c9:f4fa with SMTP id bm16-20020a0564020b1000b0055376c9f4famr117053edb.12.1703190858013; Thu, 21 Dec 2023 12:34:18 -0800 (PST) Received: from [192.168.0.22] ([78.10.206.178]) by smtp.gmail.com with ESMTPSA id bf25-20020a0564021a5900b0055286b1bfc2sm1620741edb.25.2023.12.21.12.34.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Dec 2023 12:34:17 -0800 (PST) Message-ID: Date: Thu, 21 Dec 2023 21:34:16 +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 v2 06/22] ARM: dts: samsung: exynos5420: Enable cros-ec-spi as wake source Content-Language: en-US To: Mark Hasemeyer 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 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> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4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ftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 21/12/2023 20:24, Mark Hasemeyer wrote: >>>> 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. This sentence would be enough. > 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? > Seems fine, thanks. Best regards, Krzysztof