Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764145AbcLSRV6 (ORCPT ); Mon, 19 Dec 2016 12:21:58 -0500 Received: from esa5.dell-outbound.iphmx.com ([68.232.153.95]:3354 "EHLO esa5.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758526AbcLSRVv (ORCPT ); Mon, 19 Dec 2016 12:21:51 -0500 DomainKey-Signature: s=smtpout; d=dell.com; c=simple; q=dns; h=Received:From:Received:X-LoopCount0:X-IronPort-AV:To:CC: Subject:Thread-Topic:Thread-Index:Date:Message-ID: References:In-Reply-To:Accept-Language:Content-Language: X-MS-Has-Attach:X-MS-TNEF-Correlator:x-titusconfig: x-titus-metadata-40: x-ms-exchange-transport-fromentityheader:x-originating-ip: Content-Type:Content-Transfer-Encoding:MIME-Version: Return-Path; b=COPofHjgZnI0YJDodC0aqPhNEGUTjh1NknWl8mvNU1ypXtX5JNV+o3uT BTEv+B9JFAKOreUo5l+oUldEZfb0zppbHCkgii1eEw3GG1OWTgbPgiYD1 fjItOV0pqBGMx38JDVgCJhQmCf6XvlFcS1Yca4GYyudb75gQzOS7rXUG4 0=; From: X-LoopCount0: from 10.175.216.250 X-IronPort-AV: E=Sophos;i="5.33,374,1477976400"; d="scan'208";a="914806920" To: , CC: , , , , , , , , , , , Subject: RE: [PATCH v8 3/8] thunderbolt: Communication with the ICM (firmware) Thread-Topic: [PATCH v8 3/8] thunderbolt: Communication with the ICM (firmware) Thread-Index: AQHSWfPiPED7j/FaC0SELSkJyhXulKEPg2jA Date: Mon, 19 Dec 2016 17:21:39 +0000 Message-ID: <05d9c1db67af410981bbb9672071a237@ausx13mpc120.AMER.DELL.COM> References: <1475073870-2126-1-git-send-email-amir.jer.levy@intel.com> <1475073870-2126-4-git-send-email-amir.jer.levy@intel.com> <20161219122407.GQ1460@lahna.fi.intel.com> In-Reply-To: <20161219122407.GQ1460@lahna.fi.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titusconfig: Internal Use 04051212 x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvIiwiaWQiOiJmMTFjZmM0Mi1iYzgwLTRlMDMtYTkwNS1jY2MyYWNmZjgwZGUiLCJwcm9wcyI6W3sibiI6IkNsYXNzaWZpY2F0aW9uIiwidmFscyI6W3sidmFsdWUiOiJJbnRlcm5hbCBVc2UifV19LHsibiI6IlN1YmxhYmVscyIsInZhbHMiOltdfSx7Im4iOiJFeHRlcm5hbENvcnJlc3BvbmRlbmNlIiwidmFscyI6W3sidmFsdWUiOiJObyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNi4yLjExLjAiLCJUcnVzdGVkTGFiZWxIYXNoIjoiR0JPcFhhMk9vU0pwQllRVXU4WFk0QkFhQW9raXFrRnlYaUVNeHFGQVwvZWc9In0= x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.133.140.58] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uBJHM2LP009480 Content-Length: 718 Lines: 14 Dell - Internal Use - Confidential > > There is small problem, though. On non-Apple systems the host controller only > appears when something is connected to thunderbolt ports. So the char device > would not be there all the time. However, I think we can still notify the > userspace by sending an extra uevent when we detect there is a PCIe device or > inter-domain connection plugged in. > Why couldn't you just create it the first time a device is plugged into a Thunderbolt port and leave it until the module is cleaned up? If the host controller goes to sleep an event could be sent to the daemon to let it know it disappeared and not to expect data on the char device for now, but leave the node around.