Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2229131pxb; Fri, 5 Feb 2021 12:09:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwudJD/sBE/VsFhW99ahzpAqSG4UsL4RXJWe1jkbP7vfpfBkp/qiQ23pFvCUZLdXEb5LhDJ X-Received: by 2002:a17:906:18e9:: with SMTP id e9mr1695031ejf.50.1612555793262; Fri, 05 Feb 2021 12:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612555793; cv=none; d=google.com; s=arc-20160816; b=cqWHEMp1zA1anDZ0kerVxARu6ieqhbLLlIPnj3eGTbzrYWqBirtptRzbrdv0UKvhae 2X9DwCnVsKUgGKy96R2lLKOjSJUlkyVRuoFzDozoDfKRABmX8Tesn8hziDPcndy+4LYE STE7SVQvYG7COsZpiqTobMnzZe/i1wdpTC27ky0W6W6yKuC6L6EC49VSelym5gS+0N6c MdNXyMVwriYHupEf6dJGND7xfdubS978ufUNbplb3MADM1EQq8tbAJdPgl5qhZVMCOko zHpoIj3BRF1pl6aqbgNGPDBh5j+SbUV4X0L8kWmddtpyV4Tw8T+uTe276lXYVezd4ngJ pvZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lqehshu3MUzrBle/QPxMj3NcYrs2O2w0CHnNjXFfUqU=; b=XhSRaMvpeCi9dGjiFYi3t8TW39owVqXwKc1F+ezJhc2tHsR3Jm9TP8fpq2a6d+mDrj Bodc6ZEQmOv9hNJkLaqImcSRKWsMy9MrL7aOPCybPrQrX4iPD6xkrBEKZ8IrvThC139M 5ft3Kz/kCgXNrrmm8CBmLc+i/pZt7sgGZoFHGYRwh4LfRUVvHu8tfz67RBwbDKq0Bi68 WOjTO1O56K2XOGrfgrbQhDa6WnOM3RqCvG2gf4dWDuWSpLKsOIXTNiZ2aqZ5AXg5MDhz HXLWStAb4LZBBOhcZyVaH4somacqIRbo1jpmHVzCRjN7mmNhk49qpgSD8BWnnlZmUMYZ 3ATw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CaGJibvM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mf22si5865170ejb.46.2021.02.05.12.09.29; Fri, 05 Feb 2021 12:09:53 -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; dkim=pass header.i=@chromium.org header.s=google header.b=CaGJibvM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233197AbhBES0Y (ORCPT + 99 others); Fri, 5 Feb 2021 13:26:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233381AbhBESZs (ORCPT ); Fri, 5 Feb 2021 13:25:48 -0500 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB95EC06174A for ; Fri, 5 Feb 2021 12:07:28 -0800 (PST) Received: by mail-qt1-x830.google.com with SMTP id s11so2124838qtq.10 for ; Fri, 05 Feb 2021 12:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lqehshu3MUzrBle/QPxMj3NcYrs2O2w0CHnNjXFfUqU=; b=CaGJibvMjhSDKdOj6Tx5gGCiGEeZxTrLjUqGXdVJUt474AZwL5JTnIy7a82+nOThvI /Kd5dqOlXza4DW9UgKcG5PpQepH32TaAH/xBcQT2CaMhBpsbwgOaSrffKlzFWHYfsnq+ pYN1Udbb+TjAT6mCvZ4jOh7XNqxBIa3GTKoM4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lqehshu3MUzrBle/QPxMj3NcYrs2O2w0CHnNjXFfUqU=; b=losuWWg9YIxCuTNIWdAZzKR6kuEO0uWAfZGPutIstRlBK2VEUeTrytrxRvm9gfU3kx MZvmK/5xjjbZiteGpagplPUs8QCWy7ej6yNb6JWnjxtHPa5UF2HjlzPyn42NH5aIEa2k 12D3j0nlksZ9S7Z2HPbYsWWqxb9PUAefL/9MKs8SnuARnOQEthqaQI1LO5O33zD6BVd1 xw4PliwowKICIAMos8mGjNg5NhQ3udZciXPTzWqsVKC+DNEb9r78L2HiFi4ByqK6vtEW Wt6a0lGUvEg2y5XPXCThT0/jIk6NeigGbfe/lxPpMtAPh9gEDTSnAWFSjEGuxDNNPT9+ KBRw== X-Gm-Message-State: AOAM530urVMOlCeiPRBS2A7X7+3Bjh/5j+7vSzA1LnS/q2cp9L6oI7F5 Rn4rDCGJNn4tW2QUppym3U+gJZUQ7u4KWxA5xyuysQ== X-Received: by 2002:a05:622a:4ce:: with SMTP id q14mr6007256qtx.132.1612555648087; Fri, 05 Feb 2021 12:07:28 -0800 (PST) MIME-Version: 1.0 References: <20210205195113.20277-1-rajmohan.mani@intel.com> <20210205195113.20277-2-rajmohan.mani@intel.com> In-Reply-To: <20210205195113.20277-2-rajmohan.mani@intel.com> From: Prashant Malani Date: Fri, 5 Feb 2021 12:07:16 -0800 Message-ID: Subject: Re: [PATCH 1/2] platform/chrome: cros_ec_typec: Skip port partner check in configure_mux() To: Rajmohan Mani Cc: Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Linux Kernel Mailing List , Heikki Krogerus Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Raj, On Fri, Feb 5, 2021 at 11:52 AM Rajmohan Mani wrote: > > 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 Reviewed-by: Prashant Malani > --- > 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 >