Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4971915pxv; Tue, 20 Jul 2021 15:58:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3/0m3UHhCzxHzxB+XMF0P/1n+ymQiT5zjgTBM70H1FAAYmM26B00GbTUOqMjLYrLygou6 X-Received: by 2002:aa7:d514:: with SMTP id y20mr44306123edq.371.1626821907648; Tue, 20 Jul 2021 15:58:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1626821907; cv=pass; d=google.com; s=arc-20160816; b=NWtQu5psgULt3sA4Qp29+FWxnrtSxizjI9By//XlQR3Wz2Gz1r6fBWowcwHhwXwRo0 qmpffiuyFlZXLnE3RnMhIH1B0z19jAWLLtebhRQvFklKqt0BE/pnnm7RFZmjrtH3Bbmh RGBBEAACCnMZEmwRwRU/61fM+cbyghy13/BurGDwfMj7bAPrO/aTNiBbHUqmFOi24/4O lzDnATNXx7SsC6a8RsI9QC9AR15os8aQUGLcjLMhQ1rINIzyltvY91cxo5YSqOMEc0GZ Zp749coCWLtFHUxdpPkKPAHcxhzLiLa5OF+GU7fks9pWghymbcAFoj8mp0bRBmCAptDn yVOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=IXJ65pFvqZ3Z6eqoDcXMtnu0D+tA2IlL5UC6OjgSBGY=; b=M4oztK+OQDizHa+xV8Ttpo8F6jSIOsjunAoKOzgJzQAp+PYPtZ4TQwPFJipxB885rH 8G/Ya1FxwQk7lDNvbE2mVgP4zuRPSHcxG7iqg04+8QIV1YpgZWkv4Xe/g3G6XuzRJEsp 7VbzFuIkH4RcnoqMxqYmjUI4ClwsozgSEQXvxydRSESoURg3y3dusgMltdeZf6JArf1z 4ciyz+/GdRS2Xw0Xu3fuqXprYpkmuq5sxhh/+Q6F4DARUuzJv1K5+loif5EtuspTEvSX jAh4ZNlzSvtgW6GYXlIUswLhOsEMvmSKdYSY8og0ujALT+BcvRltg/MYVPZeIL14ug8c XRSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="Oeoq/7YY"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj1si25913062ejb.330.2021.07.20.15.58.03; Tue, 20 Jul 2021 15:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="Oeoq/7YY"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231341AbhGTWOr (ORCPT + 99 others); Tue, 20 Jul 2021 18:14:47 -0400 Received: from mail-mw2nam10on2077.outbound.protection.outlook.com ([40.107.94.77]:62176 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231336AbhGTWNm (ORCPT ); Tue, 20 Jul 2021 18:13:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mNUaGtZJzZeCVnprS7sujVpWJcPNp8TkL90qiq/wkTXG/jPd2R0d0b67F0DloDbcrd+eaiUPdtBgJVcil5CfNcYRWsUdcxJmqaaO05wTN9PHWnBNclbHwE23ESKPZZtroX/Rcc/iFeGNIZQ3g5w2O7N04lXBpmbuDZ6YjDNz5DCZc7P8d7hDcZC02EnbFD/iF1NQDOZNGcUAdmQLcr6XuBII05srvjodOr17PIpCpvFBUh5o1nWxo7ZqD8eiag5kvsTFVkGW4MuMoMJlFsaf8fINdjSwKjE6hz7qiH6CyMiM8Lo76yOcX19CZOAUtGcbcvq3Wtx/VCANJegLLi8CNw== 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-SenderADCheck; bh=IXJ65pFvqZ3Z6eqoDcXMtnu0D+tA2IlL5UC6OjgSBGY=; b=nuww0vo/XF+zIXO//DMuTgzrZAbGh+iXgxLgOpRFvWF4ncOHZa2ojWfxu0A3Id2Ysr/ogcjF+lgQA37m9w/n5nWrUtA1CdVCmB2OmUvwtYM/n/vZs108k3FDn/bQzt8rZP1eAFihC6qhOMVnljkQT4fnuUlsAimRA51azJX7ahCap0eCdmMSXiBsWrwkOHolLUHm8YPC8Dc30oNSyhxpPnvPn2KNIjXbvkjDPUfkzTWjvv1rNfA+TYyPNeDyZkHpdTSzP4XeL7C8FxgriaVX+JjhbnG0IaF6EdiSOqFEX2Mbym9roRKeWzRzFlfYc9TD8w/ig/GNsRsaZAw/4mpjIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=IXJ65pFvqZ3Z6eqoDcXMtnu0D+tA2IlL5UC6OjgSBGY=; b=Oeoq/7YYQChqgtn8rnmBDAhmm+7/iUnTOucVYMLOfPRbVCbgdcgvKecgajnPb395BEgaMgi6j3qkMR1jJgP17dbukinj3J5hauY1SeRViIxWu4iRKLMY4c0fzb8hpvExvbraCdBcefTiwg0oRmW2wM2EJ1KV5amNuzAf8G04jiE= Authentication-Results: collabora.com; dkim=none (message not signed) header.d=none;collabora.com; dmarc=none action=none header.from=amd.com; Received: from MWHPR1201MB2557.namprd12.prod.outlook.com (2603:10b6:300:e4::23) by MW2PR12MB2507.namprd12.prod.outlook.com (2603:10b6:907:c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.24; Tue, 20 Jul 2021 22:54:19 +0000 Received: from MWHPR1201MB2557.namprd12.prod.outlook.com ([fe80::d0a9:a5f1:ca5a:b439]) by MWHPR1201MB2557.namprd12.prod.outlook.com ([fe80::d0a9:a5f1:ca5a:b439%11]) with mapi id 15.20.4331.034; Tue, 20 Jul 2021 22:54:19 +0000 Subject: Re: [PATCH v4 05/12] ASoC: amd: add ACP5x PCM platform driver To: Pierre-Louis Bossart , broonie@kernel.org, alsa-devel@alsa-project.org Cc: Sunil-kumar.Dommati@amd.com, open list , Takashi Iwai , Liam Girdwood , Alexander.Deucher@amd.com, krisman@collabora.com References: <20210720163732.23003-1-Vijendar.Mukunda@amd.com> <20210720163732.23003-6-Vijendar.Mukunda@amd.com> <106fa9e8-1d22-dd6a-8301-20761a212e4f@linux.intel.com> From: "Mukunda,Vijendar" Message-ID: <48583e18-7def-12f8-c320-490054cc5751@amd.com> Date: Wed, 21 Jul 2021 04:41:53 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <106fa9e8-1d22-dd6a-8301-20761a212e4f@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SGXP274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::26) To MWHPR1201MB2557.namprd12.prod.outlook.com (2603:10b6:300:e4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.252.93.39] (165.204.159.242) by SGXP274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Tue, 20 Jul 2021 22:54:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d0d2ae8c-7098-432d-57ce-08d94bd14ea6 X-MS-TrafficTypeDiagnostic: MW2PR12MB2507: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:40; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yGbbwZdT/8xn0YPW77Rcb9G+8hzlzKUwJJ6YwPwZ7be1HHyOymo01Bu2o/Mvxk338Jf6YkuzFMPVoRufJOHAV1xOuKkAFWVXr9PVZQxASKQffEYD6NTNHZbaNpgeZlF/PE4ATyjTv3GuPn49iPYlKpZ1yEJIysBqAV3lOam3T1yMpu6aOkX7piNp+kyve8uE+dAcRweusoZU6Ky6Iz5LjE3xtXUJJPsvB49MTcnDgl/LqltxR6J8ebLL3L9KysErJ5k5+K1pWD/zT2Yqd1Uui5VlKVVq2oWWE2hWXiQWbEHZbVL+sKOX0aAgDaDPu9q+qdgN1glcVeEuOszYh5Q/o1OQEBR0YiFIMeWOHM2KKfEoryh9KqV9Lzq1K2FH4im6lFdyyBsbX6nG8ra7qZEHb7TKeYYYEbkVWFfjzWotaiIo87cFxUfA0+zAZtLm+Hv3mNo3RGnaeibYEBOT72jqrEzwspNqnISM8LQxUgxLcc2QXw84sS3cfyh9coeJuB6EdrqdZFZbvdRnBsuNAGeYxvQTZsaPFrDBAEndBl90vlsuxTvt3YoYgvhwWJZ8b26MG8A0RNmqdAcGt8TqRGZcORcelTgeR9upDBSaR1AJlGtxv8v9s0nMvZyDCxwS0SZZZFUpzXOASXNRvtN6P2s8ItIVSvEnbMzhyxhk9lWtKMsXh1i1QFVGsZRD1/i2arEWz351pXSRXBO3IDuw6rFbC2Cr1eBIs5H+FwJtWWEC4xv5D8YFe2Ubeq0SJKnt9yAB X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1201MB2557.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39860400002)(396003)(346002)(366004)(376002)(38100700002)(5660300002)(66476007)(36756003)(86362001)(2906002)(26005)(16576012)(54906003)(316002)(31696002)(66946007)(186003)(8936002)(8676002)(6486002)(2616005)(956004)(31686004)(6666004)(53546011)(66556008)(478600001)(4326008)(32563001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MmpuMXZUNXJCSWZnejlRY2ZKUE5LaVhkcHVJdFJZRldsNGJkckhabXR2UzE2?= =?utf-8?B?dnFtMkJObjBUR245ODFNMmZhT0kxSEUvdGRMT1pId216OGthUTc4bU5RU00w?= =?utf-8?B?R0I2S2tYU2x3amxnUzZQRHpqT1ZENkkzZlN3ZTdPSXQrY293eVhhd0p0Zm9k?= =?utf-8?B?UzVxUzhWNUJmQXptVHlOaVJFSkFvUUVxbHd6MkQybDRDNkxVelVOWmZIajFQ?= =?utf-8?B?ekU0a2NoMkJjc2tNd1k5VGtobUx5MFlTKzhpcXFMNzFWb0dyZ28wNHB4WGpL?= =?utf-8?B?N0lYQmdRUjc0aGptcE5CN09QV0J5cU9JVXRRdnNLUklxM0h5RmJtQjVHOStL?= =?utf-8?B?ZTFWdzVrYnhZb1N0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8?B?NllMelNteGwwR2JHV1dHcUFzb3JrdUpySHBaL1YwWEY4bFE1K0I3SDYyZFAw?= =?utf-8?B?eHNoeHNWKzdOQUFHM2ptWHFkdlNMdnZJYk9WTFM2dWFEcDN3dk1RZmU1OHh3?= =?utf-8?B?UzA0QlpJMzNkSGxFT0lTcDltVVBMR05JUHNZMFdERndCSEprd2MyV0hsUHZ5?= =?utf-8?B?VmRRMjRFS0ZpZG1lMDZ1WVQ3d2gzWkF6Umd5cTRXRWFYTXZOQW5KU2NYbXpI?= =?utf-8?B?NVdESHpBOEw5aTRsTElmRWFXQUwxelExT0Z5T3BrQjdVV0cvaG9PRDF0SWNz?= =?utf-8?B?S21ibnphZXloRUpFcit4UUhjZ1h5S1VmaVE4bzhxcSswZndER21sSDVRV0FT?= =?utf-8?B?NVE0SjFWd01hc3JaY1FhV2RES25hTElSZkdyUWlEdTIyRkdEbGRrZEFzeVNa?= =?utf-8?B?MWtJTnM2QktvN2picXpPTExvNGtMZUJLckJmcjFiYjRBK2N2S0d3K1NnY214?= =?utf-8?Q?aPMRlyHI+RR6Xo1P0oK4CllYsTY8MchviP/Wzhz?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0d2ae8c-7098-432d-57ce-08d94bd14ea6 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1201MB2557.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2021 22:54:19.2246 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oeqG6MC/FtS5r2RGm8B+OWBiLI3Fu6LRDemKmla26zHATFgVY9A5SClKG5WCzvIk3qr7DZwDJnR1iJqk2WwQrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2507 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/21 11:42 PM, Pierre-Louis Bossart wrote: > >> +static int acp5x_audio_probe(struct platform_device *pdev) >> +{ >> + struct resource *res; >> + struct i2s_dev_data *adata; >> + int status; >> + >> + if (!pdev->dev.platform_data) { >> + dev_err(&pdev->dev, "platform_data not retrieved\n"); >> + return -ENODEV; >> + } >> + irqflags = *((unsigned int *)(pdev->dev.platform_data)); >> + >> + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); >> + if (!res) { >> + dev_err(&pdev->dev, "IORESOURCE_MEM FAILED\n"); >> + return -ENODEV; > > indentation is off? Will fix it and post the new version. > >> + } >> + >> + adata = devm_kzalloc(&pdev->dev, sizeof(*adata), GFP_KERNEL); >> + if (!adata) >> + return -ENOMEM; >> + >> + adata->acp5x_base = devm_ioremap(&pdev->dev, res->start, >> + resource_size(res)); >> + if (!adata->acp5x_base) >> + return -ENOMEM; >> + dev_set_drvdata(&pdev->dev, adata); >> + status = devm_snd_soc_register_component(&pdev->dev, >> + &acp5x_i2s_component, >> + NULL, 0); >> + if (status) >> + dev_err(&pdev->dev, "Fail to register acp i2s component\n"); >> + >> + return status; >> +}