Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2491744rdb; Thu, 21 Sep 2023 23:14:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpFiHESy1c5UySX/WsdAWbySzB2rTkQBbCUIWUwHzcb9w3Jyv6KAQ1HWbytukCkToHOKyw X-Received: by 2002:a05:6a21:33a9:b0:15b:2125:88d1 with SMTP id yy41-20020a056a2133a900b0015b212588d1mr8204878pzb.2.1695363265172; Thu, 21 Sep 2023 23:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695363265; cv=none; d=google.com; s=arc-20160816; b=iC40KZ0sTQ/DtHMzHjY6vHbXLH6isvNIZf3IE5xMCQv8U4XjzGYWXlGQeriz4w7E9V knNXUQ9Xjf0V1DcsSbswEpjrM2K/K5g7yWiTivJr7Ji5yNHYORMaYM4uxI3qo8p/TcYy vVIM078c1+gQbcFPoGh/xGu+9ojA6sJ6H6rM/yKYwDFQnIJVCLUVSMg8UHNVb9rotEgX BhwaGLF94WpCDcXOJ7PtxbgrnyNiiBR94j8OIToK4aadYw4sfM46ae4RZ6EoHkhwAO1u ZyvDzvLuNLQ/rQMZosHBCLVsgVirrLKW/APyAGa4FwneJnDsM7HYDvXluLUPj83WgwKw fcEg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=BRjD71BxaHKeKUao5JkBY66AYjHKMR6kgB3U+BDfPis=; fh=10nPb+rxtC90e+ompWiia9JfnPLWb6MR6Ufb5oi62i4=; b=PFxaQo4ueiYx8lqD2hxUxb1URqIYUzr870Ad5g+TdgZPTvCvXIxJQZJD7V3Wdk4Nv7 XP5esfJPezT1lp0zWUdlqM9/lTmWKYczq/xLI/fBBGZj4zqfwQ4xb1zdk8sugC2kKshW gJNOAMLgNu7TH2csMoLy4BtBA/vEOCsr2BJKZQyvAAzn9acK0iLAxZCu5qkcdcLC3/JT a3RgN9Rwda3BerhI405A2KWxyV6Ys5e4dG9vH66DqIFwj3fqwRVbQVtvVOnK5ZNMwYfc i+SjZlEWN7CAy/B7BB+1JuIxwJ9XnpSyPr19RAD9/uVedzFIDlJcBbAzrp1D1Vsf3hzW +VPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ho7SHi/r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y2-20020a17090a86c200b00267668f8be7si3097618pjv.64.2023.09.21.23.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ho7SHi/r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F3DF880FC72A; Thu, 21 Sep 2023 10:27:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbjIUR05 (ORCPT + 99 others); Thu, 21 Sep 2023 13:26:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjIUR0o (ORCPT ); Thu, 21 Sep 2023 13:26:44 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ECB95AAAB for ; Thu, 21 Sep 2023 10:21:30 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50307759b65so2273237e87.0 for ; Thu, 21 Sep 2023 10:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695316889; x=1695921689; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BRjD71BxaHKeKUao5JkBY66AYjHKMR6kgB3U+BDfPis=; b=Ho7SHi/ryKoRwLToXgd2BOfVJQIAGve3hien8pv9xkpxa457QYcZ0hwacwtOk3mKvp D0sETx3z2JHw2AeuqRZ0RrhGfK7KHK3E3T73RNkkG9uiEjIXQbcAK+P47KxDhs6PQavY PbMV00IINqjyX7V/M9NhnY0wBhP66kgxmCSk2Y45BtvSYlibWGY6q0DO3Xh6Sqp3izrl lj8I22RK2XEByZmiVzCSj0VF4hy6P3al3xFV8l66MQNKwpDyZcq1IvWDTha5fW38F1Y2 zbCr9qe8e2wtnAISsLkJiGdzlnB0ySsKj3HmkCcV4dZS1Gkchx2xEFlt6dZY1nSSn7kY v4lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695316889; x=1695921689; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BRjD71BxaHKeKUao5JkBY66AYjHKMR6kgB3U+BDfPis=; b=NDD5yOB9tCiBqbW2nUzPuw0OGZsFilqJusbtRvU7wiEIVlXkG5rS17MTUkN16qMgeS aYwGV1s5MYnsgLGI5AUSTCt/3AqmBuWdyavVqV7XTXISK8PJLlA79ejOyfHKyF7M7/pD l3em5dpDJYEVDwak6OCtJdq4u9BiBLlTgqvYaEomhEOiyjIdUH2K2JbnHqB//iPSLOq4 4vrkquuqIzmB4z0Txyhf+MMSk6qkkWDXdvfmsOPYg8xo66NUU/ezHVy0yMBIjOP8wJ8U s4ed2qz9lVBhhiRU1O32FVzYu5qT/meQiWWFN7El9p2b+YmKXgFWARCcy0mj0KHvkVLA Wcgw== X-Gm-Message-State: AOJu0YzBGw/cLB+kgEEOsyJR32eP7gcH+S2ji3xI7WpGidv5kl5LRzFV dP/b10lhgU4B3Htp2gzf+sgH6I/qQXXy9bdfDu2QoQ== X-Received: by 2002:a17:906:10a:b0:9ae:6355:afe9 with SMTP id 10-20020a170906010a00b009ae6355afe9mr2017506eje.52.1695306953057; Thu, 21 Sep 2023 07:35:53 -0700 (PDT) Received: from [172.20.34.61] (static-212-193-78-212.thenetworkfactory.nl. [212.78.193.212]) by smtp.gmail.com with ESMTPSA id cb8-20020a170906a44800b00988dbbd1f7esm1118264ejb.213.2023.09.21.07.35.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Sep 2023 07:35:52 -0700 (PDT) Message-ID: <4425afd4-c38c-4f27-96a6-9833fe2401b4@linaro.org> Date: Thu, 21 Sep 2023 15:35:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] mtd: micron-st: enable lock/unlock for mt25qu512a Content-Language: en-US From: Tudor Ambarus To: SHUKLA Mamta Ramendra , "pratyush@kernel.org" , "michael@walle.cc" , "miquel.raynal@bootlin.com" , "richard@nod.at" , "vigneshr@ti.com" , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" Cc: GEO-CHHER-bsp-development References: <20230705154942.3936658-1-mamta.shukla@leica-geosystems.com> <19800e51-a871-be9f-9eb5-5829237e2613@linaro.org> <084ed945-7674-280f-5866-9238473a294d@leica-geosystems.com> <17989610-d069-40e2-9b4d-7ca6bdf2497e@linaro.org> In-Reply-To: <17989610-d069-40e2-9b4d-7ca6bdf2497e@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:27:01 -0700 (PDT) On 9/21/23 15:31, Tudor Ambarus wrote: cut > > So the first commit will look like: > diff --git a/drivers/mtd/spi-nor/micron-st.c > b/drivers/mtd/spi-nor/micron-st.c > index 4afcfc57c896..a8da1f18e335 100644 > --- a/drivers/mtd/spi-nor/micron-st.c > +++ b/drivers/mtd/spi-nor/micron-st.c > @@ -405,9 +405,6 @@ static const struct flash_info st_nor_parts[] = { > }, { > .id = SNOR_ID(0x20, 0xbb, 0x20, 0x10, 0x44, 0x00), > .name = "mt25qu512a", > - .size = SZ_64M, > - .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | > SPI_NOR_QUAD_READ, > - .fixup_flags = SPI_NOR_4B_OPCODES, since we removed the 4b-opcodes flag here, > .mfr_flags = USE_FSR, > }, { > .id = SNOR_ID(0x20, 0xbb, 0x20), > > and the second one will add just the BP support, something like: > diff --git a/drivers/mtd/spi-nor/micron-st.c > b/drivers/mtd/spi-nor/micron-st.c > index a8da1f18e335..fdafbfa0f936 100644 > --- a/drivers/mtd/spi-nor/micron-st.c > +++ b/drivers/mtd/spi-nor/micron-st.c > @@ -405,6 +405,8 @@ static const struct flash_info st_nor_parts[] = { > }, { > .id = SNOR_ID(0x20, 0xbb, 0x20, 0x10, 0x44, 0x00), > .name = "mt25qu512a", > + .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | > SPI_NOR_4BIT_BP | > + SPI_NOR_BP3_SR_BIT6, > .mfr_flags = USE_FSR, > }, { > .id = SNOR_ID(0x20, 0xbb, 0x20), > > Of course, I expect you to run again the mtd_debug tests and also verify > the locking. Thanks! would also be good if you can also verify that 4BAIT SFDP table is present and you still use the 4B opcodes after the change. > > Cheers, > ta >