Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp345982ybh; Thu, 12 Mar 2020 03:09:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsLZyvKLDTowLC6SYlbULNjPgvsBTBVxXn1n4VYV84E6iQr5xr1zzVjw8N88G8FIo0jLYzI X-Received: by 2002:a05:6808:1c5:: with SMTP id x5mr2019296oic.82.1584007769117; Thu, 12 Mar 2020 03:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584007769; cv=none; d=google.com; s=arc-20160816; b=kaezqvaH4zz+ReuxvLvF/JeIlwW8yv5zdVoM1cB24VFH6jminq57684oJaxOTaNF+k uF01vNMwYXNRurRw29P+pi9WRKSyMLa7nY4hdvkDv3BS46daMO44ASFsMkbqV+gvLoWE 7vFAmUC2w9/CZrfrUSGZTKaqdr0ZumPyi+ws1gjWzgAIAM2C+hDA9KxwtAGlbR06piPq 02AfjK4wr9td69E365OyJuVsoLyF+Q9ImCf0dPpoeMGtfCEj44J2/LHL6FboX6oIdIt5 14XH4hsckK053jTSWk7sbMmzzVWIX6B9KTZ11lNkMDawq3XWtnBR+5cgcjYIZc0pcQ7v 7JPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rgvqXXtuVCXza7WjWjw6+XX4FgR73HjTkow7gBP8Ln4=; b=sjGYejoz7LOB+D96rNCwSIWP5cFElG/hCNGPhByWD3UlY9qUJg/flz2E2DC+rZmVXS KqX6QyxiZjwbFUrjfn0T1aFRp/5J3PCJ3/bUuMC257+R+W1HVTMq+lMn2Df2bm4u2tUl 2YLc+DFLc4R0Fg8Pd8bh8FHEdqAjgQDbHuyf3OOG8rT7iL4cGohoBDT2QNHpXmj+tnQq Tt9jnqwpbOfa7TeP+VvrFeaWG2jPiU3AYgz88zVgTiVcCTx1tWK7EDZDGwfEvpMphLKK DDUHQs6RAUcla+eHB29GfbMD0z0uAZeQopUJcpzNEpS7MAsdt+Zk5WVcjaHq9ae26Cig fWlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hNW4qRq7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j2si2418263otk.164.2020.03.12.03.09.09; Thu, 12 Mar 2020 03:09:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hNW4qRq7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726705AbgCLKI2 (ORCPT + 99 others); Thu, 12 Mar 2020 06:08:28 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36042 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbgCLKI1 (ORCPT ); Thu, 12 Mar 2020 06:08:27 -0400 Received: by mail-pf1-f194.google.com with SMTP id i13so3037566pfe.3 for ; Thu, 12 Mar 2020 03:08:27 -0700 (PDT) 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=rgvqXXtuVCXza7WjWjw6+XX4FgR73HjTkow7gBP8Ln4=; b=hNW4qRq7M5dkGWjJBppSPGNZCqy5yZeMbnaC207QXuY1mCaJUgs8n0ihw1K5Wctm+L VklHg9Ogbkx114ZJenGrSri4k9tM6p+7hHe78gnJCyTbwJkveZ5YEhoJo05KZBmJrQkT +LH/buQ0oGttIKQX60Fj+rq1Y/A73DzkLPiRA= 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=rgvqXXtuVCXza7WjWjw6+XX4FgR73HjTkow7gBP8Ln4=; b=aIyefGAD67jHxqsSuQYSft+Sq+JX6ljDKC3pFayXzOGNLETjzM6G0kLYl4lArIlACA bdQQXLebhPPvv7BSLmewkoc1Jf+7+o7PFXJXHdkFyTSyzYS8hca9emT9HP/45JB8gR4t WiBszFIYwLQ2NLehYr5GfzMi/aNVWQfN2/k7DJaO451XV+r+hhm0ijHIRk9L63Fft34k LoYScl/wb08N/id2imNdE61c27X4ZzMTIzv3gJmQz7GKlKWDfl6IGGqEgfCA7HDvF24N qZFb7qEh+v5JcHkMjTwtJ1H3h7OyXL4qWt4FHqL5TsyN+p4f+OrJfEQow/B6NqXxhrwi S9TQ== X-Gm-Message-State: ANhLgQ2KLvySUqi5LRkfOyg3+1Cp2Piqq5dtq/QPV4b3FOmVRQpR6k85 LlGP0YXUhF73EKJyKk1ZU2ZNWXP/vOc= X-Received: by 2002:a62:e30f:: with SMTP id g15mr7495632pfh.124.1584007705996; Thu, 12 Mar 2020 03:08:25 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id s19sm3678368pfh.218.2020.03.12.03.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 03:08:22 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: furquan@chromium.org, Prashant Malani , Benson Leung , Enric Balletbo i Serra Subject: [PATCH 0/3] platform/chrome: notify: Use PD_HOST_EVENT_STATUS Date: Thu, 12 Mar 2020 03:08:05 -0700 Message-Id: <20200312100809.21153-1-pmalani@chromium.org> X-Mailer: git-send-email 2.25.1.696.g5e7596f4ac-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series improves the PD notifier driver to get the EC_CMD_PD_HOST_EVENT_STATUS bits from the Chrome EC, and send those to the notifier listeners. Earlier, the "event" param of the notifier was always being hard-coded to a single value (corresponding to PD_MCU events on ACPI and DT platforms) which wasn't of much use to the listeners. Prashant Malani (3): platform/chrome: notify: Add driver data struct platform/chrome: notify: Amend ACPI driver to plat platform/chrome: notify: Pull PD_HOST_EVENT status drivers/platform/chrome/cros_usbpd_notify.c | 197 +++++++++++++++++--- 1 file changed, 174 insertions(+), 23 deletions(-) -- 2.25.1.696.g5e7596f4ac-goog