Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp817711pxx; Thu, 29 Oct 2020 15:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOIIXNFqe789T/mT+PpBr3svRh9O2Eper5R23T895U7I88ZwjwkYoWrubvDfoOSF3xen5Z X-Received: by 2002:a17:906:a149:: with SMTP id bu9mr6102978ejb.115.1604010571491; Thu, 29 Oct 2020 15:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604010571; cv=none; d=google.com; s=arc-20160816; b=yhZwZX5zBOIFtDVSaN3w69C69hH/TLRgpu8DbPGfbit1n6qUC8FFSmaphWe0YP1U8N N8VbCLLhGgwuiQzWNPEmnqvocVoyxg5oaw+9OOP4Mgbohm+UJSg7nmYJ2fFAStWZx92p 5rrH9Gh9HcACsabz1TJnwm8y4/TskqmCMO0rx5y376NKGcD5KFqEVQskBB4kudJoO4eF fXff+nYQroVJy7NRccl1y6GOKhf7Dou6Q83m/0Nm5bzFdDL+DncEKsZ0uMOMeSQtW3WL XfRfmuf6vQn8gosF6rNbcoWURfnXXenHro7IXylTt2YUgR8a+bK7O1zEbSm/M2lBYcyf uAFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=K+sR0ETQQjC3OcYTYIpUiaVXOya/h0TrbznMrV+Jdso=; b=umv8yNF38lCUEO+CJKAF+4pvkFXayaz7xvv9hLP/gcpD9H5kTc7+gYeYGNbZabofFy LhFMKe4IRYmG4qN2zFfvkq4Z42k38B0OZM29aSJ7ov6my6UHKEvvLtDe/rjK8vqvf7JJ eSdG21M4o06NCPj+xQz7A4PXkmvVtGcRjX3xEgut0r3hPHEw2hI0on01DaBjVE0O+bNw 47kyEfLWPq1zDDkyov/bJmpxMQzBqh/FSWeldFysnF+g/FMuTOsgx9ovjk77s3tQPwgj Wujdr4auVgvqBz3JLM6pl2fhZ5pLy4nuh+TaK9vYGWUuRjgbyMH0IP1RvKLkh+VO32gD sGqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C3YmEM4l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g5si3074714edu.574.2020.10.29.15.29.09; Thu, 29 Oct 2020 15:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C3YmEM4l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1725800AbgJ2W1u (ORCPT + 99 others); Thu, 29 Oct 2020 18:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725562AbgJ2W1t (ORCPT ); Thu, 29 Oct 2020 18:27:49 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3D6CC0613CF for ; Thu, 29 Oct 2020 15:27:48 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id j18so3594100pfa.0 for ; Thu, 29 Oct 2020 15:27:48 -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=K+sR0ETQQjC3OcYTYIpUiaVXOya/h0TrbznMrV+Jdso=; b=C3YmEM4lmBP3Nt0Oz2iF19e9JJ4+NL2IE2Uef28Npc1RDs3PnAmxSxWXpzDmaK8O2T ahDw1X9fU+QfOb7BZU6kNmDYktF976qiNcIAEJBlTICIcgigel/gOUxMXSWmu/74ToHo S/9Q+ahygEm0+sL28Z6Fv/mdRGyv7Rx5HbQUI= 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=K+sR0ETQQjC3OcYTYIpUiaVXOya/h0TrbznMrV+Jdso=; b=U2JgAZX3YQcg/zPMPFwBA0Ik5BfPfVPvmCuVae+uI8HmJucaI45HhFmB/zOSzMpAvn lY8KR37N7XC09Ts4WTrTC/7mkaP+yjaouSS3rdcDfqHW30RY5ZLUNjmWotY2s1RxWe4x o8UrqPPMadBJpGSOScKfztiUAijj7OiIaaqVeN4CMhwL4k+bjk6mEUo+bvpe8SwlZqvQ NKksALmLeqbl6EXy2aysBIJTsRyOFCvZzqoCMvvdZ4AFG/VBF7q9LkKBtUYPrCBtr+Jy 0HK3lqh7wHo85mMrzPpQCJ2uuZTDiFJTbEHIQPyjBGk/clqS9OD8rD6e2RKXUCuTVe3k OV9Q== X-Gm-Message-State: AOAM532v4/Ka+FFn1pcg33J4ybHpWrsuFVVKdlEed4nxpKNkk5G8Txsh LVSxvOLxw74MYd/8KX/x0KQZlYRwxF4Z/w== X-Received: by 2002:a17:90a:b28f:: with SMTP id c15mr2006602pjr.230.1604010468153; Thu, 29 Oct 2020 15:27:48 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id f5sm3573886pgi.86.2020.10.29.15.27.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 15:27:47 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: heikki.krogerus@linux.intel.com, dzigterman@chromium.org, alevkoy@chromium.org, Prashant Malani , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Mark Brown , Pi-Hsun Shih Subject: [PATCH v2 0/7] platform/chrome: cros_ec_typec: Register partner PD information Date: Thu, 29 Oct 2020 15:27:28 -0700 Message-Id: <20201029222738.482366-1-pmalani@chromium.org> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support to retrieve Type C PD(Power Delivery) Discovery information from the Chrome OS EC, and register this information with the Type C connector class framework. There are also a couple of patches which fix minor bugs with the existing cros-ec-typec driver. v1: https://lore.kernel.org/lkml/20201021205317.708008-1-pmalani@chromium.org/ Changes in v2: - Added missing static to function definition. - Changes alt mode list traversal based on review comments. - Rebased series on top of chrome-platform-5.11. Prashant Malani (7): platform/chrome: cros_ec_typec: Relocate set_port_params_v*() functions platform/chrome: cros_ec_typec: Fix remove partner logic platform/chrome: cros_ec_typec: Clear partner identity on device removal platform/chrome: cros_ec: Import Type C host commands platform/chrome: cros_ec_typec: Introduce TYPEC_STATUS platform/chrome: cros_ec_typec: Parse partner PD ID VDOs platform/chrome: cros_ec_typec: Register partner altmodes drivers/platform/chrome/cros_ec_typec.c | 329 ++++++++++++++---- .../linux/platform_data/cros_ec_commands.h | 155 +++++++++ 2 files changed, 415 insertions(+), 69 deletions(-) -- 2.29.1.341.ge80a0c044ae-goog