From patchwork Fri Nov 6 18:40:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prashant Malani X-Patchwork-Id: 11887733 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4980E6A2 for ; Fri, 6 Nov 2020 18:41:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F144206CB for ; Fri, 6 Nov 2020 18:41:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="fFFla20V" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727998AbgKFSlR (ORCPT ); Fri, 6 Nov 2020 13:41:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727605AbgKFSlQ (ORCPT ); Fri, 6 Nov 2020 13:41:16 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F04CDC0613CF for ; Fri, 6 Nov 2020 10:41:14 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id z24so1619427pgk.3 for ; Fri, 06 Nov 2020 10:41:14 -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=jDCAM3XXJ/HqS+XVohaVZpsIAUFDZRh6b3WrbFuDG9U=; b=fFFla20VJR/kGP9WOCjXrl2YTtaAKL0pypx0TCbvLLuwisjKD7azcqfEP6esytHrPT ZhIi+A/5Tl+B755MlTRP9B6xUmAaybjazvH20Eaib1iOIGiRAJUh8LNjd7wWsXT8R1SG somhWUx6M/pq/EbjlMdx3JUkCk3neMgJDotC4= 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=jDCAM3XXJ/HqS+XVohaVZpsIAUFDZRh6b3WrbFuDG9U=; b=V8g7jaBus/4UkAYjNceyvKDDKPc74xBlXnr5LuGr3wfwHQD8QfBDZcuRUL0Sj7l/BR 8M1WfqvdVeDnsbo/wbmb7leRefCrwwGJSdXGdfb/ij8mWK96Lc9MCeoULQfapJgBzsEB cQNqtW0y/fWVW8+IWEi4DR9hmj4bY27JwkJBrIhSheI/mL+i/7tnvo8nrgXKi+HVlqXa 4XHT0vkhAJ9OfYEcRl67ujgx/NXwbKefeiH0VoyQvwGK3B1ioGVzTcggOwhVYMSktW6J /eCLt0HSRj7KM/vcxYV0xbZDtqPywDFIktos2BvrHdbGc5OrUmgXmuyfuN3UOJSps61W Pcig== X-Gm-Message-State: AOAM532lUclxFhXty4RCr6seO43WAQ0x+QOfRVVR8eHBo3rIsZajPMOU KPW0Bmz208HHpDGGE6stLphvTQ== X-Google-Smtp-Source: ABdhPJy4TU6PlLg261yhikfs03Bl03a33QLqBDzlxcnuY3UDTN4lEkK0ah72fLRDjXly1XBAW49Dvw== X-Received: by 2002:a17:90b:316:: with SMTP id ay22mr1001591pjb.8.1604688074447; Fri, 06 Nov 2020 10:41:14 -0800 (PST) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id b6sm3246143pjq.42.2020.11.06.10.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 10:41:13 -0800 (PST) From: Prashant Malani To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, gregkh@linuxfoundation.org Cc: Prashant Malani , Benson Leung , Enric Balletbo i Serra , Guenter Roeck Subject: [PATCH v2 0/6] platform/chrome: cros_ec_typec: Add cable Date: Fri, 6 Nov 2020 10:40:57 -0800 Message-Id: <20201106184104.939284-1-pmalani@chromium.org> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The following series adds Type C cable registration to the cros-ec-typec port driver using the Type C connector class framework. The first few patches perform a few minor re-organizations to prepare for the cable registration patch. The last couple of CLs update the USB PD VDO header file to add a captive cable connector for the Type C cable plug field, and then use the added macro to add the corresponding field of the Type C cable descriptor in the cros-ec-typec driver. v1: https://lore.kernel.org/lkml/20201106012758.525472-1-pmalani@chromium.org/ Changes since v2: - Changed local variable uint32_t to u32 in patch 6/6. Prashant Malani (6): platform/chrome: cros_ec_typec: Make disc_done flag partner-only platform/chrome: cros_ec_typec: Factor out PD identity parsing platform/chrome: cros_ec_typec: Rename discovery struct platform/chrome: cros_ec_typec: Register cable usb: pd: Add captive Type C cable type platform/chrome: cros_ec_typec: Store cable plug type drivers/platform/chrome/cros_ec_typec.c | 148 +++++++++++++++++++----- include/linux/usb/pd_vdo.h | 4 +- 2 files changed, 123 insertions(+), 29 deletions(-) Reviewed-by: Greg Kroah-Hartman