Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16507542rwd; Mon, 26 Jun 2023 10:56:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cZZZZ9VqNdM0h80x2AlMWfzZ3TPyW0FlEnxEkWSaTxLooGTqRohNO9vbozDvoEqsXjxjF X-Received: by 2002:a17:907:c13:b0:988:aa45:806 with SMTP id ga19-20020a1709070c1300b00988aa450806mr21451333ejc.15.1687802166462; Mon, 26 Jun 2023 10:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687802166; cv=none; d=google.com; s=arc-20160816; b=e2R1Ibr2cAjPvsD1s/hr0Kw9eJBHsaPcC99W4CTS7/390s2Cg2dqXa/pioz0EmGqbR MUSBzGMNOS4+LogpvOObmrVnmlS/CRF3Fif1jE7E7p4XzlWRChLvVxIN+O+64YthRWvE 4vMI3KutKnipIP3RTXw4P0wZy13YAnC2gtIvxBO09eF+nH0iRnHQ4o2aTo48vAo//oi5 M/EXh0gRR3S0Y09npIzXPL0Yl2BORbLm7ns2AiQXGm7v8JphhApxthwnmivnenVoF7KW AfKgdSJh5CFxxQWziXiK6MfoVRVXNkMVA6sOcS8QowthOP/8EtGUY3VQWsGNo8GAdJCt MeXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yroxkgKioHrZTGpODjLyyfF9yENl2SFrHXGfAeFocaM=; fh=DosNlkU1WaR19qMvkbB1UEl8eQRPvHBxJi+2wY/f678=; b=fbptcMLjyIZFNwYXUjCqwHB4+fVVI3qXwdq8iLlraFytUHHHAsf2B9gikVA0OE0MMW or/GFanQR7gFrz/m4WDsyy+VFpz/RKCNbWY/XG1Y/LjC+nKWSw2uns1HdiiOtJqWbWYM A/7aLQkqEAS3EhQzZRPnHyeu14fEga1p0IWPI1tg5MG2s0Ya59/W4IJj2JjFFFHYh3sX tSeDMIrndeF9JR7yKtauvoizVcYtjPqiR43NHsVhuwVAo9RoBtN5AQaT4niO4PjNl336 jKsTJvsaV0khkhhNF8r+ju3qyTxrolGxBXq5opipieN6Gpw4zi8y4XxOmEYP1cXo/uLX 4lvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s+67EIwv; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a170906454c00b0098894494803si3275534ejq.853.2023.06.26.10.55.41; Mon, 26 Jun 2023 10:56:06 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=s+67EIwv; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbjFZRYF (ORCPT + 99 others); Mon, 26 Jun 2023 13:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjFZRYE (ORCPT ); Mon, 26 Jun 2023 13:24:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC98891; Mon, 26 Jun 2023 10:24:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5260560F0E; Mon, 26 Jun 2023 17:24:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C60BDC433C0; Mon, 26 Jun 2023 17:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687800241; bh=J5IE0ZFd89PlUjMsyC5ZSSfbrAt4OkK3g5ZAb+NJ6cI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=s+67EIwv9mAa2V7iEVLKwGUPMnb38s1xTCeeadi1GdFveWAGuua0K6aWOGajDM8As q+7TiNF4Hm5Yb+tgqpOXIzT8YDjIQiXMNi3fFmHg90gTplcy6mLes2qSQOp7exnhe1 KIapOq4nn+uMK38lXA/4aszTTNZmJTukNnDNVaydmE3kVw8vWOnTfvnKX3/sy7dkrq G6JzqULi8qz6kgPd5gNIbxlMm3n1yLeXckEUR4Yxc7TXhbbUBJayXJZ6u9mpa2kG4U /5QvQLmoeIAfS2CJIxFPWVnamCFxgPwbLeevfpASqhXXy3jjIbF+kxeEjHnflzTpBR O4Wb5GrpJTfhg== Date: Mon, 26 Jun 2023 18:23:56 +0100 From: Conor Dooley To: Amit Kumar Mahapatra Cc: tudor.ambarus@linaro.org, pratyush@kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, git@amd.com, michael@walle.cc, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, amitrkcian2002@gmail.com Subject: Re: [PATCH v3 1/2] dt-bindings: mtd: jedec, spi-nor: Add DT property to avoid setting SRWD bit in status register Message-ID: <20230626-stonework-freely-bec6f8bc83e6@spud> References: <20230625100251.31589-1-amit.kumar-mahapatra@amd.com> <20230625100251.31589-2-amit.kumar-mahapatra@amd.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qjgSjtDERNYXQ8hA" Content-Disposition: inline In-Reply-To: <20230625100251.31589-2-amit.kumar-mahapatra@amd.com> 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,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --qjgSjtDERNYXQ8hA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 25, 2023 at 03:32:50PM +0530, Amit Kumar Mahapatra wrote: > If the WP# signal of the flash device is either not connected or is wrong= ly > tied to GND (that includes internal pull-downs), and the software sets the > status register write disable (SRWD) bit in the status register then the > status register permanently becomes read-only. To avoid this added a new > boolean DT property "no-wp". If this property is set in the DT then the > software avoids setting the SRWD during status register write operation. >=20 > Signed-off-by: Amit Kumar Mahapatra > --- > As the DT property name has changed so, removed Reviewed-by tag. > @Cornor if possible, could you please review this updated patch. Rob was the one who objected to the property name. Old & new names are fine by me, it was the text I think I cared about. Reviewed-by: Conor Dooley Thanks for actually explaining why you dropped the tag, Conor. > --- > .../devicetree/bindings/mtd/jedec,spi-nor.yaml | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/D= ocumentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > index 89959e5c47ba..97344969b02d 100644 > --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > @@ -70,6 +70,21 @@ properties: > be used on such systems, to denote the absence of a reliable reset > mechanism. > =20 > + no-wp: > + type: boolean > + description: > + The status register write disable (SRWD) bit in status register, c= ombined > + with the WP# signal, provides hardware data protection for the dev= ice. When > + the SRWD bit is set to 1, and the WP# signal is either driven LOW = or hard > + strapped to LOW, the status register nonvolatile bits become read-= only and > + the WRITE STATUS REGISTER operation will not execute. The only way= to exit > + this hardware-protected mode is to drive WP# HIGH. If the WP# sign= al of the > + flash device is not connected or is wrongly tied to GND (that incl= udes internal > + pull-downs) then status register permanently becomes read-only as = the SRWD bit > + cannot be reset. This boolean flag can be used on such systems to = avoid setting > + the SRWD bit while writing the status register. WP# signal hard st= rapped to GND > + can be a valid use case. > + > reset-gpios: > description: > A GPIO line connected to the RESET (active low) signal of the devi= ce. > --=20 > 2.17.1 >=20 --qjgSjtDERNYXQ8hA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZJnJrAAKCRB4tDGHoIJi 0ntuAQDVpae9PflF2Bc8e7EAKMWs4/x2R2zXS1I6cmwqsdqWJwD/SL5M96LQ13GW oDRx25XRP1+G6pAwWLHTEwIoub+Q9gc= =EFCF -----END PGP SIGNATURE----- --qjgSjtDERNYXQ8hA--