Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp752148pxj; Wed, 16 Jun 2021 12:45:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFfBR+PPZSzBpUAME92SckhW/J52Y3W9SbzbgrR77+Tvh16pTcrOj4P123RDYXK6mlsJ+l X-Received: by 2002:a05:6602:2587:: with SMTP id p7mr840683ioo.12.1623872749809; Wed, 16 Jun 2021 12:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623872749; cv=none; d=google.com; s=arc-20160816; b=bk07qkFqqgNhiHBKO7hnVkl6mOQKVrrZn8b8ra9aegu1XKXRLhPtOo7zZrYKD453ds aezz5lScuz+dogY1oZQCUH/jqvi2zD9yqv402zrUXCnkTJj2pTN6BtB5+VSQGAUbblmI f0QZluLoMVjZ8vnabvNCh+HfV5R4ERLsO3aMc0nkkuCQlg+CX5FsUsZ3CLJdP2tHODwc t0M5o54lYCc8b/wOL32pjDasV3v1IEXHN6XfWIFyQSWTUZKcdMgL9vrGSNB1tEouSYdT RLFjYXPyQOWR4Zxm6zGOLJRZlmzwGh7jSvIJnjH77jtQy6dLQHjjv1LA50APecbp3Opg 1yOQ== 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:ironport-sdr :ironport-sdr; bh=/7M4pg7uy7+2d0d0vmh8MCjhXYc5e9/xK1umFKnFqR4=; b=X/xx+206a+2uPL0R2knCvkrIBkhAEfJdl8HXpi16Pjfv6GOPPUJx2Wmk1jkw4uSIed rg7aRadnUnr7dOfTG3PAbCdqg/s/EAl4Te1HzFkNKOUkGPH75/38CcbcExx7zbngUroN 1HKn72gKonFXxiNqC/erRqLsK3DGr11ALYwE1QMpQkFxOkpMQLh543rFImYoMWNIeqs3 qHiTNYODtcte/vYufaN/D0NR8AsRgav6ej0DxNW+CTjg3VG4MPqjVnYzOplQ5xXtw8Cl 9CeOTuuySkLfsV2XVbJPc3JjZ3vwhcK3WIooq670sX5RhSnsjmbE47fpYFjC1cH9AmxB I2vA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si3880554jal.78.2021.06.16.12.45.36; Wed, 16 Jun 2021 12:45:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232729AbhFPNnc (ORCPT + 99 others); Wed, 16 Jun 2021 09:43:32 -0400 Received: from mga12.intel.com ([192.55.52.136]:60516 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232692AbhFPNn3 (ORCPT ); Wed, 16 Jun 2021 09:43:29 -0400 IronPort-SDR: 5nHsB4ZNwOi4OtK/Mv6ZZb42bNhIIw9NyYRwUxrmQLPFIO4p4sx6qYeOS9iNgtJDJb98pdH+Kj Gdfg3aIGAMMg== X-IronPort-AV: E=McAfee;i="6200,9189,10016"; a="185867791" X-IronPort-AV: E=Sophos;i="5.83,278,1616482800"; d="scan'208";a="185867791" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2021 06:41:23 -0700 IronPort-SDR: 4ifLwTPG2xbTZHbYoF5hGsNUnevWj1VkQxVOk+X1SePuSzEovjT2+CXsbMddFTEXYggTKtDwwP DUhZOdShrpDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,278,1616482800"; d="scan'208";a="554810049" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 16 Jun 2021 06:41:21 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Wed, 16 Jun 2021 16:41:20 +0300 Date: Wed, 16 Jun 2021 16:41:20 +0300 From: Heikki Krogerus To: Kyle Tso Cc: linux@roeck-us.net, gregkh@linuxfoundation.org, badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: typec: tcpm: Ignore Vsafe0v in PR_SWAP_SNK_SRC_SOURCE_ON state Message-ID: References: <20210615173206.1646477-1-kyletso@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210615173206.1646477-1-kyletso@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 16, 2021 at 01:32:06AM +0800, Kyle Tso wrote: > In PR_SWAP_SNK_SRC_SOURCE_ON state, Vsafe0v is expected as well so do > nothing here to avoid state machine going into SNK_UNATTACHED. > > Fixes: 28b43d3d746b ("usb: typec: tcpm: Introduce vsafe0v for vbus") > Signed-off-by: Kyle Tso Acked-by: Heikki Krogerus > --- > drivers/usb/typec/tcpm/tcpm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c > index 197556038ba4..e11e9227107d 100644 > --- a/drivers/usb/typec/tcpm/tcpm.c > +++ b/drivers/usb/typec/tcpm/tcpm.c > @@ -5212,6 +5212,7 @@ static void _tcpm_pd_vbus_vsafe0v(struct tcpm_port *port) > } > break; > case PR_SWAP_SNK_SRC_SINK_OFF: > + case PR_SWAP_SNK_SRC_SOURCE_ON: > /* Do nothing, vsafe0v is expected during transition */ > break; > default: > -- > 2.32.0.272.g935e593368-goog -- heikki