]> git.baikalelectronics.ru Git - kernel.git/commit
thunderbolt: Build initial XDomain property block upon first connect
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 26 May 2020 14:26:38 +0000 (17:26 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 Jun 2020 16:58:05 +0000 (19:58 +0300)
commit2f5c9b41e1b07404d00f9566c8106b6961aa24f7
treee27975015319732fdda777cec1c25bc989a186d7
parent3834443dbca5346a46d4aad088ed810712da3168
thunderbolt: Build initial XDomain property block upon first connect

On a systems where the Thunderbolt controller is present all the time
the kernel nodename may not yet set by the userspace when the driver is
loaded. This means when another host is connected it may see the default
"(none)" hostname instead of the system real hostname.

For this reason build the initial XDomain property block only upon first
connect. This should make sure the userspace has had chance to set it up.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/xdomain.c