Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2630563imm; Tue, 4 Sep 2018 07:36:46 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda1gGnGFfeUcHiepeUJuYKA5CFG8IF17nTeiuN+gDjGZLKNSVNaSZ+0y3l/DCpkSneGQ4Hn X-Received: by 2002:a62:5047:: with SMTP id e68-v6mr34646460pfb.157.1536071806004; Tue, 04 Sep 2018 07:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536071805; cv=none; d=google.com; s=arc-20160816; b=uWnTxnMpNS0bPurU8qiGI4XKjRbo757SlU8o/BfTva108W1LW1vqPbSSp1Qlzw2KwK Bb+F/N2ThNrUw6kqcqHYUfdqYTJDctKniiT/Mi4ztQWT5mvuYeg+5Ygp54m8vOIjvTs7 L+VKAxWZLVTwwlNwSr2ILKG+SprX/VIVZhKXvp2ZeDykmhg2WC8l/AXiZcmHtftCcIIo LGmvdqeVALY/pcchRko6dXsxxpRpMKva+uwEVph2rgWjBO6jKqB6lRcugyG4lIfiFTem ylFxO01qtS3anHQCrX7k5gIb+RdryhyZNB7MS3HFi5ht7TAc0id1hn0mb8FE9Q6Lfzrx NcpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=mAfXPWJj1UTwCM4kFsE7kUy0wMknaAdrxlndYEeLnPk=; b=ipOaASWjiTdj+Ees7YrIuJd1+3IxxzVEeC7ph7MgLb6ld4o9Z2jC7AXC9qaW7fU1du ipbv12mO5g/88Tg0pL/tWSq8NRSoallF6IjIvyKuqTp30cCZlu1VrO9kVkkJjywAgI0l YxLu53tP1ihHUnD9GLNW92Y7zt1baXWpWBdmU/g41DWnU4nroolpi+Uv+P4ilrAO6p6h 5LGV26aDXed6kcw7JoLV5/LKiNV4ykyJHOsvZh738RWRQ6m54E6Hr23uzLX7ixIYpmw6 KDJQmRIpRfvEisGXjLQiUCwOupsZFJpzITN/acxMng3MfPVxvxErtOk1vsVvfH/mO0/P F23g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TSDvyygH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n184-v6si20748980pga.98.2018.09.04.07.36.30; Tue, 04 Sep 2018 07:36:45 -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=pass header.i=@linaro.org header.s=google header.b=TSDvyygH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727220AbeIDTAT (ORCPT + 99 others); Tue, 4 Sep 2018 15:00:19 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:34501 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbeIDTAT (ORCPT ); Tue, 4 Sep 2018 15:00:19 -0400 Received: by mail-io0-f194.google.com with SMTP id c22-v6so3166251iob.1 for ; Tue, 04 Sep 2018 07:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mAfXPWJj1UTwCM4kFsE7kUy0wMknaAdrxlndYEeLnPk=; b=TSDvyygHh+jexW0OmUbbsQt6pgpDvhqjj/UQp8wPwG6vJBWxZBYC8oVsrkaUtQyIDe 7UIx2y/ad0XHS6Jk8/3+pPx7B9eX3XWa4G5BV5Mks1cJpO/BDnY/TNJ+iRqlQqjq6hdM 8zUyw7D80c8lZ6Y/6khuesIOSTVAtn6AwQTcM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mAfXPWJj1UTwCM4kFsE7kUy0wMknaAdrxlndYEeLnPk=; b=BTC7zhgOkF6oatrXgyl02+Vt9nmcilQ6JLkxNacpOAQZRiDK0KzOcT+lRXuih/BLdX i8AHXMnlTRNBcEZVckzmh91BcLVwxg5chG3gCR3x2e/iEUZH37WGYRCetTqf0Y4FBCBp bZyhhYjO8zvgDjNBYmxsbus+7/rLBFt2k9eFn/03U3unSjdf1rP8akGzmsILZ5TlviAy gIe6yTN4HOcjcvqa5BUdBc7cZohHkN4acCO+b2r3v9hpepcA8tiyp81iJkK8/EtHeZzc EozdrknCwSXWUv25qVMnS7ZO/DG8D8zUEij/CiKxnGVvFcXDqdtrU90+pM5Ac54TQaFB 6l/Q== X-Gm-Message-State: APzg51DqfjucYt+sgzEbwsBZFsuBbydeWgeDKV3fLEJwP3WV0ZwYp5wy 7oIo6HQfbETPxSE7HVSdb24NyI7WnxxibwVwrMB5mw== X-Received: by 2002:a6b:3a0b:: with SMTP id h11-v6mr22305117ioa.278.1536071697446; Tue, 04 Sep 2018 07:34:57 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:1bd8:0:0:0:0:0 with HTTP; Tue, 4 Sep 2018 07:34:56 -0700 (PDT) In-Reply-To: <20180902073058.17053-1-andreas@kemnade.info> References: <20180902073058.17053-1-andreas@kemnade.info> From: Ulf Hansson Date: Tue, 4 Sep 2018 16:34:56 +0200 Message-ID: Subject: Re: [PATCH] mmc: omap_hsmmc: fix wakeirq handling on removal To: Andreas Kemnade Cc: Kishon , Wolfram Sang , "linux-mmc@vger.kernel.org" , linux-omap , Linux Kernel Mailing List , Tony Lindgren , Discussions about the Letux Kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2 September 2018 at 09:30, Andreas Kemnade wrote: > 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") Applied for fixes, and added a stable tag, thanks! Kind regards Uffe > --- > 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 >