Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1089118rdb; Wed, 24 Jan 2024 04:45:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHFb3wklMqGHJBXkLpKWSwsM+VW1YEe9K3hpmpMFtFOOXgq01UtYeW8tiRYw0v4sCCIsFr X-Received: by 2002:aa7:db48:0:b0:55c:d3e2:34ce with SMTP id n8-20020aa7db48000000b0055cd3e234cemr144927edt.17.1706100304861; Wed, 24 Jan 2024 04:45:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706100304; cv=pass; d=google.com; s=arc-20160816; b=09q6KMI3edFJ6WJoqeae5rsxckOdZpkklozk5YqsS5rE5vKfyY7Mp7KCbMGL9Bx8CH UNyvBSXLitRcLlVeAqe8sGOr+vM+n0V5LxrvzcmPEArvn2+WdkeP7bo3rQvZqat0Lqoz 9joXCy4n4AeVxbfVcwJv1koFoN22xKUg7o4Df7PYvM7fXFUwDVwKEygLtnvRwjOKU8Cj W+dVInoWhIxECOPKHj8fjTwrOtKWHJq9f2vX4Iv2ewazkkS1kwXLcDz+ICmF28fd4NL0 3LlCnsuPyAVfzU6P5fJlUjgKgdel6v/Nm1HKNWpRDigwRcXPG5AVEcqdVyETmP2pWbD5 re4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=UqgyZ2Sqd1xfKm+m9+hAQsolUxve6GqD3pgIanjN3gI=; fh=eH5wToHUnqOImt7ZlR1VJCp5Y2QLiv9kdAciA5XUyAE=; b=zym7U45P67ZuQcDOU3sg85rnJOLKpJAikkkSJPZ89MO8cfEDtNa/SlkXWoRJXM6phd h3PYWlODxoTwPvcRhtu5ZSUJRcdtRqKRpW8ngHI8hu07StGv7oA1WAQvhW+/MC5EcNxx k0mZxe/kNzDF6NswP0EOWsYIFXKysCit7xJLXjMC+yE9qgOUMbr6mGqhRNU88+kloKI0 kJB81vPC8BDpjf5A/TD7vWb8f/rCr9mmGJIZ/hgTKm9XuDrsR6+UT0HzQgNkrQITjth6 9QTYebv1xzWlcVlm4X3Ko2b+NZvVFX9F6aVZK3xqJXSj2AIDVgWH0Rf7TtL33DvfbEN5 Dxow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tgXQZVbk; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-37011-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a96-20020a509ee9000000b0055c21305268si3734882edf.22.2024.01.24.04.45.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 04:45:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37011-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tgXQZVbk; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-37011-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6AECC1F22A32 for ; Wed, 24 Jan 2024 12:45:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D69307762E; Wed, 24 Jan 2024 12:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tgXQZVbk" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 6931077F13 for ; Wed, 24 Jan 2024 12:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706100251; cv=none; b=OsKRAkyKemxv9ons0VXPeeL9gdBqwK8dBLgLgo0k+VAjDJwGOv+ivLL81JaWhdAYXTAwvm9WYicNTFMM1PQ/Y+pZ1G2naAkDrdBijEEemsl2qwygkvApVRQqdK6j1oOrlp7aohKyIJVcOtbhG61fTjaT7oFNzbA6cGr86AGwo/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706100251; c=relaxed/simple; bh=u4Pd9/GQ/D35q1MW5OAVVQkGORRVo9EB40xBQcaVozw=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=k16PGBaneToDg/hbxaWT4HiF8hFV3MxgHzyvMfOG/C+98XcwAcjcpsFkFoIY6EXnObMh45qzcnEbrlJk1bwnuwUxIvKGKbNdE8LF2opjPo7WtHahnZ3hBlQ5DkZc0ehK/Bd2edDDeznptmzKaeEsP4j4G6Y0jKwBM3Yn+W13Q6E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tgXQZVbk; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1d70a986c4aso24015765ad.2 for ; Wed, 24 Jan 2024 04:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706100249; x=1706705049; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=UqgyZ2Sqd1xfKm+m9+hAQsolUxve6GqD3pgIanjN3gI=; b=tgXQZVbkdhs88Upq/Nd3zj1B87PbuGMrRz9GfkMEeUGRjeCHQZvRohe4I1Onx4voCU zOFPWJWwhsnnCYAMgL/pK9kNAevWdJS0J/vAc/I4fZ7gd3f6HlE7HaeRnkl9kQ1AJHpJ DVwbtpYLHh4UQQNsrprorUpG1z+g3L154VD52SO5RUGGg8tLwNDi2cMjwo0cH8Kfw9iH 232GeJ9zuxTzfeJPf7Y8o3gkB8JDfdnAmPJxBNSp1HzJDQ/sodMgTeEFGtlsSG+CESWD n85BF3NdnMhV9rrbMAuqpAGTUU9jrKh+yY3z4b2f2HEa29wRaPy5AjJhhJHeTQiCryNy 9Z8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706100249; x=1706705049; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=UqgyZ2Sqd1xfKm+m9+hAQsolUxve6GqD3pgIanjN3gI=; b=pweVha94FDMOv4XUsjRfbHeC2jihreADZ+u9ARlrzGHbCC24LFcs8aSULQZ7xfe1R/ GxMIxVgn1wcUzLhF//ULhcezNwHCp+N67baw0TX/K1WD1uT7AuwBwhFPvl7QbwMDvowj ps3bcBK1v0w7KshJbjH1azCMTFeMnxW+oWd5yFeSKmfPUqvCq9XGUU5brJgjZYvyy0rN iMZySxsusOVfmS/2669OFGCKax2k03w82R6OoPJkrtaQxB/3NfrFT/NRXOwirM0FptTK lJbK6rZAWwQ0Q0rhUSWDI/DrGCvBbRTqdLpgtackNxqOSYW8KcC7qPA/tx8C0sctvTxW wrvg== X-Gm-Message-State: AOJu0YyUgiMuoNSqgEcskZtCESSa0CujVsiESUaslmF9y0gtFd5qSl9m +LacrddV4JQGjwhlOYJa9zYLC08tmGlJ+nE9DmWi/MJH3FmAuLxa7saHa068F30= X-Received: by 2002:a17:902:bcc1:b0:1d6:f263:5699 with SMTP id o1-20020a170902bcc100b001d6f2635699mr575890pls.30.1706100248630; Wed, 24 Jan 2024 04:44:08 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:fd4f:fd82:e4fb:1654? ([2a01:e0a:982:cbb0:fd4f:fd82:e4fb:1654]) by smtp.gmail.com with ESMTPSA id 12-20020a170902e9cc00b001d7035b11d6sm10368325plk.254.2024.01.24.04.44.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jan 2024 04:44:08 -0800 (PST) Message-ID: Date: Wed, 24 Jan 2024 13:44:03 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v1 0/3] usb: typec: ucsi: Adding support for UCSI 3.0 Content-Language: en-US, fr To: Abhishek Pandit-Subedi , 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 , Saranya Gopal , linux-kernel@vger.kernel.org, linux-arm-msm References: <20240123223039.1471557-1-abhishekpandit@google.com> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/mvqQtaTtZID2dos04 YqBbshiJbejgVJjy+HODcNUIKBB3PSLaln4ltdsV73SBcwUNdzebfKspAQunCM22Mn6FBIxQ GizsMLcP/0FX4en9NaKGfK6ZdKK6kN1GR9YffMJd2P08EO8mHowmSRe/ExAODhAs9W7XXExw UNCY4pVJyRPpEhv373vvff60bHxc1k/FF9WaPscMt7hlkbFLUs85kHtQAmr8pV5Hy9ezsSRa GzJmiVclkPc2BY592IGBXRDQ38urXeM4nfhhvqA50b/nAEXc6FzqgXqDkEIwR66/Gbp0t3+r yQzpKRyQif3OwE0ETVkGzwEIALyKDN/OGURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYp QTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXMcoJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+ SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hiSvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240123223039.1471557-1-abhishekpandit@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 23/01/2024 23:30, Abhishek Pandit-Subedi wrote: > 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(-) > [ 7.417925] ucsi_glink.pmic_glink_ucsi pmic_glink.ucsi.0: Registered UCSI interface with version 1.1.0 Tested-by: Neil Armstrong # on SM8650-QRD [ 9.085733] ucsi_glink.pmic_glink_ucsi pmic_glink.ucsi.0: Registered UCSI interface with version 1.1.0 Tested-by: Neil Armstrong # on SM8550-QRD Thanks, Neil