Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2454274pxj; Sun, 13 Jun 2021 21:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDOHU7QBFMPKFQIZgxef77pg6bhGxs2QnOtQy1MJDxG89N+5nhEfHLTzPjCrR/TESjgaWE X-Received: by 2002:a17:906:c141:: with SMTP id dp1mr14087164ejc.87.1623645846849; Sun, 13 Jun 2021 21:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623645846; cv=none; d=google.com; s=arc-20160816; b=VDklXRSDH6DR2QLDWI6r88E/U9aYlQ3pTa7Btct8mu4QwILQgociqQiXb2CHqd+uk+ nkR0Gv2M9hOMvL8wduRkd12HPUMG/yUff1ZrrElKHzLrCqGOcbeDORD44CiI6SwsL9ZH cnGgrxYmxG2WhYNN8aAGlFh0OlGBGPjY3bRV55jXgPNxuabz6It+uPISjzOSn7ZgQ7PK HLCSdiWT3NYFpWVkAy+5YFCvRMsMgjavQrJ+4qAWoB/9QO+0bmnXKcKJBvlJ+nbqzp8w bEGXowUgVGHrXPkzKaIFz2do5fZYpHDOoYQwN5JrN0fziuMBZzvByqDxcbU3NeeXPXO+ +NjQ== 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=7eOxcirVd8lc9XutAk5GNI13V5B9kD82WwZGTKeDGsA=; b=JWKIc37im2x9UDoZZ6nfnEwl68LOIQA9RPannxU0gB0/IvtWmCzvJdjTXdtlTUUUt0 uKpDbdT4eCjT0iYqEAnF//4uAd7ymWmJQrLcceJXAFoQl8PtjGXle51sNdFGVL7xRG9l gkMlnJDWmg0xYT6XxnmEfajX3Ztm2pHamR6lWoDMvQfRq+iVSLggKP59hJOdzjqZ+goQ E1YZezvatKRGChAGcg2D/7ZBOqjGHXotc6LsHfS/sM4Uf5xsT8Uik4KrNr+jmqQDHy5e dL3pUdI1LTDKGE56xoCtcVCVrAWEMs8eybZNWBQUFpx/ToR3YURoL4vMwKKqpfjueyuh R/EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kswggof0; 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 cf26si10691307edb.316.2021.06.13.21.43.41; Sun, 13 Jun 2021 21:44:06 -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=Kswggof0; 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 S229793AbhFNEot (ORCPT + 99 others); Mon, 14 Jun 2021 00:44:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:36998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbhFNEos (ORCPT ); Mon, 14 Jun 2021 00:44:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9502161283; Mon, 14 Jun 2021 04:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623645766; bh=aI8cMZgT9nGkbzOwk4swnaCdK6M1OPDEIveCp5UKvNo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kswggof0QOHxDsakxaZXl6U0LzceZK1TdqpkxcrKI1jHBW1YQAft7E6cax7/dq8ko 7PQFW2M1QtmoD9dWaKPA3lFOEA/jPcsD6Q52XB4/9AbBNXLGNQnPsKqKOjl92czxs6 tKoMfvKzIZZqoHvBEUUvuBnnw+0PAwq32gY21xf3POd1PT494EQmYZO7PuvH4mp6GW kVifhMaGcYO+PwSup8nWtUf4yiy4Q8iinBa0XR6Xf3y2mSNOT7CFKAZiajAcigeUhD vAYiHeLQ9LqgZoII0ylrke+YDVxiONz/Ro1kppRHEWvXSthsAUgQC1t19OaFl8OlfN 2pTViCBwh3XFw== Date: Mon, 14 Jun 2021 10:12:42 +0530 From: Vinod Koul To: Bard Liao Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, srinivas.kandagatla@linaro.org, rander.wang@linux.intel.com, hui.wang@canonical.com, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210511052132.28150-1-yung-chuan.liao@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11-05-21, 13:21, Bard Liao wrote: > From: Pierre-Louis Bossart > > Now that the auxiliary_bus exists, there's no reason to use platform > devices as children of a PCI device any longer. > > This patch refactors the code by extending a basic auxiliary device > with Intel link-specific structures that need to be passed between > controller and link levels. This refactoring is much cleaner with no > need for cross-pointers between device and link structures. > > Note that the auxiliary bus API has separate init and add steps, which > requires more attention in the error unwinding paths. The main loop > needs to deal with kfree() and auxiliary_device_uninit() for the > current iteration before jumping to the common label which releases > everything allocated in prior iterations. Applied, thanks -- ~Vinod