Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1718279lqe; Mon, 8 Apr 2024 19:27:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyxzYrP27ih25ztUY7inoa7SSq1UVVlPMPy0GsEz19NM+QbCWkTibOajhN6ljeWzwQC17IQOAGgtxmktbawaic8FULV42w2MRGRiddug== X-Google-Smtp-Source: AGHT+IE9z5tuiZp2qfoPsiqt3b9E6F54/WMN/otgw9hc/11xPc63yuRORWFtefIDe+WSalVMe32N X-Received: by 2002:a17:907:a43:b0:a51:e351:9ad4 with SMTP id be3-20020a1709070a4300b00a51e3519ad4mr1605468ejc.9.1712629671096; Mon, 08 Apr 2024 19:27:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712629671; cv=pass; d=google.com; s=arc-20160816; b=O3YjzyKzt1fnJpJIH/uvgmYeRFO5pu1z+H1yJD0v8kw1zTkCUy/n4P/7bBU5+mlNcX UWO59XEym42cilqSoRH3t16+seA3EHOLFYrXy8S0ueCSGvBfufcF/lIwY4FrrcjT52UD XVFIayJ9mBMQOM9KxA/m60fy52hOjm+L5CayiuRPDB4+odBXhnPptrr9Z55+iXeDWV5h PuCbuNq+8tivRMKVz6LZxfa5WFtfPOPUs+WbasUTKINLBX1yfJVWbjfuw451ahUPTywR Fp8MBxsV92EvW0cN0hzgUwzUjkGL9vk6DA7WnRldUE/wDIsBMKvdjBX4oQInyuWrfXFR D0Xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=KnUPa/A9V813oeE8EVVl8Mgh5nGUgOiLvHqt02U6ihY=; fh=mf2rInwHB0vZW5ZhX2I+O/9Y3COcAiBZWhM7ozXpt20=; b=XtFBIvinPhdPDZnlzpMDVoK1S0Qb8e7S6gVUQLxaMgikVSFCRqQg0Ogrc6LDR4dzPI Yl/NAn+fG8deQULUn7dayrAG4e8Kxa5VspYXGXGOcPMRP52UFs2N9UVR1gJcDO74H8lr jCOMlbkgZvK81k237xPj2Ucs+BjpNHFMjSXhEvdYqdU6wpXz5tl9Q8PriC+IIrxMgRF2 fkAKZfrpNG9Wmc+/QwGoKwpBlphNckBmG7Lc5fU6PDwoZ9o2a4Syk/kEeipNWF7mca+y V8NA3VxDUeTXJq0Nz+ZB1opET0JQ5G3vFk3k/NrVnh9TzOV6YrQ/r3cY3z8cxVQfIrM9 1fow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LcDk4L5B; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-136130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 ha10-20020a170906a88a00b00a51d3015a3dsi1685062ejb.379.2024.04.08.19.27.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 19:27:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136130-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=@chromium.org header.s=google header.b=LcDk4L5B; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-136130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 CE6071F236A9 for ; Tue, 9 Apr 2024 02:27:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DD4B4F891; Tue, 9 Apr 2024 02:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="LcDk4L5B" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 3B66C4F1EE for ; Tue, 9 Apr 2024 02:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712629661; cv=none; b=aE265tJ9ejR0fm91gQyNMIUsonKryW0xv6rQec31OwQ2bAXwo749rTyOK3xBhEI++xfoce8gTPKxkB4G/46+POsq6RN70it6VsTihF+qN/CI0zhuToGGYov/irMscWsmUzz76uXeof0kc6+eXF3Z3kvyxNdEx4bOcyLP+JVu6J0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712629661; c=relaxed/simple; bh=unKs6TkoxSItwhjqY6Xksy31shLVbGrRwXEzYRDKVBs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Q2S5AW2mXNGVDsjRifUD9XceDHsPwoQ0xO5DdKrmQhlZ3Qek9A7IVSvpme0gxWpzwlM/2glOGAsgtbHWBPiMlq1BXXlo2YddfOWWoOPwY7pEFEesnd6BpiQQScbAxbpPwD/S9jIAWYVqhHWX0DQrafUQJcG1/qJgZa1qA4XyvYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=LcDk4L5B; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1e2a7b5ef7bso42144865ad.1 for ; Mon, 08 Apr 2024 19:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712629659; x=1713234459; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=KnUPa/A9V813oeE8EVVl8Mgh5nGUgOiLvHqt02U6ihY=; b=LcDk4L5B0enTyToevyfrBMiIUbnxmFUmmYlZORxu28Vq7SO4UXSnvTEBLIT2bOQFQ5 7CrAfInNLUO97u9G48ykhcuXknBuDSj03hA/GN6vlw92AWi/0F0Veq/D+OJ/tD/lwbR5 RuG4umn3/CG0JqwKzn+ttWImVIuSvSKPlPVNo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712629659; x=1713234459; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KnUPa/A9V813oeE8EVVl8Mgh5nGUgOiLvHqt02U6ihY=; b=NQeJ79RVfcSBWKv2ft+FdUQ0QCPSBu0StrlbNYsRdS01l/vmYYaweyP633zl4dBMXN Lia0x1PDcNFYZeq54ItFeHKtwInCNaynhoXHijsVP9SKmLZqCLeH1FwbcPQR3Hknn8B3 D02yaxJ5AqKOBgxDx3IkyzjAXLCNuwIUM2MbFnb2jXTRDb1H4dMKzpDgnEBQf7NazPlG UPWe/xtXZ/fRBIsy/kNniq3C0Pwp9J9y1JIf8alDCMXLJ0nWHdnaB8EaxAOhGmedtWPD rIR7unuTXo0z/bOhqEFzHOktQCoPj9YZQtY9pDpWGeuHqadMsbNdr/PWDmyZWVQ8RXpK eKnw== X-Gm-Message-State: AOJu0Yz1+wr2v5w26zguw+LTIkBpunCGuV+JS2Ie5w4srnhNQ4SSApXI S+R2BIId0jkHC5hw0OqnVI3wMy2DQXaKc29VsbNY4ed8LL8M8tapFVOetLBK7w== X-Received: by 2002:a17:902:c14b:b0:1e2:a42a:af5d with SMTP id 11-20020a170902c14b00b001e2a42aaf5dmr9750503plj.30.1712629659506; Mon, 08 Apr 2024 19:27:39 -0700 (PDT) Received: from pholla1.c.googlers.com (210.73.125.34.bc.googleusercontent.com. [34.125.73.210]) by smtp.gmail.com with ESMTPSA id h7-20020a170902680700b001e2b4f513e1sm7880850plk.106.2024.04.08.19.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 19:27:39 -0700 (PDT) From: Pavan Holla Subject: [PATCH v4 0/2] usb: typec: Implement UCSI driver for ChromeOS Date: Tue, 09 Apr 2024 02:27:35 +0000 Message-Id: <20240409-public-ucsi-h-v4-0-e770735222a2@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJenFGYC/33OQQ6CMBCF4auQrq1pS4HRlfcwLqAMMIlQ0kqjI dzdwsaEqMv/JfNlZubREXp2TmbmMJAnO8TQh4SZrhxa5FTHZkooLVKV8XGq7mT4ZDzxjqdoELU UeZkBizejw4aem3e9xe7IP6x7bXyQ6/pLCpILXpgCAQBrI8qL6ZztaeqP1rVsxYL6C6gIlHldy PyUQ1XJL0D6ASKxB9IINKABJZj4g9oBy7K8AeG1tVgvAQAA To: Greg Kroah-Hartman , Heikki Krogerus , Benson Leung , Tzung-Bi Shih , Guenter Roeck Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Abhishek Pandit-Subedi , chrome-platform@lists.linux.dev, Pavan Holla X-Mailer: b4 0.12.4 This series implements a UCSI ChromeOS EC transport driver. The ChromeOS EC is expected to implement a UCSI PPM. Signed-off-by: Pavan Holla --- Changes in v4: - Setup notifications before calling ucsi_register. - Cancel work before destroying driver data. - Link to v3: https://lore.kernel.org/r/20240403-public-ucsi-h-v3-0-f848e18c8ed2@chromium.org Changes in v3: - Moved driver from platform/chrome to usb/typec/ucsi. - Used id_table instead of MODULE_ALIAS. - Split EC header changes into seperate commit. - Fixes from additional internal reviews and kernel bot warnings. - Link to v2: https://lore.kernel.org/r/20240325-public-ucsi-h-v2-0-a6d716968bb1@chromium.org Changes in v2: - No code or commit message changes. - Added drivers/platform/chrome maintainers for review. - Link to v1: https://lore.kernel.org/r/20240325-public-ucsi-h-v1-0-7c7e888edc0a@chromium.org --- Pavan Holla (2): platform/chrome: Update ChromeOS EC header for UCSI usb: typec: ucsi: Implement ChromeOS UCSI driver drivers/usb/typec/ucsi/Kconfig | 13 ++ drivers/usb/typec/ucsi/Makefile | 1 + drivers/usb/typec/ucsi/cros_ec_ucsi.c | 259 +++++++++++++++++++++++++ include/linux/platform_data/cros_ec_commands.h | 20 ++ 4 files changed, 293 insertions(+) --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240325-public-ucsi-h-3ecee4106a58 Best regards, -- Pavan Holla