public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Sanjay R Mehta <sanmehta@amd.com>
Cc: Sanjay R Mehta <Sanju.Mehta@amd.com>,
	andreas.noever@gmail.com, michael.jamet@intel.com,
	YehezkelShB@gmail.com, Basavaraj.Natikar@amd.com,
	jagadish.hadimani@amd.com, sachinkumar.butte@amd.com,
	linux-usb@vger.kernel.org
Subject: Re: [PATCH] thunderbolt: Retain host router DP IN resources during suspend
Date: Fri, 18 Feb 2022 16:25:33 +0200	[thread overview]
Message-ID: <Yg+sXedW1RFa65SE@lahna> (raw)
In-Reply-To: <ac90de2a-2d13-ed0f-2d75-8cc3e5a882f1@amd.com>

On Fri, Feb 18, 2022 at 07:38:23PM +0530, Sanjay R Mehta wrote:
> 
> 
> On 2/18/2022 4:43 PM, Mika Westerberg wrote:
> > Hi Sanjay,
> > 
> > On Fri, Feb 18, 2022 at 01:11:25AM -0600, Sanjay R Mehta wrote:
> >> From: Sanjay R Mehta <sanju.mehta@amd.com>
> >>
> >> All DP resources are released during suspend and while
> >> resuming back DP IN resource is not available, therefore
> >> unable to find DP pair to re-establish the DP tunnel.
> > 
> > It should get plug event for the DP IN adapters once the router comes
> > back from sleep. Is that not happening here?
> 
> Yes, plug event is not happening for the DP IN adapter after resume.
> 
> The DP In resources are put into tcm->dp_resources list as part  of host
> router enumeration. But when it resumes from sleep, there is no plug
> event happening for DP IN, hence DP IN resource will not be in
> tcm->dp_resources list.

Right but if I understand the spec correctly you should get a new
hotplug event for the DP IN adapters once the host router is moved back
to "enumerated" state. This is how Intel hardware works at least (and
this is the understanding I have from the USB4 spec too). Do you see
anything in the log wrt. this when you resume the domain?

  reply	other threads:[~2022-02-18 14:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-18  7:11 [PATCH] thunderbolt: Retain host router DP IN resources during suspend Sanjay R Mehta
2022-02-18 11:13 ` Mika Westerberg
2022-02-18 14:08   ` Sanjay R Mehta
2022-02-18 14:25     ` Mika Westerberg [this message]
2022-02-20 11:57       ` Sanjay R Mehta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yg+sXedW1RFa65SE@lahna \
    --to=mika.westerberg@linux.intel.com \
    --cc=Basavaraj.Natikar@amd.com \
    --cc=Sanju.Mehta@amd.com \
    --cc=YehezkelShB@gmail.com \
    --cc=andreas.noever@gmail.com \
    --cc=jagadish.hadimani@amd.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=michael.jamet@intel.com \
    --cc=sachinkumar.butte@amd.com \
    --cc=sanmehta@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox