Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbbHUB71 (ORCPT ); Thu, 20 Aug 2015 21:59:27 -0400 Received: from mail-bn1bon0116.outbound.protection.outlook.com ([157.56.111.116]:6994 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751622AbbHUB70 convert rfc822-to-8bit (ORCPT ); Thu, 20 Aug 2015 21:59:26 -0400 From: Wang Dongsheng To: Alexandre Belloni , "Krzysztof Kozlowski" CC: "a.zummo@towertech.it" , "rtc-linux@googlegroups.com" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] rtc/ds3232: fix ds3232 get a WARNING trace in resume function Thread-Topic: [PATCH v2] rtc/ds3232: fix ds3232 get a WARNING trace in resume function Thread-Index: AQHQ1OABFRD73Ev3hUuoaA4P1DYwOJ4VlE4AgAArlvA= Date: Fri, 21 Aug 2015 01:59:23 +0000 Message-ID: References: <1439370853-32282-1-git-send-email-dongsheng.wang@freescale.com> <20150820232206.GF3769@piout.net> In-Reply-To: <20150820232206.GF3769@piout.net> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Dongsheng.Wang@freescale.com; x-originating-ip: [192.158.241.86] x-microsoft-exchange-diagnostics: 1;SN1PR0301MB1616;5:p8SdydTZpyXRiJGqtQ7v1IOoTrMrWkSZPq+LFY7TsUfeqAsNXjz2xvSLwIwpmuwOoxbbTVUKRBWurVBGUjRsS6EkkYbkDZSovC9YqnhO8C6peFh8xjbg3/zXvry/Mj7ldAwESl41UETyhACzG9CwTQ==;24:oTr+Dik7SESZeKOiJEmiE9UrqAKTa3u+K2tuiOI6jegrL3mxPKV4oXSEYhSgDAIHb/7e3kQaZ/Dfo/STGjlGsoP7Hi78ys082sOZBnfDz3w=;20:V5t4E/uRS2Prrd45ZZk97CNNFxz9ohOgibNlh+znpB58bMZ/0AVKq43Ndkqq8urmM0mQ6nQjv+Zin5cHXrP5pw== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1616; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(8121501046)(5005006)(3002001);SRVR:SN1PR0301MB1616;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1616; x-forefront-prvs: 067553F396 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(189002)(479174004)(199003)(164054003)(13464003)(377454003)(50986999)(66066001)(19580395003)(19580405001)(33656002)(99286002)(40100003)(106356001)(189998001)(106116001)(2900100001)(5001960100002)(5002640100001)(102836002)(92566002)(5004730100002)(77096005)(46102003)(15975445007)(575784001)(76176999)(68736005)(5003600100002)(64706001)(10400500002)(76576001)(105586002)(87936001)(101416001)(86362001)(62966003)(54356999)(2950100001)(5001770100001)(77156002)(2656002)(4001540100001)(5001860100001)(5001830100001)(5007970100001)(122556002)(74316001)(97736004)(81156007)(18886065003);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR0301MB1616;H:SN1PR0301MB1616.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Aug 2015 01:59:24.0359 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1616 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3231 Lines: 81 Thanks, I will push v3 to fix them. Regards, -Dongsheng > -----Original Message----- > From: Alexandre Belloni [mailto:alexandre.belloni@free-electrons.com] > Sent: Friday, August 21, 2015 7:22 AM > To: Wang Dongsheng-B40534; Krzysztof Kozlowski > Cc: a.zummo@towertech.it; rtc-linux@googlegroups.com; linux- > kernel@vger.kernel.org > Subject: Re: [PATCH v2] rtc/ds3232: fix ds3232 get a WARNING trace in resume > function > > On 12/08/2015 at 17:14:13 +0800, Dongsheng Wang wrote : > > From: Wang Dongsheng > > > > If ds3232 work on some platform that is not implementation > > irq_set_wake, ds3232 will get a WARNING trace in resume. > > So fix ds3232->suspended state to false when irq_set_irq_wake return > > error. > > > > ------------[ cut here ]------------ > > WARNING: CPU: 0 PID: 729 at kernel/irq/manage.c:604 > > irq_set_irq_wake+0x4b/0x8c() > > Unbalanced IRQ 201 wake disable > > Modules linked in: > > CPU: 0 PID: 729 Comm: sh Not tainted 3.12.19-rt30+ #25 [<800107d9>] > > (unwind_backtrace+0x1/0x88) from [<8000e4ef>] > > (show_stack+0xb/0xc) > > [<8000e4ef>] (show_stack+0xb/0xc) from [<802b5fa9>] > > (dump_stack+0x4d/0x60) > > [<802b5fa9>] (dump_stack+0x4d/0x60) from [<800186dd>] > > (warn_slowpath_common+0x45/0x64) > > [<800186dd>] (warn_slowpath_common+0x45/0x64) from [<80018717>] > > (warn_slowpath_fmt+0x1b/0x24) > > [<80018717>] (warn_slowpath_fmt+0x1b/0x24) from [<8003a8d3>] > > (irq_set_irq_wake+0x4b/0x8c) > > [<8003a8d3>] (irq_set_irq_wake+0x4b/0x8c) from [<80204fcb>] > > (ds3232_resume+0x2d/0x36) > > [<80204fcb>] (ds3232_resume+0x2d/0x36) from [<801954c7>] > > (dpm_run_callback.isra.13+0xb/0x28) > > [<801954c7>] (dpm_run_callback.isra.13+0xb/0x28) from [<80195b1b>] > > (device_resume+0x7b/0xa2) > > [<80195b1b>] (device_resume+0x7b/0xa2) from [<80195f0f>] > > (dpm_resume+0xbb/0x19c) > > [<80195f0f>] (dpm_resume+0xbb/0x19c) from [<801960d9>] > > (dpm_resume_end+0x9/0x12) > > [<801960d9>] (dpm_resume_end+0x9/0x12) from [<80037e1d>] > > (suspend_devices_and_enter+0x17d/0x1d0) > > [<80037e1d>] (suspend_devices_and_enter+0x17d/0x1d0) from [<80037ee1>] > > (pm_suspend+0x71/0x128) > > [<80037ee1>] (pm_suspend+0x71/0x128) from [<80037449>] > > (state_store+0x6d/0x80) > > [<80037449>] (state_store+0x6d/0x80) from [<800af4d5>] > > (sysfs_write_file+0x9f/0xde) > > [<800af4d5>] (sysfs_write_file+0x9f/0xde) from [<8007a437>] > > (vfs_write+0x7b/0x104) > > [<8007a437>] (vfs_write+0x7b/0x104) from [<8007a7f7>] > > (SyS_write+0x27/0x48) > > [<8007a7f7>] (SyS_write+0x27/0x48) from [<8000c121>] > > (ret_fast_syscall+0x1/0x44) > > ---[ end trace 640959d2e8de6ccc ]--- > > > > Signed-off-by: Wang Dongsheng > > --- > > *v2* > > - Use dev_warn_once to instead of dev_info > > > > Applied, after fixing the kernel trace and the message like suggested by > Krzysztof. > > -- > Alexandre Belloni, Free Electrons > Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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/