Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp841625imm; Sun, 2 Sep 2018 00:32:38 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda5nScax2b/PG6dEs+qUgkmFyrIEx13BjRrCoYHT4FGFtUsmwp0CJhigewWvfoWn1AVkDiy X-Received: by 2002:a63:e516:: with SMTP id r22-v6mr21541571pgh.170.1535873558888; Sun, 02 Sep 2018 00:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535873558; cv=none; d=google.com; s=arc-20160816; b=FLrwEJoCmEPfHamK4a9tGsRWEg+Dpduq20mV0AtTPDR2fJo243IMuL8JX0NFMV5/oV FzQkEH48lYiJk3J1OOaE5vn11sdmhuAPPQbp1D6gaamnJKH1/orDlJX+DILV69HOPiOa XKLX7dDIhQkv9Rl5c+SB3/R2TMyQFZR8MwKf8jY8AgRLNhH+JaHXEHyTAnF0JFU9pd5J 6AD8qEwLQKvAz2tR/UBlL5FCV47oEn+AiERfn/XuQ34DTF4gakNE3JcWYJWd9XA2ECid f0jKgFrYls1tV0Cu/tMbFO8hH7lkFcfBK270CfWoeaqLgvMT8+NV+ryfkAQi0s2wpy6X 9luQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=pnYcFnmudmv8f333KtzeXVkRB3jmFVCNK53ni9m/CW4=; b=ODPbII9/YA6E+g9NzxeE1aLsyC97d7YFPcxxwZg/k31EDGO4FzCzQJapr3GiicGSbf Sau1SxEP59pMy8lBH87RskCx1WLFmqgW6zWp5Mu2iTDJoqL/cw2Tfuct50PzZPrYRylz ZLGDSuzWlO0VDgZ8JlgrjgKdUj7YZTwsP5eSftMJqfnJCpxI1j0i4FU5e8PXMOp/hIVz 5H9XXXd/Yb+v+RtFxLpH8u/jSwnXsGQ/RtS9xHQMpnsSO5MjgASzhPutLE1XozcIYo8N jcxoxWBGYvJqlo4LbvwQsJZYvVlF9RHDuLteh4BH95V4DoOOgkFOji22qa0Mp4lhyILl O7iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=ldo17t+E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e17-v6si11264985pgb.497.2018.09.02.00.32.24; Sun, 02 Sep 2018 00:32:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=ldo17t+E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727024AbeIBLp5 (ORCPT + 99 others); Sun, 2 Sep 2018 07:45:57 -0400 Received: from mail.andi.de1.cc ([85.214.239.24]:58226 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbeIBLp5 (ORCPT ); Sun, 2 Sep 2018 07:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pnYcFnmudmv8f333KtzeXVkRB3jmFVCNK53ni9m/CW4=; b=ldo17t+EsKmdl7ULEaIOXtz7W/ 0B0g93B44HS0GqeqNfJr5sRESLqaeXEH5Ukbbw0PfFCGXGHcdpCilHNwc+T1C7IuZJpP0MmCUjrWq BfKBfwQ6IBSKzpX+oHP7xtDXLJILcLWFco+/VDezFo4h+d57bCz0tGP9SOsLFPqom9hc=; Received: from p200300ccfbdb10001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbdb:1000:1a3d:a2ff:febf:d33a] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwMqc-0008TD-HZ; Sun, 02 Sep 2018 09:31:02 +0200 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1fwMqc-0004Rn-95; Sun, 02 Sep 2018 09:31:02 +0200 From: Andreas Kemnade To: ulf.hansson@linaro.org, kishon@ti.com, wsa+renesas@sang-engineering.com, linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Lindgren , Discussions about the Letux Kernel Cc: Andreas Kemnade Subject: [PATCH] mmc: omap_hsmmc: fix wakeirq handling on removal Date: Sun, 2 Sep 2018 09:30:58 +0200 Message-Id: <20180902073058.17053-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org after unbinding mmc I get things like this: [ 185.294067] mmc1: card 0001 removed [ 185.305206] omap_hsmmc 480b4000.mmc: wake IRQ with no resume: -13 The wakeirq stays in /proc-interrupts rebinding shows this: [ 289.795959] genirq: Flags mismatch irq 112. 0000200a (480b4000.mmc:wakeup) vs. 0000200a (480b4000.mmc:wakeup) [ 289.808959] omap_hsmmc 480b4000.mmc: Unable to request wake IRQ [ 289.815338] omap_hsmmc 480b4000.mmc: no SDIO IRQ support, falling back to polling That bug seems to be introduced by switching from devm_request_irq() to generic wakeirq handling. So let us cleanup at removal. Signed-off-by: Andreas Kemnade Fixes: 5b83b2234be6 ("mmc: omap_hsmmc: Change wake-up interrupt to use generic wakeirq") --- drivers/mmc/host/omap_hsmmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 071693ebfe18..68760d4a5d3d 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -2177,6 +2177,7 @@ static int omap_hsmmc_remove(struct platform_device *pdev) dma_release_channel(host->tx_chan); dma_release_channel(host->rx_chan); + dev_pm_clear_wake_irq(host->dev); pm_runtime_dont_use_autosuspend(host->dev); pm_runtime_put_sync(host->dev); pm_runtime_disable(host->dev); -- 2.11.0