Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2101523imu; Wed, 28 Nov 2018 22:30:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xd5AFMWIDTlGeJjK6pw+WDK6NqzYY/4k3jb7OwMpqPckMDbbVgsCjcemZo4bdnR6DPyUHP X-Received: by 2002:a62:6d84:: with SMTP id i126mr234846pfc.109.1543473059779; Wed, 28 Nov 2018 22:30:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543473059; cv=none; d=google.com; s=arc-20160816; b=NXIr4y1iedQmvvgw6JsSxksscMd7P94gsMCC3lZfiiparOx2BMIkGcoJuV0W4kftTx Bee7ZTQ/EMqVnHeYyB0LD2x7nj8Az71Pwly6vKODRgObiJta7ecHoTEdNfeclG1OOY/w QiDYkG48DI0vI1Y8DUGRtFGYzRr4gxm/t9v50shb07fhzzHz6VDUgq0pU8yP14Fi1+IG kf/0FUjiqeBaZstIkyHC/c8jAuScYUaiAnrXE9sotQDqenUnZ+UgxxsmBax5UyhZrv8P UpWizrmQIAkMvdjvdI/2T+faN/muAoGsebigZ25E1gh4ARBH6hqCuSu8NkWWQcPRFtu1 emqw== 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=1BCT6dDNvoE1OtzYxYRjbgwX9GIDv4uNBr3zYjM/iHdCM4Eo29NsT0rjOntUnpnM09 NxVe6mwtfQJtu8a8L7824NP38uGcFG03icKHeRYptHUnG1N/30QV9nsyGHt7UW0LbxRH 6P309rIKUBbe5n3rlJCMr70o6d8KfOKFwbfDFs5MAfLh3muffOAeeUpimM49lkW92lSD qms/B/I3o4W5+Ucuc1qnaakBvxbETTUU8W4iHsuG1Ke6CQH3mr9vNV5mtlLO6AeelUIZ YiOpk+n8TCY4AfveO4gupnlRIVmq3wFI2nmtgkXr+WdBrl47tmo3xkjm2J4eAgjMyS/E HE2A== 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 d10-v6si1173306pla.207.2018.11.28.22.30.45; Wed, 28 Nov 2018 22:30:59 -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 S1727972AbeK2ReZ (ORCPT + 99 others); Thu, 29 Nov 2018 12:34:25 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:32642 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727712AbeK2ReU (ORCPT ); Thu, 29 Nov 2018 12:34:20 -0500 X-UUID: a53deda225344653b570ebc71cde3682-20181129 X-UUID: a53deda225344653b570ebc71cde3682-20181129 Received: from mtkcas35.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1077426204; Thu, 29 Nov 2018 14:29:59 +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; Thu, 29 Nov 2018 14:29:58 +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; Thu, 29 Nov 2018 14:29:57 +0800 From: Ryder Lee To: Marek Vasut , Brian Norris , Boris Brezillon CC: Rob Herring , Weijie Gao , , , , , , Guochun Mao Subject: [RESEND PATCH 3/4] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting Date: Thu, 29 Nov 2018 14:29:55 +0800 Message-ID: X-Mailer: git-send-email 1.9.1 In-Reply-To: <235ade9c5cda19fb0c9356913e3f56ad86600f59.1543472168.git.ryder.lee@mediatek.com> References: <235ade9c5cda19fb0c9356913e3f56ad86600f59.1543472168.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 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