Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7116023rwl; Wed, 22 Mar 2023 22:33:34 -0700 (PDT) X-Google-Smtp-Source: AK7set+7CyNAZpUaLcAfdMLoUNql6LhTcqGNNxK/u+wTED4AEjgBhclIZ9l3iuiYBQz4m3+JgVIO X-Received: by 2002:a17:903:284b:b0:1a1:f06b:f171 with SMTP id kq11-20020a170903284b00b001a1f06bf171mr4708720plb.17.1679549614705; Wed, 22 Mar 2023 22:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679549614; cv=none; d=google.com; s=arc-20160816; b=dFL97K4dld/T+Ar7BSqCa/Oji498YtouSUYDQALvJcCtEVIZsJZ4fSGr73mfS59Hd1 3aAKt77wjFREk0sWDlUXAWDQWh/0//KwccrfjjBVitf/8a2GlbzFRGj6Zk76+1+J+WWh 7dOX+UmejnRkApv6KVOLeehKXQPR2bcVFbxr2gNXt7mx3tkerzCVZ22Ews3fsa+2adeO tT1sStxnlRMEo8uHbWJdONEtSDTtr/JU24IxVAKq0Q2jjH424nnns4p4OdN00yyrqa/J ld0hhjbc2kEThkqS5LZnaEnw8VyKYWfd8NqxbLA1JtmbSrBsUZ9q0g8Ik1hrUIlIsZpP PSdQ== 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=diI9TDbycgsTT171qWrmSRo+0brr9Ti/ObaqmiVdUUk=; b=Inrs2oS6NDDSS0erRhOhpatZCJLzHHYzaNnp3k1bFoD+fWpfyGLflGj8g+dic6Rp52 gPHOEN6pavfX15716jHCjlbkEs7JFtacae1K/ajwC19f6JKxY/zsAzRCtfE5wybFehVG Hp4HTveakakdFHNuha+Hw/p8ezzsBBN2e4zp95ego3X96nYwfyFtwWGFgNfZRmmRsHTf XkyEoCWvhjxez38ZslcsVYbOfJbPcfxJN7vd20uVcl9I6mitmq5+wde5lB1k2zNk2ViX LsJj0uk7x35qzdID1j4FfL2yzWXF1mpoHzXbnbNILbv1jotdzvUjeP3FL9fRLlGY5qMB GU/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VkFCs20S; 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 n1-20020a6546c1000000b0050be719abc9si18158062pgr.167.2023.03.22.22.33.23; Wed, 22 Mar 2023 22:33:34 -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=VkFCs20S; 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 S230511AbjCWFcl (ORCPT + 99 others); Thu, 23 Mar 2023 01:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjCWFcC (ORCPT ); Thu, 23 Mar 2023 01:32:02 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7449B31E2F for ; Wed, 22 Mar 2023 22:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679549486; x=1711085486; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SbHuuXPdMaBgfOruu1bZggLsJuDVCwmXsFFke6IavfA=; b=VkFCs20SelT4nM33U1OqgJ8PAbgJWwk3BvEaOjmjx633pVpJ3dJhFVsu f51RBqPWnJSh5JucJv3JBV3Hmg8iobwqCUMF9MF5BPLdsVcnhac3RXuma YAWxVZ/LIufJL6kff+Er4hzu5zPwiXq/S1HqBrU1Syr1HQahSXdKj0tBp LkZqS22GMQCSnaC4I5vVzTu8rzX0K9JiDNdwvUwSP0n8SeEcYQ3/ht8M/ e8DligFsVuk4SvLb8vKkGm/vsE3gOg0vzIHzctIBQqDkJE4q19Wl2Pwc6 1Y+qG068/K81D8/3EA7N5Exj2N1sTsBhU49VZC9OdEJo92Qv8nK0Ll8O1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="327779491" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="327779491" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 22:30:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="675567258" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="675567258" 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; 22 Mar 2023 22:30:33 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org, broonie@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com, tiwai@suse.de Subject: [PATCH 18/20] soundwire: intel_ace2x: add check_cmdsync_unlocked helper Date: Thu, 23 Mar 2023 13:44:50 +0800 Message-Id: <20230323054452.1543233-19-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230323054452.1543233-1-yung-chuan.liao@linux.intel.com> References: <20230323054452.1543233-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=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 This is the last callback needed for all bus management routines on new hardware. Same concept as before, just different register. 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_ace2x.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/soundwire/intel_ace2x.c b/drivers/soundwire/intel_ace2x.c index fe950b3ea3bc..a12fee8a5bfa 100644 --- a/drivers/soundwire/intel_ace2x.c +++ b/drivers/soundwire/intel_ace2x.c @@ -186,6 +186,11 @@ static int intel_sync_go(struct sdw_intel *sdw) return ret; } +static bool intel_check_cmdsync_unlocked(struct sdw_intel *sdw) +{ + return hdac_bus_eml_sdw_check_cmdsync_unlocked(sdw->link_res->hbus); +} + /* * DAI operations */ @@ -366,6 +371,7 @@ const struct sdw_intel_hw_ops sdw_intel_lnl_hw_ops = { .sync_arm = intel_sync_arm, .sync_go_unlocked = intel_sync_go_unlocked, .sync_go = intel_sync_go, + .sync_check_cmdsync_unlocked = intel_check_cmdsync_unlocked, }; EXPORT_SYMBOL_NS(sdw_intel_lnl_hw_ops, SOUNDWIRE_INTEL); -- 2.25.1