Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp640592pxj; Fri, 11 Jun 2021 07:53:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJnfiLApMMTuefkJyX5nCE9hYVrPG74aAF7V25yu4ybChtjwL3ETn0HQjJcdEZSGSQCgi9 X-Received: by 2002:aa7:cc97:: with SMTP id p23mr4114619edt.372.1623423196630; Fri, 11 Jun 2021 07:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623423196; cv=none; d=google.com; s=arc-20160816; b=b3wyQ8bbzos+i7bi5AHi3uHpkdf8dgTBUvFfiZ6YJIcV3knQjPPkqA+Bz+fUzc8jNh c7hI2LIwzv/5MS8h4vVJ2ksWdJWxBWNwM7mYa+YTrkRayJDWRqWj7hQsQB+PDiRFEAa+ xRinvhhzSvwnO6LpgUp9TFfAY/sYTGkHInm1pVGif5BycvH4eJzb/Vtfekjo/1B2UVEG Q4PsFj3GiZ2VCtMZhmVR0E5If0bXolcDAXNhi8l0sjR5tWXVfep0qeoDC77BzgCtya5R 5hTUWxIKdSze7/aRYx/7hvztmqzhucRe2tOryt9OqRk8D+VKZBEik5YRESpix1dgy+Rt eSug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=VHobw8CW3gswcxAOgZghQuK4+Rp8/H1q5Tx3nukUyNw=; b=SdXsyKlNoBOtbgoz9rgS/a1DJw58oFKgR9nQONb95PGSP8NpGp6qNwAjCRxWOF5QWe VcPC/Aam1RmU6vBVMP/bJy8GiHJNpicCU/iVzbB1Qr63xmdAwLwKo8L7FcrEFinCMfRV hJ5w6VfM7tP8a9/Hp6TViG8n1s5zrp7i7OKiZz5FtsxJ9ANyOrruJyJOQ3wz6UscmzYb htWrYV8Zp+FzEh14kL1IFaR9JMJJshJ783xRecUzTSUx8ndHtQbtrc/Z7YHPCt5wIOab EP9/J6gauxMhg+rq5KmJcWgBgKZ0uKhdwxi9ME7yX+vi5tHq13q66eVykVSUgChxKLLS uPfA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si935045ejb.575.2021.06.11.07.52.50; Fri, 11 Jun 2021 07:53:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231270AbhFKOxw (ORCPT + 99 others); Fri, 11 Jun 2021 10:53:52 -0400 Received: from mga05.intel.com ([192.55.52.43]:61524 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230508AbhFKOxv (ORCPT ); Fri, 11 Jun 2021 10:53:51 -0400 IronPort-SDR: yZjsHOyZIsO1P9UkcUKCCX1GQgEAdSi1qMn183fJVcnCtgXO3MU8jq0Dp/PBdCHRzTorLltZcb Cmg7HTz6YvTA== X-IronPort-AV: E=McAfee;i="6200,9189,10012"; a="291169969" X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="291169969" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 07:51:52 -0700 IronPort-SDR: 5005IWZtchPfbvO3h+s9Ho6UAiMbo/xRefMxG2img6XhJgrpYvM6o/pYW+yIQIGMJIX9fAetOo xAkYoRi6H9+A== X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="638709464" Received: from dcpalomx-mobl4.amr.corp.intel.com (HELO [10.209.153.29]) ([10.209.153.29]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 07:51:50 -0700 Subject: Re: [PATCH v4] soundwire: intel: move to auxiliary bus To: Vinod Koul Cc: alsa-devel@alsa-project.org, Leon Romanovsky , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Ranjani Sridharan , hui.wang@canonical.com, Jason Gunthorpe , Dave Ertman , sanyog.r.kale@intel.com, Bard Liao , rander.wang@linux.intel.com, bard.liao@intel.com 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> From: Pierre-Louis Bossart Message-ID: Date: Fri, 11 Jun 2021 09:51:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Vinod for your feedback, >> If you look at the *existing* code, we don't handle any "resources" with the >> platform devices, we use the platform_device_info.data to pass the link >> information. It's a void pointer. We do not touch the resource field in the >> platform_device_into at all. > > Yes that is true I dont disagree on that part. My ask here is to make it > better, it can be followed up after this but I would at least like to > agree on the direction. [...] >> That's it. We did not change anything else, all the other fields are >> identical. We are only changing the TYPE of device and the interfaces for >> probe/remove but using the same information and the same device hierarchy. > > The move in itself is okay but I dont think that should be the end goal. What we suggested in this patch is only an iso-functionality change. I believe from Greg's and your feedback that there is no objection on that small step. This is not the end-goal indeed. The second step would be to remove the intel_init.c file. I fully agree with you Vinod that this can be moved into the SOF driver, and we could do this in a follow-up step. We can also improve the partition between 'context' used by the child driver and information passed by the parent on SHIM registers and bases. I think we'd need to agree on the details of the second step, Bard and I can work on a proposal, but I don't see a disconnect on the direction to simplify the interface. That's the right thing to do.