Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2161121rwd; Thu, 15 Jun 2023 23:23:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6l/UBFeVMcX8Ye7+BX9GmZPfWPBy+P8x1G1sYwTqRcZDXHC4qKHz27HbG09E16hnUbY/Ls X-Received: by 2002:a05:6a20:244a:b0:10e:440:6d36 with SMTP id t10-20020a056a20244a00b0010e04406d36mr1882707pzc.1.1686896581369; Thu, 15 Jun 2023 23:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686896581; cv=none; d=google.com; s=arc-20160816; b=T4oW54JV3lnrQmJiQDzEnsehxa/s5+G9juPlg0ZFwJK4YEZDU5dvwFpMCMh7s+5PxD eS3KiMyNsgBoyqqFO3xrOAtTvkvXtoUrxL0o0gd4Xg4/s5FI+ckb7cjYsJw8YA15zTGt puyQa4EwcvQVRRT1iz4O+dWxzOgzvS8D21xVUV33PCF/FUPPxxYeU329cjYmI0ke4H/Z fAwFQk81Ap8TfyMjRFK/GnBfu3V7O17Vuv/m5bVDVN/riZg2m5v6eG4RX1EtZHfhR4Kd rt8CuEz416tb70bxjaFEiRU/fwaDpcRU7vxwU7yCbasmD3bQSFfWGA6LrHthwjS8RZIP Bspg== 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=JYyVvkdzNPVuql8NbZcflWSfhGesVpQFsnNitirk/SQ=; b=FLxjejZct/0B3pLQxyQ94TZVXIeLVb7Mvl4kyxBA8mkhP7bnCPjTcEk4UywgDwMBZ9 eXKU5fkIAIUn9b0GHJFAP9CRFhP91bD9R5RgasmLucceUgk2ZFoS64byGBTiVGOR0ws6 VTt5KGKCQsozSYIuNlarDCYWObRZHBBAcRqD6Mekk4znqsS6doxmFeA0fBy0qfAz0WZJ 7/G2rkDBvTGL8F0X1Ht63J74tgdRDhm0V5ORtLv7FL4JFLdMc1ZW+Ajr0wXEERpnEKge SHded7oVdK20B5OaCLx8RJb1shanJptehRmArlznFZI7cwBv7j9AZ/rzB/m15J2TLa72 FMfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IZHiUi+F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w185-20020a6262c2000000b00660278b8422si14211669pfb.158.2023.06.15.23.22.49; Thu, 15 Jun 2023 23:23:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IZHiUi+F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242017AbjFPGGH (ORCPT + 99 others); Fri, 16 Jun 2023 02:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbjFPGGF (ORCPT ); Fri, 16 Jun 2023 02:06:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EA9E2D63; Thu, 15 Jun 2023 23:06:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B8397618D9; Fri, 16 Jun 2023 06:06:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78CB7C433C0; Fri, 16 Jun 2023 06:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686895563; bh=oFafS+joAVEfG2Kq+i4g/5wzFR7uMWWQuQRO7azLGmM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IZHiUi+FVQwaLPloXN4kUYjIihOnMM4OFQV4manBBaVGAsrDvI42mDL89HASx0wxN hTa27+eKuKu+2VfDj5cr99NsHcxQ/ucP1ZGST2LoW1MDshtwk4gc5gnb13ANI5SY3d CFSQr5xviiZEJslzAz8eSa2dnuLCLHmov5LEQ4qU= Date: Fri, 16 Jun 2023 08:06:00 +0200 From: Greg KH To: Frank Wang Cc: Guenter Roeck , heikki.krogerus@linux.intel.com, sebastian.reichel@collabora.com, heiko@sntech.de, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, huangtao@rock-chips.com, william.wu@rock-chips.com, jianwei.zheng@rock-chips.com, yubing.zhang@rock-chips.com, wmc@rock-chips.com Subject: Re: usb: typec: tcpm: fix cc role at port reset Message-ID: <2023061643-uplifting-sequester-0152@gregkh> References: <20230616022001.25819-1-frank.wang@rock-chips.com> <3c3fbecd-caf9-c432-0890-93cceade98c1@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 16, 2023 at 11:03:14AM +0800, Frank Wang wrote: > Hi Guenter, > > On 2023/6/16 10:27, Guenter Roeck wrote: > > On 6/15/23 19:20, Frank Wang wrote: > > > In the current implementation, the tcpm set CC1/CC2 role to open when > > > it do port reset would cause the VBUS removed by the Type-C partner. > > > > > > This sets CC1/CC2 according to the default state of port to fix it. > > > > > > Comments are suggested by Guenter Roeck. > > > > > > > I have no idea (recollection) of what I suggested here :-( > > Aha, this is also an old patch I have sent before, you suggested that the cc > role should require some tweaking based on the port type or default state, > do you remember it now? Please version the patch, and provide the change information as documented. thanks, greg k-h