Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752901AbbKXJGZ (ORCPT ); Tue, 24 Nov 2015 04:06:25 -0500 Received: from mail-bl2on0113.outbound.protection.outlook.com ([65.55.169.113]:13088 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751833AbbKXJGI (ORCPT ); Tue, 24 Nov 2015 04:06:08 -0500 X-Greylist: delayed 7358 seconds by postgrey-1.27 at vger.kernel.org; Tue, 24 Nov 2015 04:06:08 EST Authentication-Results: spf=permerror (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=freescale.com; Date: Tue, 24 Nov 2015 17:02:58 +0800 From: Shengjiu Wang To: Nicolin Chen CC: , , , , , , , , , , , , , , , Subject: Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai device Message-ID: <20151124090256.GA17516@shlinux2> References: <37808c01df126622c41c2d413fddf838dc2aa71d.1448348336.git.shengjiu.wang@freescale.com> <20151124083344.GA14109@Asurada-CZ80> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20151124083344.GA14109@Asurada-CZ80> User-Agent: Mutt/1.5.21 (2010-09-15) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD042;1:ObpxIBwjus+mNc0hTrgzTxYGyKzAURJQm37PnsmDukzp4+VaMtnhAtygHw4RitBW2UhN9iQ/vLFD0QJJdMMpXqBIxImSIaCzjpIY3gWlJ4/BvmO8ikkRO8/dLFgPCwH+i+ac+0kxvW9v0a4awnro6aVJHI5FRCPs6tB7O+yDuYaJuRoEY+Cf+O4PVmieccafxRgQGNlGznnVFhjqzoKc63qizGcGXbZ0vvWM1446RHXcz+6/8rMFXZaJOqp6g/xpyVuy2F4J9+GEigAKpSpXfYvKaetjHm4KjJcDBEZH/kYcDCh/l0lKwyBKL06IqMewXzbhkwKdHskiuTpDkUhK8LxIvO3PFRR5hipkfSKl4K9m9tZazCwN0+i9TO/5OlBWfW78c8AxdDdNtuDwu0yj+A== X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(448002)(24454002)(189002)(199003)(110136002)(47776003)(85326001)(50986999)(5007970100001)(83506001)(77096005)(1411001)(87936001)(33656002)(2950100001)(86362001)(97756001)(189998001)(23726003)(575784001)(19580405001)(106466001)(81156007)(11100500001)(97736004)(5001960100002)(33716001)(46406003)(92566002)(104016004)(54356999)(5008740100001)(4001350100001)(586003)(76176999)(50466002)(6806005)(19580395003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB1230;H:tx30smr01.am.freescale.net;FPR:;SPF:PermError;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1230;2:Q3GBbPuQoBGVwt5AMcNlldCC4UatyABBzRMyIZmoZpqqLhn1T0JLAQySWLAFqhmcT+aGZYN7WYoRtXN8td7zQ3wseGw90ses2QCDJPuvqwvrIKmvldUrfVZjPrLA6khexiLgAPu/vqN3/AxQsBxQWCXydYKsfb90494EfuHC7qA=;3:jbJMU+jh559Lt4g1e2CsPIWjH9uVtSc1CK4Ievs9KoaepsOTcW38alUz/ysptHRh1i4f8dWEfG4XEGUemyRBYa2ZsoHjjpX+1jUp8Xytdt5QMmvVMVJeTVCxyKIuGcfvQmYnLhkfvVdzEgJ0pFVcfE8ONY0ykhM7nKHtH6LddFR79hN+Cd/QMppSdKWbjxyNppi9s2XoJfllwQrYoKur3uewjKgE8yiHAxlafFcIO3c=;25:S12eneOFhBa74+bF5fna+rwGqQfcURIR7AefIaaiWyeiy0M7bl4bBWci8Cc9/ILhBs+5s/+iNpGAKVgYWuwvo2Qc5zONkUstI58IO2D5g95XBLifMLTpppRH2hLGZWFLCPBU1uI0ML4iewL6oZBIzXXZY4FAamH9otdFV2y/ZvMsFuF6bWY2YA945tS2G46Yk15V0LHN0wTyprcge39sVtIyUKmdJWAoaw6g/Z0rwSbIJoyn++6XVL4EwS1emVtsZoirnNRcOANmeGIcThNxzQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1230; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1230;20:r9xEIZTaJh3VkPzWcg7LXSg0dLjY9/gNRUP1BXZe8k1bzs3Espi+1RPBLQBKiBGetbz6TaNaZlT86CLr5prBojxyukHgyNt0LxwJ3+C3uSKHgdekHCMA+XeeSbCZX6oDsbp+G8KY6tqJucG91BhigehU5gToYyCAeSojcWwvMkV1jt4up/RZIGwoQ1gDmUVW8pMQkmZoibtCX7ML8TuG2FxYbD2RULWJ2NqsCj3ElaNMc2ubx7AFHsHuLGR+fn/1RgG31vJ4CVoiomKkig/2etD9VHyfcGNQG5SzIWDxrkXVe1F45JAs0yf+mBH+/bk+Hm2iZ0mLOQiUWeljdXBhHMsTj2+P3wjV3cKJuAI5uJU=;4:W92E1YFqY+hcKW5/Sse/4MhQ4xRt68GvtnYSKKRsgewWVSka/ehkRviR1frlTrHwHE1QJYDwEVuDgQQbSkqmHdLvLsFG+Aiv0q+5Gc4n5SzHB97AaSpHBVsIUzBRG7PLF4dqNdGi+hcdtLVoyhakoqnrluZWnTPaR5VLWNpIrfQV4IufsWrSetLCEXZlfF0iNqGaPKwWu+aBJxBiIE+vuudHjChQveykgV5LoPVWQJ5oRXhKJiyBiE+F7x7KBwmgG6rOGiAATciEzXt0qEHGi5hiGHf0tZomgwznKOW+xmmcIluhAlKwQOdgrhQfNkIuqN+rssw8R7LdWcxEQJW6m8KY/K3fUYuXISltDSM71ZGW/7lD9HckLpYCLuF+xaXO X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046);SRVR:DM2PR0301MB1230;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1230; X-Forefront-PRVS: 0770F75EA9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB1230;23:tNMTwMa6ooPLJX+2RF0Sy3J3S1P7ZJxRUZ3mzTc?= =?us-ascii?Q?a+XD1NDjPtHgCMg2Yb4nga1Cn1B0weqRd1q8y5m4HawvcGGPpHd2AE41h8x7?= =?us-ascii?Q?4QLPjR9TbS7VhtcPkQlGiuopGmgvLyokdiw4JBB2gwTk1XO71Zs0emEyYaqR?= =?us-ascii?Q?Zr0YcJ30myhGoUVev1CrFp3JWXt6KJKDJz1rVEMtjQwwwkyaFAY6PX5EPXnN?= =?us-ascii?Q?VjfPkajOmeQed++Y5kp3zRqq8eNWQrs+7QcPxAC2+MC+T4gWHNbv3K8SHywt?= =?us-ascii?Q?b5oAA87dzC+w0/nc3LA668OYLPAhE2zfcEjqJEW7T9v5AFxbPxnD75QA0Nys?= =?us-ascii?Q?9FHRYkwYm+GRjzWkNLu4J+w5MkspOZozBuiVaOFZWWAQ//l2Vt/JBae0S/or?= =?us-ascii?Q?zbT+1ZQ5hEw+NRpT2O23V0MBUvuuXVozg5BgMzp6K2AQoRD4S9s4kCXgbe5y?= =?us-ascii?Q?c3Sp+O2BeBmcw5G+vzazZepQMfyNnhz7QJuTjrdodNr+AsQ7GaZln5PsV3Vr?= =?us-ascii?Q?+S+kpQtDJvxrUB5SRQ5KvVws9dzPbfMZCwrD8DTYvKm5izISs4auwKEI3A5j?= =?us-ascii?Q?iAtDfBkP9t3SZMchUGOFswaF6iMpB9US5ZA8I71pFfjU7UUzshQxW5ouV/M7?= =?us-ascii?Q?LzVsioXdei0OXvmQsxIeXQeLj+ZfeN7XO/JKyH1RufsG6H9mcYY7jI0aSrAS?= =?us-ascii?Q?I6NC+3i58gGOJz2++HCGETjE8wqluuHHncxwiTOuAPZMZeWpbNiutQLq3t3l?= =?us-ascii?Q?9ZdaDdmflogNMsMR4+xLWZqtpIJ+0bGRHAJ5KO/oQhPb8r9PGNmlQhNCcUb7?= =?us-ascii?Q?tDMlMqj/zsOW0YTgQN/v6H02mTJ6n36i1nrdmLOIGiB7Oibhcle83f4hZhKM?= =?us-ascii?Q?yuyNeRb5vJKfTzQrWc2CXcMUi9i3YOTAS6fH5bmeH5x6vFJ7LY9D5yBh4EtN?= =?us-ascii?Q?DBntDaKqeH3J8xHGA79rbOZYpjfOlcHOvFUKTl28Wxbf7sF4vB5kllAfMFj1?= =?us-ascii?Q?Ui/8vB7Pvi8Jh5DeSYrzpmLc/zuBALoXzbEb9Lgw2wiR6UtjPuzaFKtosg1U?= =?us-ascii?Q?AOubvgBQWtO/eLZfvU4fVLzFG057R?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1230;5:yphYJa5GBVH8512vQw9PJ+8phoglzBt13NBS/Q9tj3zx8aTXyhOhsMqnpI9IX6mkBCmhKLWZgWAEyr200NcjswChmxE3GC+eUkJLastMiAbDN+XSFqis9UiEyi2hR7TYPt+Cvi6RdXeHvoVuFvrmTQ==;24:wNLKcTRxRjL2dXWL7xikUWto9HP9I3cNJPSf9efFKbRzqo7FUUFnMkOCLfk4te03oY7IiGGUb4s11V8LgWs+cEPUWRhDRIVnRFByP443FaE=;20:mOHC0dPV/2KkKm0Rw8IlhxdhpELoTVxfyMBbiz+d+94LfNgCPUTKl5Icin+uJNlC0NMLbZ5K6bX33Inqk0H17A== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2015 09:06:05.1894 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB1230 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2180 Lines: 47 On Tue, Nov 24, 2015 at 12:33:45AM -0800, Nicolin Chen wrote: > On Tue, Nov 24, 2015 at 03:03:28PM +0800, Shengjiu Wang wrote: > > > @@ -469,6 +471,9 @@ static int fsl_esai_startup(struct snd_pcm_substream *substream, > > ret = clk_prepare_enable(esai_priv->coreclk); > > if (ret) > > return ret; > > + ret = clk_prepare_enable(esai_priv->spbaclk); > > + if (ret) > > + goto err_spbaclk; > > if (!IS_ERR(esai_priv->extalclk)) { > > ret = clk_prepare_enable(esai_priv->extalclk); > > if (ret) > > Just like for extalclk there is a IS_ERR check out there, there > should be one for spbaclk as well. Otherwise.... > > root@imx6qdlsolo:~# aplay /unit_tests/audio8k16S.wav > [ 29.956250] Unable to handle kernel paging request at virtual address fffffffe > [ 29.963491] pgd = edd98000 > [ 29.966278] [fffffffe] *pgd=afffd861, *pte=00000000, *ppte=00000000 > [ 29.972615] Internal error: Oops: 37 [#1] SMP ARM > [ 29.977327] Modules linked in: > [ 29.980410] CPU: 0 PID: 755 Comm: aplay Not tainted 4.4.0-rc1-12414-gcc8db17 #250 > [ 29.987899] Hardware name: Freescale i.MX6 SoloX (Device Tree) > [ 29.993738] task: edece780 ti: ed26a000 task.ti: ed26a000 > [ 29.999156] PC is at clk_prepare+0x18/0x38 > [ 30.003268] LR is at mark_held_locks+0x70/0x98 > [ 30.007720] pc : [] lr : [] psr: 600f0013 > [ 30.007720] sp : ed26bc60 ip : 00000003 fp : ed26bc74 > [ 30.019204] r10: eebe4d9c r9 : eeb2e00c r8 : eeb2e00c > [ 30.024435] r7 : fffffffe r6 : eeb2c500 r5 : eeb2d0c0 r4 : fffffffe > [ 30.030966] r3 : edece780 r2 : 00000001 r1 : 00000001 r0 : 00000001 > [ 30.037502] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none > [ 30.044643] Control: 10c5387d Table: add9804a DAC: 00000051 > [ 30.050395] Process aplay (pid: 755, stack limit = 0xed26a210) > Will fix it in next version, and send it out later. best regards wang shengjiu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/