Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp68478ybb; Thu, 9 Apr 2020 17:26:06 -0700 (PDT) X-Google-Smtp-Source: APiQypJrXVldyRgDqt8/RCyUVdE53p3pGx0BB1GERhJI4FaQN4qHBPxnHqvnD6u/7QaB5XRuHekh X-Received: by 2002:a37:4b08:: with SMTP id y8mr1669823qka.494.1586478366740; Thu, 09 Apr 2020 17:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586478366; cv=none; d=google.com; s=arc-20160816; b=eDQ5pgl5de/q4bkdRoaDdMwq5Ev8C7uo+vKLI5c0Pg2ZrprCdKMXQj5D6JymqEi8pT d7JkFKcLMMNoHaEPwh7Fhoz9kRPoVso2vTPpd1yW+WrSZNcW4dvvRE0BrxoXBu4qrkhG Ui0LzpoFdOxWH/QRknTGye6vdUsCeqDiwNw/x5EJbUzx76pKKVRyglTzg2Odde0eJm56 lHU/FxiY/OZAG6mIeeCmKuezL7wxdYj7tnwiDNGZx5DBy1GV+4Jgdn0PdLf5l3rANDsz p7H18lKauAF2rtb2t6L1BUtt2ib2/RoBuM9F7+SeVockKKGfXaXONIXQyiBdSChTERZN hKWw== 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=wKVl6BcBoowwdtw9O7SBGiEP6TqcKMwxzz7fLolApck=; b=QlszETYr9VTI3sSdx76QfcQdNQA1MlMt7o6hWozTmvCeJBbnnEkYeo7RqVxcs8/uJF K2GWJdbYuOiXVDQpZZ1ggz6ywj/1q6AkzGGRd2xNkkfp0XVi9tz0FzXO6ZDNxaPrsky8 56dOediDgYAORxd96Wa7upgsW/zkDikjMDCs4t6vYEzpqNdHFR0G3o6qvl2hUiUSEIPe HnAjNI4VEzTx6R0S47BwgaLXkROBrTLyW2Y+/QSmNmfYKTydUThR2ZSjlP7GK8fFdMx7 nC2kRAbK0Cz4ATaP9/1YKCYqWp86MbO66w4+VCgo0jZo16AyVXR0VCUDIKnx83RjLNzB uLDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="oVROvY/z"; 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 w23si244054qtn.255.2020.04.09.17.25.50; Thu, 09 Apr 2020 17:26:06 -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="oVROvY/z"; 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 S1726892AbgDJAXf (ORCPT + 99 others); Thu, 9 Apr 2020 20:23:35 -0400 Received: from mail-pl1-f177.google.com ([209.85.214.177]:36101 "EHLO mail-pl1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbgDJAXf (ORCPT ); Thu, 9 Apr 2020 20:23:35 -0400 Received: by mail-pl1-f177.google.com with SMTP id g2so122249plo.3 for ; Thu, 09 Apr 2020 17:23:35 -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=wKVl6BcBoowwdtw9O7SBGiEP6TqcKMwxzz7fLolApck=; b=oVROvY/zAuNrLdlXBdwdRC/R7lAMUfc/uppMU2pgm6sNGpA/Ft5xMxZSIklKgZqYQj dTytluExWWu5rrTAPhCoqzOyeWcciW1hQLqvSahBufzxa7qaH5wnqrO++H+R+uo1LWQf SsAKbqvB48c8S5PH7YxGRxaDjtJzQ2YVOHh9w= 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=wKVl6BcBoowwdtw9O7SBGiEP6TqcKMwxzz7fLolApck=; b=f3BQFYYhPsiOF2Pa4HBj6J6fwZgGOcxejm3jmk6y11/3KNlUKOrp5VRfh6gfBd/tzo aayO0NmB2JHMHcAd/rlmsP1gGjNy9rTBTVC+sRXFbaAALVz5Mxf9g1T7KaS/6ipK2S8P jL/AfFl+Cr5cfUCtFwG8ndhu8ZNiRZsrif2P6orz8LvbUKRiHS4HFiG5p8dEf0AuMUTy tIVyf+dQO7EcSN7MWM35SEkk1VtJkNQnHgNzaXnwuzWygU053K2QrQ3cj7snigOpnj8N 9hhOpjPHO+JmibX12FDw2Y0LuQXUTWHFFLN3v83PLAub+MR2qVDKQDcE5grBA1l+zsgN ICzw== X-Gm-Message-State: AGi0PuaWZQ9bRtnwompkGky70+odBMiZE0mESQ1IgSwK3gF8jIYi/x9/ grNsK3ihox+pdEy1SfdlMzoPkN4iY/I= X-Received: by 2002:a17:90a:9318:: with SMTP id p24mr2251160pjo.163.1586478214262; Thu, 09 Apr 2020 17:23:34 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id z7sm286952pju.37.2020.04.09.17.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 17:23:33 -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 v3 0/3] platform/chrome: typec: Add port partner registration Date: Thu, 9 Apr 2020 17:23:13 -0700 Message-Id: <20200410002316.202107-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. v2: https://lkml.org/lkml/2020/4/9/861 v1: https://lkml.org/lkml/2020/4/6/1155 Changes in v3: - Fixed trivial Kconfig dependency ordering error. 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