Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2199178ybc; Wed, 13 Nov 2019 10:28:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzke17WjGUK2ZU6Kxb0b2QqKwuGU/r4BoBiHuI5CjpIwI5LfHgt/x4nD30DEg9aYQ/WY5jj X-Received: by 2002:a17:906:4910:: with SMTP id b16mr4234061ejq.133.1573669739329; Wed, 13 Nov 2019 10:28:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573669739; cv=none; d=google.com; s=arc-20160816; b=Dv0LM8WktPTdE3F9qaQUIbAWvuD2F8ug4t/h1k4LWcMQ6xexh+tgNsvWIwk6+PGYb6 eLesGYwLeX2dfkdC0r+uelxSLmFiYloTQbdiNt0iDs5GgF04nMQTJZFzT1Q0yXstBhKT HQg94mHV0rm8bbFIqOyMZtDrGM2WGeWAXyP+STgvmGxtAiXI+bGogMvZkSkARoJ9jp6Y N0MBHnhqFrr1vxhScENGPEUhrfTecEYCcRcg/TZKZ1dAYNNFGw6+fQTi5MDT23ltv6a9 1nuzWHmIzthT7fLdB5RDPz3LtrIk8dAe7iQTojgcRaNmPy/7m5MXU1Rqz/xSO3/cl+zk QAsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=L46XMALlOGip81caAu2q/i2z+BvemNjPmnHMuSaJA1s=; b=Yz9ACoD0cL7yR5zGeWxXSekbfjxUiDN+TzXFcYeiFS3IadwdTEGG9jm2UiSsiwu0cU mLLTXImHq3PWuWyx05wylu3noK50wKzjEty2bkA6qBQFzhkejYjodgy7jnZHEYn7XIm5 GuRjnU1oo3Dgtwxa/DMDHNJqlUaDznqW1MjTwhzDT7OEUfq6XRzg3e3aJ3UYCLq3D4xf spGth+kN20hpeO6eOhUNbt5I9Nn/3XCD5yGPqaGjrHFLMJq6h8DzMD82PL8LMArtB+w3 ErN3sa1WYWm5FlLof3kEyoO2+HThGVmmAzPGPgK1AMSdfuh85uIXJD0nABoOGWP1A4va pMhg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v26si2020529edd.364.2019.11.13.10.28.35; Wed, 13 Nov 2019 10:28:59 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728566AbfKMSZo (ORCPT + 99 others); Wed, 13 Nov 2019 13:25:44 -0500 Received: from mga11.intel.com ([192.55.52.93]:10910 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728484AbfKMSZm (ORCPT ); Wed, 13 Nov 2019 13:25:42 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2019 10:25:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,301,1569308400"; d="scan'208";a="214367174" Received: from kuha.fi.intel.com ([10.237.72.53]) by fmsmga001.fm.intel.com with SMTP; 13 Nov 2019 10:25:37 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Wed, 13 Nov 2019 20:25:37 +0200 Date: Wed, 13 Nov 2019 20:25:37 +0200 From: Heikki Krogerus To: Benson Leung Cc: Jon Flatley , enric.balletbo@collabora.com, linux-kernel@vger.kernel.org, bleung@chromium.org, groeck@chromium.org, sre@kernel.org, pmalani@chromium.org Subject: Re: [PATCH 0/3] ChromeOS EC USB-C Connector Class Message-ID: <20191113182537.GC4013@kuha.fi.intel.com> References: <20191113031044.136232-1-jflat@chromium.org> <20191113175127.GA171004@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191113175127.GA171004@google.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi guys, On Wed, Nov 13, 2019 at 09:51:27AM -0800, Benson Leung wrote: > Hi Jon, > > Thanks for posting this. > > Adding Heikki, the typec connector class maintainer, and Enric, co-maintainer > of platform/chrome. Thanks Benson. > On Tue, Nov 12, 2019 at 07:10:41PM -0800, Jon Flatley wrote: > > This patch set adds a basic implementation of the USB-C connector class for > > devices using the ChromeOS EC. On ACPI devices an additional ACPI driver is > > necessary to receive USB-C PD host events from the PD EC device "GOOG0003". > > Incidentally, this ACPI driver adds notifications for events that > > cros-usbpd-charger has been missing, so fix that while we're at it. > > > Jon Flatley (3): > > platform: chrome: Add cros-ec-usbpd-notify driver > > power: supply: cros-ec-usbpd-charger: Fix host events > > platform: chrome: Added cros-ec-typec driver > > > > drivers/mfd/cros_ec_dev.c | 7 +- > > drivers/platform/chrome/Kconfig | 20 + > > drivers/platform/chrome/Makefile | 2 + > > drivers/platform/chrome/cros_ec_typec.c | 457 ++++++++++++++++++ > > .../platform/chrome/cros_ec_usbpd_notify.c | 156 ++++++ > > drivers/power/supply/Kconfig | 2 +- > > drivers/power/supply/cros_usbpd-charger.c | 45 +- > > .../platform_data/cros_ec_usbpd_notify.h | 40 ++ > > 8 files changed, 696 insertions(+), 33 deletions(-) > > create mode 100644 drivers/platform/chrome/cros_ec_typec.c > > create mode 100644 drivers/platform/chrome/cros_ec_usbpd_notify.c > > create mode 100644 include/linux/platform_data/cros_ec_usbpd_notify.h I'll go over these tomorrow, but I have one question already. Can you guys influence what goes to the ACPI tables? Ideally every Type-C connector is always described in its own ACPI node (or DT node if DT is used). Otherwise getting the correct capabilities and especially connections to other devices (like the muxes) for every port may get difficult. Br, -- heikki