Message ID | 20230112221609.540754-1-pmalani@chromium.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4135952wrt; Thu, 12 Jan 2023 14:26:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXuxUYVxQ1OzRpj1+N3LehUQFPWXxU61MQkt/2fSAtxsce02nzw/CgVg56Euai3f0NyWYSZJ X-Received: by 2002:a05:6a20:c199:b0:a7:9c6a:4a64 with SMTP id bg25-20020a056a20c19900b000a79c6a4a64mr92124294pzb.8.1673562384921; Thu, 12 Jan 2023 14:26:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673562384; cv=none; d=google.com; s=arc-20160816; b=IXlKlzUYFfpqlsd4ThDNrN39NJgbMF22/jCOVc6FFpUx6Uh/RRxGTgvsWyrBs90tZk gNzryZIr9zIRj20ayG0PHdPyIhEhx77dlkLnDxbWaVHUtKbVdeBHfy476VBXNQsPcWQl Kor19q2dB5TFOKun9Km9GR1IqLz1jeThKA4UCDsE4x9rIKru0MZum2BWI6ita4yg+vcD Vxg4CGqHUPbwjBmR9plSKSUfz2hN1gQ82/wWOZO2+ZV/B6X7q5puEHV6z7gsW+Z1a+36 gszywwEaw2zue02vuIIeoyutwxyibm2hg/EVhwutUeJxnlB0UXubM7hnPjZboZKBPmpX wnDg== 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 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.11; Thu, 12 Jan 2023 14:26:24 -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 <rfc822;zhuangel570@gmail.com> + 99 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Thu, 12 Jan 2023 14:16:20 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id g20so14845339pfb.3 for <linux-kernel@vger.kernel.org>; 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 <pmalani@chromium.org> To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: bleung@chromium.org, heikki.krogerus@linux.intel.com, Prashant Malani <pmalani@chromium.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754857351732671418?= X-GMAIL-MSGID: =?utf-8?q?1754857351732671418?= |
Series |
usb: typec: Add retimer support to bus code
|
|
Message
Prashant Malani
Jan. 12, 2023, 10:16 p.m. UTC
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(-)