Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754475Ab0FDRHs (ORCPT ); Fri, 4 Jun 2010 13:07:48 -0400 Received: from buzzloop.caiaq.de ([212.112.241.133]:38081 "EHLO buzzloop.caiaq.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751567Ab0FDRHq (ORCPT ); Fri, 4 Jun 2010 13:07:46 -0400 Date: Fri, 4 Jun 2010 19:07:41 +0200 From: Daniel Mack To: Greg KH Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Magnus Damm , Alan Stern , Randy Dunlap , linux-pm@lists.linux-foundation.org Subject: Re: [PATCH] drivers/base/power: be more verbose in device_pm_add() Message-ID: <20100604170741.GH2695@buzzloop.caiaq.de> References: <1275653834-9132-1-git-send-email-daniel@caiaq.de> <20100604164527.GA27034@suse.de> <20100604165037.GG2695@buzzloop.caiaq.de> <20100604170331.GA3144@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100604170331.GA3144@suse.de> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3560 Lines: 59 On Fri, Jun 04, 2010 at 10:03:31AM -0700, Greg KH wrote: > On Fri, Jun 04, 2010 at 06:50:37PM +0200, Daniel Mack wrote: > > Erm, no it didn't. Should it have? This is what I saw: > > > > [ 0.880646] Parentless device registered during a PM transaction > > You should have gotten more information than just that single line, > right? Like a full backtrace to the driver that did the offending > thing? > > It should also have had a "Device: 'device_name_here'" on the line > before this one, right? > > Can you send the full output that happened here? Sorry, of course. Here is the trace: [ 0.880567] ------------[ cut here ]------------ [ 0.880622] WARNING: at drivers/base/power/main.c:101 device_pm_add+0x94/0xd8() [ 0.880639] Device: ieee80211 [ 0.880646] Parentless device registered during a PM transaction [ 0.880660] Modules linked in: eeti_ts libertas_sdio libertas pxamci ds2760_battery w1_ds2760 wire [ 0.880754] [] (unwind_backtrace+0x0/0xec) from [] (warn_slowpath_common+0x4c/0x7c) [ 0.880793] [] (warn_slowpath_common+0x4c/0x7c) from [] (warn_slowpath_fmt+0x30/0x40) [ 0.880829] [] (warn_slowpath_fmt+0x30/0x40) from [] (device_pm_add+0x94/0xd8) [ 0.880875] [] (device_pm_add+0x94/0xd8) from [] (device_add+0x350/0x510) [ 0.880910] [] (device_add+0x350/0x510) from [] (wiphy_register+0x1ac/0x298) [ 0.881033] [] (wiphy_register+0x1ac/0x298) from [] (lbs_cfg_register+0x54/0x9c [libertas]) [ 0.881142] [] (lbs_cfg_register+0x54/0x9c [libertas]) from [] (lbs_start_card+0xa0/0x130 [libertas]) [ 0.881226] [] (lbs_start_card+0xa0/0x130 [libertas]) from [] (if_sdio_probe+0x84c/0x954 [libertas_sdio]) [ 0.881276] [] (if_sdio_probe+0x84c/0x954 [libertas_sdio]) from [] (sdio_bus_probe+0xcc/0xe8) [ 0.881322] [] (sdio_bus_probe+0xcc/0xe8) from [] (driver_probe_device+0xb4/0x198) [ 0.881359] [] (driver_probe_device+0xb4/0x198) from [] (bus_for_each_drv+0x4c/0x8c) [ 0.881396] [] (bus_for_each_drv+0x4c/0x8c) from [] (device_attach+0x54/0x70) [ 0.881430] [] (device_attach+0x54/0x70) from [] (bus_probe_device+0x28/0x50) [ 0.881464] [] (bus_probe_device+0x28/0x50) from [] (device_add+0x384/0x510) [ 0.881496] [] (device_add+0x384/0x510) from [] (sdio_add_func+0x38/0x54) [ 0.881527] [] (sdio_add_func+0x38/0x54) from [] (mmc_attach_sdio+0x21c/0x2a8) [ 0.881581] [] (mmc_attach_sdio+0x21c/0x2a8) from [] (mmc_rescan+0x1ec/0x28c) [ 0.881624] [] (mmc_rescan+0x1ec/0x28c) from [] (worker_thread+0x168/0x1f0) [ 0.881667] [] (worker_thread+0x168/0x1f0) from [] (kthread+0x78/0x80) [ 0.881720] [] (kthread+0x78/0x80) from [] (kernel_thread_exit+0x0/0x8) [ 0.881742] ---[ end trace 919a8d4b06013c07 ]--- I've been looking for the string 'phy1' in this dump and couldn't find it. Hence I considered adding it. But ... the backtrace should give enought of a hint, you're right. Feel free to drop the patch then. Thanks, Daniel -- 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/