Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp930088rwb; Thu, 12 Jan 2023 14:27:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXtcZRSVT3W0UB15hTlMBDpHjqF2zbaJrMHS8SYeGXZDJ1ye8q6NFJnaqF3G5o8qwowzXvQ8 X-Received: by 2002:a05:6a21:1703:b0:af:7320:664c with SMTP id nv3-20020a056a21170300b000af7320664cmr86092865pzb.23.1673562422585; Thu, 12 Jan 2023 14:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673562422; cv=none; d=google.com; s=arc-20160816; b=t522a++n5bN6ZqEisYDA+ANJqxte4420/Dagjh5MzWh4GC85BFq3JwAx4Tqv6cd2km jdya9KCQA74+9WHz1iIaNBZDRqLemDa7HSEcH8hAvUE4t3pOjdnL5wnJ2rzKvhHZXXKV Y+yViKLBR65h33kUPUujGk+flj/FyNYrkMOnrxpm4SfDfrDVHkfHXD2QTgMEIKuTT0pl /h/ECF5pkUU8dmkWFSdg2+I/9bDk8DibIus7xsybZ2D4FpGL97RtbXBqg4FH0eTX3hbQ vjxJiXiggaAykL0BrlS7qpn68eQIzvjahNCJvEzsCXSeK2+FKl3g9eaTU/lGFQmuhPdW owFA== 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=QGhHJVbzLQd0GesoU/hL3GlEfg47qZVAEKWQkmB7laM=; b=we7XMnQReHksA42ave/KCf15dJDI4/V0UmEdHHd/Rv4MC5ybVOJrU2xu8OuKcI3iFR 57x3L1lJTkDFKAyAHVtwMFWDycM4aUc5UbUpeVFWbwt6Xqu55BtwVJQ8P+oxjBb4nOOq pinPsvPx5k2ro4Seb53unEdkiWuMFi9bo7p7UHevDB6a5VmddFtO3VzFdL+TBeI2PS8d T1x6VcoxHx0GijYmHLaEbqViv9f22XzG7KhipJmYQ9wYGPB826ChZMp8KSn6UDWsOyMq JorT4j1tVaQGSu5JUGNEokpTmmcJJSjSyFKHWhsYAxmUFVrJA0Uq7/wsgPM+xTcvVHgf RClQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="iy/oF9SD"; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q66-20020a632a45000000b00439fb921f8fsi8580995pgq.460.2023.01.12.14.26.56; Thu, 12 Jan 2023 14:27:02 -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=@chromium.org header.s=google header.b="iy/oF9SD"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240633AbjALWXA (ORCPT + 50 others); Thu, 12 Jan 2023 17:23:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232919AbjALWWj (ORCPT ); Thu, 12 Jan 2023 17:22:39 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4EB1BC85 for ; Thu, 12 Jan 2023 14:16:20 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id g20so14845339pfb.3 for ; Thu, 12 Jan 2023 14:16:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QGhHJVbzLQd0GesoU/hL3GlEfg47qZVAEKWQkmB7laM=; b=iy/oF9SD9ZVgH/AexFVr9sY3eB/gQIexg5CxAG+6NgIwr7bsGfaehW3siLiPOlsEpg LBaRGB+f7ghihju+lIqxQGxnMSnoVwizV92xwK7t2FqyKBUUfZrM2iBbRx62rIze95Nb WHjC5bFxWgXQaRfrsWbtR1MkGd7MqITZXMEUI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QGhHJVbzLQd0GesoU/hL3GlEfg47qZVAEKWQkmB7laM=; b=r46JiZj9QuuPZw///eMm2TgnZF4otB+ISxtCXI6dsf9KttIG44SIj2E61AGRYvkNOy TgO+IQQEtK3E0IOS/zNwuLFog8VucXrwf4HN/dlSvF2nfWllwLM9XILifneq2hGbM74K c08cxwLbH1zBxyLg5ccFykxntxQKPXhT3NTxC/8d2W3kwGq9qhyS5fnGUbnGd0KxQUDk e+I1IaC3/eboFtPR9Jy07ikGrFyPG5vCurUZG9ImCqEYgYvEykotaXmTvXS4QziViU/x pbz+8NKXvHfDGADoIfoXWe6x+5JmGmbeSy3rto6Hq2dOWUfNqOy/0jTC/b/DB8fAfX/4 5C2w== X-Gm-Message-State: AFqh2kqZxvs09XMDoQDwywzZH5cgs1cTTdbFSoG3IY5im4oMGid2vWnh vf7NDnOygdbWfa+UMe8w9MQBlYd0YzZoSLhv X-Received: by 2002:a62:6102:0:b0:578:3bc0:57d7 with SMTP id v2-20020a626102000000b005783bc057d7mr72602961pfb.13.1673561779847; Thu, 12 Jan 2023 14:16:19 -0800 (PST) Received: from pmalani.c.googlers.com.com (33.5.83.34.bc.googleusercontent.com. [34.83.5.33]) by smtp.gmail.com with ESMTPSA id d191-20020a621dc8000000b0058193135f6bsm12330658pfd.84.2023.01.12.14.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 14:16:19 -0800 (PST) From: Prashant Malani To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: bleung@chromium.org, heikki.krogerus@linux.intel.com, Prashant Malani , Greg Kroah-Hartman Subject: [PATCH 0/3] usb: typec: Add retimer support to bus code Date: Thu, 12 Jan 2023 22:16:05 +0000 Message-Id: <20230112221609.540754-1-pmalani@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 This is a short series which introduces retimer control to Type-C bus code, chiefly in the context of alternate mode drivers. Patch 1/3 adds retimer handles to the altmode struct. Patch 2/3 introduces a wrapper where all Type-C switch commands can be placed; this is a foundation patch for Patch 3/3. No functional changes are introduced by this patch. Patch 3/3 introduces the typec_retimer_set() call to the switch wrapper. Prashant Malani (3): usb: typec: Add retimer handle to port altmode usb: typec: Add wrapper for bus switch set code usb: typec: Make bus switch code retimer-aware drivers/usb/typec/bus.c | 33 +++++++++++++++++++++++++++++++-- drivers/usb/typec/bus.h | 2 ++ drivers/usb/typec/class.c | 15 +++++++++++++-- drivers/usb/typec/retimer.h | 2 +- 4 files changed, 47 insertions(+), 5 deletions(-) -- 2.39.0.314.g84b9a713c41-goog