From nobody Mon Feb 9 21:37:14 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBB77C77B7D for ; Mon, 15 May 2023 06:52:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240437AbjEOGw1 (ORCPT ); Mon, 15 May 2023 02:52:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238487AbjEOGwE (ORCPT ); Mon, 15 May 2023 02:52:04 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD3E52D51 for ; Sun, 14 May 2023 23:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684133503; x=1715669503; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q80CBcxn2QOQK8sFpcJ2zT5Gn5sp4JMMdHxIOJazfZ4=; b=g4EB1dP6Opf3Znpafx6Mv0zO7rPg7lCCS/N8lK25F3wAO3UChXTHE0BW 8rRItxImrUeQ5DbiHhlVkrYk4uOSFiyKySGyyBKHUSCwq6S6eBAMkccS9 G9XL5a0253+fVyoFWSVydximG5vDrwsm623KaztyyfNcSU3fO+vVoPpQS fy2BC6hUqSq6T6fUc9GNMkCMpPXbb/RPsljdxvJWKH9XXAMa8hpeWRes0 iV7ZHoc+fkeEBaeSqUTSMwqpawx+VSQNHnlMSobBfaMIb6evKlzcLUYev VJ8oYAfaieqDEQQtItWPPl88DdYIyInuarJLjsYJ0sKk4khPWPHYBqFYc A==; X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="349966459" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="349966459" 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:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="694908742" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="694908742" 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:57 -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 16/26] soundwire: intel_ace2x: use common helpers for bus start/stop Date: Mon, 15 May 2023 15:10:32 +0800 Message-Id: <20230515071042.2038-17-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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pierre-Louis Bossart The sequences are so far identical, so the abstraction is a bit over-engineered. In time we will simplify if there is no need to special case or work-around programming sequences. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Reviewed-by: P=C3=A9ter 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_ace2= x.c index 20b8806f7de6..2e33e8a00b55 100644 --- a/drivers/soundwire/intel_ace2x.c +++ b/drivers/soundwire/intel_ace2x.c @@ -316,6 +316,12 @@ const struct sdw_intel_hw_ops sdw_intel_lnl_hw_ops =3D= { =20 .register_dai =3D intel_register_dai, =20 + .check_clock_stop =3D intel_check_clock_stop, + .start_bus =3D intel_start_bus, + .start_bus_after_reset =3D intel_start_bus_after_reset, + .start_bus_after_clock_stop =3D intel_start_bus_after_clock_stop, + .stop_bus =3D intel_stop_bus, + .link_power_up =3D intel_link_power_up, .link_power_down =3D intel_link_power_down, =20 --=20 2.25.1