Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp829288imu; Wed, 16 Jan 2019 08:14:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN7iw9L+089yaDicJ+aJpyeissB25ea5RW08E64z1YznQ6lB+r3wgk/79938zZLFJwOf3ea5 X-Received: by 2002:a17:902:9045:: with SMTP id w5mr10300777plz.32.1547655288276; Wed, 16 Jan 2019 08:14:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547655288; cv=none; d=google.com; s=arc-20160816; b=pUIuAczW91182csowxOE8WDl2hd9HYz2LiSRalkdU9efUxCFJL8jFhiupAUkTptFmQ zwpyIeNmwZWcsSEXJQ7OTMeTVcwFe2ntM0cqOTg0ImR0155Al53NMc5c3Y4+YkDgs5u7 l/mEp8wQ0RyabHSbr0deA4fsf18fH8a38u3BzLDuVPlF3Yh9UmIEk9K0rCL7dToaNCLd uQUDDbRD5uggUZx8f8GHL7/yYQxjQs9bH5/WVXBJ9e+MgZR46bBcN2QrOvd5H0VHb30y qvC+GDUlDf55lohqdE1QZWV6+3PHD/+wDHtdf8nWeNeL3Iq9Sewrms+WrUH+3NLET5oq XM9g== 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=yvxcGeFTYIAwfnLIA/JggRfRSKBkhDAkb8okA17JuCc=; b=NUiMMhzNpj2o75ycmLy+uSX72Cklw/4DtGYPwP08whJ+8m1rNbdqFtqDUoA6YdA9O+ e0kOJ51/erGMZ6yMChHufJ5Fqe5FXa0K66Yr4NBiAZSGLVEDvYzSNyyHDN0aIZ9pRStu W2xX6wR0r7zYdrMTJZs0sxsGE1ZWwoAC3H5fh2BnsQlc9Mg/GDLwmbD9t8cRUhw6mC+y lO48kiVyiMWp/LufqTekP+8MDEWjFmC6dfLc39gjognBB0mtiDjXdhuKXC8VRuocTsP2 4lMoWMatCYg6gmnNG8sVfrGsu7fHRRbxxRnB+PxbJ4hkthRO9lm/KJjk9qGiUX494amj pMmA== 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 n4si6608820pgm.487.2019.01.16.08.14.12; Wed, 16 Jan 2019 08:14:48 -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 S1728340AbfAPCMV (ORCPT + 99 others); Tue, 15 Jan 2019 21:12:21 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:23626 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727988AbfAPCMT (ORCPT ); Tue, 15 Jan 2019 21:12:19 -0500 X-UUID: d8cfba1f4c5742e0a1cc8f6d6a034e9b-20190116 X-UUID: d8cfba1f4c5742e0a1cc8f6d6a034e9b-20190116 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 667861983; Wed, 16 Jan 2019 10:12:09 +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, 16 Jan 2019 10:12:06 +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; Wed, 16 Jan 2019 10:12:06 +0800 From: Ryder Lee To: Marek Vasut , Brian Norris , Boris Brezillon CC: Rob Herring , Weijie Gao , , , , , , Guochun Mao , Ryder Lee Subject: [PATCH v2 2/3] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ to spi_nor_hwcaps mask Date: Wed, 16 Jan 2019 10:12:04 +0800 Message-ID: <2afa18c0c898259fc244f15844c5319f71e811df.1547538621.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <74d710ed89fd505a49bce53b51f6cb489e313dbb.1547538621.git.ryder.lee@mediatek.com> References: <74d710ed89fd505a49bce53b51f6cb489e313dbb.1547538621.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: B3FC28A5443B1225512AC62F3AEA0E517B8EEF86F66CA44A453F40A9675B0B082000: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 should be supported by this controller, so add this flag to spi_nor_hwcaps mask. Signed-off-by: Guochun Mao Signed-off-by: Ryder Lee --- Changes since v2: Revise commit msg. 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