Message ID | 20250128063624.1922470-2-Vijendar.Mukunda@amd.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2060.outbound.protection.outlook.com [40.107.220.60]) (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 6BCDE5789D; Tue, 28 Jan 2025 06:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738046214; cv=fail; b=QzFmyphg6xPDG+s7US6Yq3Vlf29TgCWLftT+Q2eH1AaChs7gMnZoJSq/XN1u8zhpxH/XFemwQggkUjbx0NxKgj3iQq2o0JHwPlAKmZWcL5iCtmlTmgbIWnindU5VSDGOfNq6Z4X3q/DeLQoz9/die3oKS2ZkedwFenotS0TLEvo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738046214; c=relaxed/simple; bh=zM2zh0uJM8rvEjfNegpihH264PTE4XAZU4iWLdI353Q=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Xt8bPNp3FGFGc4i9H4mFnMVgIjk8TpkKDcF6uQVer5qqN0jGWT9O10jstk4zaXlFRN/xkUpfnm2Uy+nDaoZdwXehw1+lAHjcuBKOMs1/Is1ybrOWXuej8ydODoaDFlq29mGWQLHYPydK7Pg7P61HPOB3H5qWynxxlMspFMdz42o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=eMBvkSg9; arc=fail smtp.client-ip=40.107.220.60 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="eMBvkSg9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tOnCw/UdQA2NLSBpjfmAkqPqpXUrTsZbdvo1sEwhFQCrh5GFIHpyzpCMIqBr9PhYHkSQhtWIoL34zGFGT22KaiJvQV+rNWlE+VgFdH/cFtAQ8iEDrwuQGo01sSubOO245HvDz28yy8uENm3ZLMB1Hqe9F+gDq+gE/qhuOugMu6TcGRiR1I241T+vnCNJlQCv4YXA2syhP8YN5OKxDsd6NCEhmm1F2O3fQ7e2sT/KyBb4UV6AQ3nUuSdn9qkSCf4oBhm5vXK94QfVqeutNgk5Xq7Uon9113Wv942n3ukjFJtu9oNjhDvQGWUvELhn52uIPwCVfysd77PKTHpsE+sP5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PLKy6dTIYcrqkT+OBBEkmVnloXRQGYN6kFXV5rWHDsk=; b=mfnEFUrDA9xkW/uN41NGgIALfrnRcZF98NOLUlIwKmOyFHxpLGehXgSADjxWshGj785bk3c/cvOOnwReFsjxwL183qK6IU4uz2bn5vEHDA9eDJUyOlJRWrbX6sya95DHC6jjnufKe0kigEO9FSWWRy9JBqgE4RuEda/glXhmmBChlx6fbJ4Qbg8344ryxu2kqZs1XptfJ11nrX1+nDiBsZPGKQJXVkAdrOBSYbQjb6Ih83EuQ6HUkUTC9DEW0fSIDFWZ/CZMfqBcbJGeiVyz6JFtmcpaPeC5p5gTgTNxM7Fmkp4Uh29Fg5qtv0i0B1az+Y9Z/8FyghnPVlrSjkBKOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PLKy6dTIYcrqkT+OBBEkmVnloXRQGYN6kFXV5rWHDsk=; b=eMBvkSg9qsE/YcmGalQENSmt88jjQhk/6WRWxS1Cojl8pIc99egLwgNC+hiYmhYyXvDdIxulboZkmH7DpeFSGXQwMt67GBbOWYafuUDDukak1b6YWoUHU5EPn4u1i/S6PmuhlBqOh+qUkROeTtdjKRyQ9fkt9OXHEGlyMrY9sGM= Received: from MW4PR03CA0334.namprd03.prod.outlook.com (2603:10b6:303:dc::9) by DM4PR12MB8522.namprd12.prod.outlook.com (2603:10b6:8:18f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.22; Tue, 28 Jan 2025 06:36:44 +0000 Received: from SJ1PEPF00001CE2.namprd05.prod.outlook.com (2603:10b6:303:dc:cafe::b2) by MW4PR03CA0334.outlook.office365.com (2603:10b6:303:dc::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.21 via Frontend Transport; Tue, 28 Jan 2025 06:36:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SJ1PEPF00001CE2.mail.protection.outlook.com (10.167.242.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8398.14 via Frontend Transport; Tue, 28 Jan 2025 06:36:44 +0000 Received: from vijendar-X570-GAMING-X.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 28 Jan 2025 00:36:39 -0600 From: Vijendar Mukunda <Vijendar.Mukunda@amd.com> To: <vkoul@kernel.org> CC: <alsa-devel@alsa-project.org>, <yung-chuan.liao@linux.intel.com>, <pierre-louis.bossart@linux.dev>, <sanyog.r.kale@intel.com>, <Basavaraj.Hiregoudar@amd.com>, <Sunil-kumar.Dommati@amd.com>, <venkataprasad.potturu@amd.com>, <Mario.Limonciello@amd.com>, <linux-sound@vger.kernel.org>, <linux-kernel@vger.kernel.org>, "Vijendar Mukunda" <Vijendar.Mukunda@amd.com> Subject: [PATCH V3 1/6] soundwire: amd: change the soundwire wake enable/disable sequence Date: Tue, 28 Jan 2025 12:06:19 +0530 Message-ID: <20250128063624.1922470-2-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250128063624.1922470-1-Vijendar.Mukunda@amd.com> References: <20250128063624.1922470-1-Vijendar.Mukunda@amd.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: <linux-sound.vger.kernel.org> List-Subscribe: <mailto:linux-sound+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-sound+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00001CE2:EE_|DM4PR12MB8522:EE_ X-MS-Office365-Filtering-Correlation-Id: 695fc11c-bc51-404d-9848-08dd3f6621bd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|82310400026|376014; X-Microsoft-Antispam-Message-Info: PjF3cwYD5g0zFhDEAHT1tyYEiUk5y8KtGFEcCUHUDsfbc6u1iWiPhXH+2D8D3jdsKY2eMfKjzrkcTRQo+hkh7kFiR+CFl+FGSwG+l3qAsvColN1ljOx85xu/tcadH0fka1xbStj5DBcYpxs24mtneuZ//j2yUHkSQC31m23/RKaZWhMHblj2y6HFnzFGvi66UDeGvkbR/YOINg+SLElESx0vDH2w7HPjcmLqLm1tpbAwQKKeMLGHb1/4PNQk+xsbA/N8y4Wdy9d8Enyssp6fq7ItKl/2HS1w3GGeVbnWgxzW9XyFTLpADV6p9JbLP+YNCid2w/L57qrrvaj/NQqHTADOR2Trdi93HIyV5NFQ4uHvu92byl2RtxRdofaetJi0qS0Mc+TNhEBtQarhQGNikaUjEnPkWHaM/FNDuma33f+kj/CI7lW047ifEy55v42ThXlRTf7uBQFjgLbsQCSvUanwPBHqVBqKYyE2d2CUhwzDH7DAROxuEWkzcZl66GKk+vDaMstq+ZDcZjOWcXtCSis+ERGJfuxAi/q7PNuitQt6WNMkb9atloIZ0vFZCqiUIM8Q44PzK1JJUXOtcIyDZMZiZIxvHXitZy8MeGiww/vxUOqMHozovnGZYiZXM6cn7aNBxC0/TlZVVBLccMBqVAfkfHmU+7Xjm653b7c4gegkmfR5DJLUrdnlZm/lfG8jTsPsQkO/fd8vYpkhvEpVL7stI6EXKTwAqDJxfkklkXi1nztXYo5XI2pmjpVg/sVZYfN+STNME6IAI5W5V+g4+DWUCt2JyLCHlPoqLVlQk+y/Xw7ClVF7Bj0V1VaZEO6wCTmRkZbRQFfHcX6d5MIHfHUMy9MKQ7Ln9r5kkF5n14cznXnPTFweVXfiK+Vbg6kwsONLUDUEHSG2YN5MvdQ8DHjULlj7Zow1wy8Be+Rk86/UWPcunC9yDJuS2Ok5IfoAa4ivRQMlrPgsQfWT1vzfnNEG+J0VMeiusm/LQzrHDW8k4yn7AVFvAmaFg1+YYMCnB+N2krzOJcXyPS6gSDRMYCmybkPphWgHVZx8WB8FFFly9TDAZ6BB9EVG6mUGfKq0Hw1BO+Jyn7g1XNUqtjapxfCslB98B3pH7ZqlTTXqyXD0So0MxleKt9asf9kVxvS1PUUcFfp+Meb0cgeTn2YAbS0DvouKRaYl2atCjdovHJoaO+sY4Ek2jay30NhHmGCtTb0ugG6KNxZ30bG8mKqiibshn9/my+P8xDLx1n0ATW6atfPPlZuWe7aYeymiR7qADuAR0wCbOkbmWkjS8Hmkm9OefQH4h6DHCO727KW/DxPsnddpY6jIQb6gFhdZslZuj4CXz28pW2n8IkugbtzjFh9FRu/pTH7Xj8kExINzBQA3Kz+I1dD7fKp3cY3fOaJtAVV1UHq5h949jE1se3Cs6gUserktysgxNvzstF/MUxbi1VZzNGjgM1q1+APQyCfugD8/ONpnpwcYSDUOD5IV9IOgLDChs3WgtkvG1YiyyaY= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(82310400026)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2025 06:36:44.0204 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 695fc11c-bc51-404d-9848-08dd3f6621bd X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00001CE2.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB8522 |
Series |
soundwire: amd: code improvements and new platform support
|
expand
|
diff --git a/drivers/soundwire/amd_manager.c b/drivers/soundwire/amd_manager.c index 71b3cf2df89d..187006e68ad6 100644 --- a/drivers/soundwire/amd_manager.c +++ b/drivers/soundwire/amd_manager.c @@ -1139,6 +1139,7 @@ static int __maybe_unused amd_suspend(struct device *dev) amd_sdw_wake_enable(amd_manager, false); return amd_sdw_clock_stop(amd_manager); } else if (amd_manager->power_mode_mask & AMD_SDW_POWER_OFF_MODE) { + amd_sdw_wake_enable(amd_manager, false); /* * As per hardware programming sequence on AMD platforms, * clock stop should be invoked first before powering-off @@ -1166,6 +1167,7 @@ static int __maybe_unused amd_suspend_runtime(struct device *dev) amd_sdw_wake_enable(amd_manager, true); return amd_sdw_clock_stop(amd_manager); } else if (amd_manager->power_mode_mask & AMD_SDW_POWER_OFF_MODE) { + amd_sdw_wake_enable(amd_manager, true); ret = amd_sdw_clock_stop(amd_manager); if (ret) return ret;
During runtime suspend scenario, SoundWire wake should be enabled and during system level suspend scenario SoundWire wake should be disabled. Implement the SoundWire wake enable/disable sequence as per design flow for SoundWire poweroff mode. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> --- drivers/soundwire/amd_manager.c | 2 ++ 1 file changed, 2 insertions(+)