Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7116179rwl; Wed, 22 Mar 2023 22:33:51 -0700 (PDT) X-Google-Smtp-Source: AKy350Z4yamEUpcS/zjloHn3iQkSSSXaYSaeVbvlBa7G/pSQ/gKsS29vUNRtWckRkZ2RmeVv9ooZ X-Received: by 2002:a17:90b:3116:b0:23d:96ec:b910 with SMTP id gc22-20020a17090b311600b0023d96ecb910mr4473081pjb.20.1679549630822; Wed, 22 Mar 2023 22:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679549630; cv=none; d=google.com; s=arc-20160816; b=TRwEUjwEYDGTGKBplMQTGDHWJFrtei6mG3/PryfKYT6Dh1NI2jLtrFtSsF0YLFMZl7 pS3J2Q+yv1u29bnmODZYTL/8yx/IfR4d5Z6X/b4AETxSF0SWf4eHFH4I0TQMCYyJUws6 pdJUyLKaMUw9hYNvj588F38JHW2LRfUTSzoGHu4AMrqWYZG8k2HaD+ABTOaNInMN1fu3 CCJt0xgiV+O1wXIc/RRT1y+eVyO219u+1WE/9uj66hQnXxh5gy6pUuFOMuzt5G+KGhBr 10uFVFDPUyEhJCPMuwplpb0dYSV6sb4w/xWhHxf/5eHJ3j2VBi34m4ofP9yI+ICtGH5b uH8A== 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=3asURzMTqvnGXTfpGr6HUR/6oBrdGQuFANnKp7iJJ5g=; b=jKLT1t8KoYzRzf0l7f+Re9mwc34P6qO+Dix1vSNGq93Eb1uo6xq+F+0dgXbnnMwS8M PhP+E3MdZeWUwFcEdCamsYq1cmb2toUTkM3bXPTj7RW7NDqpDd4DIBe9aaw+m722QpWS 0atwhHzbc+dG/PTYAB9SGm2hx0dnmK0Tdtcw7U9TalZpGtEnH3bI0Tzez5me8uf146jF 5Xo+8BTx3Rw/00CqfLkFmB6fMb8TphSri8BUJXRSZAMwCoHpXU5HnD+3mzL42mY4wQ9D 8nCn4Lcq9kmKAKdyZwdHYfVVIP21xauAIUNWMREHTd0lbHoiIVRFgGKVPPcVFbyhOulV V7BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lJTvWVUs; 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 n4-20020a17090a670400b002296a8ff568si832285pjj.152.2023.03.22.22.33.39; Wed, 22 Mar 2023 22:33:50 -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=lJTvWVUs; 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 S230506AbjCWFcK (ORCPT + 99 others); Thu, 23 Mar 2023 01:32:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbjCWFbo (ORCPT ); Thu, 23 Mar 2023 01:31:44 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C9AE212A9 for ; Wed, 22 Mar 2023 22:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679549468; x=1711085468; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q80CBcxn2QOQK8sFpcJ2zT5Gn5sp4JMMdHxIOJazfZ4=; b=lJTvWVUstMjMBb0jeCDsoQIZukw3dI/GGzt7ltKqkuptKrOME2a4vG29 GRy3eGiTQxhfS+6ECvvCXxQ8ePBWi6dBbKy4ynXBovIrGGlc1l+aRyPZ5 W9mBjBOC7qZIo8WOFk+R4zXh8JFbgZUu94fTf/CrVPFOZOox/XYeiMy7C ZNCPpxe1EGYWgTijm7gZCQXVde6KZP8mxOLAdBHU7KdJIcqD5SIbWmNoL Cavak/lL3vYJLcj8hqo6F68tDYKwG1tGTFGnMY10QErcqsAXFi4InVeVX 9ms5Fe+qfSDphee++OlHwQ7SFzaRX7Gw7leuJqhAG9eK7xdZtVYEeyl+N A==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="327779468" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="327779468" 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:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="675567220" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="675567220" 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:28 -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 16/20] soundwire: intel_ace2x: use common helpers for bus start/stop Date: Thu, 23 Mar 2023 13:44:48 +0800 Message-Id: <20230323054452.1543233-17-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 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é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 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 = { .register_dai = intel_register_dai, + .check_clock_stop = intel_check_clock_stop, + .start_bus = intel_start_bus, + .start_bus_after_reset = intel_start_bus_after_reset, + .start_bus_after_clock_stop = intel_start_bus_after_clock_stop, + .stop_bus = intel_stop_bus, + .link_power_up = intel_link_power_up, .link_power_down = intel_link_power_down, -- 2.25.1