Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2286963rdb; Fri, 8 Dec 2023 04:06:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGI/jihhpxQnodN+1m+mD61REB5JgdU69eXw/2fWNm8f7gnSw2ei77qqiEH+gcs/CFCYaJ0 X-Received: by 2002:a17:90b:5108:b0:286:7c14:6d0a with SMTP id sc8-20020a17090b510800b002867c146d0amr956386pjb.10.1702037176841; Fri, 08 Dec 2023 04:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702037176; cv=none; d=google.com; s=arc-20160816; b=w+JbFGySIeNTQuKqPYW1Dr0i8Nd8vDZ85PHnIa6fiEIZCwE+DcrcXMrj4NambsNOMT fw0lSFZoORpBwlA4Db5gJ43SpaYfl6H1fVPbWE9elMo2qEkuCr8ihFSLuOB/RLY9FXFA fvzzGVZlUnopXxjTq+YzJl741rRFqpmN5wjBg+TMoBxf+0JCfrXPOox3ZemXxrDFsLpH 9SMHOW1GEJbo/hshsSaMdKf2iVX7GJIyNxjNOGgHH4qc6yMZV5NOokefZsVx47KFOEVa +VMAJc0hkequMYxfRewgvBF3X/wZ9gc8C7RsZYKHqMYHWZ6X4IxqBBKk13Ze5Zn6SpLm Xz+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=ak9VgfHpDoXWmudOllsYWC451hdkf/ylH5bVJlE5t7E=; fh=XZSxaiUGGwYfG2MG/GmdrOSDAkmoabqzfVS6fRnq3M8=; b=C43CU8X7VUjDjJPoZza3Jr+FbSdiaxUuHuuvTQkfETA7SaAy7z+R460HDPYpyCzwq1 l5lpKGZNlUVf/t1IKXOTmiZjt3IpX6wLMncm3/MjdXkine/NXJjyMlAtTfjp9BqMh9Z+ JpeC8KRPytcUP3icMDbSFgeAL4eMFBjlWEwQN0JtXhdcdi1eDuEC+JA95uMQl0Trkl7b UG2hoKtnqN9hqG7pTe8FNEuID5cCaF1PvYWguzw9FIrIKtXVaBdvowS3pYTuoMb0DptL t+ErtkJtjahZSmzNl2bdPJ6lvgVlNuWH8wrrgyZNHo82VcDGT4E8+HShh2B1NkKX2R4c NkKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id p11-20020a17090ad30b00b002887c0800desi1583689pju.68.2023.12.08.04.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 04:06:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 93BAD83797E7; Fri, 8 Dec 2023 04:06:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233376AbjLHMEp (ORCPT + 99 others); Fri, 8 Dec 2023 07:04:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233392AbjLHMEn (ORCPT ); Fri, 8 Dec 2023 07:04:43 -0500 Received: from 11.mo584.mail-out.ovh.net (11.mo584.mail-out.ovh.net [46.105.34.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CBDCD59 for ; Fri, 8 Dec 2023 04:04:48 -0800 (PST) Received: from director9.ghost.mail-out.ovh.net (unknown [10.109.156.194]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id B2211276AF for ; Fri, 8 Dec 2023 11:25:08 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-7kq9l (unknown [10.110.171.110]) by director9.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 1973A1FE8D; Fri, 8 Dec 2023 11:25:08 +0000 (UTC) Received: from RCM-web1.webmail.mail.ovh.net ([176.31.238.120]) by ghost-submission-6684bf9d7b-7kq9l with ESMTPSA id hpf6AxT9cmXqjQAAh0gf5A (envelope-from ); Fri, 08 Dec 2023 11:25:08 +0000 MIME-Version: 1.0 Date: Fri, 08 Dec 2023 12:25:07 +0100 From: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= To: Srinivas Kandagatla Cc: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= , Florian Fainelli , Scott Branden Subject: Re: [PATCH V3] nvmem: brcm_nvram: store a copy of NVRAM content In-Reply-To: <29d2f463-90c2-4c96-8828-96806679db8e@linaro.org> References: <20231102062848.23965-1-zajec5@gmail.com> <29d2f463-90c2-4c96-8828-96806679db8e@linaro.org> User-Agent: Roundcube Webmail/1.4.15 Message-ID: <7cb70a8ead5f6b74f0a287ac8832873c@milecki.pl> X-Sender: rafal@milecki.pl X-Originating-IP: 31.11.218.106 X-Webmail-UserID: rafal@milecki.pl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 18236200791980485615 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrudekiedgvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepggffhffvvefujghffgfkgihitgfgsehtkehjtddtreejnecuhfhrohhmpeftrghfrghlucfoihhlvggtkhhiuceorhgrfhgrlhesmhhilhgvtghkihdrphhlqeenucggtffrrghtthgvrhhnpefghfeuiefhiedttedtheefhfeifeffveekvdegteetkeetjedtiedvvdfhgfffffenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeduvdejrddtrddtrddupdefuddruddurddvudekrddutdeipddujeeirdefuddrvdefkedruddvtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehrrghfrghlsehmihhlvggtkhhirdhplheqpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehkeegpdhmohguvgepshhmthhpohhuth X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 04:06:14 -0800 (PST) On 2023-12-08 12:15, Srinivas Kandagatla wrote: > Thank you for the patch, > > On 02/11/2023 06:28, Rafał Miłecki wrote: >> From: Rafał Miłecki >> >> This driver uses MMIO access for reading NVRAM from a flash device. >> Underneath there is a flash controller that reads data and provides >> mapping window. >> >> Using MMIO interface affects controller configuration and may break >> real >> controller driver. It was reported by multiple users of devices with >> NVRAM stored on NAND. >> >> Modify driver to read & cache NVRAM content during init and use that >> copy to provide NVMEM data when requested. On NAND flashes due to >> their >> alignment NVRAM partitions can be quite big (1 MiB and more) while >> actual NVRAM content stays quite small (usually 16 to 32 KiB). To >> avoid >> allocating so much memory check for actual data length. >> >> Link: >> https://lore.kernel.org/linux-mtd/CACna6rwf3_9QVjYcM+847biTX=K0EoWXuXcSMkJO1Vy_5vmVqA@mail.gmail.com/ >> Fixes: 3fef9ed0627a ("nvmem: brcm_nvram: new driver exposing >> Broadcom's NVRAM") > > Any reason not to add > Cc: > ? Not really. I believe stable team would pick this fix anyway (thanks to the Fixes:) but doing Cc: stable@vger.kernel.org is described as strongly preferred. Do you think you can just ammend my patch while applying it and add Cc: stable@vger.kernel.org to it? -- Rafał Miłecki