From patchwork Wed Jan 4 05:54:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 38740 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4985763wrt; Tue, 3 Jan 2023 21:57:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXt9vjfKsxePXf75dr5WWTWW+mO2u/9QS0wrCYQhpXIoVhTkMYHUx+dY5LbfQQz5Js3ZCdOa X-Received: by 2002:a17:907:c315:b0:7c1:b65:11d with SMTP id tl21-20020a170907c31500b007c10b65011dmr35898087ejc.12.1672811845711; Tue, 03 Jan 2023 21:57:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672811845; cv=pass; d=google.com; s=arc-20160816; b=ySS8kfgo+4RWpoPu7cI9C6SonmZ7Na1t9uJYee1IHFLH8L+nyMsNZ3VgKcMzbLjHWV gDqdZxkDRO/HiBHfY6P1s9psCMRMawnhS2NrY6viEMprXH/3nTo3hopdt34VYv/JdaZk HkeodFshp+F3OBkdAOXqnEbfKOG59gI8oZuKtaX8czYrUA92MBTddDEb85Dy7GRnA6u1 v9uD3gHcSWYiljRFkDDmgUM44zldJ0/wfKuzHTo2GoaIicHUcbMiJrYIdPkA5I/8LXja 6rY4XCO/9d6ER8YarNq236kXO+RqbFtMs+FXGCvJjpYjX1RNm9cKpMGi/wCu1B02pPPD OArA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=W063qyT5V4Lac7vqpCyndCjRw7AfdNFpX6Aiz4Z+UKc=; b=my7u1jGReNXSlJX68JbzvfFTCxceGqQhhRYIVyUgABgpmfGEUBswDQJHrp8KflXG9H pki0nZcxWMUEWDieWanjfA0AkGTH8uD54uCegbUctNxZ6jdOdo11A7TYsCLyJVShOA2N vQ/CLhDLrAP4EN3H/Syq70jJUFgH/iZGZeDzY39rYeALMIWzV7n2T0t08UgqHaDUgqlA rMKnKZ12LQ1KjtGIyaBa7KcRYkl+Nf4uaRP23s3qc2kfuPn7JcDtq0qCY76H/Gjc6v4f riwaPElxAx8HFx42Oc4KowxSi/HwihXo9YI96RxblON3Bt6Frbd9iIcJbN92xoUFEfkC CjTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=eXdfy0OW; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ml21-20020a170906cc1500b007c01c6cf01dsi24343333ejb.800.2023.01.03.21.57.01; Tue, 03 Jan 2023 21:57:25 -0800 (PST) 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=@amd.com header.s=selector1 header.b=eXdfy0OW; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230019AbjADFwW (ORCPT + 99 others); Wed, 4 Jan 2023 00:52:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjADFwU (ORCPT ); Wed, 4 Jan 2023 00:52:20 -0500 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2063.outbound.protection.outlook.com [40.107.244.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7713313DE2 for ; Tue, 3 Jan 2023 21:52:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZxumAnIDMolj4nNZNrBGl/ZdKJBZ729ufL2PUkvLaYoxnByS6Dcpx1swXz+9wKX1ezX2326ZBHLnvZmNmW/HuNdo+OWr1bP1hlOeZnxk/OOrIlXIgenqZfHEC4iUj9PCQV6bYWBK6nje64KrZdv00yq0GoMA+MvQUY8e5J00MZaeYQfFHXnZ6Q3tEbZQnHvOa953Lrf1YHLIZDuIlln2DZBTyU0nTwTm+J/kOq7bXXxGoOkV3U1B0gjkAoSw5NkMGIAHIbvtXjtlReK1FVrVFpEG1N1FSPHSr1b40F0I5/87VBvwutnuJiabtKs98XDULgMQhC7+5FjFsuv1+b8wlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=W063qyT5V4Lac7vqpCyndCjRw7AfdNFpX6Aiz4Z+UKc=; b=AeV68j6Haxv/239InPTvS5L1sd5cf+7jpBq2Dgg4Eg2KYzB1Gp3UNi9cbvaN3D0Y1kY29NBGqTTFv3oizh5NzD9erGPUAWMRmvke5+DksvPoyAqLB+WmkNtiNIkH+rFrCrHRKDpV0obO0RGDF2QxY1E0H5rr75h/rxm/uNaBqagFtOfF/QEGNn6b4JtgQH++JPU0OKZV257VEIn06LB3Prr6ioG9zTGQngBCKjLHA3tRTZfw0UAF1uXVP7DeorqYnxWq99B5bsccCpkWntWfn3J8af2RzhFADaKh2+4ftWr0pIeWO91PVl97CIvW0tnHTzj2SVOJQapYAlURJQl9aQ== 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 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=W063qyT5V4Lac7vqpCyndCjRw7AfdNFpX6Aiz4Z+UKc=; b=eXdfy0OW+lVUTTVo6eghq9bBtC7jR5ZPtxuMS4MJGCOm32D7i/s4rdygnaEiPI5yiNwrupj3OlZ7kAQtcjpiNa276Lr+jBxhFXBXGsxTEky+SXvPU+EJpNNaAOUfXWI1ZcrAAuuBMksEZsRAjraa6xNynkAFKqgeIbJ99o/MJ0s= Received: from BL0PR01CA0007.prod.exchangelabs.com (2603:10b6:208:71::20) by SA3PR12MB7860.namprd12.prod.outlook.com (2603:10b6:806:307::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Wed, 4 Jan 2023 05:52:16 +0000 Received: from BL02EPF0000EE3E.namprd05.prod.outlook.com (2603:10b6:208:71:cafe::49) by BL0PR01CA0007.outlook.office365.com (2603:10b6:208:71::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.19 via Frontend Transport; Wed, 4 Jan 2023 05:52:16 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL02EPF0000EE3E.mail.protection.outlook.com (10.167.241.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.10 via Frontend Transport; Wed, 4 Jan 2023 05:52:15 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 3 Jan 2023 23:52:15 -0600 Received: from vijendar-X570-GAMING-X.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Jan 2023 23:52:06 -0600 From: Vijendar Mukunda To: , , CC: , , , Vijendar Mukunda , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , open list Subject: [PATCH 1/3] ASoC: amd: ps: add mutex lock for accessing common registers Date: Wed, 4 Jan 2023 11:24:29 +0530 Message-ID: <20230104055435.321327-1-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3E:EE_|SA3PR12MB7860:EE_ X-MS-Office365-Filtering-Correlation-Id: dec19e1e-11a8-4b6e-8619-08daee17d56e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ip8WcKmjJnwLGrMXWuNOtjBZCHdc0e2KHxEsHViP2rhS5FUzENM0EW7f+gE2F0Zrb9jwPu2VWmeTfkV3mXxdhoRuLJxdMP1ympAVq2Ei11GbUYYGjZ/1SkQ1l4fnExQGIwiHisG8qxGEb8ExeWlFLpvPg+ktNsA3b+8mycX9VSl9uIxNINvHvNOXNH1aDxcJe4cbbcD+deVGB9VqvYQF4NmAVPyZoLIcSZ9sOMgNZdu63y/X4ragF1M8apLcvF+lC0t82L+Qyl08aetJvQJitcJtcFOl9neAT8zMwIeiX1Bry46gga2HhHjayKskUWB8mdmoBDtOJ3KuSyO8wYyozZpXOhMtrxxkECaNNZ79Pj1T8xJDa7qx1v6TbV7XXMNkgEI00JRHwF0U2cJ3PKJFQBoaXWmNvw8Nj9e1CuhxwiL56avkPKpOdkVJfCqLfexUpoFqTnQg10fFMe0a9x08cqm2kFV40D0+ZxEzNRuRz6z243wTOwBgVyPGZ6oQJpteoSPalojQ6vmAvZjtXL3G88KEPD09Y/U3U1t+410z0UKkynnq7/cFM2idJk2OqPUE7kamI6b1d5TzO6mjFi0wMn56k0kMJlF03BWw1uug7igMnPZhq6jI7nwt/4cki70Y378FaUdtRaYgNSqjA3F7nW+c4yBSxAPeEF+zRD7nRt4sanuuuO0DHfTWoYlltqA6sqQe6Xq2Ah8Qg3uMty6sSQrbdQ0ZKUfpAsroenB5Teg= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(346002)(396003)(376002)(136003)(39860400002)(451199015)(36840700001)(40470700004)(46966006)(82740400003)(110136005)(36860700001)(478600001)(40480700001)(40460700003)(5660300002)(36756003)(2616005)(1076003)(8936002)(7696005)(47076005)(4326008)(70206006)(70586007)(41300700001)(8676002)(356005)(426003)(316002)(81166007)(6666004)(26005)(82310400005)(83380400001)(336012)(86362001)(6636002)(54906003)(186003)(2906002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 05:52:15.8326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dec19e1e-11a8-4b6e-8619-08daee17d56e 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0000EE3E.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB7860 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754070354207048420?= X-GMAIL-MSGID: =?utf-8?q?1754070354207048420?= Add mutex lock for accessing ACP common registers across different modules. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/ps/acp63.h | 1 + sound/soc/amd/ps/pci-ps.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/ps/acp63.h b/sound/soc/amd/ps/acp63.h index 8f024cb309c9..47854280dd4b 100644 --- a/sound/soc/amd/ps/acp63.h +++ b/sound/soc/amd/ps/acp63.h @@ -106,6 +106,7 @@ struct acp63_dev_data { struct resource *res; bool acp63_audio_mode; struct platform_device *pdev[ACP63_DEVS]; + struct mutex acp_lock; /* protect shared registers */ u16 pdev_mask; u16 pdev_count; u16 pdm_dev_index; diff --git a/sound/soc/amd/ps/pci-ps.c b/sound/soc/amd/ps/pci-ps.c index 401cfd0036be..6335595ec5b9 100644 --- a/sound/soc/amd/ps/pci-ps.c +++ b/sound/soc/amd/ps/pci-ps.c @@ -209,7 +209,8 @@ static int create_acp63_platform_devs(struct pci_dev *pci, struct acp63_dev_data case ACP63_PDM_DEV_MASK: adata->pdm_dev_index = 0; acp63_fill_platform_dev_info(&pdevinfo[0], parent, NULL, "acp_ps_pdm_dma", - 0, adata->res, 1, NULL, 0); + 0, adata->res, 1, &adata->acp_lock, + sizeof(adata->acp_lock)); acp63_fill_platform_dev_info(&pdevinfo[1], parent, NULL, "dmic-codec", 0, NULL, 0, NULL, 0); acp63_fill_platform_dev_info(&pdevinfo[2], parent, NULL, "acp_ps_mach", @@ -283,6 +284,7 @@ static int snd_acp63_probe(struct pci_dev *pci, } pci_set_master(pci); pci_set_drvdata(pci, adata); + mutex_init(&adata->acp_lock); ret = acp63_init(adata->acp63_base, &pci->dev); if (ret) goto release_regions; From patchwork Wed Jan 4 05:54:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 38741 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4985944wrt; Tue, 3 Jan 2023 21:58:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXt/9w4WkS7b3hvgXHaTvjRplVSEfn6i/Yp1Ky+Ri8addTAgrg8L4OuUedc41nnrv328Jf2w X-Received: by 2002:a17:906:30c2:b0:7ae:c0b:a25c with SMTP id b2-20020a17090630c200b007ae0c0ba25cmr36618653ejb.13.1672811884295; Tue, 03 Jan 2023 21:58:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672811884; cv=pass; d=google.com; s=arc-20160816; b=GOYexCLEm2H/aXpkp3yjoygG1Nu8CgomI1ySWmtoOVstsKC6ZdjMp1AcIQfu2it1Bi 03iHTwG1MSr6CXHYR50AZOpeiYr8CS/uMydTd/0cIxmQyxrEFhUjc+6xSr3Y+LbiSjiw PUrVSM2cmm8m7+cD/H9R6m85R1WzFWs5SnSbeYZ+6Wz/Tgp1Tdt7yBV2Qzp7Lq4m/pI1 jVRyAs17fFWK8JPr+GM4/iOjdmf+SbKn1zQYgo4HXuH3QcW0uz0d05+YjYwOPOiKS6Pz kYpwIl4gLxxjBiBO8RJpRi1zHk/qOw+Kk57ExKWy4vKoIIABBB3mITv+tsuddjAi7dZ+ Fprw== ARC-Message-Signature: i=2; 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=8+nKbPVyX5niL8SFTJW0M6tCw6naP9EGagVYfPmG1lQ=; b=F/zy+vOModoGpZ0Ms+PchDYNn+NhEcqLVHyylUA478eaVtSThzgM3Qdnt6fvx49PsR x2IC5Zi38grnavEtRrlBgS3IsAQkzuPfGkE8dRhadWWc7r0gCkURBhLME0O1djq3YVMD ScYPaHW4p6KcJTgDokwanX4EknfbdAkg1Vg6SJu7S145pVR4/aWNJrCw9wZDK9yiBATO 7I5Om1ybWdOB3Gp2BNpm+thELO+4yraPv5S4mQd5B8g+EX5u+eqIhNBIn2afh3j/jS5W ZkPkWKyu22/dAaq2urTvSwK4BtX6+agxftYPoUKmh5KCgD6f8PBLjBBXhnatOk9i1jr+ ZCSQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="YS4w1/eZ"; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp41-20020a1709071b2900b0084cd1ecf317si5496551ejc.709.2023.01.03.21.57.41; Tue, 03 Jan 2023 21:58:04 -0800 (PST) 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=@amd.com header.s=selector1 header.b="YS4w1/eZ"; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231201AbjADFwg (ORCPT + 99 others); Wed, 4 Jan 2023 00:52:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbjADFwe (ORCPT ); Wed, 4 Jan 2023 00:52:34 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2085.outbound.protection.outlook.com [40.107.93.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DD4013DE6 for ; Tue, 3 Jan 2023 21:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lGTjleWoGhk3xszs1huFgen/jEx+/e+xtHE4NxuFDpyihnQcpDVRCmTye0QATk+La4CNttiXRnQnY/eDzpT0u+MJnSPHv6hGb6vGmq04+hrf1qQfFKWPyBK3X34YKhEp+xe2ZH4sg2f7quBEy+F+OV1NqpX/CFNW4zHrsZuTD0BeR4z71bFevA24jZc0AyCtZYcAegs2XohaTBUuEeNf3J7Wx0l4YRarZKwWZdOBwxhFTOfrfhHHqvKIplOt54Ks5Vc5cjQ8oTsm2EwwZ3/LECNeDiCSvknnccOre1cCbfFKe0cJUunVab1T6RNlFsKTRI6gWNgeBXa6Y574x8sMaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=8+nKbPVyX5niL8SFTJW0M6tCw6naP9EGagVYfPmG1lQ=; b=XyxQevrhoXion2sP2lyvUE9xEaE4POMxeDBOZydJY5lVwBfM2MnUoIEijhthpl7idgn5MkkFuak6wJ/09dPu7ur54eF/F56CSOt5VZbK1UBpsoX04dR1kH+JY/srBVcAnmQdgbaty6uTVxmv1w94hLgBEAO4xq5mf8kKsocxDhIqjoSTu4O1z9N+HsL0KTa5mevxMgtzL+rp4e0tMdzS5/UKMzqfmlQUV7ZOzHkdv2B5DhIkfQE3OsgN8Pxj59HKWASj2JgC00WtZl2dZwaPuu7OmMiyF617CEeuWYpKOyG8irwO79/N9gyTsIZY/awHDY3k4D9Kmwjfn1GVXNH6vg== 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 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=8+nKbPVyX5niL8SFTJW0M6tCw6naP9EGagVYfPmG1lQ=; b=YS4w1/eZgedsydPGmyX5jxJNAM+K8pLpTaEo2JlJPRPBWz8+NXmC9+v3Ny2eRuolx7/FJbSLc7FmXTYIewz1ZjedVgOjwGJIh0HcP5OrpWU6bKPgHwfAQBvc3siQ0RMn+gQqPQadW8uZZyyW0XFO2mnRaU4AGsAF+mTExf90bTk= Received: from BN0PR04CA0160.namprd04.prod.outlook.com (2603:10b6:408:eb::15) by SN7PR12MB7978.namprd12.prod.outlook.com (2603:10b6:806:34b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Wed, 4 Jan 2023 05:52:29 +0000 Received: from BL02EPF0000EE3F.namprd05.prod.outlook.com (2603:10b6:408:eb:cafe::a9) by BN0PR04CA0160.outlook.office365.com (2603:10b6:408:eb::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.19 via Frontend Transport; Wed, 4 Jan 2023 05:52:29 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL02EPF0000EE3F.mail.protection.outlook.com (10.167.241.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.10 via Frontend Transport; Wed, 4 Jan 2023 05:52:29 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 3 Jan 2023 23:52:28 -0600 Received: from vijendar-X570-GAMING-X.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Jan 2023 23:52:19 -0600 From: Vijendar Mukunda To: , , CC: , , , Vijendar Mukunda , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , open list Subject: [PATCH 2/3] ASoC: amd: ps: use acp_lock to protect common registers in pdm driver Date: Wed, 4 Jan 2023 11:24:30 +0530 Message-ID: <20230104055435.321327-2-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230104055435.321327-1-Vijendar.Mukunda@amd.com> References: <20230104055435.321327-1-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3F:EE_|SN7PR12MB7978:EE_ X-MS-Office365-Filtering-Correlation-Id: 4028d5e4-1787-4426-7c44-08daee17dd59 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fucM5/WiTHHNUXWTokXm/yVJFSn+TTq6gko5mY7RPFbwHyJr9EXnIEeeERYtlLjod5HxPiOx5P88Ajd7VrNJqVIr3VQYqlszIMvMyuROHDMJWZKjf0wA4JQzTgleh+JmfAPZ4nRWudP20baFF1HyuEFtewHwnGG4Aye3jrYLir27w033r1uP8656sQzWrZ/jISaXmOV+Uv74allCBbOeH+E5jLiyV4OZ1IT7yu/2AA7fZ3QVvtU4lA/Ggj2YIc9q3wWCmND3iO4/sY1Nl+sIa00an00RbTQmD0Qoz8Q8NmASDgIWCTJUEOSLpYFKlUFC06tVYD/8BeoBcYG8UwokDXfcbg32opUCK/GoUPctbvHSt8jyYtCGvqrZIph5IbDSogUo3DjztvwciHGJXFbRn/wWzF/JW62EG4pkBetf1naepeaexiV2W9C5pHygl/BN67Vl2Nei2Iaapu5xxChxrQtn6DlUKuwBTM63OeCUQCQAEAIujOaCTRFjDzQrjQs4BuZYgiM7g4SDrj8tx6lxfr+WY4thT3JJX+Ib9x4/7ZVIpIiMgnrPALHJaxDWcDBxJg6sWhVX2rzSiF/B+x86sTJzRchCLfh5Px1JldkS6MMvQUpVddeBZOoAQXjFJ2Drlw7isDJ4oLGpH/aMbjqITcCMfwCABzBv/F1WYC3BynhoSJvBGBci6HFDuvq281NWpq72goHu4xHVm+UealKlsepJOjW9HZac2Iu4sSCXUT4= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(396003)(39860400002)(136003)(346002)(376002)(451199015)(40470700004)(46966006)(36840700001)(8676002)(8936002)(5660300002)(4326008)(2906002)(6636002)(41300700001)(54906003)(110136005)(70586007)(70206006)(316002)(6666004)(7696005)(478600001)(186003)(26005)(40460700003)(1076003)(47076005)(426003)(81166007)(336012)(2616005)(83380400001)(36756003)(82740400003)(82310400005)(356005)(36860700001)(40480700001)(86362001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 05:52:29.1166 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4028d5e4-1787-4426-7c44-08daee17dd59 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0000EE3F.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7978 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754070394617192217?= X-GMAIL-MSGID: =?utf-8?q?1754070394617192217?= Retrieve acp_lock mutex as platform data and use it for protecting ACP common registers access in acp pdm driver. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/ps/acp63.h | 1 + sound/soc/amd/ps/ps-pdm-dma.c | 32 ++++++++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/sound/soc/amd/ps/acp63.h b/sound/soc/amd/ps/acp63.h index 47854280dd4b..e0160cbf5447 100644 --- a/sound/soc/amd/ps/acp63.h +++ b/sound/soc/amd/ps/acp63.h @@ -88,6 +88,7 @@ struct pdm_stream_instance { struct pdm_dev_data { u32 pdm_irq; void __iomem *acp63_base; + struct mutex *acp_lock; struct snd_pcm_substream *capture_stream; }; diff --git a/sound/soc/amd/ps/ps-pdm-dma.c b/sound/soc/amd/ps/ps-pdm-dma.c index eea71a9d2ef1..8957d8f8d3c6 100644 --- a/sound/soc/amd/ps/ps-pdm-dma.c +++ b/sound/soc/amd/ps/ps-pdm-dma.c @@ -59,22 +59,26 @@ static void acp63_enable_pdm_clock(void __iomem *acp_base) acp63_writel(pdm_ctrl, acp_base + ACP_WOV_MISC_CTRL); } -static void acp63_enable_pdm_interrupts(void __iomem *acp_base) +static void acp63_enable_pdm_interrupts(struct pdm_dev_data *adata) { u32 ext_int_ctrl; - ext_int_ctrl = acp63_readl(acp_base + ACP_EXTERNAL_INTR_CNTL); + mutex_lock(adata->acp_lock); + ext_int_ctrl = acp63_readl(adata->acp63_base + ACP_EXTERNAL_INTR_CNTL); ext_int_ctrl |= PDM_DMA_INTR_MASK; - acp63_writel(ext_int_ctrl, acp_base + ACP_EXTERNAL_INTR_CNTL); + acp63_writel(ext_int_ctrl, adata->acp63_base + ACP_EXTERNAL_INTR_CNTL); + mutex_unlock(adata->acp_lock); } -static void acp63_disable_pdm_interrupts(void __iomem *acp_base) +static void acp63_disable_pdm_interrupts(struct pdm_dev_data *adata) { u32 ext_int_ctrl; - ext_int_ctrl = acp63_readl(acp_base + ACP_EXTERNAL_INTR_CNTL); + mutex_lock(adata->acp_lock); + ext_int_ctrl = acp63_readl(adata->acp63_base + ACP_EXTERNAL_INTR_CNTL); ext_int_ctrl &= ~PDM_DMA_INTR_MASK; - acp63_writel(ext_int_ctrl, acp_base + ACP_EXTERNAL_INTR_CNTL); + acp63_writel(ext_int_ctrl, adata->acp63_base + ACP_EXTERNAL_INTR_CNTL); + mutex_unlock(adata->acp_lock); } static bool acp63_check_pdm_dma_status(void __iomem *acp_base) @@ -196,7 +200,7 @@ static int acp63_pdm_dma_open(struct snd_soc_component *component, return ret; } - acp63_enable_pdm_interrupts(adata->acp63_base); + acp63_enable_pdm_interrupts(adata); if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) adata->capture_stream = substream; @@ -272,7 +276,7 @@ static int acp63_pdm_dma_close(struct snd_soc_component *component, struct pdm_dev_data *adata = dev_get_drvdata(component->dev); struct snd_pcm_runtime *runtime = substream->runtime; - acp63_disable_pdm_interrupts(adata->acp63_base); + acp63_disable_pdm_interrupts(adata); adata->capture_stream = NULL; kfree(runtime->private_data); return 0; @@ -353,6 +357,10 @@ static int acp63_pdm_audio_probe(struct platform_device *pdev) struct pdm_dev_data *adata; int status; + if (!pdev->dev.platform_data) { + dev_err(&pdev->dev, "platform_data not retrieved\n"); + return -ENODEV; + } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) { dev_err(&pdev->dev, "IORESOURCE_MEM FAILED\n"); @@ -368,7 +376,7 @@ static int acp63_pdm_audio_probe(struct platform_device *pdev) return -ENOMEM; adata->capture_stream = NULL; - + adata->acp_lock = pdev->dev.platform_data; dev_set_drvdata(&pdev->dev, adata); status = devm_snd_soc_register_component(&pdev->dev, &acp63_pdm_component, @@ -408,7 +416,7 @@ static int __maybe_unused acp63_pdm_resume(struct device *dev) acp63_init_pdm_ring_buffer(PDM_MEM_WINDOW_START, buffer_len, period_bytes, adata->acp63_base); } - acp63_enable_pdm_interrupts(adata->acp63_base); + acp63_enable_pdm_interrupts(adata); return 0; } @@ -417,7 +425,7 @@ static int __maybe_unused acp63_pdm_suspend(struct device *dev) struct pdm_dev_data *adata; adata = dev_get_drvdata(dev); - acp63_disable_pdm_interrupts(adata->acp63_base); + acp63_disable_pdm_interrupts(adata); return 0; } @@ -426,7 +434,7 @@ static int __maybe_unused acp63_pdm_runtime_resume(struct device *dev) struct pdm_dev_data *adata; adata = dev_get_drvdata(dev); - acp63_enable_pdm_interrupts(adata->acp63_base); + acp63_enable_pdm_interrupts(adata); return 0; } From patchwork Wed Jan 4 05:54:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 38742 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4986416wrt; Tue, 3 Jan 2023 21:59:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXuJeoADWGF7PcQMYHgyJka9jwl4w4VGNC2eYeG+FBaqkOJQW83OIsZ9y1Egicoulsxqdx/q X-Received: by 2002:a05:6a20:8f0c:b0:af:cc4e:f2f with SMTP id b12-20020a056a208f0c00b000afcc4e0f2fmr73127415pzk.34.1672811985743; Tue, 03 Jan 2023 21:59:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672811985; cv=pass; d=google.com; s=arc-20160816; b=EaDejK7AimW+SHqfwuF7tstkoqmAmn5z2gs9u+rbbUKbbe2aSFgea4jJ8fzQE5q9Sw ukLVA2szSy9HjoXxb8ywHB7hduOGXhjgwoHIkATBMbLLU5YR3Pg02mF/ndJcsY9/PImV zz2Ke/JPaNBLKsACONOhRen8CIRGc2s0FoXjgplONfLyu06vlLIpMrQhaBXWsyZPoIMs elhsaQSXGqFbZ4XD9nsejWAVHg+KpjEAPwqe9ZFGhoRfk8h3nmMoXdtRGZeVXUCSV8fh y4H29uZy63dUtd1DEvu1a47yastxK/m2Wqy+z6WQVu1+qLT8S/jboO3ZRzl31xUg9N/T PCRQ== ARC-Message-Signature: i=2; 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=erxSFN44UA3AU0z9CXtNLgAlh4sI/urADlv0rTWRUqo=; b=UqbjvgM9PJRfuGMWpUFP0tb/UpItbKoteKm6QgqwH1Oo0zO9EVgKU+ZxRHmyMUOAmm hwNLwyK408+rZZL/jyJvGrDRXDAm1iHIBrGpMMT/eBEbn8to879m0alMDBc0iTNpZ9/5 wN0pj5MbkI2ABoV39HQgCFZvyTV51ojjHcUsc71z2GoRoyKCKGjfiQbN6IrZ3u3JCwit NvGp8CwjSrwuApNExyFc1RLcR9HGBCAZSD3IkAXu2DsSVY6xPaQ2y/GYoBvbMHdQe2u7 OpNbs1xxHraQ5v0r2YCwJKp//GCTQtLh0QYuS/6Z0P+SXa2I8DJWQGY2bA8eyiT/u+Rj FOkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=zVgAm7t8; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i70-20020a638749000000b0046ef5b3572fsi34061914pge.562.2023.01.03.21.59.33; Tue, 03 Jan 2023 21:59:45 -0800 (PST) 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=@amd.com header.s=selector1 header.b=zVgAm7t8; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230251AbjADFww (ORCPT + 99 others); Wed, 4 Jan 2023 00:52:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231207AbjADFws (ORCPT ); Wed, 4 Jan 2023 00:52:48 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2053.outbound.protection.outlook.com [40.107.243.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9592E16592 for ; Tue, 3 Jan 2023 21:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i3P7dfMUJJzGsTl7eKJgiPPmGPPnJiUn9m6bOTzvHH3ofGzkCL/ervQXefhqYZFTjgbGKdnzkEU22jtnJE+JQJNdQEpyCTqbxfDIhHzN1Gf4Yn3bb2xh/vx7TlsDFBKBvtLl7Kl2DEeS0e4a9dbZJtf6ytDLe61JB0D1dhqBJnsCXtwUKI1zCIAkjaQKxtvajzcKl4QYCh85cwpGnDq4QFsc5OLKr/rqsa+EYRsagiMxLzmqDTTr/tFt+yhyNz+ErFJt5HKYQ82H9eSvtk5xDM9XgNoBIyY0LxW+chyfoRvF/TkLlyVvZh/4eBthcgnDADz7JfbvNgTYR57hn3+9kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=erxSFN44UA3AU0z9CXtNLgAlh4sI/urADlv0rTWRUqo=; b=gpTvaBCPkEHlvI2qLrdoXs39BGxAzqlJtVZcbrIMbCTA/uesOHM+MixE+GWAlawKIEHGydikokbJ1EdNtJjSFLVroJSOnKwPO2HUV5DLBN++bEhfKesu/eRMfDRhz3rIa2dVbS/RX3QyfmEghq1q9XPTjTm1ck87WT6kU9rt1nGDCx8NZ2D+IpzAk5g3DuFqWTBPU1BjMZ0CV7NMfzUVcYM3LTBUkfK3Ealrbotl3csWqvrZnsG/2qg+BPDl1EZlvgurBDYeOs3rr1HUTdpGAaBO2WWQftXsCllNbwBXNPXIEAQoApFrUOe73P1KKzPdN11RNsRjq9Cs/tZO//Hg4A== 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 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=erxSFN44UA3AU0z9CXtNLgAlh4sI/urADlv0rTWRUqo=; b=zVgAm7t8hM13pr7tIH2FbHsWWNwW5OkIbDgBvDokA6JJKImsyNHLQpFcW8j71kOigGz2z/ffWvG1eoBX+5d/2VWbAc00vkAavkwOVk4JcgtHdXL48+OKk6giX3Mv3yezNF9M8RHXJ8i5drB2MtAcYiRmAreP9spgNymzBbnj82I= Received: from BLAPR03CA0070.namprd03.prod.outlook.com (2603:10b6:208:329::15) by DS0PR12MB8271.namprd12.prod.outlook.com (2603:10b6:8:fb::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Wed, 4 Jan 2023 05:52:40 +0000 Received: from BL02EPF0000EE3D.namprd05.prod.outlook.com (2603:10b6:208:329:cafe::f3) by BLAPR03CA0070.outlook.office365.com (2603:10b6:208:329::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.19 via Frontend Transport; Wed, 4 Jan 2023 05:52:40 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL02EPF0000EE3D.mail.protection.outlook.com (10.167.241.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.10 via Frontend Transport; Wed, 4 Jan 2023 05:52:40 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 3 Jan 2023 23:52:40 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 3 Jan 2023 21:52:39 -0800 Received: from vijendar-X570-GAMING-X.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Jan 2023 23:52:31 -0600 From: Vijendar Mukunda To: , , CC: , , , Vijendar Mukunda , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , open list Subject: [PATCH 3/3] ASoC: amd: ps: remove unused variable Date: Wed, 4 Jan 2023 11:24:31 +0530 Message-ID: <20230104055435.321327-3-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230104055435.321327-1-Vijendar.Mukunda@amd.com> References: <20230104055435.321327-1-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3D:EE_|DS0PR12MB8271:EE_ X-MS-Office365-Filtering-Correlation-Id: 845c6b82-1965-44ee-3c43-08daee17e425 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XEkm865FjnTDWtValgohG9vkxFFzxITOimyNxkXKzYcr++SiFq5r5jbWSq58HqwwLnVgVSnLPVHIgNTVaFqgvsAYbLpthuRteaN0jz+OBgdwSvu+UnjEvcsKRZMu+HzP1rqtHkCmn/dbYbUgQuV/6LjS+CVeoyxRfCodxTXYiBV+P5xSbxSO5kSXhKDYxoRshguSnUvMYSlLAyPc/C3lUQjWXjPUWhnvK+d0UhWcy3Jsh/vBr10aLZs2fj4B8TqPhOWjCH2fnmeUktTwhS1gfj3wyC28PZ2XTBrphHrgkP23UwZGQ4ioUsAXChhhy7JxExrcRwYie+16et/6/y+s9ykB9akk5aH9OUmCOyq1z0W7dbO8FU19GZW2ntOrMADUF2e7CuwxVZwyAEn08UlAQObsKAwYynCvoeIejtTi++mrkh41tXRvvhCfSdpTRJMsIjvp9tX6u2c+FtQNcXHZnnQAet6K1zVdZikrmKJR1ze8Pzjs/BYIzfa9BCXzyWoN06APDH+nAyEV3+LfS3NU6b87aa4ZA+Sc3GhYjS16lUHfq+unYXAkABhd6nqWHPwi4w31Khps80FTu7TgNDA8ba/ci3AquBzhEsEymlE7GffGlGjvXWr5KJy/ZjHDgLIEZMAZTXmjTwPEGLn82OrPdduvUQFap/H4+/8fzvjPf5xm7K4m9gOgkSqmph9svYdQwbEatkM9uFvxWPj5At16qgmKZ8nZwu5AoDqTi3VQ6go= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(136003)(396003)(376002)(346002)(451199015)(36840700001)(46966006)(40470700004)(41300700001)(70206006)(8676002)(4326008)(8936002)(70586007)(110136005)(54906003)(6636002)(2906002)(316002)(7696005)(478600001)(186003)(26005)(5660300002)(86362001)(40480700001)(36860700001)(336012)(83380400001)(2616005)(1076003)(47076005)(426003)(82740400003)(356005)(4744005)(36756003)(40460700003)(81166007)(82310400005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 05:52:40.5181 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 845c6b82-1965-44ee-3c43-08daee17e425 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0000EE3D.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8271 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754070500554984824?= X-GMAIL-MSGID: =?utf-8?q?1754070500554984824?= Remove unused acp63_audio_mode variable. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/ps/acp63.h | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/amd/ps/acp63.h b/sound/soc/amd/ps/acp63.h index e0160cbf5447..b7535c7d093f 100644 --- a/sound/soc/amd/ps/acp63.h +++ b/sound/soc/amd/ps/acp63.h @@ -105,7 +105,6 @@ static inline void acp63_writel(u32 val, void __iomem *base_addr) struct acp63_dev_data { void __iomem *acp63_base; struct resource *res; - bool acp63_audio_mode; struct platform_device *pdev[ACP63_DEVS]; struct mutex acp_lock; /* protect shared registers */ u16 pdev_mask;