Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4577877pxu; Mon, 21 Dec 2020 16:49:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPa5C3o8lCnamMbVu1d4tZO54eKo1A5bXwiAsUfW77TfJh+f83+r652PZ4dZYDWLfKdO0o X-Received: by 2002:a17:906:8693:: with SMTP id g19mr18448275ejx.111.1608598185504; Mon, 21 Dec 2020 16:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608598185; cv=none; d=google.com; s=arc-20160816; b=qfJ/tRQPpijAuhzio1fEtMmAQ1QPghdqC+ly01HXP3wGB6JQZr0nDWgAHQ+goZ4EG4 XMKKZ8ADbvQAZuBhyvOzXUaGo0BmY2mnCcqfUzjMYv3eB7b/DC1IPXBTc8kg9d7g9HnN wS0NdzlWgEP88A2HqnpIFjErpfEAm85y8H/bOZ7ZCAVSzb4R9PwRrfVgoyJEC+MZloo4 AUdcxOeVgag2YD4IJhsrHWP1vsj3dOFN2Lr/hfwKnObnfJShn1d9yduCtxvVX5MCxFUt CWy2y5TTil9QsPvctA+BQcIwFwE5OVPFnu/BJ8A6lMvXjCGaGxlmylKvDuDTeSisjNV2 2raA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vguIITGYik298tZjiRhsb9faiY6NgmDMyom+xtgPKKU=; b=vz99eRoGo3sEqVQWkYpQ7AHbGxE0CVO9aw/U/suPR3sAlEYVyYKkpkCVBN0fLLrNZb nxk6o8wZEctN90+KKR/QQ3zVwLbauW1xRPCTC46YtKcAhE90QKirL2MlVgwu26WypvPy 6RZZetpyLzWY+ErPtmDnL6clL7ZOoyS2VO4o6TyspoWGL/pnL49N9rs7hboTmGJt8Bu2 8Kba9vxVEQuSDBqLzWHu3FJ7BwQApb5xNp2q1oDdHMnHZLYWpoumQycY5m/Ngc63dYen lHwoDpzW/ZK5qTgIWJDvjQjB9zeTdFf8vq/0LJ/SBt364NG4Y9+P6pMyFPDAkcMJFmER z0NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=krA8Jx27; 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 gj13si9065560ejb.521.2020.12.21.16.49.22; Mon, 21 Dec 2020 16:49:45 -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=krA8Jx27; 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 S1726686AbgLVAqW (ORCPT + 99 others); Mon, 21 Dec 2020 19:46:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726429AbgLVAqV (ORCPT ); Mon, 21 Dec 2020 19:46:21 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2332C0613D3 for ; Mon, 21 Dec 2020 16:45:40 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id j1so6536286pld.3 for ; Mon, 21 Dec 2020 16:45:40 -0800 (PST) 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=vguIITGYik298tZjiRhsb9faiY6NgmDMyom+xtgPKKU=; b=krA8Jx27hTvRfr1bEBDRfKptm2xC8I/6gjD2XRUXKAFxLBiZ5SYGPo+I7DLaFKO+km RgcJdjJaaXA9UbSYOTGjGMyCS2s3+GWyeJMniMEx9RQS6Qz/REfd107sUd9adxLbD76B YIqssSk9wHPZzVgXCG7Xwcs0Gq1q5vJusqTQg= 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=vguIITGYik298tZjiRhsb9faiY6NgmDMyom+xtgPKKU=; b=V9i/VqS+den3gBzdwrDEkErovvk+fylZ8qMGmykFFPm+6V8SKq8Da7/IYRAFOAsZ8s 3Ey9essJ8g/AMUgz8HSL2DG6TaxKb2W96lC/U0XXsrKg6b73PKreViShdi+YSTUPiYOS O6v0JlvkqOkjhNTCZhzV4PWBSEhu6TydeZdHvoIOlNW6CSrvND/bWUvAg5QSK4epg9g+ haVXaxD9WhEWvmmEeX7TU6LdeBmcJx+ak1VgZxiAm42/09bzsAhl3Lg+lwa1HdtPcGo6 7I9EHrZ5d5WdGo2gnEU7SKe0WYUoCBF/XFYpKwMxKe65hhL0NLusG3QhPFh7yRmtvuIj v7qQ== X-Gm-Message-State: AOAM530S++k6k8yHMFIGuZCzjBrfBCcu2N1PMtvATr0e9D6BnqZ4lCO1 5c9Ta17V5VenqM8FsZryXEyvQQ== X-Received: by 2002:a17:90b:388b:: with SMTP id mu11mr19901275pjb.17.1608597940448; Mon, 21 Dec 2020 16:45:40 -0800 (PST) Received: from google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id ci2sm16172825pjb.40.2020.12.21.16.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 16:45:39 -0800 (PST) Date: Mon, 21 Dec 2020 16:45:38 -0800 From: Prashant Malani To: Utkarsh Patel Cc: linux-kernel@vger.kernel.org, enric.balletbo@collabora.com, bleung@chromium.org, heikki.krogerus@linux.intel.com, rajmohan.mani@intel.com Subject: Re: [PATCH 2/2] platform/chrome: cros_ec_typec: Send mux configuration acknowledgment to EC Message-ID: References: <20201210060903.2205-1-utkarsh.h.patel@intel.com> <20201210060903.2205-3-utkarsh.h.patel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201210060903.2205-3-utkarsh.h.patel@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Utkarsh, On Wed, Dec 09, 2020 at 10:09:03PM -0800, Utkarsh Patel wrote: > In some corner cases downgrade of the superspeed typec device(e.g. Dell > typec Dock, apple dongle) was seen because before the SOC mux configuration > finishes, EC starts configuring the next mux state. > > With this change, once the SOC mux is configured, kernel will send an > acknowledgment to EC via Host command EC_CMD_USB_PD_MUX_ACK [1]. > After sending the host event EC will wait for the acknowledgment from > kernel before starting the PD negotiation for the next mux state. This > helps to have a framework to build better error handling along with the > synchronization of timing sensitive mux states. > > This change also brings in corresponding EC header updates from the EC code > base [1]. > > [1]: > https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/include/ec_commands.h > > Signed-off-by: Utkarsh Patel I'm not sure what the maintainers' preference is for the header (same patch or separate patch). FWIW: Reviewed-by: Prashant Malani Thanks, -Prashant