Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7646865imu; Wed, 14 Nov 2018 22:27:42 -0800 (PST) X-Google-Smtp-Source: AJdET5fpPnl1MaZHeewis39H/Wxrs5Ic0055YEbLWNaFQdz/oKfjzRMA7oV+XhIRwWkuG+3HoeMP X-Received: by 2002:a63:9dca:: with SMTP id i193-v6mr4356612pgd.98.1542263262720; Wed, 14 Nov 2018 22:27:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542263262; cv=none; d=google.com; s=arc-20160816; b=dNIAU3lfpKSY2aJyl/RcZdQfbZ3wGgxa7VrzblN95Y7rO+rjLJaygNp70zWgr9VcNt bmjBHSI+h3s2haS0D5B0BUZoSvr82fFBB0JovgsUGZPrn57RKdOhwR1d1oorsDSnXinm ggZT6wuydetCR9pi8FygC6NRrzWt7RTY6Y9KJZE1U+VA68Ok6LE3IFsBFsMjaJy5+jJy 0zqYhWDzW8ag7FpHy5fh0iZ1JsEJ8EH+/Nb8J3+uJUl6CWaOH9WnlOm4h8xRfWfykfrn aN97EYrGXe0+aOB2qg2vS+XMQsFchRVYKdhmSvhmEiJ+dwlQQNjr9oO+3bPZIT6bI3z4 /p5Q== 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=k5qqpnegbSdJEbloeV9LEsIVPTJVja3XllUFG/nmKec=; b=DBfPPNtAj/C66WXfIlh5+/fvjrWqFO6vjjyMUICTcpVt7u1G8eVQhij+/6tjYuGS+x aqzighG8ZgG35FcF/n8XZIrvbwTP9phn3Agh61hkJynbCTy3t/FZErLLop3QbCWYpWzY dH070D+0ks1cjSMCLAReWWhUPLeMypSVqqHFNq8YeEp3iIc7q6nqxPf5b6fsb1zYFQEF J4ff/VOrufDdBcbacjqeRCeyS22wmnKtTDCKnMeNN5tAfJ+qkbVMHV0TzLEIejuFsvQU yDCf9HEvylG319k3nKk2MtGHQwADLu8OGJSSplsWwezPDlDX73kYCIAiXKJpkxN1EHFb 8x8g== 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 h19si25291282pgb.231.2018.11.14.22.27.28; Wed, 14 Nov 2018 22:27:42 -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 S1728576AbeKOQdR (ORCPT + 99 others); Thu, 15 Nov 2018 11:33:17 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:48432 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726840AbeKOQdP (ORCPT ); Thu, 15 Nov 2018 11:33:15 -0500 X-UUID: 3d3b094ded6245f389e1f9536c75cbee-20181115 X-UUID: 3d3b094ded6245f389e1f9536c75cbee-20181115 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 924279693; Thu, 15 Nov 2018 14:26:39 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 15 Nov 2018 14:26:37 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 15 Nov 2018 14:26:37 +0800 From: Ryder Lee To: Marek Vasut , Brian Norris , Boris Brezillon CC: Rob Herring , , Weijie Gao , Roy Luo , Guochun Mao , , , , Subject: [PATCH 3/4] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting Date: Thu, 15 Nov 2018 14:26:25 +0800 Message-ID: <991d85ccb62ca8c68706a1b5df304bdd11a64bcd.1542262833.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1dc7b27cbad59c413d7076ff7d16b6757014d727.1542262833.git.ryder.lee@mediatek.com> References: <1dc7b27cbad59c413d7076ff7d16b6757014d727.1542262833.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: B7E20A1046C92EEB04C5DA43630F305D98B6421D246BD0900D8A2EACD2CE1C7B2000:8 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 Tested-by: Ryder Lee --- 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 2278677..c198fd2 100644 --- a/drivers/mtd/spi-nor/mtk-quadspi.c +++ b/drivers/mtd/spi-nor/mtk-quadspi.c @@ -433,7 +433,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