lkml.org 
[lkml]   [2018]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 12/18] thunderbolt: Add tb_xdomain_find_by_route()
On Tue, Feb 13, 2018 at 7:00 PM, Mika Westerberg
<mika.westerberg@linux.intel.com> wrote:
> From: Radion Mirchevsky <radion.mirchevsky@intel.com>
>
> This is needed by the new ICM interface to find xdomains by route string
> instead of link and depth.

> + xd = switch_find_xdomain(tb->root_switch, &lookup);

> + if (xd) {
> + get_device(&xd->dev);
> + return xd;
> + }
> +
> + return NULL;

return tb_xdomain_get(xd);

?

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2018-02-13 18:52    [W:2.125 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site