Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6775732imu; Wed, 14 Nov 2018 06:49:45 -0800 (PST) X-Google-Smtp-Source: AJdET5fz0mg1f1wwiYthQLcqhKfXhzs12GFmsJZTBoU8198lt1YgorAtNWO5FE4uJkS8A0pofWPh X-Received: by 2002:a62:3046:: with SMTP id w67-v6mr2237881pfw.177.1542206985806; Wed, 14 Nov 2018 06:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542206985; cv=none; d=google.com; s=arc-20160816; b=aq54v5CxpOTB08mhrrfRveHww8cx/PxH2IxoxDSZgW4B8QR9TvoMx6b9VuVnvThDRZ F98iZWSd6zG27GrCrxcQ4XLxTp8woDnSyS3yoRlwoirLqSigZYPz+NkphDxZcpXsC9ED oQop5Z470KESIOzul10nLnbYdaNJ/g6IDDgwHRLVWSEVStKu3OTx8XmA68hS0wxaHbDQ 3pAxQDZYw2DNKwNdXyZU5uL4l4G5+pUnOjYzHnV3fWi7bP/l1BNfcgi5TePbCUKZwtDL t1czIS0IX15bY1ywd72yOfqLLwdgtagRn9kJUqF3znpX2VcN1oA0lFbTLR1OinSmO04k 3LAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=O7kHUAZFSVJUdjYPdhnptDCsMnGs873SXuBbbuwjM+A=; b=kpWyIQdahbCyh3F2mQEacPQ9OAFQxkQnwqHald6Knro5fMle3qIzt1gMsnG7qzo3s1 3woDSB5QUJ71oTfxzrgcZPe8w/kETtoHav3tMqM3PrkrVX7JmdhksnQzvYXy3ls7ICG7 9MiXYOGSJAhdHQW5fRjx+6P2bXFJd5KfpGISqQuMS5fMUvmue4BQz7bshMZ9TXsOSVr6 yicRdg3yzOywyCyOwtUKKcHKnTrpEfHMeWxIy89txaqANZ4H5q1W6B8RPt7htgvUVnrq IwP6i/79PP0IGWpAcGGxUFZaRz5nExGNeQbLElQSoNp4abW0UiJ2HYI1ElC/+RtuH+jM guoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@126.com header.s=s110527 header.b=cjjL1SgG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s82-v6si26125410pfk.197.2018.11.14.06.49.30; Wed, 14 Nov 2018 06:49:45 -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=neutral (body hash did not verify) header.i=@126.com header.s=s110527 header.b=cjjL1SgG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732983AbeKOAvV (ORCPT + 99 others); Wed, 14 Nov 2018 19:51:21 -0500 Received: from m15-35.126.com ([220.181.15.35]:13677 "EHLO m15-35.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727780AbeKOAvU (ORCPT ); Wed, 14 Nov 2018 19:51:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=zkVnT TI9gKDVJSqT8RtXMc9usGNrrjfEZBls4bwxfTM=; b=cjjL1SgGx5ckC45sAGCLp JyjoOFjzdG6LForYtp3vEaVvv+dXN1xtbP5Q89pdCfyWjordmxwEL7wDS+aqp8Rg AJR6OcIl0tqlfa+h/FuQuT6gdNejuImBWzahdTwPYKBqBG7TH3QIp2pmvKpDThVd tlJtwpl25hT41SGoSqEiOs= Received: from liuxiang_1999$126.com ( [110.184.153.105] ) by ajax-webmail-wmsvr35 (Coremail) ; Wed, 14 Nov 2018 22:46:03 +0800 (CST) X-Originating-IP: [110.184.153.105] Date: Wed, 14 Nov 2018 22:46:03 +0800 (CST) From: "Liu Xiang" To: "Boris Brezillon" Cc: "Liu Xiang" , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, marek.vasut@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, richard@nod.at, "Tudor Ambarus" Subject: Re:Re: [PATCH] mtd: spi-nor: Return error when nor->addr_width not match the device size X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20160729(86883.8884) Copyright (c) 2002-2018 www.mailtech.cn 126com In-Reply-To: <20181114145129.568e4bb3@bbrezillon> References: <1542200165-3073-1-git-send-email-liu.xiang6@zte.com.cn> <20181114145129.568e4bb3@bbrezillon> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <5a1999c4.c3d8.16712afb14d.Coremail.liuxiang_1999@126.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: I8qowEBpgUMsNexb2IiQAQ--.56699W X-CM-SenderInfo: xolx5x5dqjsiqzzzqiyswou0bp/1tbiuQf+sFpD6Xkc5AABsA X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CkhpLApJZiB0aGUgY2hlY2sgaXMgbW92ZWQgdG8KWzJdaHR0cHM6Ly9lbGl4aXIuYm9vdGxpbi5j b20vbGludXgvdjQuMjAtcmMyL3NvdXJjZS9kcml2ZXJzL210ZC9zcGktbm9yL3NwaS1ub3IuYyNM Mzc1OCwKdGhlIG5vci0+YWRkcl93aWR0aCBzZWxlY3Rpb24gbG9naW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