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: 9563533 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 32D52602B4 for ; Wed, 8 Feb 2017 21:51:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C21128533 for ; Wed, 8 Feb 2017 21:51:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2134F2852D; Wed, 8 Feb 2017 21:51:24 +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=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A041528530 for ; Wed, 8 Feb 2017 21:51:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cba8s-00076e-4l; Wed, 08 Feb 2017 21:51:10 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cba8i-0006qN-UR for linux-amlogic@lists.infradead.org; Wed, 08 Feb 2017 21:51:06 +0000 Received: by mail-wm0-f67.google.com with SMTP id v77so258148wmv.0 for ; Wed, 08 Feb 2017 13:50:42 -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=VxOvVhg/wOAS5Z8/nGrR5dbyJE9DlPmSuvn61OyyLfItMLI6toUWskUSwv+s6ypB8B TU8sP0DL8+J9oSSzEi3bowRlII24hT1qbFBrADugfpYZ0SEk1w2Ztz5Gn4Tjc6EV+B7u sciSwJy9fC+bRf2FRBa++gM0k/vrYJUSQ7b6GrLZZm1qby2m+MndVrZwgity9NZ3LSmN XB5vNPRRF2u0jzR/tRDoQJr53Ywz67913iDbDUNJbptj2MwqGZ0odJS8qjOAK+09Akcm LT1+/PRWkeHV6dVhBBiN94V8zfly+ZOZwAGYrfQWjSefkPWGmoJtODoDNg7I3/eo7VcW Lryg== X-Gm-Message-State: AMke39mghkAa3wKbNg31CMTrnkJ92/rc80ovVJC7YYrWaV+9WkpKmQzkKlo3Qm5zdcJ9rA== 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> 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170208_135101_149807_C337375F X-CRM114-Status: UNSURE ( 7.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, "linux-mmc@vger.kernel.org" Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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)