Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2222719pxb; Fri, 5 Feb 2021 12:00:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYvweuz8RzdyqoXJAx9TDID0CGcVZrq48gttghHL2YKp1vdOjC8X8tsm9V27aG0NI8xCUh X-Received: by 2002:aa7:ca13:: with SMTP id y19mr5188046eds.300.1612555233198; Fri, 05 Feb 2021 12:00:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612555233; cv=none; d=google.com; s=arc-20160816; b=Nhi3mSEgLhejYM0l+OdG7DTLpc6SlVg8ceJVyKo9mukS0cWoDWUVyb91PtdCk3nKRI gAb6I72Q9B7XXV47hqeqBJGqHZ5ONQt+4MoN7wK6pRdbnq9wrSVHzZtR7vYJAkhp52NY H6PIJQaEPDoKjcm4H2MCyvzTOE85Itiygci0u5WlkDtyxq7OOAR5jpwcvM5intubhlhR rldyg/btsraFqhnYoMVpBtJ2jGcVxFeRabxrU41KdxG0ugLvQCR0n+kT98D7VubbqHTp o70q5ayx6URt44Orxo6ldLBbBQQANwSi63LUcznpbyJhMjEt0oR+Bdy5OtKqExn0flBu W8RA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=ekjGihy2xPjEhC83WFhR9ib0p3NVBTTyAiDqkqOnFaY=; b=vCBLZ7v3dqCP2dU3x7GkwZmiK3RMwXzTy/Biru+dDSIw+YbAIxeN4kcXML5d0rLxAD +cfWyxItNrggX/+uNh8BHIJrYL0r8cJIWyV939kclZilNTsgaWWC9FSCIADrxcTpW42d +FnlfktCdCm/VkF1PZ7Zr5pfOyAvTPdRiupXJTDJ5jIvSBRd4eg+UICHIUEfEf/l+Rhd E6B+MSCVTABx/xzsBk70NZ26IQaRipNJqyuJ0uLRNnR+IGZ17UC1rt190lpe9FscOj5O W/CPSasnInf/wCDcuBmw8KuQYQ7WE8DMNadanxfS9mEhrKJwc+l/gJMHf+QivqeRdkCE 7DfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a4si82415eds.33.2021.02.05.12.00.06; Fri, 05 Feb 2021 12:00:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233208AbhBESQW (ORCPT + 99 others); Fri, 5 Feb 2021 13:16:22 -0500 Received: from mga01.intel.com ([192.55.52.88]:26074 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233212AbhBESL3 (ORCPT ); Fri, 5 Feb 2021 13:11:29 -0500 IronPort-SDR: tT1MC1H4TfNOpGsnZfGktKhJeCQSiQWW1J0W+wFMteTb8FSvOUFeh2nr+wVmTvOJtef9LgzD4h H51jPIf6T7pA== X-IronPort-AV: E=McAfee;i="6000,8403,9886"; a="200493376" X-IronPort-AV: E=Sophos;i="5.81,156,1610438400"; d="scan'208";a="200493376" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2021 11:52:05 -0800 IronPort-SDR: jOCpeYgTO7bJQxT/6j7bHS0YKuKW5VnLDgIMTW2dvbiqhqv0toy4zNDg/JdBmx2lkwKTy660lG Grh45VidIVrQ== X-IronPort-AV: E=Sophos;i="5.81,156,1610438400"; d="scan'208";a="434580881" Received: from glacier.sc.intel.com ([10.3.62.63]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 05 Feb 2021 11:52:05 -0800 From: Rajmohan Mani To: Benson Leung , Enric Balletbo i Serra , Guenter Roeck , linux-kernel@vger.kernel.org Cc: heikki.krogerus@linux.intel.com, pmalani@chromium.org, Rajmohan Mani Subject: [PATCH 1/2] platform/chrome: cros_ec_typec: Skip port partner check in configure_mux() Date: Fri, 5 Feb 2021 11:51:12 -0800 Message-Id: <20210205195113.20277-2-rajmohan.mani@intel.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210205195113.20277-1-rajmohan.mani@intel.com> References: <20210205195113.20277-1-rajmohan.mani@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For certain needs like updating the USB4 retimer firmware when no device are connected, the Type-C ports require mux configuration, to be able to communicate with the retimer. So removed the above check to allow for mux configuration of Type-C ports, to enable retimer communication. Signed-off-by: Rajmohan Mani --- drivers/platform/chrome/cros_ec_typec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c index e724a5eaef1c..3d8ff3f8a514 100644 --- a/drivers/platform/chrome/cros_ec_typec.c +++ b/drivers/platform/chrome/cros_ec_typec.c @@ -536,9 +536,6 @@ static int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num, enum typec_orientation orientation; int ret; - if (!port->partner) - return 0; - if (mux_flags & USB_PD_MUX_POLARITY_INVERTED) orientation = TYPEC_ORIENTATION_REVERSE; else -- 2.30.0