From patchwork Wed Apr 19 21:17:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 97679 Delivered-To: patches@linaro.org Received: by 10.182.246.10 with SMTP id xs10csp447926obc; Wed, 19 Apr 2017 14:17:19 -0700 (PDT) X-Received: by 10.28.207.204 with SMTP id f195mr33001wmg.72.1492636639826; Wed, 19 Apr 2017 14:17:19 -0700 (PDT) Return-Path: Received: from mail-wr0-x236.google.com (mail-wr0-x236.google.com. [2a00:1450:400c:c0c::236]) by mx.google.com with ESMTPS id e7si5582321wrc.122.2017.04.19.14.17.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 14:17:19 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c0c::236 as permitted sender) client-ip=2a00:1450:400c:c0c::236; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c0c::236 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-wr0-x236.google.com with SMTP id c55so23614113wrc.3 for ; Wed, 19 Apr 2017 14:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=GA9IK/C7uv7k4A2sc3HFxuuo8QkniHt5/rQKEx0sHik=; b=LyE6Q9goyqNI2v6xvzxaXziD7gomWC80+K2ezX9wYO1iqIB2XQ4qOJZ9P6hPf1ZWka rYnu/K8CPsSGAKQCIxJQgKE1jpkUrZjTnook/JDTJ3gflmr6T40PDcMLrDy4lcKjzhwy hSZEJwYl3pcCIEJaKBGS70kCgBSvolbjQaarE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GA9IK/C7uv7k4A2sc3HFxuuo8QkniHt5/rQKEx0sHik=; b=AiBvJkvlYRA2ZkoytJ+M4zHhZSH7cFuoXomO9VNGL2Bmslh8Hz8ojiJgRbcrTftHWn 8eW01vZoOhZ7vjKr+cGKbGmDOHSU3el/KUqIHX9gOS/ig2jexmjhmRyCmGlXd3Cu+TRH FDYVIaxxGQ+32rBFRAN4G7QiC4+8DeFjwFXokbPxZHG1j/TJSxjlLjuTpDU1iIGqqJ0h Jal3UED31j0pQrCIU+/s8hFrHs+X8G06/JM+t3O9Ny7daUXaPacbCnOuyL300uA0YH1F JFVXHd2qPqvNROUNrX8qbZFeTv4IA9IbcNQaNRf4QkEAXcAGYmK3Em0+BiJLmy7m8jaP QA1A== X-Gm-Message-State: AN3rC/5jhvntVG+fnEoue5Q/6A0Tlz028apV7STsFGQ4lyy/jU41ke9N fR0q/qzCkGXhqFAXYLY= X-Received: by 10.223.135.134 with SMTP id b6mr4458630wrb.48.1492636639409; Wed, 19 Apr 2017 14:17:19 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-155-4-221-67.na.cust.bahnhof.se. [155.4.221.67]) by smtp.gmail.com with ESMTPSA id g53sm4837747wrg.22.2017.04.19.14.17.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Apr 2017 14:17:18 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Brian Norris , Shawn Lin , Doug Anderson Subject: [PATCH v2 0/5] mmc: Improve/fix support for SDIO IRQs Date: Wed, 19 Apr 2017 23:17:06 +0200 Message-Id: <1492636631-28254-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 Changes in v2: - Folded in a new change, patch 1/5 to fix a race condition while processing SDIO IRQs. - Fixed review comments provided by Dough. - Updated change logs. - Small changes to how ->ack_sdio_irq() is being invoked, to simplify code. - Added a revert patch of the dw_mmc change for runtime PM issues, which was a quick fix for stable/fixes. Some general description of the series: Regressions for SDIO IRQs have been reported for dw_mmc, caused by enabling runtime PM support for it. This series extends and improves the SDIO IRQs support in the core, such that it better suites the need for dw_mmc, particulary around runtime PM. Do note, so far this is only compile tested. I would thus appreciate help in testing and of course also in reviewing. Ulf Hansson (5): mmc: core: Prevent processing SDIO IRQs when none is claimed mmc: sdio: Add API to manage SDIO IRQs from a workqueue mmc: dw_mmc: Convert to use MMC_CAP2_SDIO_IRQ_NOTHREAD for SDIO IRQs mmc: dw_mmc: Prevent runtime PM suspend when SDIO IRQs are enabled Revert "mmc: dw_mmc: Don't allow Runtime PM for SDIO cards" drivers/mmc/core/host.c | 2 ++ drivers/mmc/core/sdio_irq.c | 27 +++++++++++++++++++++++++-- drivers/mmc/core/sdio_ops.h | 2 ++ drivers/mmc/host/dw_mmc.c | 44 ++++++++++++++++++++++++++++++++------------ include/linux/mmc/host.h | 3 +++ 5 files changed, 64 insertions(+), 14 deletions(-) -- 2.7.4