Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp796562pxb; Thu, 21 Jan 2021 22:18:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5k31c7xdYY7OjXgsJWSDQrR2Eh8cZ2OVE5ie8FsMfEuOuowjGAt8XsFPnhHpG9yyj5Rs2 X-Received: by 2002:a50:d88c:: with SMTP id p12mr2024711edj.370.1611296305565; Thu, 21 Jan 2021 22:18:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611296305; cv=none; d=google.com; s=arc-20160816; b=qIFXvQ9LgQYSjNfnMBRwd3xi5CJxAgIBrW8UTGfBvNxjJ4b/85nY+0Gz2u438uWr9Y JSqXxANOeUDOuZNUpdX/Kyiw+p7EeRXyOKKuC23HLqpZhLOabKVJv9QkKNVM5ivG26KO uGPmxUd71Xu8NDD2UgxPc1LomfP2Za1Q6Wt8rVdjTuiMcb5VHeZxA6uG6hD5kwt//Fx6 uIlrrDG+3/1Vxjg1MDKoRoSXnmGJGozAseC00Z5WtD9j2QZYmj7CIzWae434QK7OcnZq 9k8H/7J1nVx8k4irJsd4Xhca5E7i2bJhkbfosgfT3rOHflk9N7bfgGoKaFd7l6rtQO69 yFXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pVDNBKzWbPYiMsCNbvCHJ2UjAPDB55l9YQZXJthpoYY=; b=WZ6Ke5qs1JPDWfwtRLIBE7PrMuHWXy1BP/UNUJsDXspi4/3JpG1JHYwSHPZIlxLWqw QvU8AgSWdJguhhakSlZ6daCwj9azjczQM94BbITFjKLio5Am7LavJBpBQz4yTK6Zvvvq vdkIbviQj1qbxVoSo2NjV1r+IdOnmpr16lXdRCGI40HFQCn1gAxlU907fWuhl3RsTcvC TV3+guTXg2YrJJtOoRIHLoTLblu+VkXLW0Q51cc1oJnb8bDpUfacO8EmqTGmU7MFj3Fn dw8QxnlYkJzWtAw9BBhTKt3Bg89wf/crORmR0QtyszrWXJOuqMYqwvWU4TTQ1lrDUV1a 25mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LhVWIKFl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a27si2590947ejc.18.2021.01.21.22.18.01; Thu, 21 Jan 2021 22:18:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LhVWIKFl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726430AbhAVFrb (ORCPT + 99 others); Fri, 22 Jan 2021 00:47:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbhAVFr3 (ORCPT ); Fri, 22 Jan 2021 00:47:29 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A08DEC06174A for ; Thu, 21 Jan 2021 21:46:49 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id i7so2954283pgc.8 for ; Thu, 21 Jan 2021 21:46:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pVDNBKzWbPYiMsCNbvCHJ2UjAPDB55l9YQZXJthpoYY=; b=LhVWIKFljefuM8VG9uaIucwjYZmU6JRglTw4huFU7/L0t/iRU+WtGCa4G0CrARFWoX g6PNRrZLWD4JzLQmGEAvFdmJwQSNCu3IU7ZD5gssI5c1YQOw/gIjWTVYS/KPDR8ev9wX 6fZE4Bzez+wNADB5UU6J4G/PxURJzyV2ZV9Cc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pVDNBKzWbPYiMsCNbvCHJ2UjAPDB55l9YQZXJthpoYY=; b=b0wxJMGeZwPgwvr+Rep79Mvrg65cktYB/sZ9uS/Di+aNcSmVHrkK+c9ilrW7EM330C eBQ0FVNLLDiKV3YAq1PCtP6LvAUl6qAcG+qb7oaZGqyafrAOb2kxoGyM4Gl6M5hWZbMc ZvxbncKXsrkSVTpIctZVyBqJKzE0JEXL9VlWvGFEhog9e1NbKVzS4aa6F3u0H/lgj82P 6UXiCr/QU2rlubW9wwTX3v5kzz6xqLb4Cfk5VZ+RcaOsmu4N8farZy1yNSms7ZKD9cdB YRJFR7vCQg0p/tsNkAgoQ+PkAkZgWDoCpPF62lEwdIK1XdbekBGyxU5sLwMI936iW6X+ +M3A== X-Gm-Message-State: AOAM531xHSJNmPCHTm3hKSSBHj2ydH+Tkb+opvwLcZUPUwsEhc1YkEUE mglw1o3dsfnMA+4kpSFhqrvaGw== X-Received: by 2002:a62:37c2:0:b029:1bd:59ad:c4e5 with SMTP id e185-20020a6237c20000b02901bd59adc4e5mr2048423pfa.66.1611294409206; Thu, 21 Jan 2021 21:46:49 -0800 (PST) Received: from localhost ([2620:15c:202:201:7220:84ff:fe09:94fe]) by smtp.gmail.com with ESMTPSA id o1sm7241124pgq.1.2021.01.21.21.46.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jan 2021 21:46:48 -0800 (PST) From: Gwendal Grignou To: rdunlap@infradead.org, groeck@chromium.org, enric.balletbo@collabora.com, bleung@chromium.org Cc: linux-kernel@vger.kernel.org, Gwendal Grignou Subject: [PATCH v2 0/2] platform: chrome: Simplify interrupt path Date: Thu, 21 Jan 2021 21:46:35 -0800 Message-Id: <20210122054637.1422289-1-gwendal@chromium.org> X-Mailer: git-send-email 2.30.0.280.ga3ce27912f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rrespective of the transport (i2c, spi, ish, rpmsg), have all cros ec interrupt stack call the threaded part (bottom half) of the interrupt handler. Fix an issue where EC could be stuck if it sends a message while the AP is not powered on. Changes since v1: - fix merging issue and function comments syntax. Gwendal Grignou (2): platform: cros_ec: Call interrupt bottom half in ISH or RPMSG mode platform: cros_ec: Call interrupt bottom half at probe time drivers/platform/chrome/cros_ec.c | 33 ++++++++++++++++++++----- drivers/platform/chrome/cros_ec.h | 4 ++- drivers/platform/chrome/cros_ec_ishtp.c | 6 +---- drivers/platform/chrome/cros_ec_rpmsg.c | 6 +---- 4 files changed, 32 insertions(+), 17 deletions(-) -- 2.30.0.280.ga3ce27912f-goog