Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4063981ybf; Tue, 3 Mar 2020 19:13:06 -0800 (PST) X-Google-Smtp-Source: ADFU+vt78GbfX9zD2XYXGRm9WFVaLbgKwMWsxQJ82aX5TQDAOUzE0h+eDmMmslq7jt0h3iaWSQ4l X-Received: by 2002:aca:ebcf:: with SMTP id j198mr385760oih.115.1583291586688; Tue, 03 Mar 2020 19:13:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583291586; cv=none; d=google.com; s=arc-20160816; b=JEoFkg4XaUabXB45BJ6oSBHnhsTdecXGcZuTmF2yV9BWg7Waxm1UN9xHGB16sWBoCI zbl9vnHmivykzuTqnyMKOhJMFX0zia3lWa5BGLxYCktzacAO4q5Ja9z80nBmJUsP6nho TuXqIezN1yECXcZI2oRPWwP/3lWGHe+dfOkFXvtgYUSH3hfngk9eBYK4q7M3ROQsMzRG BKFpDr9Ir3JZCc7HBNwWbbVz1Uf07A0wU19d/eVFEU5hcBogJlbLsMOH5Qga5mqqLSy2 1mBkKlHf6m+b0gh/9zPzHP3znFsjGEZE+RxuT5apAEnjtOmPql8R3hlUVV9uzod1qYni eEnQ== 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=SpuFdLl+s4wpBbo3RoFVDMXdN8UCcHq3und2GPrDoSrZUc3NkF4Iol/Ymrmc0+N38j CJOWrlEE6MroCe1f5D1kJ8S7YZt8Uc2is3Hgg3f9YBxylOaoW/49xj/iQI3RZDaf9iGB TmXexITxRHDDXNVWJY7AIFwx6p1OzCIHjUSVQxsILIbMXZerTLLAZcKav5YCCklP5uIO rTynviqsOhZy0RvLMrI3ZcxNSTgdDOTuDqeW6rbxsPYnTItDxd5If77AYeGfs5C70uvz OYOeFnmZCUzRHySuHNRa9zq8vXA1Dhd4chQZbTIPzULPOGtuyFgfmm/g2bM4QdMGdI2A hMWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=O6mF9GbT; 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 l3si322144otn.286.2020.03.03.19.12.55; Tue, 03 Mar 2020 19:13:06 -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=O6mF9GbT; 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 S2387535AbgCDDM1 (ORCPT + 99 others); Tue, 3 Mar 2020 22:12:27 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:39422 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387398AbgCDDM1 (ORCPT ); Tue, 3 Mar 2020 22:12:27 -0500 X-UUID: 5d9cb5feac8e4259ba7b1a46bfa0517a-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=O6mF9GbTYg3/U0O2uHd8IUGywS/WyPCyEhT9S2wLrY+qe4qwWXRTUtL18guPa1SVZo6ihIGjy4sTdWoF3PBTNZgRXZyTGVFqPiZJYi672+XXqH5jhquz0obYmjBirf1oKxnFhPGbo089h5Si2IRPqux7OU5XFn0gToXtdA4904Q=; X-UUID: 5d9cb5feac8e4259ba7b1a46bfa0517a-20200304 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1104357860; Wed, 04 Mar 2020 11:12:20 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 4 Mar 2020 11:11:10 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 4 Mar 2020 11:09:47 +0800 From: To: CC: , , , , , , Light Hsieh Subject: [RESEND PATCH v1 1/3] mmc: record wp_grp_size and boot_wp_status Date: Wed, 4 Mar 2020 11:12:15 +0800 Message-ID: <1583291537-15053-2-git-send-email-light.hsieh@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1583291537-15053-1-git-send-email-light.hsieh@mediatek.com> References: <1583291537-15053-1-git-send-email-light.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: EF3CC1366C200503190F9B55F614E6A974DDF1E539B2458F696DA0060AB324932000: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 IHdwX2dycF9zaXplICh3cml0ZS1wcm90ZWN0aW9uIGdyb3VwIHN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