From patchwork Wed Feb 8 21:49:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9563545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0D4D601C3 for ; Wed, 8 Feb 2017 22:00:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4063284F6 for ; Wed, 8 Feb 2017 22:00:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98E582851E; Wed, 8 Feb 2017 22:00:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 477F5284F6 for ; Wed, 8 Feb 2017 22:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751313AbdBHWAK (ORCPT ); Wed, 8 Feb 2017 17:00:10 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34925 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbdBHWAJ (ORCPT ); Wed, 8 Feb 2017 17:00:09 -0500 Received: by mail-wm0-f68.google.com with SMTP id u63so274463wmu.2 for ; Wed, 08 Feb 2017 13:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Qb91W+KCC1zPvJiF1qiQRE0mh4zEup6ez1pR6Onk1QM=; b=RZusTL0d1HxFkc1q1YY4TTpfN8ktPoZ7BuoktXyC9vx/WezeaJoZdcQ2epJivX+4SR zHtWnyRawnQYV2pa3CG56i1vz5Pa6eAt0pnpQoQPiSlQ0J17qOdLg8lmJTtquzJWt2K1 6XIJBZkTAIwiO96ipTqE4J7UAON+1RU0Idpyyfm0mV/BNAQcD36d1E+N8fQlZt8HU3xA BaQiuSwQTB5LsOtFbxr+Vn5aD+Iy6qNdwcdwIApjGiQjxxtlVOcRYLG3b3Gwid7KeHQY mPnUohaalsAyZWLmUmS7nHCf/t9pwQtEbFYnicq6602jWGVI1Ez/OB4q/tFd7uR8RF22 WXGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Qb91W+KCC1zPvJiF1qiQRE0mh4zEup6ez1pR6Onk1QM=; b=NultU4sZbO7Zgzk1HmnxNgGfAZZnNoTXXbMb3luwmV32nP202DScGuaIcInNkY3sFy QoPhFi9CtvUELq31IH6vcitH5WZHnPnq49QL3rong7CWAxahGZeGl2lpltxkNxLrS+9A +oA3zzR5cXlBqriiVGDjLDiecMtZbXZYo8/9Ctjp23loQWc+Y/GHBAShhW/O0CwGGfbj ayH8swPb1pzbJsKqUP5AKk4zmnIdiIf3JXAYmPPrWBdhfA9hTY+n92U3vSmFrFK1IJhT khB9bsKWGGUS/ta8sJ4r8BaO89kWiTuYpFgzvSWQ3n1jLLEf7bfSKskPP+nmL68909G+ HUjA== X-Gm-Message-State: AMke39mVRajYc7fEqnxavM78qk2qQbO2ra5LR04ITabTQTdBPn8GW0syoCeBX4nIWqDnBA== X-Received: by 10.28.10.68 with SMTP id 65mr171502wmk.63.1486590581690; Wed, 08 Feb 2017 13:49:41 -0800 (PST) Received: from ?IPv6:2003:c6:ebce:1e00:8056:b008:ad9a:cf83? (p200300C6EBCE1E008056B008AD9ACF83.dip0.t-ipconnect.de. [2003:c6:ebce:1e00:8056:b008:ad9a:cf83]) by smtp.googlemail.com with ESMTPSA id a72sm15056406wrc.48.2017.02.08.13.49.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Feb 2017 13:49:41 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 2/4] mmc: pwrseq: implement reset operation in pwrseq_emmc To: Ulf Hansson , Kevin Hilman References: <75ad5eac-412b-fe73-ff53-3d8b975937e4@gmail.com> Cc: "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org Message-ID: Date: Wed, 8 Feb 2017 22:49:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <75ad5eac-412b-fe73-ff53-3d8b975937e4@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In pwrseq_emmc a reset function exists already and just needs to be exposed as reset hook. Signed-off-by: Heiner Kallweit --- drivers/mmc/core/pwrseq_emmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/core/pwrseq_emmc.c b/drivers/mmc/core/pwrseq_emmc.c index adc9c0c6..a30e7352 100644 --- a/drivers/mmc/core/pwrseq_emmc.c +++ b/drivers/mmc/core/pwrseq_emmc.c @@ -57,6 +57,7 @@ static int mmc_pwrseq_emmc_reset_nb(struct notifier_block *this, static const struct mmc_pwrseq_ops mmc_pwrseq_emmc_ops = { .post_power_on = mmc_pwrseq_emmc_reset, + .reset = mmc_pwrseq_emmc_reset, }; static int mmc_pwrseq_emmc_probe(struct platform_device *pdev)