Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3890757pxj; Tue, 15 Jun 2021 10:48:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdZygeQx7uhnmI7Vn2HViyBj/5jzyi6ofivFTrQH3OJo1WSFYNhcpwSHOKJpq6UTBHQei5 X-Received: by 2002:a05:6402:548:: with SMTP id i8mr871477edx.344.1623779285418; Tue, 15 Jun 2021 10:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623779285; cv=none; d=google.com; s=arc-20160816; b=ZobAKhvvJjPCq9Jx74Y7KqnCA5LD1cY7ENnEXxGNrDCejZsLHo5EN5EgCbI+yBfuvw gZUjR7h4qIXmMKkRvvseVRAt8/oUlbkC8/52X84Pe6YECKj4CcMC3ADkXfIpHsLcI4KH ZIf9OyK+FDDpyKBbC43Eernfg6cCb1ifvJOibq4AbCUW6ozJ9WKD/FC4UdozKAfnnStH TM2xFnuxU8iUiFXelUYUw96nM7yjxkGrk5tGWykckZszxXMYAO+wFCzMv5wgc9ua8jKh +AWzKMhkYrNw1bhtK3lrkX9Mvm2lWbwzXNrBi6HKSNrsqtSxJcIvH+/1S9jcxPDLZHMT 6s6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nyGASXjZK6+KaCFSY7M57pQho7eXR3tu7GtXUlEdjrI=; b=L6eyskg1Pn7b+B3xRoBDTPnwZ4c8224sW6BJtgH3wJXJ0ciH95sC1+wM1IcvDBFHfV k+YAsouincGewxLApIqBEF5bY6GA7yPD5OnYVe+KjlMVdxgEcNxR7PE/ijWE5umNJrtG MXt9BS6hcQOatAEb7QVElCj5J1Ow5aTRJwlIVLORmgwPiKr/8tqDaNYO6IlKYIAxQG0i gDdTfb6lWZUrHBXFeqwYjE9L6cXdvBCGvPydIkKJTPNZ3OksQu4TR4ZkNPqnaH4nMa2b 4OMTdIVQ8HGzY+dupipFWN6MgCHruj95/vsKJFIug9X5jCNQhbk5vtKrCgCsw6+YR6h6 gozg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="L/qX46GD"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si15709424edr.280.2021.06.15.10.47.42; Tue, 15 Jun 2021 10:48:05 -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=@google.com header.s=20161025 header.b="L/qX46GD"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbhFORs0 (ORCPT + 99 others); Tue, 15 Jun 2021 13:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbhFORsZ (ORCPT ); Tue, 15 Jun 2021 13:48:25 -0400 Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C68CC061574 for ; Tue, 15 Jun 2021 10:46:20 -0700 (PDT) Received: by mail-vs1-xe2f.google.com with SMTP id x13so10279141vsf.11 for ; Tue, 15 Jun 2021 10:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nyGASXjZK6+KaCFSY7M57pQho7eXR3tu7GtXUlEdjrI=; b=L/qX46GD8snGzvccBZlifarMswFYhBDW1qSLHsFffckOgg/GzJ9C1qZ2SlxXCnbF3n aCAGRoAuHyruQsWR0hf0CwR9tUuPFMOuIOc+X6R32nl1hJrf9gNNSXI2ldriRak6CcrA ldORFDeCc5ect6ffiKNvx9xS24m4v2ncV6hULVja935vO1q0otxWMuI+fWY4nDaRA/65 ANfSnKLKO1CMeop3L99hLm59yObrVS/8nneMIFyxD1pNveTGvr2PE04sXtzo8p7+Kwaa i9D9H4ugxuTV9VBZ+e3jDKSfzGDXVrVFZTt8xJQFzxwyFfYwB4V5u9Mlv71Hq0pQQvj7 uo0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nyGASXjZK6+KaCFSY7M57pQho7eXR3tu7GtXUlEdjrI=; b=TDh+lamLUN8kNWZ3vlVPLiSQO/olxpJK+I/s69np77mWvGnXpXKMHlUJQtS6pY/M12 gWjGGx8i2ttOfuzHq5jh4ONE9XI3tKCEiOz0I8LZOGUGQBEf73KniukYD8XnFrPo3aF+ W13Xy1NmmGV+HHZ/VrHJUlHNGpH2o9uiGq3kZx8SgH9o6UN5s5sPoNSf1V/vG3/87zOB CpYLG61yjh13moaZwuymD3f9zRSbEZlAgMAv9aj1d9XwwcNRgaC96R+3HTx8x+2hgMSa wQe4csDYAsoBYlf2eoHSuVlF4rpQbLK7goBvi7U/a0rZVk7cG5/1VfDz4XlpHAeJHqHz kcpA== X-Gm-Message-State: AOAM530zIhK5/i2hhR42sK0DmE15wF5Ir6KUXn5g/cIn9X5MXvXmeBvC SUi+hzCdsZC559p04fn0TejPbsQHI+tz0AP3hUnidg== X-Received: by 2002:a67:df93:: with SMTP id x19mr6894195vsk.49.1623779179091; Tue, 15 Jun 2021 10:46:19 -0700 (PDT) MIME-Version: 1.0 References: <20210615173206.1646477-1-kyletso@google.com> In-Reply-To: <20210615173206.1646477-1-kyletso@google.com> From: Badhri Jagan Sridharan Date: Tue, 15 Jun 2021 10:45:42 -0700 Message-ID: Subject: Re: [PATCH] usb: typec: tcpm: Ignore Vsafe0v in PR_SWAP_SNK_SRC_SOURCE_ON state To: Kyle Tso Cc: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , USB , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 15, 2021 at 10:32 AM 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 Reviewed-by: Badhri Jagan Sridharan > --- > 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 >