Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp955804ybt; Wed, 8 Jul 2020 16:24:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4h89rPFkiL0qt+EwVPdEzY/RUDUa0iwQa3p3l3iAsQlUEcetOBvjwlpUqmtMfxC/K9tPc X-Received: by 2002:a17:906:355b:: with SMTP id s27mr56705478eja.368.1594250644083; Wed, 08 Jul 2020 16:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594250644; cv=none; d=google.com; s=arc-20160816; b=O5Rk2h9jewe6o0Yy6PaeVEBn2jULDn6XDoWDWI8uF+zCYkYg+LkQuvrtP9OmHjdBkX qE/JgR/nPRXJz+dSTz7IzuT9Haq0X9iXWHjnxwYINTBQDGqzjzI/jBEtaM4VBYGune7s eMrE7WKt5h3XQsMfKUppzgCVKTZs+u3gY6DmtBpO91pelxVnALx7A7UshYq9gYMENuOt pn240eKjqY650Sxtfz8iXY+VmhKQh7hEvEGKNKMrB6+tjnqM+qNM9/41VhNwKTPIYiy4 7Blm9AJh4njOXfXZ4uuBO1xbRPO+eayncudSgX3d3shtywDhuGySWws1/1jAr/1FAqsG dQMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=aWbEsQ54hjjSOfJj7PQhDsC6GNOyST30pEElPtE2K0Q=; b=Rot/9FkB1Sc2KGjqA6f/9YZ+a1Ah66gxG/q/7gNMdh7dvNMs24ZGzYp6aaSjgDTpBU iOeI1SLtzuVsKwJm2GbFz7rTv02ZE2l7wytVSB5MuJ0L5YBFcGhWI2hx9FJukWUp+sgS 3vDM3fVJ3+9fz5AV44w4lBgB18I+5QpOG5ec11B2mR303/NFH2K3FN8a1RODD7EnDvwL OltZM6UDxPX7rtVnXDKmeQKI6h7On5tTcXiuwGG9PTaggq7vYxkuEaDlcFuQqB3Ocekp gLO9EdEfmfdS/SNdPjwggNZ40BqQ/SoNC3svLpZfXaCNQ+UDFyRNdu8QsET51JRb450O y8mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=axyEP3Qx; 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 cm19si768725edb.529.2020.07.08.16.23.40; Wed, 08 Jul 2020 16:24:04 -0700 (PDT) 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=axyEP3Qx; 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 S1726082AbgGHXVi (ORCPT + 99 others); Wed, 8 Jul 2020 19:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbgGHXVi (ORCPT ); Wed, 8 Jul 2020 19:21:38 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CBD5C061A0B for ; Wed, 8 Jul 2020 16:21:38 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id i14so136675pfu.13 for ; Wed, 08 Jul 2020 16:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=aWbEsQ54hjjSOfJj7PQhDsC6GNOyST30pEElPtE2K0Q=; b=axyEP3QxBfqQyEv9X2FCuSp03HkD7jBoS5PeshAW+/HPgWeJyf70rB3+wl+gNsvL4z OFhXfmS9p2HHWFWbT6keuWPM581K76MKzFcl5aZm9ncPSpKj9nOmfqzNPgZqoe9kikWg ZH1SeW27U4goZRxSItFv5LyG711am+m7a3hd0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=aWbEsQ54hjjSOfJj7PQhDsC6GNOyST30pEElPtE2K0Q=; b=JlM4ecpmJqbOGuc3OyZZI6/TPy7k0dWJPFYFUavYw5wJGhUma8fLyA8QAHnvcoUDIX sT3kpn53yTosmEiD6PgPl8BpS2LZaPIis8NVpKZKjyHROImQ7TH3UMCRKdenz4PA8Svx skjMmybD2TdCFSwm4Xfax89eUUT/+YACIHuWqOoIUFF4nXzpKY08KhuEtvwhwOrzE79I mUpJQXtP3J0ojOF/XLDiyVZtLQg8Wc4MErXL9AjqIaMoxuwE+RT98sHmMCLOiN3jdqux T1N/I7X4Yw/T+QlbG1+tSImac+zNQFg4M1xCCoiDzAMA3c52979+mLJU8T0TBT8yh4Dp q8WQ== X-Gm-Message-State: AOAM530VDmFNf91URIiiyIMx2d95nHu+GxEtYfZdzLAx13Y7eaPBJJUR XNAPjA5euu9N7+IQ+fTpC1mAaw== X-Received: by 2002:aa7:8283:: with SMTP id s3mr56731226pfm.90.1594250497690; Wed, 08 Jul 2020 16:21:37 -0700 (PDT) Received: from google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id 64sm782880pgb.63.2020.07.08.16.21.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 16:21:37 -0700 (PDT) Date: Wed, 8 Jul 2020 16:21:36 -0700 From: Prashant Malani To: Heikki Krogerus Cc: Benson Leung , Enric Balletbo i Serra , Guenter Roeck , "Mani, Rajmohan" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] platform/chrome: cros_ec_typec: USB4 support Message-ID: <20200708232136.GB68629@google.com> References: <20200703081703.87720-1-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200703081703.87720-1-heikki.krogerus@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Jul 03, 2020 at 11:17:03AM +0300, Heikki Krogerus wrote: > +static int cros_typec_enable_usb4(struct cros_typec_data *typec, > + int port_num, > + struct ec_response_usb_pd_control_v2 *pd_ctrl) > +{ > + struct cros_typec_port *port = typec->ports[port_num]; > + struct enter_usb_data data; > + > + > + /* REVISIT: Cable Current? */ Since we don't pull this data out of the EC currently, I think we can just drop this for now (the "Mux" drivers aren't using this data at the moment either). > + > + /* REVISIT: Claiming unconditionally that all tunnels are supported. */ > + data.eudo |= EUDO_PCIE_SUPPORT; > + data.eudo |= EUDO_DP_SUPPORT; > + > + data.eudo |= EUDO_TBT_SUPPORT; > + data.eudo |= EUDO_HOST_PRESENT; I think it's fine to drop this block altogether. I don't think any of the current "Mux" drivers parse this information, and we aren't surfacing it from the Chrome EC. > + > } else if (mux_flags & USB_PD_MUX_DP_ENABLED) { > ret = cros_typec_enable_dp(typec, port_num, pd_ctrl); > -- > 2.27.0 > I'll wait for a day for any comments for the maintainers, and if not, I'll upload v2 of this patch with the "REVISIT" comments omitted. Thanks, -Prashant