Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2304546ybg; Thu, 30 Jul 2020 16:28:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2e5urpFjMwUknQc5+9E9uKxz2G3WHcN6gTUabtzh2+ZgKrcRH6utZIEOmkHVtdv8Au9C7 X-Received: by 2002:a17:907:aaa:: with SMTP id bz10mr1426247ejc.304.1596151684190; Thu, 30 Jul 2020 16:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596151684; cv=none; d=google.com; s=arc-20160816; b=J3ANLmsvJC25yrS5GQWH1FfeAXGrEhfurZwnl6gK+sEpoGrXmA3Lthz20T+X6dCZyk YtrNdy1tSVlaznyDWEjg/OU3jPwLMM1dswOEbA4yBQLRSRUyT1cGT7hcSgTyrW8TDU+h WQejPQT8qz1c8EcML2j9RXC7hP6LFT9tMkT+w1O5YTulvabyqOdV5M9RKvOZZzDTBOYH kFHZE+YDQqRb2SYSm9/kFdVaatu8nkcAW/prJtlTZvLqj4V4O46hQqbQ0m2WVq62GQ3u qA4Zw1Il3HRd6yWf0y/YPd6XWUnGCI0A96RecbicPDYyAbhccy/Kjif8Y5yqmeDa+QJX Fb5A== 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=zOkKaix4BQSMPMa3aHyYNrYytb7AheYM931Yx71jfB0=; b=W68aDy/C6Z6iZjfEzZHS5/FNxBAANKf8oPve+3P4UQ/SrdmqREiOL5tOfWyN3m9nZG wiekq8Wow1Fg81QMQLTDW42he1N6tfqHn/EZJfRVcIf2k6LWhHraN6612OM6ikrOn3qA oMQy/gOmzTfW7Bf9tbnrck9lc7lBwiBRFhjYfg3t7KOtJ2QNxZ7Sa6bn72sCiRqAl1gM mirTHICAicvZYJqQjANP870L5PN2BqBhfUWPn6z4clCMum+kd+XaOcPk/QJ9RTT2DV/k sSvxit0ujdyQDlwo6q2phFOdOu3AJGeV/cRK5Bxy/Q2oUzwgpHWceUHxjtykwSI6NIDv SJVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DNRsZoZQ; 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 b13si3960664ejp.499.2020.07.30.16.27.39; Thu, 30 Jul 2020 16:28: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=DNRsZoZQ; 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 S1730733AbgG3XZH (ORCPT + 99 others); Thu, 30 Jul 2020 19:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730543AbgG3XZG (ORCPT ); Thu, 30 Jul 2020 19:25:06 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92CB9C061574 for ; Thu, 30 Jul 2020 16:25:06 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id c6so5585632pje.1 for ; Thu, 30 Jul 2020 16:25:06 -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=zOkKaix4BQSMPMa3aHyYNrYytb7AheYM931Yx71jfB0=; b=DNRsZoZQ0tmaWoCnKg11s4d/oEnJhot4FQ0RymZcKzGOtx8nEWJpeeFmq60BUM7r+5 6Q4yKkmslNW+LhekkazAzPF22j1ZBIPafx+spTPAY+XvZWVY32if/n3h6Pv7WCw6YPF6 SMQMUXf+NLj+w11Ag5uL0R2IkYy6ZyCmviBq0= 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=zOkKaix4BQSMPMa3aHyYNrYytb7AheYM931Yx71jfB0=; b=n0Czx6loZqW+ySSSBbNSHqygsUnTy8kRup5WgsWO33Qtd1cP7NUj6GRb3ig60YnPGm Y/2KVMXb/4wq2d7J4wY7HnHKYbvzOBSyYgVQW7n8PjOH7L5TF3eZ7hPqFHzEx3jaZExr boYSlZa2mWeUBwu9GuaKAc7DkbcPNKaPLy1RicaRZzc7tbkN2HR5SX1jLbT6K/huLHWg fkBzRGiUoTzpjECv+Amc4aIPn76QLmaEGYnXi+zbrlh+WQS/UiY9DVxTC7g5YG20uCGh UlEZdM9EsNb6dd9MUChLFRFPL5elzb5iaSGk+KNfpGCE5OzgyU0d01CqiajRFxtAKeV0 IUqg== X-Gm-Message-State: AOAM530oLn6w/yS4bSH6wdHdHyOFMl6Gx1HNGD+Aix+XxmLM8eY2JG1R y571AlZz2D2nUIGUQjwq6K0T2Q== X-Received: by 2002:a17:90b:470a:: with SMTP id jc10mr1369451pjb.141.1596151506077; Thu, 30 Jul 2020 16:25:06 -0700 (PDT) Received: from google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id 141sm7791485pfw.72.2020.07.30.16.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 16:25:05 -0700 (PDT) Date: Thu, 30 Jul 2020 16:25:04 -0700 From: Prashant Malani To: "Shaikh, Azhar" Cc: "bleung@chromium.org" , "enric.balletbo@collabora.com" , "groeck@chromium.org" , "linux-kernel@vger.kernel.org" , "heikki.krogerus@linux.intel.com" , "Patel, Utkarsh H" , "Bowman, Casey G" , "Mani, Rajmohan" Subject: Re: [PATCH v2 2/2] platform/chrome: cros_ec_typec: Avoid setting usb role during disconnect Message-ID: <20200730232504.GG3145664@google.com> References: <20200730225609.7395-1-azhar.shaikh@intel.com> <20200730225609.7395-3-azhar.shaikh@intel.com> <20200730230238.GD3145664@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Azhar, On Thu, Jul 30, 2020 at 11:06:12PM +0000, Shaikh, Azhar wrote: > Hi Prashant, > > > > Since this was the last switch being configured, please maintain the same > > order and add this at the end of the function, after the if-else if block. > > > > Please correct if my understanding is not correct here: > Set the orientation , set the role, then configure the mux. Shouldn't this be the order? Is this documented anywhere? Kindly provide the links to that if so. I wasn't aware of any ordering requirements (but I may be missing something). Please keep in mind that each of these switches (orientation, data-role, mode-switch, or what is referred to here as "mux") can theoretically be different switches, controlled independently by distinct drivers and hardware. We should not change what ordering is already present unless there is a requirement to do so. The existing ordering was orientation switch, "mux" or role switch, then the data-role switch, so let us stick to that. Best regards, > > > > Best regards, > > > > -Prashant