Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp298001pxa; Thu, 27 Aug 2020 02:36:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws4Rz4PXdWTQgI/GBOKkyMy/xArrV5ouMl7iABvXHHU1w1o3Vt9REQsYn1QEdTDtloteTQ X-Received: by 2002:a17:906:640c:: with SMTP id d12mr19801242ejm.388.1598521013813; Thu, 27 Aug 2020 02:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598521013; cv=none; d=google.com; s=arc-20160816; b=RKX65x5RYgCMx4LhISorbshaNDXFVD+fAuSBdX0LNMAYfY/4YbfMDFIv7xdlj4U7ca H2/XA/Gzh+6terOjWrer8mFEJGsToygVlssSnupF1fHanU9SCYDtfl4RW922T1T/C6wa +g0opDS9cYMF8KkkZr5oiENJselauzaecsS5Qj1DmLw7fVzoaI9cO8If+rtAtgNw46US fyqu81hEIzoB6C64iakp/X+g2r+VxemB3aCAQfYvSNOMIGHn23yFCwBwgYFm7fXlTZcs /gbaQXzlGnTOiTYcsrUMAnYVbipS3U76WmmLkk4MtHf3o9MUBBrL8hsMN5tOCjtghNe3 9RiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jsb359q+NGh2miLjbc2pS9a2c+qg5R24NLYz1yPyyVs=; b=vApZIVXqr1YT7n+WopM54K0ljHhp3F26tGQ9xs+lwMK8fVDeACy08QiDgLYALb20yb f+7/1olP6OZaAvdOpOYIT7Req2sYOAu2pUDtyXVgyyIdvbkLoNhk6W2dTuuDi+aCe1qY rG6hs5Yh1jP+H/osQ3630RLmn3mPsGVekqZ9Cs9Guh2hV9N0a+hCLYZDkJ1okxP1Kbn3 JDOAo01ctpxLuGevZDR9yYpLIpz+b+3DXeCrPH+Zm/QpYIpQMSqdjrtZnO4tvhR8oYLf gXPcl+K6sY7wg5IlrIxfisEwyune5clNq9+3J+4Wv//zkWfzKl7J8jgjfsx1hEHfQ/u9 e6Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rwNtUAX9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si915831ejc.720.2020.08.27.02.36.29; Thu, 27 Aug 2020 02:36:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rwNtUAX9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728406AbgH0Jde (ORCPT + 99 others); Thu, 27 Aug 2020 05:33:34 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:31883 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728185AbgH0JdV (ORCPT ); Thu, 27 Aug 2020 05:33:21 -0400 X-UUID: 769124425ee14970af7de22d87642884-20200827 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=jsb359q+NGh2miLjbc2pS9a2c+qg5R24NLYz1yPyyVs=; b=rwNtUAX92pp2645XUIWWpaXH3s8VntsbPZnnw9SLC/j41zm2vhKgT5OYx5uBg3AZn4Hc1oGlM8Yk6yJ0ah5cAT7HCdtYuglfXBizId0SnEwrBYoy8R0Tm1gN2syszM2iSUzJJCPik1TVE749ouqgFVkdONWWxIiuyC930TM5rIY=; X-UUID: 769124425ee14970af7de22d87642884-20200827 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 946813072; Thu, 27 Aug 2020 17:33:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 Aug 2020 17:33:09 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 27 Aug 2020 17:33:09 +0800 From: Chun-Hung Wu To: , Jonathan Hunter , Al Cooper , Adrian Hunter , Florian Fainelli , , Andy Gross , Bjorn Andersson , Michal Simek , Thierry Reding , Chaotian Jing , Mao Yong , Ulf Hansson , Rob Herring , Mark Rutland , Matthias Brugger , Linus Walleij , Pavel Machek , Kate Stewart , Greg Kroah-Hartman , Martin Blumenstingl , Pan Bian , Thomas Gleixner , Allison Randal , Mathieu Malaterre , Asutosh Das , Ritesh Harjani , Stanley Chu , Kuohong Wang CC: , , , , , , , , , Chun-Hung Wu Subject: [PATCH v1 2/2] mmc: mediatek: add pre_enable() and post_disable() hook function Date: Thu, 27 Aug 2020 17:33:03 +0800 Message-ID: <1598520783-25250-3-git-send-email-chun-hung.wu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1598520783-25250-1-git-send-email-chun-hung.wu@mediatek.com> References: <1598520783-25250-1-git-send-email-chun-hung.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: CEDAC856A48AA8E85B313FDFD3A88ACA8C2DE2FDB18C66AA2FE8F852F30379052000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Q1FIQ0lfRU5BQkxFIGJpdCBpbiBDUUhDSV9DRkcgc2hvdWxkIGJlIGRpc2FibGVkDQphZnRlciBt c2RjX2NxZV9kaXNhYmxlKCksIGFuZCBzaG91bGQgYmUgZW5hYmxlZCBiZWZvcmUNCm1zZGNfY2Vx X2VuYWJsZSgpIGZvciBNVEsgcGxhdGZvcm0uDQpBZGQgaG9vayBmdW5jdGlvbnMgZm9yIGNxaGNp X2hvc3Rfb3BzLT5wcmVfZW5hYmxlKCkgYW5kDQpjcWhjaV9ob3N0X29wcy0+cG9zdF9kaXNhYmxl KCkuDQoNClNpZ25lZC1vZmYtYnk6IENodW4tSHVuZyBXdSA8Y2h1bi1odW5nLnd1QG1lZGlhdGVr LmNvbT4NCi0tLQ0KIGRyaXZlcnMvbW1jL2hvc3QvbXRrLXNkLmMgfCAgIDIyICsrKysrKysrKysr KysrKysrKysrKysNCiAxIGZpbGUgY2hhbmdlZCwgMjIgaW5zZXJ0aW9ucygrKQ0KDQpkaWZmIC0t Z2l0IGEvZHJpdmVycy9tbWMvaG9zdC9tdGstc2QuYyBiL2RyaXZlcnMvbW1jL2hvc3QvbXRrLXNk LmMNCmluZGV4IDRlMjU4M2YuLmY1M2UxMWIgMTAwNjQ0DQotLS0gYS9kcml2ZXJzL21tYy9ob3N0 L210ay1zZC5jDQorKysgYi9kcml2ZXJzL21tYy9ob3N0L210ay1zZC5jDQpAQCAtMjI4Miw2ICsy MjgyLDI2IEBAIHN0YXRpYyB2b2lkIG1zZGNfY3FlX2Rpc2FibGUoc3RydWN0IG1tY19ob3N0ICpt bWMsIGJvb2wgcmVjb3ZlcnkpDQogCX0NCiB9DQogDQorc3RhdGljIHZvaWQgbXNkY19jcWVfcHJl X2VuYWJsZShzdHJ1Y3QgbW1jX2hvc3QgKm1tYykNCit7DQorCXN0cnVjd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