Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5737398rwl; Sun, 8 Jan 2023 21:51:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfTkxQSMRQ3/Eg+hEw1oNZJN8sv01mxV8MKDywU1hNagAsLtzIfdqAjhVkjWm58xsbbcPd X-Received: by 2002:a17:906:9f12:b0:7c1:61a6:2cd2 with SMTP id fy18-20020a1709069f1200b007c161a62cd2mr54528677ejc.9.1673243461375; Sun, 08 Jan 2023 21:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673243461; cv=none; d=google.com; s=arc-20160816; b=PFDtXSekDpwwxQ8C/ODFh7q+k/LyluqhfphVuCfbaGU5O/QSw+qsK3zN4z5QNVhNQa eYZS32Q1V5I5skZikquLcBqQ4nxILr3FI/5TojmrgET3VKbbl5ImuOSE7x6YQMD9dIs/ 1IK0cdDMWfhiWydXRYFtPM8daEDhhuuB6+mZFvfuodR82xLc1Yk0lOOhgaZwGSHa6Rt9 vgfJCr/1OWv6+QvwIY0yis3kPLX5qFwUKJh2soKn3Bv/cut6yhOb9wTXKXIsuoOpBwTP uBsck9HhDznACWH6SARZB4fg7723ON3gfX5xuDdVHUXnQc5WrhJ2pUuzUYTK7CFOUs0z mJZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=s1W2ZfWslUfpwbe+XtN7DnIFblspWS94tqfwh5Rdr/o=; b=wS/LlRIYZOm0h775ufvl5tYJDVyiEzhA8+AI3SjNieq+ccR8zwpknO/snpQ698IL/6 xS21a8LdEUhGjOEY/MyajkGRMcpIL1b1JKgUgL9PIHpVVkNpUEuix/+RP/SOepFv2Y1a PHS1cX3+hJ9ZvUkiX0ERN3mA6SZ3hSc2F9sY9lnA5pvYgGL2igrXLU980nTQzIpks/Bh /Cf7TT+7G6hQa/2CkgUbPTKlFCuC1UJTYfS89CZrAgWMkAyG/7oXUBUOEzlBMNt4IziE pbp5IB+8prpuZ0SUFZzMHwpYOiuCaM9RNxcwY4HSoTIiuAF0AsP5t84tjRcQn8iz5q3f IDNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Pnhssb2G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di17-20020a170906731100b007ae2368c8b3si9252189ejc.730.2023.01.08.21.50.48; Sun, 08 Jan 2023 21:51:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Pnhssb2G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233618AbjAIFEx (ORCPT + 54 others); Mon, 9 Jan 2023 00:04:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233987AbjAIFEu (ORCPT ); Mon, 9 Jan 2023 00:04:50 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56060A448 for ; Sun, 8 Jan 2023 21:04:49 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30954NiY054709; Sun, 8 Jan 2023 23:04:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1673240663; bh=s1W2ZfWslUfpwbe+XtN7DnIFblspWS94tqfwh5Rdr/o=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Pnhssb2G991ClaVPTT5bC7Fd+UDHFtALYig+YJlVpsEGAkqfDJiS2EtFA7StLhTBh MspmY6M9OeTHnAuvmz7CLdp0pj1SRcaYa8N0qDbNjxouT7WaheYnVLOghZ0YpKyknJ 3Ug8k6UNY3Br65wn5IxaW/GPOjeWvax7EyO7CkyA= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30954MR7082181 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 8 Jan 2023 23:04:22 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Sun, 8 Jan 2023 23:04:22 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Sun, 8 Jan 2023 23:04:22 -0600 Received: from [10.24.69.26] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30954J2U094991; Sun, 8 Jan 2023 23:04:19 -0600 Message-ID: Date: Mon, 9 Jan 2023 10:34:18 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2] mtd: spi-nor: macronix: add support for mx77l51250f Content-Language: en-US To: Tomas Winkler , Tudor Ambarus , Pratyush Yadav , Michael Walle , CC: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , , Alexander Usyskin References: <20230107214345.2524851-1-tomas.winkler@intel.com> From: Dhruva Gole In-Reply-To: <20230107214345.2524851-1-tomas.winkler@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Tomas, On 08/01/23 03:13, Tomas Winkler wrote: > Add support for mx77l51250f spi-nor chips. > > SPI NOR sysfs: > > $ cat /sys/bus/spi/devices/spi0.0/spi-nor/partname > mx77l51250f > $ cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id > c2751a > $ cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer > macronix > $ xxd -p /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > 53464450060103ff00060110300000ffc2000104100100ff030001020001 > 00ff84000102c00000ffffffffffffffffffe520f3ffffffff1f44eb086b > 083b04bbeeffffffffff00ffffff00ff0c200f5210d800ff8341bd0082a7 > 04db4403373830b030b0f7a9d55c009e29fff050f985ffffffffffffffff > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff > ffffffffffffffffffffffff7f0ff0ff215cdcffffffffffffffffffffff > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff > ffffffffffffffffffffffffffffffff3c9b96f0c5a4c2ffffffffffffff > ffff003600279df9c064fecfffffffffffff > > $ md5sum /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > 36fb8e3e6f82c45bfabea45ec73c08a8 > /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > > Note: The test_qspi.sh wasn not run as this device in intel setup is used > for BIOS and platform firmware storage. Thanks for doing the testing but one small suggestion, move this below the "---" lines before sending the patch email. > > Signed-off-by: Tomas Winkler > Signed-off-by: Alexander Usyskin > --- For the code and idea itself, pending the changes I have advised below. Reviewed-by: Dhruva Gole > V2: > 1. This chip supports SFDP, parse it instead of the manual configuration. This sounds good! Do the other flashes in macronix_nor_parts support this? Maybe they can be updated in some later patches as well if they do support SFDP Parsing. > 2. Add required output of sysfs attributes Yes, but I am not sure in this is the way to do it in the commit body itself. When Tudor asked you for those test logs, I think he meant for you to paste it in the cover letter, or below here not in the patch email. Not in the commit body. Refer https://lore.kernel.org/all/cover.1661915569.git.Takahiro.Kuwano@infineon.com/ where Takahiro has provided the tested details for ID, SFDP, Test logs. > > drivers/mtd/spi-nor/macronix.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c > index 6853ec9ae65d..6c3b4192a8ae 100644 > --- a/drivers/mtd/spi-nor/macronix.c > +++ b/drivers/mtd/spi-nor/macronix.c > @@ -100,6 +100,8 @@ static const struct flash_info macronix_nor_parts[] = { > { "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096) > NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) > FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, > + { "mx77l51250f", INFO(0xc2751a, 0, 64 * 1024, 4096) > + PARSE_SFDP }, > }; > > static void macronix_nor_default_init(struct spi_nor *nor) -- Thanks and Regards, Dhruva Gole