Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp763602rdb; Tue, 23 Jan 2024 14:31:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjtuRgUlYy9mx9UFHvOT7C0HgaEhhprDA8Dscii32XA0Z/fzqDz5nmwAO38pczOa6iLk0z X-Received: by 2002:a17:902:a709:b0:1d7:120b:5a50 with SMTP id w9-20020a170902a70900b001d7120b5a50mr4033482plq.61.1706049066090; Tue, 23 Jan 2024 14:31:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706049066; cv=pass; d=google.com; s=arc-20160816; b=hxRix3gf2/jYTWpnjwjjdJ9WzgBez5vODqGfnMbXxGv2W1VKQcqNbfoZzoH9OzAkCu ZO7hs9OPZgOSzFcePNlKoDHBGR6wqJ+y45+HCMqit3UMoQY1u5ztoXuZ+VmzjUZvGcdo W/QS/+B/WIAW93hwYZhrcqnbfd+O9cqIbur0oxcZ9u4akxLNpJGWJxCebNxXBf8/fTS0 h3ISbz+UxQTDylb7dUoDNw+5CSIaj7jQNyNXGo4axJSojFYmijA5b9LQndKo0J7zOyLx 84Qn9pDqgBMg7tx0J06qTITxHHN7+ytlQwhmJX5+egl21Rv+AS+8AkMmZyFBfeJjpKm/ du4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=7Qx2jISN6WbjojC2jV3q1VojHLOX1qD9aHNvqQ5ekZs=; fh=LVFxb9qmsFs6dUX7fupkBnCNUcX/LgJnUOZeJK2Yu2I=; b=EMteuxAs7yjMYSlGR+Eq3gzPLJEVu8IiHMnTY1V29HgPusTq8ZUF56uzbe0XxqUOFq m54peVwi9OMFwECfvbT4I04JZafZwRX2Fd18CG65L/B3EA+sIOxl9LS+XF9txEq4V3GK sYPB3u83hSv2TcCQOMQd8gmcSG3amlNmP4dD5ylPUa+w6usQdXqiTAVFbYG0sIGB7q9H viSfz63CuV4ZjYaj2aIvWCRIyE5i3cWnv3kvb7Sf8vBDYUPmlOePj7xroDQm4FCQRQVE k0plKs7g4iAsTh/oEGaAT+ZaP22iCqU2T1nRxHTbJ2Rq42PiyCxaq/DNXe/IBJLmRyZ3 w9tA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=V8FXcH7a; arc=pass (i=1 spf=pass spfdomain=flex--abhishekpandit.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-36147-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l8-20020a170903120800b001d6f7875f69si10678892plh.380.2024.01.23.14.31.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 14:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36147-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=V8FXcH7a; arc=pass (i=1 spf=pass spfdomain=flex--abhishekpandit.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-36147-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B5B9E285356 for ; Tue, 23 Jan 2024 22:31:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BAA053E0C; Tue, 23 Jan 2024 22:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="V8FXcH7a" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF0E547F5D for ; Tue, 23 Jan 2024 22:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706049044; cv=none; b=FHvXC4RfaVax5Bt3LJDnB1QlFC6WaL0QeDB56s7ORu+VZFXSk5ghIZFi2uTOrKve5DHUwTkhk93ikOw9IcUzIRoMeTvgGFm4GABi0Lg6l6HkpmpAAzfFwraMCMP+wDqxy5/ekPHvl3VtrhHTeHYW4Jc/SAk/ySCIKz9D4VIAxHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706049044; c=relaxed/simple; bh=dBBITS9FO1ji6Tbp5hcqIAnNiL5zxOzeCbOePyJkuP0=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=E4u/SMAXZrmjG9ZRDbhWSn7dT9hswmDovElbjkr7Kbja5KoEKFLxFf8j6RktIPar3Uk7VNBUJG77AKsbqMZU2TP2BfMbqFO8ibKMvD8bwt9IHXwU7HL6sEfk2bJIFBX9VdJMTQrHkcqaGbn0j3vmE8qFM8vBa5HtyyJIy1eCs1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--abhishekpandit.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=V8FXcH7a; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--abhishekpandit.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-6002a655cc1so28016307b3.1 for ; Tue, 23 Jan 2024 14:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706049042; x=1706653842; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=7Qx2jISN6WbjojC2jV3q1VojHLOX1qD9aHNvqQ5ekZs=; b=V8FXcH7anTrlVocZYTCZjJONtNctJdbTUssOyzVr9S3UZP87bOHxt2soQSH0mBrAgg a1oK2f/rpobrSj6WNqgbT1rXlkm/F+EsCRq4cZFVdH7bFVNMpXpiyObLOkqkP6tXiQHP E4VtpJ5bglpEUYtHbWI1TN/kJr653xu6yOYKdF6Yr/AUrMAGKadoN+2IZl76Vyj5IiPD vVKRiVrXAKXcjpnMwHBifAx9y/qLZj2CfTT67y3svCv2oh6q4sktdusami6IN2p2GfEv B5R2SGPC3fw25MsqM3/NWXdcI+qwTVJIe8WbH13UKdUHp8X2xZy7FVZI3iTqg+cqMFi8 DryA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706049042; x=1706653842; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7Qx2jISN6WbjojC2jV3q1VojHLOX1qD9aHNvqQ5ekZs=; b=vHAyXjeeD7hNjQYKSZVCfZL4P95FvRJTjUk4TIWRWVm5bTjj/DBmuWa2AkaDf4i+kH ND6Uma5l7a33b0n66OcdXPlraBuJgw3la38BEDXAyGxgXN/T69FdU0UWr7l0zy2OOC9c k24AaP0evH5teS8rtFoLS2fUiv48JTD/yENCYXp6uRB6CuJrF+yTf1EJUzhDlw1kdRQB v3fwL5DpzWWJKuF3j+avYAokk122xnkBITdNX76L1H0kvho/WfsgYmy77SIwRdOEkTiP kix0llgLtyOW/he7lrnv+xCG8F1uncfgyASxcnxsXVS0ufpXTMy9pmO1RV7fd5fQtXXS XZ3w== X-Gm-Message-State: AOJu0Yzg6+XcpCiQIHoYvOegLoQXRsDJ7KMlZUoJJUZhARYa/UEi9Clq c5k86fHbEcssIfPvKybAPfwKckGeTevUYOkDQB+bH7LnEk/Nr5GyNsLHRGrfpbvQ4r0nYBmkb5+ aYveaZC2hvpkuABs9HWI++GPYPnou/wgxjg== X-Received: from abps.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:9b4]) (user=abhishekpandit job=sendgmr) by 2002:a81:48c4:0:b0:5ff:5135:ffcf with SMTP id v187-20020a8148c4000000b005ff5135ffcfmr2338544ywa.4.1706049041923; Tue, 23 Jan 2024 14:30:41 -0800 (PST) Date: Tue, 23 Jan 2024 14:30:33 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Message-ID: <20240123223039.1471557-1-abhishekpandit@google.com> Subject: [PATCH v1 0/3] usb: typec: ucsi: Adding support for UCSI 3.0 From: Abhishek Pandit-Subedi To: Heikki Krogerus , linux-usb@vger.kernel.org Cc: pmalani@chromium.org, jthies@google.com, Abhishek Pandit-Subedi , Andy Shevchenko , Bjorn Andersson , Dmitry Baryshkov , Fabrice Gasnier , Greg Kroah-Hartman , Hans de Goede , Neil Armstrong , Saranya Gopal , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" From: Abhishek Pandit-Subedi Hi Heikki, This series starts the work adding UCSI 3.0 support to the UCSI driver. There's a couple of pieces to start here: * Add version checks and limit read size on 1.2. * Update Connector Status and Connector Capability structures. * Expose Partner PD revision from Capability data. These were tested against on a 6.6 kernel running a usermode PPM against a Realtek Evaluation board. One additional note: there are a lot more unaligned fields in UCSI now and the struct definitions are getting a bit out of hand. We can discuss alternate mechanisms for defining these structs in the patch that changes these structures. Thanks, Abhishek Abhishek Pandit-Subedi (3): usb: typec: ucsi: Limit read size on v1.2 usb: typec: ucsi: Update connector cap and status usb: typec: ucsi: Get PD revision for partner drivers/usb/typec/ucsi/ucsi.c | 51 ++++++++++++++++++++++++++-- drivers/usb/typec/ucsi/ucsi.h | 64 ++++++++++++++++++++++++++++++++--- 2 files changed, 109 insertions(+), 6 deletions(-) -- 2.43.0.429.g432eaa2c6b-goog