Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp492647pxj; Fri, 11 Jun 2021 04:28:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+HdyF3W95N5NhmKa9V3TRups3yiTcIm69Ed6bMZKmyuUfBxi8sF1vXTTBl0a5rqbVJYmW X-Received: by 2002:aa7:c9ce:: with SMTP id i14mr3185015edt.148.1623410929275; Fri, 11 Jun 2021 04:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623410929; cv=none; d=google.com; s=arc-20160816; b=E05c4hcPFB1L3LhQr+LjirUDZZbFuyWDlgYhbCUUHROTI4GX7dPipUxGCWgLS4tXnm GzTl9iUyU26y1/G81MmA2j4vJYpzoJreDrhfiQU9JA8RfR03SOY+3NRthKzBn6VmjCdV NMlpLjCaEL0mwSruOUbWIuBfSxVZglU6V4OV5oGeAL0yb4Wmyc1jLZJ2m12jy5KMt0fw yUE+x+aQyJoFiqAUVcZB3S/ZglzcA5rQF92il2lUm6rREf5gvlX3V5VAOtm7cegHxwYN fZ5dT8rQjeq3h2ZH7npNlkv/pn/DrGq/RoJIu0h7u0bt+f6CN2CHfLO22zL9DTMBbXWU 1xQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KeKhFQ2o4ZjjUSqY2/q0v4ghjf2R1KmvZ4d5la1UX3Q=; b=XOuEHBHnO3fEGhMnzgb9kQsR/N9pwyAUUem6TElYQ4r1A9UpWaE98rET+WOe27Lsxw 8FSajjSG+g9vktO3/A9HEHRAkz5oq/in8g2/W3E7KLEkpgZ7538nYUJiI5zyBPRTYtFz CC5/EqVD4zwkwFBjYvsPACQDtP3WbvKF5EKUudSDcqndTIlcezphqgU2ZmSRbHPTa2MU 6gzDYrJ8PmCxR/4Vl3LRMUnruNNVJO0lzO+8T8NvZjATQmSRSg9rgl4HwNgxmsvJL0bi M2XVm/6R5aqFetuPOhNtHi3M+8XbcSES6LhpHm+wPQk/yqZzm4csSKPBKRtbSPbFJG4M WuYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mHNHZtdk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e11si2595874eds.608.2021.06.11.04.28.25; Fri, 11 Jun 2021 04:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mHNHZtdk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230460AbhFKL2y (ORCPT + 99 others); Fri, 11 Jun 2021 07:28:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:41814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbhFKL2x (ORCPT ); Fri, 11 Jun 2021 07:28:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 272D0610E9; Fri, 11 Jun 2021 11:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623410816; bh=QXbhpoKZRkqCV8d85AMb2D87wCsbusdzmNcunuEV1eo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mHNHZtdkpxh+sAIplb3d0tqtmW4gvz992iETR2j7p8QZBoUNBitsS2H7L1nbPOTIH +8CNq1F4ar3EFOsdILg8sQGmuYicMx0LKInecTpzYxnGkdPKMGEALsUWAiled/e5P0 xYB4xE28l65g7gBJcouALiu9EJ/tOlnH95uYMzGOr+e5kquZjTuMhqJ4tJb7lqQqpr 4A+LN/NVEFQSrt2zwQDxp2DiFPxozEdq6ZlAiTYe8RR7JYMF0P3t2bsnnGdRaCa6UE PPNqGgUXxC+KHKLIjc7/KR9uOA3rR5poXVAWQvc9oaijApy/1rBzt6c2vCwG6l7MHa TFsQwECdugKIA== Date: Fri, 11 Jun 2021 16:56:52 +0530 From: Vinod Koul To: Jason Gunthorpe Cc: Pierre-Louis Bossart , alsa-devel@alsa-project.org, Leon Romanovsky , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Ranjani Sridharan , hui.wang@canonical.com, Dave Ertman , sanyog.r.kale@intel.com, Bard Liao , rander.wang@linux.intel.com, bard.liao@intel.com Subject: Re: [PATCH v4] soundwire: intel: move to auxiliary bus Message-ID: References: <20210511052132.28150-1-yung-chuan.liao@linux.intel.com> <21002781-0b78-3b36-952f-683482a925d7@linux.intel.com> <07dbe0a2-0abb-810b-ef39-b83511d3f3e0@linux.intel.com> <20210609151022.GF1002214@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210609151022.GF1002214@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09-06-21, 12:10, Jason Gunthorpe wrote: > On Wed, Jun 09, 2021 at 09:44:08AM -0500, Pierre-Louis Bossart wrote: > > > The consensus for the auxiliary_device model was hard to reach, and the > > agreement was to align on a minimal model. If you disagree with the > > directions, you will have to convince Nvidia/Mellanox and Intel networking > > folks who contributed the solution to do something different. > > The purpose of the aux devices was primarily to bind a *software* > interface between two parts of the kernel. Then I dont think this example is valid... This example has a PCI device, which represents a DSP, HDA controller, DMICs, Soundwire links... So at least here it is hardware. > If there is a strong defined HW boundary and no software interface > then the mfd subsytem may be a better choice. More I think that might be better choice for this example, but then MFD is a 'platform device' and Greg already nacked that > For a software layer I expect to see some 'handle' and then a set of > APIs to work within that. It is OK if that 'handle' refers to some HW > resources that the API needs to work, the purpose of this is to > control HW after all. > > You might help Vinod by explaining what the SW API is here. > > Jason -- ~Vinod