Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp490593yba; Mon, 1 Apr 2019 10:20:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSGsKRJnvuJJFaqGz7zbHECFUBgHB4iEIvw+qrzniRZBwpJxnH2N1znYqSArq4V7AfiwGW X-Received: by 2002:a63:78ce:: with SMTP id t197mr48935211pgc.314.1554139224890; Mon, 01 Apr 2019 10:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554139224; cv=none; d=google.com; s=arc-20160816; b=LexQBzHjPUn5v1QOklSzuv7HChh2ZCpX3xPyI/d2mL72OBrpKGDBoDu8WFehUptYPO HDLV6ycjYgZzz+3AHWDrKSBztNE5afKziE1w1VEKoWkBQsiUxrgj1hD+3xUF90ChMYqs G/2TG6B+Flq/fEAoK28RpPPEBjkjV4x7USws1KGZ6FJQ2GJ0+EU4n6x1Z73wA2IhEVLa 4yWw92Pe1rW9829ehKMFfgOxgXm7WxxF/+t+vl6tboD9Y0ceu/1Kxewo08LplXAWwfVv cKY+mUHO0w1eZGB/Jgb4EDNZ5MUTr/lczGH0Aq7NYm0/UeIn4ZMLdYpqIlIgKte+9qpO xGaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JwOS22cFWcNWHg791Pc5fDNoJ349KKbUSyBefWmJtq8=; b=J8+KFS9XLeyOhgv+7Zt8+FIc4FlO7QWtOjU9MHDkimWTEVl5jdyT+D1kViyq8r0WKU m+YxBhZVnyI9XMdeUOsfphGmqOOQurT7m8sOhZfXWFu6HpnTUAdWoGub15Xmw8F2fuxO z6lVkL2Y4Yp6h/3wwOndiaZaUlkGXKXSf+GmeDxP2rlh0BDDAmqnPC91+EuR/stxa/x6 solt8K6UVGO8OFmEqtROQjEh1EzA6VgiEF0jxJi577JA7HUojYoNMmMYZ9kau56jvl8t 6E2nkWQmOV49QeYyTBt85IeNpvuPG7FqwAueVJtUls/hBvVG7z79pNwKtpIRVztnqfIi h2cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=13N32b+H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si9249275pgg.505.2019.04.01.10.20.09; Mon, 01 Apr 2019 10:20:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=13N32b+H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730735AbfDARTY (ORCPT + 99 others); Mon, 1 Apr 2019 13:19:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:47238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731509AbfDARTX (ORCPT ); Mon, 1 Apr 2019 13:19:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 220B020883; Mon, 1 Apr 2019 17:19:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554139162; bh=VrLKyxlELaAIB/TtMC7trVk/8u11S9O9QIXmb+sEG2Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=13N32b+H8HvpGLEDfAz66FM84s1hAKuDmU8//XcdkuxoIbeDuVr2uApM1ekscPakv WsM702dUaF2VYucTXlp227NOqUMyke2MqxKQvSzFXmZKL+N7T9HZB9PGcylxpXzysG pOlBUqKeITZbpM3FB71q94qmkxczajrBOERVHjNM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Hans de Goede , Heikki Krogerus Subject: [PATCH 4.19 132/134] platform: x86: intel_cht_int33fe: Add connections for the USB Type-C port Date: Mon, 1 Apr 2019 19:02:48 +0200 Message-Id: <20190401170056.520966580@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401170044.243719205@linuxfoundation.org> References: <20190401170044.243719205@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heikki Krogerus commit 495965a1002a0b301bf4fbfd1aed3233f3e7db1b upstream. Assigning the mux to the USB Type-C port on top of fusb302. That will prepare this driver for the change in the USB Type-C class code, where the class driver will assume the muxes to be always assigned to the ports and not the controllers. Once the USB Type-C class driver has been updated, the connections between the mux and fusb302 can be dropped. Acked-by: Andy Shevchenko Acked-by: Hans de Goede Tested-by: Hans de Goede Signed-off-by: Heikki Krogerus Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/intel_cht_int33fe.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) --- a/drivers/platform/x86/intel_cht_int33fe.c +++ b/drivers/platform/x86/intel_cht_int33fe.c @@ -34,7 +34,7 @@ struct cht_int33fe_data { struct i2c_client *fusb302; struct i2c_client *pi3usb30532; /* Contain a list-head must be per device */ - struct device_connection connections[5]; + struct device_connection connections[8]; }; /* @@ -187,6 +187,16 @@ static int cht_int33fe_probe(struct i2c_ data->connections[3].endpoint[1] = "intel_xhci_usb_sw-role-switch"; data->connections[3].id = "usb-role-switch"; + data->connections[4].endpoint[0] = "port0"; + data->connections[4].endpoint[1] = "i2c-pi3usb30532"; + data->connections[4].id = "typec-switch"; + data->connections[5].endpoint[0] = "port0"; + data->connections[5].endpoint[1] = "i2c-pi3usb30532"; + data->connections[5].id = "typec-mux"; + data->connections[6].endpoint[0] = "port0"; + data->connections[6].endpoint[1] = "i2c-pi3usb30532"; + data->connections[6].id = "idff01m01"; + device_connections_add(data->connections); memset(&board_info, 0, sizeof(board_info));