Received: by 10.192.165.148 with SMTP id m20csp5013627imm; Tue, 1 May 2018 07:42:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpQRwQxsIGs0KQxrPbzq3q/93GHpN+K+vxOk+ksdMCmznjIzgyGC5efTcGnrFJZDVpfd3yR X-Received: by 2002:a17:902:a986:: with SMTP id bh6-v6mr10534911plb.245.1525185779037; Tue, 01 May 2018 07:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525185779; cv=none; d=google.com; s=arc-20160816; b=jSf8tMeYZj/kmWtyILL4tGpL9KgXAq6nX2So3YhpMTPyjQeADNA+YDmkscq/fCHQ+p gnL/dC4HDBeSy1qZbAV0WSloQQRzJ8B/Tj61hp542TFO2q59EQyCr2aXQ4yHHrpC09Ez NQmIHZJPbqEjDVTDa4m1wZDOJXuttYY1pp1pqN31kdfbF29oFQgA9AeSbuBVNybQT356 k/8EEPx0TD3DukSU3YmWSxMxo0TitPEsOmxGtDISkj2LavSz4f2kiQxiUt3qzLsxLwbs VzxTulzNj7v1CVnvvhNJxRoNFhGJ1+2MWRPr/6U2l2TNxP7xxv52bvL0+63jKsAkuZP7 p8WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=pccxezFdS+/oolwthgbwrHCGAR5d/Jlqe/BJHOsILNg=; b=qnBy3IZssK0tSYc+dj2kzkUW/7lUxhu1ZcvQSjdRYp46u1yagVW+McDqFeyalKcVsb ZjkHRAE3Y9Qh9zq4iqtJ/S9YxPFdCm4J1HnI1WnZXM0Ns9nMUpnYxipxiBIhhmlx0hSz VddICMgkTyH1y6sEEC08DD2VpIzOdtIWOzmtGwdhnrHbjldAumtMCLD3VsvHmQlINvv3 Eb6es3wAMrqQEUu88Xz8LabNN7br8PMt5e9zdxh09APuh6fg8CvsKSVSgVi2cuwMdbJ4 in48uemRBk7g6nYTWZQOIQZC2RIzuwjBZQHgKzXtPaFep94a5TCGz28SAqNq1c0EQBtU MtgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=uLAYjJZe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 207-v6si8171563pgg.29.2018.05.01.07.42.44; Tue, 01 May 2018 07:42:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=uLAYjJZe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755316AbeEAOlY (ORCPT + 99 others); Tue, 1 May 2018 10:41:24 -0400 Received: from mail-bl2nam02on0065.outbound.protection.outlook.com ([104.47.38.65]:56842 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755171AbeEAOlW (ORCPT ); Tue, 1 May 2018 10:41:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pccxezFdS+/oolwthgbwrHCGAR5d/Jlqe/BJHOsILNg=; b=uLAYjJZenTKxgYNdQGXf+Y3hw/MPL4m8h4stb6Wux4e2a414LZ1BNLTKs+TLX5jmqYqJt9be58z7FYN3ft7BaAGD26FFTRhg58IaoXUf0A3KrnTzfrGhn6hciz2nkRVMzRQhvnwAGYmPnjL4U/xHmE8Wro+qfAwqBR8HD9DUOL8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; Received: from [192.168.0.103] (106.200.239.203) by DM5PR12MB2359.namprd12.prod.outlook.com (2603:10b6:4:b4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.23; Tue, 1 May 2018 14:41:17 +0000 Subject: Re: [PATCH v2] ASoC: da7219: read fmw property to get mclk for non-dts systems To: Adam Thomson Cc: "djkurtz@chromium.org" , "Alexander.Deucher@amd.com" , Support Opensource , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , "moderated list:SOUND" , open list References: <1525080203-18947-1-git-send-email-akshu.agrawal@amd.com> <2E89032DDAA8B9408CB92943514A0337014C1E93BC@SW-EX-MBX01.diasemi.com> From: "Agrawal, Akshu" Message-ID: Date: Tue, 1 May 2018 20:10:58 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <2E89032DDAA8B9408CB92943514A0337014C1E93BC@SW-EX-MBX01.diasemi.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [106.200.239.203] X-ClientProxiedBy: MAXPR0101CA0065.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::27) To DM5PR12MB2359.namprd12.prod.outlook.com (2603:10b6:4:b4::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020);SRVR:DM5PR12MB2359; X-Microsoft-Exchange-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yBJsDIQGHQrZM8NkZhmJB7U8ZxAzNGzjn7p5Z87B0aDcFgDsD18pXVZV3zdsUVn1fSgv65Hsp156FxsfhoF0Hn1gs4bYIFf5K4Irwok0wVaQA+efOjZSodjPG+otJY5P+MAubdR7TFVeXx0D77xkJP8U2Z0LDw2UDBEdfjqsfABLS0x5Og+XQCMxWbyw3IPiUiI/WKVRi77ItT8vP8tlhxBPCrS8176YJ+HCFCJbHq/OoQfvUtXJPiZ6/3YZBImdgXEp6ITWmYSHhSHdrTHE4WJ0n9h8kr346dJD80SdpKEHULr6f5y5pokqaqzudDj4ks4ENbw8oumXuxQsfJOfhq7ln4CLFeS/SYM1tfvGUkATFCuxg+KqH16GUoCmPr/bY;4:Wj8hrut/KXjj1AGBPP4KjcPF1GL07Uk73SzIFIpGt1BIT4VJ4dQA8pctiZe/jwUfzxpbTHIUUTq9TCd/ehOKWfq3Ys44lEw2+UcEN+HaEXGAezLoEbhco7uQWU+jw8m5UqRSQZFKlz37CjD7gbCcLA73ID2uthpGCbZNskmeqhbKl0OR+hoPwb9zn5Rw+YeuTLBYqoHCmoZx63gkGFdRvgUufTpNU3iGTCEWR/7FXbvE0K89SzoGudT/WsQntL1Wgds+By2fhrBjTdjQF4Ry0ptE+KUTr0EBugkLHoXyRh+KaH+v5X+HRpERN1L23sNN X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR12MB2359;BCL:0;PCL:0;RULEID:;SRVR:DM5PR12MB2359; X-Forefront-PRVS: 06592CCE58 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(396003)(39380400002)(366004)(346002)(39860400002)(376002)(199004)(189003)(81166006)(5009440100003)(2486003)(478600001)(23676004)(106356001)(52116002)(117156002)(386003)(486006)(67846002)(97736004)(6486002)(186003)(25786009)(36756003)(59450400001)(66066001)(50466002)(8936002)(81156014)(5660300001)(72206003)(53546011)(16526019)(3260700006)(39060400002)(65826007)(2906002)(65806001)(8676002)(65956001)(58126008)(3846002)(229853002)(76176011)(446003)(54906003)(52146003)(77096007)(64126003)(47776003)(53936002)(68736007)(16576012)(31686004)(6246003)(6116002)(316002)(11346002)(230700001)(476003)(4326008)(105586002)(6916009)(26005)(2616005)(7736002)(6666003)(86362001)(31696002)(305945005)(956004);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB2359;H:[192.168.0.103];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIyMzU5OzIzOkNQSHk5WlJZdStkVmdDSk1iQk1WUWtwMjFQ?= =?utf-8?B?SDVTbU9WNmFOekRwMWJ2bk9ad0dFSnBiWXRuVVkySUFZMVU1OG5UVWRHSVFa?= =?utf-8?B?TFEwWm5qZFQ1aGlnOVBiMEF6a1Mwb3dGbWFvYzJaTGFBZ0xFdXRoU3FGelIy?= =?utf-8?B?MWFEYjlvNWdvSXlIUHUvNyt2c3NiRWxNQkp2alNqMlhGNEk1M1pLcGRsZlg4?= =?utf-8?B?b1BHWk0xcFJVRkUweUJGbVpDS2toUXJIQ2FISFBOd0JTVElhdy9qOVlOTEpv?= =?utf-8?B?NXMzczBnZEFVY0kwWjdLSU1Md3VuTHBjb1pINVlBcU5BTWVlWDJ3VEZzMmNN?= =?utf-8?B?ajZKeDVqS2FrNjlzc2JjbkR4QjRGZFdhaXQvUVIwWlZTcUFESzhjSWU3RnFw?= =?utf-8?B?Nkk5dURab25RR2cxYlAwWnBONngrbzFtWlF6SWhYcn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1l+2iimbU2qFvvFz4Vsj/vBj1E1Xup/If+FfXsz2CpDPf1O+Vvn+iGntu2+wmhYQi2Trfuw1EvzAMBVtho2lsrxLJPyv783GTOHSCD79qMnzevY0JpIAWj5kJ1oJvgvQay+0P5xYjtcLhWAapwe1jh5IsgQ3Hf3hNElsLcAUGvJLAIpp6BrN8a8jhsCw9myQPEGpxSaOX4YXN;20:ycTc7Sfh0aZ+KmH6rKP01SlcYCIlFVulVFkZIeVhJtoPLy8q9WYB+iCJOsb8z/EmTe+hrrHFYIKBfu4KYxLDHTkhRIewQ+sSGwVDaMWyB/1FLkpHoJxP7fn8bJznuIPNeNdMcpsRl4WPLPDddAxLCbanLll2YvTSj9vW5YlK8a8meClQOoUEQGok+thJ9JnXLPicfs1X0cdLalNoJ4NXlQLaYqnQ3jFcnjsqccqLjakW6blhLbN3QOBlQ74N2lfC X-MS-Office365-Filtering-Correlation-Id: 02277a58-6213-477e-d9a4-08d5af719abe X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 14:41:17.4063 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02277a58-6213-477e-d9a4-08d5af719abe X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2359 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/1/2018 12:35 AM, Adam Thomson wrote: > On 30 April 2018 10:23, Akshu Agrawal wrote: > >> Non-dts based systems can use ACPI DSDT to pass on the mclk >> to da7219. >> This enables da7219 mclk to be linked to system clock. >> Enable/Disable of the mclk is already handled in the codec so >> platform drivers don't have to explicitly do handling of mclk. > > There is already a means via DT to specify the MCLK for a device using the > generic clock DT bindings, and this driver already uses that. Should ACPI not > have something similar to that which is generic, rather than adding device > specific bindings/properties to achieve the same? There will be other drivers > that will want to do the same. > IMO for all non-dts based ACPI systems, DSDT would be the best and simplest way to link system clock to mclk. Currently, machine audio drivers handles the clock and this can be avoided by having this property. >> >> Signed-off-by: Akshu Agrawal >> --- >> v2: Fixed kbuild error >> include/sound/da7219.h | 2 ++ >> sound/soc/codecs/da7219.c | 7 ++++++- >> 2 files changed, 8 insertions(+), 1 deletion(-) >> >> diff --git a/include/sound/da7219.h b/include/sound/da7219.h >> index 1bfcb16..df7ddf4 100644 >> --- a/include/sound/da7219.h >> +++ b/include/sound/da7219.h >> @@ -38,6 +38,8 @@ struct da7219_pdata { >> >> const char *dai_clks_name; >> >> + const char *mclk_name; >> + >> /* Mic */ >> enum da7219_micbias_voltage micbias_lvl; >> enum da7219_mic_amp_in_sel mic_amp_in_sel; >> diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c >> index 980a6a8..aed68a4 100644 >> --- a/sound/soc/codecs/da7219.c >> +++ b/sound/soc/codecs/da7219.c >> @@ -1624,6 +1624,8 @@ static struct da7219_pdata *da7219_fw_to_pdata(struct >> snd_soc_component *compone >> dev_warn(dev, "Using default clk name: %s\n", >> pdata->dai_clks_name); >> >> + device_property_read_string(dev, "dlg,mclk-name", &pdata->mclk_name); >> + >> if (device_property_read_u32(dev, "dlg,micbias-lvl", &of_val32) >= 0) >> pdata->micbias_lvl = da7219_fw_micbias_lvl(dev, of_val32); >> else >> @@ -1905,7 +1907,10 @@ static int da7219_probe(struct snd_soc_component >> *component) >> da7219_handle_pdata(component); >> >> /* Check if MCLK provided */ >> - da7219->mclk = devm_clk_get(component->dev, "mclk"); >> + if (da7219->pdata->mclk_name) >> + da7219->mclk = clk_get(NULL, da7219->pdata->mclk_name); > > By doing this you would need an associated 'clk_put()' whereas the devm call > avoids this. > Agreed, would add a corresponding clk_put call. Thanks, Akshu >> + if (!da7219->mclk) >> + da7219->mclk = devm_clk_get(component->dev, "mclk"); >> if (IS_ERR(da7219->mclk)) { >> if (PTR_ERR(da7219->mclk) != -ENOENT) { >> ret = PTR_ERR(da7219->mclk); >> -- >> 1.9.1