From patchwork Mon May 8 22:09:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 98849 Delivered-To: patches@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1539124qge; Mon, 8 May 2017 15:09:07 -0700 (PDT) X-Received: by 10.223.163.91 with SMTP id d27mr49215341wrb.27.1494281347537; Mon, 08 May 2017 15:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494281347; cv=none; d=google.com; s=arc-20160816; b=OwXzl/h0N0VpmE66fXum5miiHOJ4yiwL8lTFHwT+of5ByMqG/0bgdKsrkJxu3maHx7 9okUMawxWN9772G4d6OxItEKH+5egjg/od3LcW7Q1C5qvx+nQfPvmgf9TMuCNheSa0W0 f6ZONxjan7z3T8c8XFbmYcIEGxPhidjfhIlnUL878IytzNkCa4tXCZZicaeSGWWdY4DZ 1vk24Co26RzUaaTKFYL4B1tkcznaKRVp0FEWlZRdXJCAvoRq1iAvN/zAU8KqbwxEW9+S POue3XRKnRE1hd47u/stUuizuX8bL1Tcx886uiVHRGv0SbgCdjBw7R5KtZnT99jB9giG Ntyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=786kkNYPGwFQ7zy0iDHGIwrrrKS97O3Cim/6mI+3y4U=; b=GnfcyzC3LgfztXmpzd+6o4CAryqheYquQpHenXzoGG6ax7k/wVb3RML6Vvu+w4iiIc yTNquqLkqg3L1bnxaB3dlAV101DwwMINOYODr3WXCC0CVmH38Dc91HYpkyYS7OYclav7 gPvBDx8S1abyKard3HufZgGEPUd8y9b8DxsaKpEVu79rET/0WeKUS4kMPAl++EPYzn6/ UfaQVTduTeLtzcGKqxAu6fFuvqzogNSI8WyRuGxOaNEsbubHidX4toM8dSFOEvYXA5GY 2rpPfRTkq43TLcMQvRWfpjUhjYGriWSjuhLUy+tcR4gMLLUjWK6ehJsC5k4yKzGNpRFy bnuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c09::22d as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com. [2a00:1450:400c:c09::22d]) by mx.google.com with ESMTPS id f69si12798088wmd.51.2017.05.08.15.09.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 15:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c09::22d as permitted sender) client-ip=2a00:1450:400c:c09::22d; 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:c09::22d as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x22d.google.com with SMTP id 142so80635960wma.1 for ; Mon, 08 May 2017 15:09:07 -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=786kkNYPGwFQ7zy0iDHGIwrrrKS97O3Cim/6mI+3y4U=; b=RcM0W4O7Iwu1N1AsrUxbZoPFFEr1J21VV/PDV8ICPM6HtsWQUUGxflPJCUrQfDMXGv luKqx6LOIn4W9SAqjXkaUJjCyXcvy50DcDyln6HafyqMZrxYLkaubGcyDi5cs542Mbha ynYkUCRpoMYZ2GORa/FOxs6/F/CfjjU1lS/Uc= 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=786kkNYPGwFQ7zy0iDHGIwrrrKS97O3Cim/6mI+3y4U=; b=L6Ph+IfI2xc5ZioG5swH4UgEyyHnLwqKc0nclB+tFe+oxa6elIpCkKXaed4Cu57MWQ zGkHz8xW+Gd91RC+nu0n3/f0sc+/QwrrotDxGBUE4tL6Hv8QLtXGOExVO8bxN9IfaTil 14yLwRsuI75gwEGFGQmQv1SyXk8cFQSjcvi52HUyLFL/43/PRH0+EoczIGjBWS9EUCbI pODZAeS9NPzW+deOMFivcaUarNFxpZB7JTjQY/Xe5NmyKeaCFxIB9++WSArCE7gtgx/2 fns/W/gqxoOltsjyeJkNPaL6QAfaY+iBpS3d8j0wOITuNHl0vEZ9gxovtfItDOWAO3v/ h1Gw== X-Gm-Message-State: AN3rC/5cxJU3eoyIYPi1J4thZvvrP8s8R8gMLo0UCyX3Y9U+gB6EZvXS 4Sz+/5+OhuIBiFMbzyU= X-Received: by 10.25.102.9 with SMTP id a9mr24675153lfc.7.1494281347165; Mon, 08 May 2017 15:09:07 -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 1sm1741011ljn.59.2017.05.08.15.09.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 May 2017 15:09:06 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Heiner Kallweit , Marek Szyprowski , Javier Martinez Canillas , Douglas Anderson , Markus Reichl , Anand Moon Subject: [PATCH 0/2] mmc: core: Fix the behaviour of pwrseq_emmc Date: Tue, 9 May 2017 00:09:01 +0200 Message-Id: <1494281343-18963-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In case if a pwrseq-emmc has been bound to the host, a call to mmc_power_up() triggers an eMMC HW reset via the pwrseq_emmc's ->post_power_on() callback. This isn't really what we want, as mmc_power_up() is called each time when resuming the card. Let's fix this behaviour and avoid doing the emmc HW reset unless really needed. Ulf Hansson (2): mmc: pwrseq: Add reset callback to the struct mmc_pwrseq_ops mmc: core: Don't do eMMC HW reset when resuming the eMMC card drivers/mmc/core/core.c | 2 ++ drivers/mmc/core/mmc.c | 2 ++ drivers/mmc/core/pwrseq.c | 8 ++++++++ drivers/mmc/core/pwrseq.h | 3 +++ drivers/mmc/core/pwrseq_emmc.c | 2 +- 5 files changed, 16 insertions(+), 1 deletion(-) -- 2.7.4 Tested-by: Marek Szyprowski