Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4056418ybf; Tue, 3 Mar 2020 19:02:22 -0800 (PST) X-Google-Smtp-Source: ADFU+vtbEuhzXI/N9R1A1IsKNuyYBGSIzUszZMv6fHUIQzG7Xhtmf+pqDkrEDu3RqJwcvHUM/2G9 X-Received: by 2002:a05:6808:64d:: with SMTP id z13mr404236oih.104.1583290941978; Tue, 03 Mar 2020 19:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583290941; cv=none; d=google.com; s=arc-20160816; b=a3OeUErGtsjO/qKgzSTmpkFlXuyu84HlCnDV7PFHxmDWvLNlJXGjtHmwOpxcKItT4N Rx4xutDHkREqIfKZZbOJP+mIBUctcp0CG1MXn++/+/Xli3bNri2HkUKJeykrJBezoGKX 2YNmsTLY9YJjgi72GBoSAK1MipNQ4m+/1Q5FPVc8pkIu3r70FZ01BJ/zSG5shYPrzYRO dnYCvGMZmDJIMVkB+AQRFlH6jrHRp/2ZbPsfGLaV57gK/DULdTqwCfHyoBkuNu9TB5tC /hqgw0/WO6OX++3LV76guow09B2jxF7KMqx7D7cb5uL0ajMALRr2CoB+5M9QvhsD3Qza qU6Q== 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=qsn5ZtkxofEPhSlSyo8Sta1tKWHmr79ZpPp6bUCSBTY=; b=s5GM641GPoB5BUMplCQ/IoNgya9oSmRj8zEUdT32IQ+uHbnA/iWIxkz3a9hKvBYwQq hQLTDsNFIBRl9na06kuESTSTilUzX5ET+u0evgiEJNi+SCGN4QVWFONLKN5yRk7mK1+f oFCJooXshlDfeWlsNF5TSte+ZJTYp+x1q+g5DTMlrHPA3ecF6GiumfBHoAGqh1Nd3Hab Cd91xTDC5rrb0VQ6/uYAHZmF06HgsZ+LiV60CXAcp6YTTCUSTJggx15fR3IA5G0yxBFY 8kcnUrAjBNpbf9CWjfUYMGDMmfCNlezo6Rp593iUzWt0RP6/9Vup7PjEmmLmpO7ZPUDt fX/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="qIyK/K+i"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v19si296238otq.57.2020.03.03.19.02.10; Tue, 03 Mar 2020 19:02:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="qIyK/K+i"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387699AbgCDDCE (ORCPT + 99 others); Tue, 3 Mar 2020 22:02:04 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:33631 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387497AbgCDDCD (ORCPT ); Tue, 3 Mar 2020 22:02:03 -0500 X-UUID: 4df1d395fb454d3b8cdf396264a9eb7b-20200304 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=qsn5ZtkxofEPhSlSyo8Sta1tKWHmr79ZpPp6bUCSBTY=; b=qIyK/K+i1U4ffA9hwcy+e1Tk1jLVJs9UVNXiANBBiuzwL1kmcEJkVeqSYanXulr0Mpg6DWwwQnvFr0AQZefEhMgdwPRXlE/f7PGnip1biURZt5DRyOnkVBIKmBzQ4CWNb04UEP+qxVwbpFiTffku+wjSJYfOKYR0oyfWblf45Ao=; X-UUID: 4df1d395fb454d3b8cdf396264a9eb7b-20200304 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1197573145; Wed, 04 Mar 2020 11:01:58 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 4 Mar 2020 11:00:48 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 4 Mar 2020 11:02:36 +0800 From: To: CC: , , , , , , Light Hsieh Subject: [PATCH v1 1/3] mmc: record wp_grp_size and boot_wp_status Date: Wed, 4 Mar 2020 11:01:53 +0800 Message-ID: <1583290915-9858-2-git-send-email-light.hsieh@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1583290915-9858-1-git-send-email-light.hsieh@mediatek.com> References: <1583290915-9858-1-git-send-email-light.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: BE8DA5EFDB8B220B59A5896EAFC5D140C2664D312E7DDEE9885A0E2320CB6CD52000: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 RnJvbTogTGlnaHQgSHNpZWggPGxpZ2h0LmhzaWVoQG1lZGlhdGVrLmNvbT4NCg0KMS4gcmVjb3Jk IHdwX2dycF9zaXplICh3cml0ZS1wcm90ZWN0aW9u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