From patchwork Mon May 15 07:10:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 93897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6720220vqo; Mon, 15 May 2023 00:02:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51YVtQxMwFi7lNrzVCfdBwVSKUjEpWGetUNkyXP0ZpJQTyH9TQrBbH/ahT5oUnNunrtyGw X-Received: by 2002:a05:6a20:9381:b0:104:f534:6c8d with SMTP id x1-20020a056a20938100b00104f5346c8dmr9667283pzh.33.1684134174782; Mon, 15 May 2023 00:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684134174; cv=none; d=google.com; s=arc-20160816; b=syzqmIt0Y5HRz0B9DQQN57TLbuncZqGVpzzkPbUiTO+DD2Plbcp8Doj02q/6TKrB2T bIaZd2VviIJLKuidFzMkY7lKMs+urJ/8cgifEtMY0+gJI8/jY9bcn32hkDuMY9vjjd47 FUeLaSx/elmlVF9QT2cFubomxZpoYF2LpVLXsUlkeW+F+GQ3+RuHewqrEbaswSvq0rbn BYooWLBMPPSPlZP1LKWo1j3uypWgtvIO0MC3XqaM9rocA9wBiXtLqgYeHiyQ/vCGl5Ir S9yyKai+11kwutxwHvCLVz6jXNBynxjnxMKPbHzF+Z5laGUM0kfoMlplWUBMTtm8Ssau ui1Q== 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=jDetbz081B7qJvXygJbZZCjtE5eyiev0vejT8oY5/0UoHsc7O1qDjUri4AliI03OwR YugCzsvlu7pG/tefl00LJYcVipoflI8Ux8dMvjYWdmWMKmARw9e4XT30LybyBXrLUjl9 QbtsxgXn7/+VPdPgKSj+6anAeAvp0GzDxpxmN3k4otcDeii0tapvsnjprGN95AfOIapW jfSbRc2T50U/XAuYWxzy1yCSv8uzXZtXzQoHt4PEIkzQZvlye1oxkuswflrhBOtut994 MFPlR0ePd6E+jaBFQFSxEKi37endYjTDLt/c/li5JYdFt3Wm5KKPjsvoDGPYOliWEOgT WYvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="f8nvBV/c"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x185-20020a6386c2000000b00528c6c2ea96si2148801pgd.306.2023.05.15.00.02.42; Mon, 15 May 2023 00:02:54 -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="f8nvBV/c"; 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 S240492AbjEOGwe (ORCPT + 99 others); Mon, 15 May 2023 02:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240298AbjEOGwL (ORCPT ); Mon, 15 May 2023 02:52:11 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7589826A1 for ; Sun, 14 May 2023 23:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684133511; x=1715669511; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SbHuuXPdMaBgfOruu1bZggLsJuDVCwmXsFFke6IavfA=; b=f8nvBV/cox3pzavCbuJ3tJVc39Ag23i/StR2+B4Buw8xWX97pSjQi0/H eBfjEBJS8mZa9wvRwrXSx/I+6EtSWot73Jyhgy/QJL10u3zRDuG+kvqUe u4HHpvd//jHYaU4MfDLFTu4H6sns0fF0Q64qzMGJXfDsdMOn+nUHd/FYr ySNyGvLmLU5VXi/BVQ5WOUtjMjIEpPJopiOnJ8GE1IGxMrDs0tpDzaThH c3mFXGxEZwj50sRa0VpQzFZPPoI7IV0k0r7iXSC3PU8vr+3Exp8QOcHI/ 0lhmGta2N9Whg16ZZ+xPhuxmKlSg91hlRsNvk2MYVLz/jVQ/BWemuWeAk w==; X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="349966491" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="349966491" 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:51:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="694908759" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="694908759" 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:51:01 -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 18/26] soundwire: intel_ace2x: add check_cmdsync_unlocked helper Date: Mon, 15 May 2023 15:10:34 +0800 Message-Id: <20230515071042.2038-19-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765942676674803759?= X-GMAIL-MSGID: =?utf-8?q?1765942676674803759?= 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);