From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932991AbdEXK2p (ORCPT ); Wed, 24 May 2017 06:28:45 -0400 Received: from mailout1.hostsharing.net ([83.223.95.204]:42109 "EHLO mailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S939482AbdEXK2Y (ORCPT ); Wed, 24 May 2017 06:28:24 -0400 Date: Wed, 24 May 2017 12:28:21 +0200 From: Lukas Wunner To: Mika Westerberg Cc: Greg Kroah-Hartman , Andreas Noever , Michael Jamet , Yehezkel Bernat , Amir Levy , Andy Lutomirski , Mario.Limonciello@dell.com, Jared.Dominguez@dell.com, Andy Shevchenko , linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/24] thunderbolt: Introduce thunderbolt bus and connection manager Message-ID: <20170524102821.GB9302@wunner.de> References: <20170518143914.60902-1-mika.westerberg@linux.intel.com> <20170518143914.60902-7-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170518143914.60902-7-mika.westerberg@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 18, 2017 at 05:38:56PM +0300, Mika Westerberg wrote: > Thunderbolt fabric consists of one or more switches. This fabric is > called domain and it is controlled by an entity called connection > manager. The connection manager can be either internal (driven by a > firmware running on the host controller) or external (software driver). > This driver currently implements support for the latter. > > In order to manage switches and their properties more easily we model > this domain structure as a Linux bus. Each host controller adds a domain > device to this bus, and these devices are named as domainN where N > stands for index or id of the current domain. What is the rationale for using a bus? Do you intend to attach a driver to each domain and/or switch? Unless you do, a class might be more appropriate. Thanks, Lukas