Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp844892rwd; Thu, 8 Jun 2023 08:28:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7j/DjXgjQawNkEIkKcZFbd/+gP6TlrbF/wwkHlLKqng3MS8sbVCa3RxTOWV0n/x50drEh8 X-Received: by 2002:a17:903:32cf:b0:1b0:3841:bcda with SMTP id i15-20020a17090332cf00b001b03841bcdamr7826984plr.0.1686238108513; Thu, 08 Jun 2023 08:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686238108; cv=none; d=google.com; s=arc-20160816; b=AQvWUL8BzokGArhD+eNec7bbp1tOF2C6ulH+6T8qtE/A2baEcaUXl8VqwX2OiaswJt ORUCA1u0EQyyDxTEado/O4EgaFoP3IrOGRLK+ckrhQra+6vTZZrlSoPI+ZfYLwEU141m kyeWubzD+IP9Ephm/5s10KoBKthwn2FMYUJpxrjFIejIM+1ZbVg7MKQjLMfoe8PwORuJ YFwRhZ2rNpYIeP3ls62PzVsKRV9BkiLByIymFI2TDA9hmKNqAELyvDHST+7IrJjo+ows nfZpHcHzd0mwWJlvx7u60e5g9lbOgwNN8lv5Ljvp85F5YaaJxWW69JE/XLr2v3VoH8Gc s+Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2XwzAaGOSB5Ge1wyrk4nkuzzwjV6U2wh8b2tEbewYR8=; b=ooEJ3ocPGg6st6xAhco3VGpMFo1EK6VyB86Blns1vWtVYBYFDHdhCQRg7u/TJtFU83 81KkkAR7x19SwpY+cPNKnDPf1eck7BTb6Ih1fBxClh/vBYzahdCuPHLY2O3ssedRnUTd afOctP/MLc0QbvqkGuJKe21sh4mKedwpAq1tUceSb0/a7asAcTtAUb0jJEuRbifW6sG/ 1/i5npYm15So/fN0NEzBk1VYFP9TQosbaoQ9Fe0AyDUU7AMeH+fbU6FbnxF/1aflKTzB 79SfTOel2UqRVC76H4V8XRBzaWlLCTVurcK8O/w3odK6dINlMnHfLSEKc8HD/YXISLKP gt2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jGoXrlky; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a17090311d100b001aaea258805si1256967plh.134.2023.06.08.08.28.16; Thu, 08 Jun 2023 08:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jGoXrlky; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236719AbjFHPJe (ORCPT + 99 others); Thu, 8 Jun 2023 11:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234352AbjFHPJc (ORCPT ); Thu, 8 Jun 2023 11:09:32 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 168A32D59 for ; Thu, 8 Jun 2023 08:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686236971; x=1717772971; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=gLEq3vi4ShR5o0t/JrKR4zfOv7ndOd96flRBabiHYaw=; b=jGoXrlky67sgZcgAZEjEyXuGvU2a3SI9hKedTgf9V9uaQLvchWljLq4r fz+rwUsJ+KZ9vb+dxdSRBMss66QH4o3In0QKvzxDgwBlj3KoXfmNJ9xRK 4zEzHPZ8vWsD7TXtecJJtwiOUDRJI/ObOeMhxQMJ81ObumodmR2UbbuUk qw2b5KJ1JyA/nMcy0TYpYstWHyytgxcIomraJw7Q3ppAnBlNPfpJa4wKy ixWfELWaLKgQsmtiKXZuUQJtL3pHLr5UoxmB8SNU0rSq+FZNwkJP+CL62 RWkaTy4wDWLhQEcGxoe81xbQMUzVYDF9j7gIUjWY/YvUzvlX3Es83omXO A==; X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="443700529" X-IronPort-AV: E=Sophos;i="6.00,227,1681196400"; d="scan'208";a="443700529" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 08:09:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="799842560" X-IronPort-AV: E=Sophos;i="6.00,227,1681196400"; d="scan'208";a="799842560" Received: from svuppala-mobl.amr.corp.intel.com (HELO [10.212.207.249]) ([10.212.207.249]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 08:09:29 -0700 Message-ID: Date: Thu, 8 Jun 2023 08:24:00 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [PATCH 3/4] soundwire: extend parameters of new_peripheral_assigned() callback Content-Language: en-US To: Vinod Koul , Bard Liao Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, bard.liao@intel.com References: <20230531033736.792464-1-yung-chuan.liao@linux.intel.com> <20230531033736.792464-4-yung-chuan.liao@linux.intel.com> From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> -static void generic_new_peripheral_assigned(struct sdw_bus *bus, int dev_num) >> +static void generic_new_peripheral_assigned(struct sdw_bus *bus, >> + struct sdw_slave *slave, >> + int dev_num) >> { >> struct sdw_cdns *cdns = bus_to_cdns(bus); >> struct sdw_intel *sdw = cdns_to_intel(cdns); >> diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h >> index 8a7541ac735e..41a856bedf1e 100644 >> --- a/include/linux/soundwire/sdw.h >> +++ b/include/linux/soundwire/sdw.h >> @@ -861,7 +861,9 @@ struct sdw_master_ops { >> int (*pre_bank_switch)(struct sdw_bus *bus); >> int (*post_bank_switch)(struct sdw_bus *bus); >> u32 (*read_ping_status)(struct sdw_bus *bus); >> - void (*new_peripheral_assigned)(struct sdw_bus *bus, int dev_num); >> + void (*new_peripheral_assigned)(struct sdw_bus *bus, >> + struct sdw_slave *slave, > > maybe better, drop the bus and pass slave (which contains bus) I kept it for consistency, all callbacks for sdw_master_ops start with the bus parameter.