From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Fenkart Subject: Re: [PATCH v10 1/5] mmc: omap_hsmmc: Enable SDIO interrupt Date: Wed, 30 Apr 2014 23:04:44 +0200 Message-ID: References: <1398670860-30695-1-git-send-email-afenkart@gmail.com> <1398670860-30695-2-git-send-email-afenkart@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-doc-owner@vger.kernel.org To: =?UTF-8?Q?Andreas_M=C3=BCller?= Cc: Tony Lindgren , Chris Ball , Grant Likely , Felipe Balbi , Balaji T K , Daniel Mack , Kumar Gala , linux-doc@vger.kernel.org, linux-mmc , linux-omap List-Id: linux-mmc@vger.kernel.org Hi Andreas, 2014-04-30 14:23 GMT+02:00 Andreas M=C3=BCller : > On Mon, Apr 28, 2014 at 9:40 AM, Andreas Fenkart = wrote: >> @@ -2201,11 +2346,16 @@ static int omap_hsmmc_suspend(struct device = *dev) >> pm_runtime_get_sync(host->dev); >> >> if (!(host->mmc->pm_flags & MMC_PM_KEEP_POWER)) { >> - omap_hsmmc_disable_irq(host); >> + OMAP_HSMMC_WRITE(host->base, ISE, 0); >> + OMAP_HSMMC_WRITE(host->base, IE, 0); >> + OMAP_HSMMC_WRITE(host->base, STAT, STAT_CLEAR); >> OMAP_HSMMC_WRITE(host->base, HCTL, >> OMAP_HSMMC_READ(host->base, HCTL) & = ~SDBP); >> } >> >> + if (host->wake_irq && !(host->mmc->pm_flags & MMC_PM_WAKE_SD= IO_IRQ)) >> + disable_irq(host->wake_irq); >> + I think it says, "Do you want to wake up from deep power states when an SDIO IRQ is pending" Will try to bring this more to the point >> if (host->dbclk) >> clk_disable_unprepare(host->dbclk); >> >> @@ -2231,6 +2381,9 @@ static int omap_hsmmc_resume(struct device *de= v) >> >> omap_hsmmc_protect_card(host); >> >> + if (host->wake_irq & !(host->mmc->pm_flags & MMC_PM_WAKE_SDI= O_IRQ)) you're right should be '&&' >> + enable_irq(host->wake_irq); >> + >> pm_runtime_mark_last_busy(host->dev); >> pm_runtime_put_autosuspend(host->dev); >> return 0; > Maybe I misunderstand something here but shouldn't > disable_irq/enable_irq be swapped here? /Andreas