Re: [PATCH 12/18] thunderbolt: Add tb_xdomain_find_by_route()

From: Andy Shevchenko
Date: Tue Feb 13 2018 - 12:51:29 EST


On Tue, Feb 13, 2018 at 7:00 PM, Mika Westerberg
<mika.westerberg@xxxxxxxxxxxxxxx> wrote:
> From: Radion Mirchevsky <radion.mirchevsky@xxxxxxxxx>
>
> 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