From: Tony Lindgren Subject: [PATCH 5/5] wlcore: sdio: Warn about runtime PM suspend errors Date: Thu, 17 May 2018 11:50:29 -0700 Message-ID: <20180517185029.71716-6-tony@atomide.com> References: <20180517185029.71716-1-tony@atomide.com> Return-path: In-Reply-To: <20180517185029.71716-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kalle Valo Cc: Eyal Reizer , Kishon Vijay Abraham I , Guy Mishol , Luca Coelho , Maital Hahn , Maxim Altshul , Shahar Patury , linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-omap@vger.kernel.org We may get -EBUSY from runtime PM and that most likely means some earlier wlcore command did not complete yet and further calls may fail. Let's add a warning to make it easier to track down and fix such issues in wlcore code. Signed-off-by: Tony Lindgren --- drivers/net/wireless/ti/wlcore/sdio.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c --- a/drivers/net/wireless/ti/wlcore/sdio.c +++ b/drivers/net/wireless/ti/wlcore/sdio.c @@ -188,6 +188,13 @@ static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue) return error; } + if (error == -EBUSY) { + dev_warn(&card->dev, + "%s: wlcore write did not yet complete?\n", + __func__); + dump_stack(); + } + return 0; } -- 2.17.0