Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10495516rwl; Mon, 2 Jan 2023 03:43:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXsK8vD4fE95eFxOKLjICiEsJi1JrWMhyirPDZMKntDaODxS6lu0U5A6xcAWWTHoV48MT7xZ X-Received: by 2002:a17:90a:a502:b0:226:5711:2377 with SMTP id a2-20020a17090aa50200b0022657112377mr8006982pjq.19.1672659805918; Mon, 02 Jan 2023 03:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672659805; cv=none; d=google.com; s=arc-20160816; b=Lpp20f4DggDf8PQPksHi+W5lBV6mrB19W19FPSKBETbu79rEjbhH+Q4FrR9JTlbT53 D/MNmsD1E18LaGOjpiTRxzmbxSnXNcBfCPbDA87ewjvnSxhEyhmurk5Z2yKqRSi95FgN GXvLR9amGpB56hUFE9HQWc8dLWmzN/eGtIVvzvyN7tzudxkAfR5RDSTLh6Ln5J9I66yp DosMkvJ0r/G2IUVFbe2PZxYgOycMi//pclhqfaqysLu+HOU/i6Zft3IM0qYJ4ohRv9Te QnqDhRXyPghFG0tjhztUEmBY+UCXOsF0tRgbceQ+7jGyU+JMY0f2joGEWFCNGd6gtJ/g EFLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3zPucmbCBNEK+t44Ej+CBy7Dw27DHyp/LNTEXhwAUYs=; b=eyoOlCwx4HNT8tv8J5b3Afj5fJ1XggeFetJke4cdqsiPmb2BUo3HDXs2kM2foL6bJh S0ISeZrM+vX9QYsnKkn3E7q/Z5Lf4tJwsB7+vZ3XkwAd8Qsya/sgrlpzEM1Gxp2ML/oU LlIBJOjdmKSyP6Auh3hK9M8TfHd4uBKY4Pz1AMTWBm1cjFucq81Wy3ZlyYaXGm8HhriD Ya6RqmNH8GqeL8XaF7Xst6HykXKep+2g+Wi62IkHW9SHtdigUe9wPYhhMZMCuq3s1DSg gvaxjWSiNUb0FSjknHVpxsBMnozItAxVjqmkEDps2jYg0AYi43THDqghL+EdSATuCrLX IveA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zrz7b5Ms; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020a634e4d000000b00478bc014a29si30047246pgl.43.2023.01.02.03.43.17; Mon, 02 Jan 2023 03:43:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zrz7b5Ms; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232574AbjABLUo (ORCPT + 60 others); Mon, 2 Jan 2023 06:20:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232588AbjABLUJ (ORCPT ); Mon, 2 Jan 2023 06:20:09 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 635956398 for ; Mon, 2 Jan 2023 03:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672658408; x=1704194408; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3cq0L5Iv2/i9BXBd9J/fMEC34Ut39Q9wrLY1eKunmx0=; b=Zrz7b5MsbQJFoZekBEQLogmbpTf8yBtSh1UNTzznQ706T44Xj89SPYMf YtfGAf/t0BtIM4qZ5EbFcCGfkYvVKdyVjpRBs27ROd7NWB7VVH+UY15y9 1Yo7aKVOp3JvJwVfttmU3T02Qi7ga0NYfGKiVC+43BeZhd8Qug96hbyTK ysfwuj85yxSEtEjWxs3KUOKakbvEhaKk8pjaTOUSxcG56jXAk+Ajhtfym k3807USFAKZj61a++NkrdD3VHOyodoMRZdhhEYQHZJvX+dZVcZb+rvh9j pVydBIhMf+0zEUHZfzFl1gNCZ4Qd1NHU68xibtnjtas0QZrSM4zfakN+k Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10577"; a="385903227" X-IronPort-AV: E=Sophos;i="5.96,293,1665471600"; d="scan'208";a="385903227" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2023 03:20:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10577"; a="796845036" X-IronPort-AV: E=Sophos;i="5.96,293,1665471600"; d="scan'208";a="796845036" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 02 Jan 2023 03:20:02 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 02 Jan 2023 13:20:01 +0200 Date: Mon, 2 Jan 2023 13:20:01 +0200 From: Heikki Krogerus To: Prashant Malani Cc: linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, Benson Leung , Daisuke Nojiri , "Dustin L. Howett" , Evan Green , Greg Kroah-Hartman , Guenter Roeck , "Gustavo A. R. Silva" , Kees Cook , Lee Jones , Lee Jones , Sebastian Reichel , Stephen Boyd , Tinghan Shen , Tzung-Bi Shih , Xiang wangx Subject: Re: [PATCH 00/10] platform/chrome: cros_ec_typec: VDM support Message-ID: References: <20221228004648.793339-1-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221228004648.793339-1-pmalani@chromium.org> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 28, 2022 at 12:45:03AM +0000, Prashant Malani wrote: > This series adds support for sending and receiving USB PD Vendor > Defined Messages (VDMs) between the Application Processor's Type-C > ports and connected peripherals. > > Thir enables the Application processor to enter alternate modes and > process VDMs directly, instead of relying on state machines that exist > inside of co-processors like the ChromeOS Embedded Controller (EC). > > Patch 1/10 reverts an incorrect EC header modification. > Patch 2/10 to 5/10 update headers and existing Type-C structs to > accommodate the VDM code. > Patch 6/10 and 7/10 prepare the Type-C driver to have more than 1 file. > Patch 8/10 to 10/10 introduce the VDM functionality. > > Patch submissions suggestion (if approved): > - Even though Patch 1 touches drivers/mfd, it would be better to take > the entire series through the cbrome-platform branch, to avoid > cross-dependencies across maintainer trees. For the whole series, FWIW: Acked-by: Heikki Krogerus > Prashant Malani (10): > Revert "mfd: cros_ec: Add SCP Core-1 as a new CrOS EC MCU" > platform_chrome: cros_ec: Add Type-C VDM defines > platform/chrome: cros_ec_typec: Stash port driver info > platform/chrome: cros_ec_typec: Set port alt mode drvdata > platform/chrome: cros_ec_typec: Update port DP VDO > platform/chrome: cros_ec_typec: Move structs to header > platform/chrome: cros_ec_typec: Alter module name with hyphens > platform/chrome: cros_ec_typec: Add initial VDM support > platform/chrome: cros_typec_vdm: Add VDM reply support > platform/chrome: cros_typec_vdm: Add VDM send support > > MAINTAINERS | 3 +- > drivers/mfd/cros_ec_dev.c | 5 - > drivers/platform/chrome/Kconfig | 2 +- > drivers/platform/chrome/Makefile | 3 +- > drivers/platform/chrome/cros_ec_typec.c | 91 +++------------ > drivers/platform/chrome/cros_ec_typec.h | 85 ++++++++++++++ > drivers/platform/chrome/cros_typec_vdm.c | 106 ++++++++++++++++++ > drivers/platform/chrome/cros_typec_vdm.h | 12 ++ > .../linux/platform_data/cros_ec_commands.h | 53 ++++++++- > include/linux/platform_data/cros_ec_proto.h | 1 - > 10 files changed, 276 insertions(+), 85 deletions(-) > create mode 100644 drivers/platform/chrome/cros_ec_typec.h > create mode 100644 drivers/platform/chrome/cros_typec_vdm.c > create mode 100644 drivers/platform/chrome/cros_typec_vdm.h -- heikki