Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4507098imu; Tue, 15 Jan 2019 00:57:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN58odTPoqjwN1HVrtwen8vWG6OuBhM7XGMTKAhFSJsaK5h72xj0oi7Ow8Ecjbhmzh+OV9RA X-Received: by 2002:a62:1e87:: with SMTP id e129mr2836344pfe.221.1547542625342; Tue, 15 Jan 2019 00:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547542625; cv=none; d=google.com; s=arc-20160816; b=W49RPovaeXrqXfWsOTd7ckonWJ1+n8Ffax3mSf0lpPgcbdOOsHRuVOOCD/zRFqwrS4 WD4dDd6IP85DjWn86JGDqhiEsFK7Fqrl349lDr4AQnrU1JeCk38PG47VKOdobZ/HKL9V b4VLsmAN0x0qV+zC3//tjL0LuLk9/SGD4xgvmyMFUQGCshBI32/nQXrqypqhE08OqVQn irTgNMTr4SPqBm606Rr9vzNGQ0da3XA/4m8V+3UVcNkYqTr8KlDfHkZBE/tEtDSAXZug WVDiSj9rF8MNR7EZQSnxgk2SqSndh5O3dQnPgkLjTvtPZ38AakCcWNxrJb5MF634m0TI LEUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=IlSOCU6ANcpxKvD5JFg1Rt+dyN5I6s2UPHhH0b+L4UM=; b=fkEG4a1utcIdLqjFPYlcZs03NbMtbRHYm6HMctp7X4G34/MwQz9JK37l4UPv10M7zE yIKODh85dvDm7dr2uUWfSm4szvZkMbn8uOqw2YXBZSk7HVzYERcbEM7xHLP7nQJ8HrHz Yhebooq/e3sNxbR321rIzKa4Cvmc/iZjgOWDVr6dEO3AlXuWCXj/Ew4hQKuV2eQn4B2P z/F6wTWgvBo2wRRVpVQ3K4uiXpkwwAmOjRcaujK3uFm9YeiJEtOeOchCa9Mda2VgSeOi piK7d6+l7PYkPiRN9upUvcbXtnamjf+b/Bg0/ijJUfLk1pk7fqjV5rJGqU4dPA7AJrMT CZcg== 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 206si2613710pga.240.2019.01.15.00.56.49; Tue, 15 Jan 2019 00:57:05 -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 S1728179AbfAOHpN (ORCPT + 99 others); Tue, 15 Jan 2019 02:45:13 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:46673 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726594AbfAOHpN (ORCPT ); Tue, 15 Jan 2019 02:45:13 -0500 X-UUID: b73da8501bab474b848fbd595f955e47-20190115 X-UUID: b73da8501bab474b848fbd595f955e47-20190115 Received: from mtkcas34.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1216061093; Tue, 15 Jan 2019 15:44:58 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 15 Jan 2019 15:44:58 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 15 Jan 2019 15:44:57 +0800 Message-ID: <1547538297.10234.4.camel@mhfsdcap03> Subject: Re: [PATCH v1 2/3] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting From: Guochun Mao To: CC: , , , , , , , , , , Date: Tue, 15 Jan 2019 15:44:57 +0800 In-Reply-To: <8afdb25c-894b-0a89-b7a8-b754fb4ba905@microchip.com> References: <67e650ca4fcaaddbbc98bf4e1cbe04647c990dc3.1547442452.git.ryder.lee@mediatek.com> <54bb8a9d517e2ee35018d78457c6aa6a4970e644.1547442452.git.ryder.lee@mediatek.com> <8afdb25c-894b-0a89-b7a8-b754fb4ba905@microchip.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-01-15 at 06:59 +0000, Tudor.Ambarus@microchip.com wrote: > Hi, Ryder, > > On 01/14/2019 07:12 AM, Ryder Lee wrote: > > 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. > > Since I couldn't find a datasheet for mt8173, I tend to share your assumption - > SNOR_HWCAPS_READ should be supported by this controller. However, it's always > better to test it and not rely on assumptions. You can test it by forcing the > mask to have just SNOR_HWCAPS_READ | SNOR_HWCAPS_PP set. Or you already tested it? Our IPs all support SNOR_HWCAPS_READ, Ryedr and I have test it. > > You have a typo in capcity. Maybe substitute it with capability or "add this > flag to spi_nor_hwcaps mask" Ok, we'll correct it next version. Thanks. Guochun > > > > > Signed-off-by: Guochun Mao > > You should add your SoB tag, because you are sending a patch that is not yours. > > Cheers, > ta > > > --- > > 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, > > }; > >