From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7A20178381; Tue, 2 Jul 2024 17:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719940013; cv=none; b=IEIn20gg6F5PbRUjc7LDn5bcaYJrOpVw5eImX8dviWtr8dzhrs4yyjcnjU11w+Y5DiZGKQvL+o/E2pFn1HH5kG6y1DhzAtTldP2u43D1i3NEDBCtpInaFYC2+c6EOua99jt6xkiU1mHYPbL6QsIlAs7uv8menyHu/wInQoBxrBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719940013; c=relaxed/simple; bh=ciaLK4mZTB8Kk7uqW2iP6BlV4Uei6uflkq2jm7P3iLA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XNRCLdKXdk7vrU1rkSddUnPYAmLfBPNN/jdCsNYYpyulnh59i/O34Wm0RAPHxHBkbL6EzDRETRqlKOVls0d79lvcH0znp8PsEtTrnMi2hMX//iaqME8rjAW8ANvG61qXBRbbt4aVFXJa8eXR4P4nXhlJnWtoMBWL9Q29PLHU8aU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DTukdTY2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DTukdTY2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3719DC116B1; Tue, 2 Jul 2024 17:06:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719940013; bh=ciaLK4mZTB8Kk7uqW2iP6BlV4Uei6uflkq2jm7P3iLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DTukdTY2lNOroedWQfO7FyfEA1PApufpCjA1yNKYJ90W7zvF2BMNvMZJ08bZ4yYfg CtSRVbDu3+okd7ZOHDqFkXuY7DkKCrQ+WoMXNztPKqJCwZxnvz7uSJfZu2Wt0HAnGh FWQSrOWEm6KkOE2ZgUAWBMIkg+yArxgVR3/ViImw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vijendar Mukunda , Mark Brown , Sasha Levin Subject: [PATCH 6.9 027/222] ASoC: amd: acp: remove i2s configuration check in acp_i2s_probe() Date: Tue, 2 Jul 2024 19:01:05 +0200 Message-ID: <20240702170245.015801273@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240702170243.963426416@linuxfoundation.org> References: <20240702170243.963426416@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vijendar Mukunda [ Upstream commit 70fa3900c3ed92158628710e81d274e5cb52f92b ] ACP supports different pin configurations for I2S IO. Checking ACP pin configuration value against specific value breaks the functionality for other I2S pin configurations. This check is no longer required in i2s dai driver probe call as i2s configuration check will be verified during acp platform device creation sequence. Remove i2s_mode check in acp_i2s_probe() function. Fixes: b24484c18b10 ("ASoC: amd: acp: ACP code generic to support newer platforms") Signed-off-by: Vijendar Mukunda Link: https://msgid.link/r/20240617072844.871468-2-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/amd/acp/acp-i2s.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sound/soc/amd/acp/acp-i2s.c b/sound/soc/amd/acp/acp-i2s.c index 60cbc881be6e1..ef12f97ddc69e 100644 --- a/sound/soc/amd/acp/acp-i2s.c +++ b/sound/soc/amd/acp/acp-i2s.c @@ -588,20 +588,12 @@ static int acp_i2s_probe(struct snd_soc_dai *dai) { struct device *dev = dai->component->dev; struct acp_dev_data *adata = dev_get_drvdata(dev); - struct acp_resource *rsrc = adata->rsrc; - unsigned int val; if (!adata->acp_base) { dev_err(dev, "I2S base is NULL\n"); return -EINVAL; } - val = readl(adata->acp_base + rsrc->i2s_pin_cfg_offset); - if (val != rsrc->i2s_mode) { - dev_err(dev, "I2S Mode not supported val %x\n", val); - return -EINVAL; - } - return 0; } -- 2.43.0