From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751832AbbIQJkY (ORCPT ); Thu, 17 Sep 2015 05:40:24 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:40629 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753294AbbIQJkV (ORCPT ); Thu, 17 Sep 2015 05:40:21 -0400 Date: Thu, 17 Sep 2015 10:16:32 +0100 From: Charles Keepax To: Inha Song CC: , , , , , Subject: Re: [alsa-devel] [PATCH] mfd: arizona: Call the runtime PM function if the state is runtime resumed Message-ID: <20150917091632.GC7694@ck-lbox> References: <1442478527-29304-1-git-send-email-ideal.song@samsung.com> <20150917082542.GB7694@ck-lbox> <20150917180530.346232ce@songinha-Samsung-DeskTop-System> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20150917180530.346232ce@songinha-Samsung-DeskTop-System> User-Agent: Mutt/1.5.20 (2009-06-14) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-09-17_05:2015-09-17,2015-09-17,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1508030000 definitions=main-1509170167 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2015 at 06:05:30PM +0900, Inha Song wrote: > Hi, > > > It is a log: > > # aplay > [ 79.590767] s3c64xx_spi_runtime_resume > [ 79.592288] arizona spi1.0: ASRC underclocked > [ 79.592331] s3c64xx_spi_runtime_suspend > --- > -> suspend () > > [ 83.348754] s3c64xx_spi_runtime_resume > [ 83.367711] s3c64xx_spi_suspend > [ 83.368420] PM: suspend of devices complete after 59.666 msecs > [ 83.375584] arizona spi1.0: Failed to read IRQ status: -108 > [ 83.375595] arizona spi1.0: Failed to read main IRQ status: -108 > [ 83.375672] arizona spi1.0: Failed to read IRQ status: -108 > [ 83.375679] arizona spi1.0: Failed to read main IRQ status: -108 > [ 83.375749] arizona spi1.0: Failed to read IRQ status: -108 > ..... > [ 83.580360] Call trace: > [ 83.580369] [] dump_backtrace+0x0/0x12c > [ 83.580373] [] show_stack+0x10/0x1c > [ 83.580380] [] dump_stack+0x78/0xc8 > [ 83.580386] [] warn_slowpath_common+0x98/0xd0 > [ 83.580390] [] warn_slowpath_fmt+0x4c/0x58 > [ 83.580394] [] __enable_irq+0x40/0x8c > [ 83.580399] [] enable_irq+0x34/0x74 > [ 83.580404] [] arizona_resume+0x10/0x20 > [ 83.580410] [] dpm_run_callback+0x50/0x1a0 > [ 83.580414] [] device_resume+0x90/0x268 > [ 83.580418] [] dpm_resume+0x120/0x350 > [ 83.580422] [] dpm_resume_end+0x10/0x28 > [ 83.580426] [] suspend_devices_and_enter+0x138/0x7f4 > [ 83.580430] [] pm_suspend+0x314/0x5bc > [ 83.580435] [] state_store+0x7c/0xf0 > [ 83.580441] [] kobj_attr_store+0x10/0x24 > [ 83.580448] [] sysfs_kf_write+0x40/0x4c > [ 83.580452] [] kernfs_fop_write+0xb8/0x180 > [ 83.580458] [] __vfs_write+0x2c/0x11c > [ 83.580463] [] vfs_write+0x90/0x170 > [ 83.580467] [] SyS_write+0x40/0xa0 OK so this is definitely that the SPI driver hasn't resumed yet. Could we also get DEBUG turned on in arizona-core here. I am interested to check where in the process the arizona suspend/resume ops are being called. Thanks, Charles