Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1632265rwd; Mon, 15 May 2023 00:16:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HX83uV35G+Sl8TMgaywT/RvQ8BU/THAZAJ5V2lFV+DHSRToVHRlDtai1wsM69ZXRvT9eL X-Received: by 2002:a17:902:ce84:b0:1ac:a030:c30a with SMTP id f4-20020a170902ce8400b001aca030c30amr27720729plg.19.1684135018436; Mon, 15 May 2023 00:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684135018; cv=none; d=google.com; s=arc-20160816; b=Uk+15SccMnCrqE/0jiX8DXYykZWx075W3Nhnwqv6t9o/KSL/81ZSFq6S35hxIkNdBN pD90AVmPQ3W9WvS0VxQpeqv1hYo+V020ySKDq0VrlFs0ij0JSUaOAYqwZ3WVi3O2OGfo sfLWZprb740pILsXOKyWwpxFvp6S8SfllmmcCR0IgTb71cehK1tWLw2OcHg8w0/2R2cI 1d719iLN8DmKtqTAkHSe9gr2PAhqj1OiD1XSPS2OamO7wce/H1rPQBRxZ2YQCVq0DjjJ kO4AeRKbMbz/zvSo9XfnmWPckHnT4Q8PF9lcY5srdSwhjXdsdJriD41RC/P4I3cgNwQG CFZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2tjFx+EwjF46txVH0aaI6m4KnUrp3qhDO7HaUj8kOKg=; b=RC6MqmP64LGm/GyGGZOHaGd/ZZtv/2AfPGfK/pwsXWF1/MApXvjzhfdU+nb5OIff41 1bmpNYKQK73eMQNVb1gtA+3rJfnJtNBQKIiXoa2sdpEVO9aMjYEha40QGXgSF8OIRvjn /N8V0pF9nbEVzlHGCXM6WSMA+k0APzZY/WJ44HErGYVhPndn3Ed1Eh8SlfjqmfFlmbBO +BCZUqpPczy/n/c+LonHpiQZhoM3lsonBHzUxDXVnQWiaPTCETFGw3lkhLy3WNc3V2OR TMXjoXdClnP6tNKuclf7LpgqSDKzpgMWVIXnF7cGTR/yDWDQ0peJpS9wKfTEVV4Jn61X C+Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jmf9OMQ7; 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 j16-20020a63e750000000b0051fb6ca1e69si2800126pgk.180.2023.05.15.00.16.46; Mon, 15 May 2023 00:16:58 -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=jmf9OMQ7; 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 S240283AbjEOGvZ (ORCPT + 99 others); Mon, 15 May 2023 02:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240214AbjEOGvJ (ORCPT ); Mon, 15 May 2023 02:51:09 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FB891986 for ; Sun, 14 May 2023 23:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684133446; x=1715669446; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Dypjg8PFg6rfCWgJzAX1z/pRx6Y007Vaip829IVJOYA=; b=jmf9OMQ7uKtPrWJNxaXvo2FyfcUbeIRE3Ui7j71r0Wd/nvVyNpVljkKp eIUnZNiMzfSZGvPx8sVlzQondHdWDWQBR1d4mI95YbiyHYrQQ2SAPCwy2 jE50s84+RZU9DUNFUa6z7Qhcu+JIa0D4RGIUdqmzAjHobVjlG3EocidDn 84xFGSEuH9M7lw/LCdrUDzI0WaVfnQKM/LDrqu9FoBYvL9Qgh8DCVbDNr DU9hnzO5Cje+8Ry57RY8Bf0xAJq0HYcSFeLENjbh7xGASeYa0XLI71spa BFE/Ss2ypkspST5TTPt2c6HERvNahIafSrIiAj/fM2Xv8Z7ptUmPIQrVn Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="349966358" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="349966358" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2023 23:50:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="694908670" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="694908670" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2023 23:50:40 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org, broonie@kernel.org, tiwai@suse.de Cc: linux-kernel@vger.kernel.org, vinod.koul@linaro.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH v2 09/26] soundwire: intel_init: use eml_lock parameter Date: Mon, 15 May 2023 15:10:25 +0800 Message-Id: <20230515071042.2038-10-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230515071042.2038-1-yung-chuan.liao@linux.intel.com> References: <20230515071042.2038-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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 From: Pierre-Louis Bossart Now that the ASoC/SOF/HDAudio parts has retrieved the mutex and set the parameter, we can use it to share the same synchronization across the two domains. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Reviewed-by: Péter Ujfalusi Reviewed-by: Ranjani Sridharan Signed-off-by: Bard Liao --- drivers/soundwire/intel_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c index c918d2b81cc3..534c8795e7e8 100644 --- a/drivers/soundwire/intel_init.c +++ b/drivers/soundwire/intel_init.c @@ -69,18 +69,19 @@ static struct sdw_intel_link_dev *intel_link_dev_register(struct sdw_intel_res * link->ip_offset = 0; link->shim = res->mmio_base + res->shim_base; link->alh = res->mmio_base + res->alh_base; + link->shim_lock = &ctx->shim_lock; } else { link->registers = res->mmio_base + SDW_IP_BASE(link_id); link->ip_offset = SDW_CADENCE_MCP_IP_OFFSET; link->shim = res->mmio_base + SDW_SHIM2_GENERIC_BASE(link_id); link->shim_vs = res->mmio_base + SDW_SHIM2_VS_BASE(link_id); + link->shim_lock = res->eml_lock; } link->ops = res->ops; link->dev = res->dev; link->clock_stop_quirks = res->clock_stop_quirks; - link->shim_lock = &ctx->shim_lock; link->shim_mask = &ctx->shim_mask; link->link_mask = ctx->link_mask; -- 2.25.1