Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3191936imu; Sun, 13 Jan 2019 21:13:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN5qvZtAtX/Rlozqp0UD/0QqBXT6GO/ioBDi5R3x4KSRBxgRXPwb0svCtc2X0z9sefA0VYnW X-Received: by 2002:a63:e101:: with SMTP id z1mr21639184pgh.310.1547442830625; Sun, 13 Jan 2019 21:13:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547442830; cv=none; d=google.com; s=arc-20160816; b=kUSQURVJfsrZ695gIvcv3maZyOzAoFxfDtQws1rcoyj6x0dFQ2YIHFlHQXA6IA3Hqx TMZH9lD2D4Rdaf+vH5kqMuJeKd+GXjBdxc6tTA+QX+aJxP9h9HT5d6brNOOltgHBUJtZ 547ieDB8x2/+MkmElHFv1WvHqnXSMJdYWFKSduiT93teEJU94fbYX2EwlJLRX5FPy0Fx 3+GknPEvA2PJKL4297HdGpgK8sxNNpSWS1i5upUIPevvlA+z398Hw0xofAxfyTAEw6vG BZ10EmbER4RZVczwrQd5q3TahQy0PDbcHN4vG+cLRfIX7lHnr+GIVYY3cxfEfhnAtlu/ nQ1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=zIh8Lc7XuPD5uRUQvCTRxAXQ8cdDm0F/LIIQTDwhMSg=; b=UNH2Kyb2mqXLW108ah08iCCXdPhTJkLnKt4exHJO1W5jAujExJfr4HwNBtlUD9TGx7 jFlegVl8ipaG4jqtephNmzDnW1V1X4n7YSNrEanf9cYu5kpF+P5rxRar7KKp2UVb6sn8 PPeTSUDngazZ6aZ+W4RSLA63KOz3JsfSzRAuCVGy/xuYMhyc2F2FbkOMzM7labE1C4PZ jdlQfQihD9T1DL/btUEP8h4/DhGKsABmFlKxkcWnO5DCULixRtQJnw2b1pRj50U5J35o Tsnse5mGkzGzQj7NfbH0tUVHkapdU0lG/Boxy7BIhmYnp8CekrVT1MrngqDHydLp3Hb4 ozJg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si14216173pls.423.2019.01.13.21.13.35; Sun, 13 Jan 2019 21:13:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726616AbfANFMa (ORCPT + 99 others); Mon, 14 Jan 2019 00:12:30 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:20527 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726513AbfANFMa (ORCPT ); Mon, 14 Jan 2019 00:12:30 -0500 X-UUID: 164c50fdf3ba426e90032ded7a209a6f-20190114 X-UUID: 164c50fdf3ba426e90032ded7a209a6f-20190114 Received: from mtkcas35.mediatek.inc [(172.27.4.250)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 254616514; Mon, 14 Jan 2019 13:12:24 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 14 Jan 2019 13:12:22 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 14 Jan 2019 13:12:22 +0800 From: Ryder Lee To: Marek Vasut , Brian Norris , Boris Brezillon CC: Rob Herring , Weijie Gao , , , , , , Guochun Mao Subject: [PATCH v1 2/3] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting Date: Mon, 14 Jan 2019 13:12:19 +0800 Message-ID: <54bb8a9d517e2ee35018d78457c6aa6a4970e644.1547442452.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <67e650ca4fcaaddbbc98bf4e1cbe04647c990dc3.1547442452.git.ryder.lee@mediatek.com> References: <67e650ca4fcaaddbbc98bf4e1cbe04647c990dc3.1547442452.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guochun Mao SNOR_HWCAPS_READ is a basic read mode for both flash and controller, it should be supported, so add the capcity for mtk-quadspi. Signed-off-by: Guochun Mao --- Changes since v1: none. --- drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c b/drivers/mtd/spi-nor/mtk-quadspi.c index 5442993..d9eed68 100644 --- a/drivers/mtd/spi-nor/mtk-quadspi.c +++ b/drivers/mtd/spi-nor/mtk-quadspi.c @@ -431,7 +431,8 @@ static int mtk_nor_init(struct mtk_nor *mtk_nor, struct device_node *flash_node) { const struct spi_nor_hwcaps hwcaps = { - .mask = SNOR_HWCAPS_READ_FAST | + .mask = SNOR_HWCAPS_READ | + SNOR_HWCAPS_READ_FAST | SNOR_HWCAPS_READ_1_1_2 | SNOR_HWCAPS_PP, }; -- 1.9.1