Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp57383ybb; Thu, 9 Apr 2020 17:09:36 -0700 (PDT) X-Google-Smtp-Source: APiQypLCjTK0bBZx/aHXHMFoT0MivPwMWwSbKvFYXukFFg4w3Jbyc0/YZDOqMKWmhDea1hQZmAno X-Received: by 2002:a37:5d8:: with SMTP id 207mr1663413qkf.80.1586477376772; Thu, 09 Apr 2020 17:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586477376; cv=none; d=google.com; s=arc-20160816; b=emxaMVZoYhYg6ok9chtM2NMalDPqLyb1THWty9YWs9pAr8BZtqs4ppa5Y9wr46zVmJ FmJbWGFv9hzTfBjT6XLTblDCXqjGV/WpMGVtN42Bq92orKu1ZOxQwMBA7X9AIgGdQcQ8 622gPauqAFNCxTlbndd1eu7p0mA1j75WroqCqWvXwCych2wrmUJaK6bzXYGvPqbOHMi3 O5yYCZ5TJSjCrilZ29dYlBEczswwLaeDEKTc5LWnSvaT1u1GGHeWoXWQSu7pYyz31ygX oupOZ2ci2hr1ZzzsijYJpthSLmetUGK7nwo87MQpCzHCZqHUQVMaBnUaAupi4LpG+lUS PhLg== 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=6Tjv9zMJn2YHc3izqrZKgOj37Bk9MfHeVEZyetQC/ao=; b=dG9Rd5FdaSstyUpASkkEIdZxcIfP1za7cVTCvAaAfpDGDN5MJx/gB4ot6B1ikU/RlH CpJP2ZpSh7+BP8dJnXjlGlA28r3ZcQp/m/gyvzOTWHkQglr0MEjyJEJRkq2rlh8HtzuW tuQhbfB0rPHEtt+c6975ZQoRFqTfRq+Ejpqkx3ZM/p6HLgxgnu7okMiKKIA/ZueU0vJq oRQR53H5sflbgHmw4XJvSnNvBcy0r+q/JxVC9Dgz71zEwXHLLMyMgVEZhdUT4iZyfGwW nMfZX8xNjUymyYdglHXzbCaOoAv/NR1roMV1skVC3GeRiHQSKCFUPidRzhicX19JkDAx kbtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gHFALgYj; 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 o136si366441qke.186.2020.04.09.17.09.21; Thu, 09 Apr 2020 17:09:36 -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=gHFALgYj; 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 S1727015AbgDJAIA (ORCPT + 99 others); Thu, 9 Apr 2020 20:08:00 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:36978 "EHLO mail-pf1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726936AbgDJAIA (ORCPT ); Thu, 9 Apr 2020 20:08:00 -0400 Received: by mail-pf1-f179.google.com with SMTP id u65so314857pfb.4 for ; Thu, 09 Apr 2020 17:08:00 -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=6Tjv9zMJn2YHc3izqrZKgOj37Bk9MfHeVEZyetQC/ao=; b=gHFALgYjav/vbnoQF2YkYu+ryTWTVwNZcLgm3OsA5FeGP8GpfcWMkMPYlGjJUH/xkl yJQ08SZQ6J2Nnf7cVBk4ebNFtLuGVaAZgkHBX4POy98+BGZHc0P00xTaj0Yiqv9sge3Z TiXKNczlyLHFAQg3KNKVgE4ozrcifuVrlShqU= 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=6Tjv9zMJn2YHc3izqrZKgOj37Bk9MfHeVEZyetQC/ao=; b=O+HEYiGVlgklY25v6I1A0bJA3UdtU+N3Uut+Q4d5vNlPmSNFCbV7jwPeKagsTtl1eI MZcNTWAX6yLg4hdaC421Lcv+MFjsdAC/fUC7Qj72AO146w5P+72Wqu57QreoL3h6JbhR zPr1/PvqYaVWWFuKwlJ4+/i2MoISQRJAzhSobNbnrFY2m/4Kjllo9cHY9DY06xRnZecA whnW2iVhi+PHEcn3padbfnC3Ze4DcXGz2zFTq7/+gfO9hwHRtUIm0ot9ea17d4LQWrxP JcMtIgJukUOJe5cT0f2ajUDfZyZZVreoYwM3FbiKVGWrKY4Yen7VJDTNwFnwUBKeOPwE FBmA== X-Gm-Message-State: AGi0PuY+EFQaAdiPuEzxaaSQrFrHomyvMms3ZSA1ObhUfYbq/j8a3pcO OOFzm+ZTfNTlsXM208I6DKnIPwEzwfg= X-Received: by 2002:a62:b603:: with SMTP id j3mr2165017pff.208.1586477279421; Thu, 09 Apr 2020 17:07:59 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id x188sm218686pfx.198.2020.04.09.17.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 17:07:58 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: heikki.krogerus@linux.intel.com, Prashant Malani , Benson Leung , Enric Balletbo i Serra , Guenter Roeck Subject: [PATCH v2 0/3] platform/chrome: typec: Add port partner registration Date: Thu, 9 Apr 2020 17:07:50 -0700 Message-Id: <20200410000753.198507-1-pmalani@chromium.org> X-Mailer: git-send-email 2.26.0.110.g2183baf09c-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 The following series adds port-partner registration when connects/disconnects are detected. In order to do that, we also register a listener for the cros-usbpd-notifier, which will inform the driver of EC PD events. While we are here, separate out the Type C port data objects into a separate struct. v1: https://lkml.org/lkml/2020/4/6/1155 Changes in v2: - Added Kconfig dependency. - Fixed style comments. - Removed unnecessary devm_kfree() call. - Fixed incorrect error pointer return. Prashant Malani (3): platform/chrome: typec: Use notifier for updates platform/chrome: typec: Add struct for port data platform/chrome: typec: Register port partner drivers/platform/chrome/Kconfig | 1 + drivers/platform/chrome/cros_ec_typec.c | 119 ++++++++++++++++++++---- 2 files changed, 103 insertions(+), 17 deletions(-) -- 2.26.0.110.g2183baf09c-goog