Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6054735imu; Wed, 30 Jan 2019 08:04:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN7thSm1uBLm84XLK9IJIvyijVQdyV/ZCFLAEJ2mc5MWQOzR1u3zgMwrHwumK+TkXDQ07WKw X-Received: by 2002:a65:624c:: with SMTP id q12mr28176814pgv.379.1548864241806; Wed, 30 Jan 2019 08:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548864241; cv=none; d=google.com; s=arc-20160816; b=NQipyQZtKUNYtqGBlccP+ffXcRZnpNqq3/9bF0stFLjkE/BSGSBYIS/u9qWxoc4oMh sGetqFQtmslcmIZAtTUyphduFqONhGVNyYL6vziZGDBehiE2I9NZWBjA1jyCbZt3EKFY mBtFMw6xtlk49QcU6GULsB37X0Xj023KcKiwA/k1I+drpg7dWvxejOu32HULdAwg7Qqt 5l6Wc00H5wgF0zGyXkM9DuoPRQ7oosPX6Zut/d//i1L6nvV+ZiiCxPOKhgQcAJtUcLwY 951pIvij/YuEhU5n4Iv+NQdaZYUwjNMnq4MKoxRi4aFGqJgbqfXiotw15ktuPP2qfSng fDBA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=89OBc53nfBe83iGpowoP79yGABvVWhWVe6v2httuj7U=; b=CzdTp+DKNQbN1Xmh+1Uj0PWWZfB/s1C60BwVuaZGp4wwJ/mfUit3ipqEOhisuka7wn zsia9v+tgAMcfWhDI20VrXrYVAcn19lPzyPE76Y5TeNnyy0yN0/6TOpjU4pPVvilxQCT PT1GkPL4ygKW1RioJXiPV3S23RzrNKDooojf8jFXIqfPjAF+SIib1gmQDaz65nyp+aYu uwsiWHN8XiDn4ub33OMUO9IZOZ8URAED2QrNBguxovJvXh4HH9/BCKzXezbjpDxULSnw Ew50pBgH6WqOe/4hjrdC+p8VxpnbUCge9NrOfBsNMxVuWX8dlwTsdj1Zm+ckmcYsEtzR Ebdw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 187si1988327pfz.249.2019.01.30.08.03.42; Wed, 30 Jan 2019 08:04:01 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731877AbfA3QDL (ORCPT + 99 others); Wed, 30 Jan 2019 11:03:11 -0500 Received: from mga02.intel.com ([134.134.136.20]:60152 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731863AbfA3QDK (ORCPT ); Wed, 30 Jan 2019 11:03:10 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2019 08:03:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,541,1539673200"; d="scan'208";a="142760896" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 30 Jan 2019 08:03:07 -0800 From: Heikki Krogerus To: Greg Kroah-Hartman Cc: Andy Shevchenko , Chen Yu , Jun Li , Hans de Goede , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/9] platform/x86: intel_cht_int33fe: Remove old style mux connections Date: Wed, 30 Jan 2019 19:02:53 +0300 Message-Id: <20190130160259.46919-4-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190130160259.46919-1-heikki.krogerus@linux.intel.com> References: <20190130160259.46919-1-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new mux connection naming scheme is now in use, so dropping the connections still using the old names. From now on the same connection description named "mode-switch" is used with both the port and the alternate modes, so on CHT the DP alt mode will use the same connection as the port to get a handle to the mux device. Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/platform/x86/intel_cht_int33fe.c b/drivers/platform/x86/intel_cht_int33fe.c index 295fe19ad4c2..6fa3cced6f8e 100644 --- a/drivers/platform/x86/intel_cht_int33fe.c +++ b/drivers/platform/x86/intel_cht_int33fe.c @@ -32,7 +32,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[7]; + struct device_connection connections[4]; }; /* @@ -174,22 +174,13 @@ static int cht_int33fe_probe(struct platform_device *pdev) data->connections[0].endpoint[0] = "port0"; data->connections[0].endpoint[1] = "i2c-pi3usb30532"; - data->connections[0].id = "typec-switch"; + data->connections[0].id = "orientation-switch"; data->connections[1].endpoint[0] = "port0"; data->connections[1].endpoint[1] = "i2c-pi3usb30532"; - data->connections[1].id = "typec-mux"; - data->connections[2].endpoint[0] = "port0"; - data->connections[2].endpoint[1] = "i2c-pi3usb30532"; - data->connections[2].id = "idff01m01"; - data->connections[3].endpoint[0] = "i2c-fusb302"; - 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 = "orientation-switch"; - data->connections[5].endpoint[0] = "port0"; - data->connections[5].endpoint[1] = "i2c-pi3usb30532"; - data->connections[5].id = "mode-switch"; + data->connections[1].id = "mode-switch"; + data->connections[2].endpoint[0] = "i2c-fusb302"; + data->connections[2].endpoint[1] = "intel_xhci_usb_sw-role-switch"; + data->connections[2].id = "usb-role-switch"; device_connections_add(data->connections); -- 2.20.1