From patchwork Thu Oct 3 08:11:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 13820753 X-Patchwork-Delegate: kieran@bingham.xyz Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EC5E80C13; Thu, 3 Oct 2024 08:11:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727943120; cv=none; b=Be/JqVBZij5XmLRCH4qoRIWIns+BRiIyG8q+vViArEdCYqr3AHgh2wmrmC0Z+gqDK95WOCjsEjShiUuqoz+ty4qFWpZFgCZqtnsr48F7rbXZ4Vk+iK94ppLVmmJzIjOEQncweT7JRFbtFiXOl93YEz+CDP5eWzvtpk2B2hXFr20= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727943120; c=relaxed/simple; bh=c0aPNYyT2aNvpmd39WPTLlHVa9UHwudfGT5MHwTBIzU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rpOpibbGnLBi7u+NtS39L28w6zKbA6Exj9286x7nIdX4SQ9rlCt5rETgJsbsGugQV/gbOoDobEudssnpByOu+a+BoQ3SFSWX2AMyekW9AGn4h7tGNDU6+a81fA52GxB6+Fwr7Snkr7S4omi9pSkFHGS8mXOQFaherVR5DddCEmk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-IronPort-AV: E=Sophos;i="6.11,173,1725289200"; d="scan'208";a="220674251" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 03 Oct 2024 17:11:51 +0900 Received: from localhost.localdomain (unknown [10.226.92.119]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 92F2B41A1B7A; Thu, 3 Oct 2024 17:11:43 +0900 (JST) From: Biju Das To: Jaroslav Kysela , Takashi Iwai Cc: Biju Das , Liam Girdwood , Mark Brown , Jernej Skrabec , Rob Herring , AngeloGioacchino Del Regno , Lad Prabhakar , =?utf-8?q?Uwe_Klei?= =?utf-8?q?ne-K=C3=B6nig?= , linux-sound@vger.kernel.org, Geert Uytterhoeven , Biju Das , linux-renesas-soc@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH] ASoC: sh: rz-ssi: Use SSIFCR_FIFO_RST macro Date: Thu, 3 Oct 2024 09:11:38 +0100 Message-ID: <20241003081140.31332-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Use SSIFCR_FIFO_RST macro to make the line shorter. Suggested-by: Nobuhiro Iwamatsu Signed-off-by: Biju Das Reviewed-by: Geert Uytterhoeven --- sound/soc/sh/rz-ssi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 040ce0431fd2..6efd017aaa7f 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -311,8 +311,7 @@ static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate, ssicr |= SSICR_CKDV(clk_ckdv); ssicr |= SSICR_DWL(1) | SSICR_SWL(3); rz_ssi_reg_writel(ssi, SSICR, ssicr); - rz_ssi_reg_writel(ssi, SSIFCR, - (SSIFCR_AUCKE | SSIFCR_TFRST | SSIFCR_RFRST)); + rz_ssi_reg_writel(ssi, SSIFCR, SSIFCR_AUCKE | SSIFCR_FIFO_RST); return 0; } @@ -343,8 +342,7 @@ static void rz_ssi_set_idle(struct rz_ssi_priv *ssi) dev_info(ssi->dev, "timeout waiting for SSI idle\n"); /* Hold FIFOs in reset */ - rz_ssi_reg_mask_setl(ssi, SSIFCR, 0, - SSIFCR_TFRST | SSIFCR_RFRST); + rz_ssi_reg_mask_setl(ssi, SSIFCR, 0, SSIFCR_FIFO_RST); } static int rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)