Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp444320rdh; Thu, 26 Oct 2023 06:40:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRiLadZQU4JLxvY525jCwou+1OdsS2sRWoMZOaGEoifDirWQhHo/UIY4LKYKmV5Yrp2bxE X-Received: by 2002:a25:9709:0:b0:da0:3a37:61d5 with SMTP id d9-20020a259709000000b00da03a3761d5mr5028587ybo.4.1698327618748; Thu, 26 Oct 2023 06:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698327618; cv=none; d=google.com; s=arc-20160816; b=qGmd6QWitWjtKKrSfzNjPI9Dju2p657etJxI9rA9CqSEN31ZLhYDZzkNviEgP19pEr AjPNrwZog66nrxrxnriWyvOdmeuhFYnsXzPzIONL1ulidKWFoSUiPQLEdSfpJDW9yN6d i5hP5VUjFX4O/TkNv+dCcenMUyFsIk7xZJFhrD9YjKOr/ujsknTcGMPAVDLywcseQ8tM ecJLWRZGfpezt/8Cj7Kv9zV1a2seYlp4CMn6BB7gvC9wUjRKHNJwIMwXfgw5gPg9eO2n whqyHQ/otvYrAJ4InK5TtSYFQ6ZZbLYVGjbMSwgFC2yeV9dZ8lwfdXHZPPYk/IQh0fXH ONCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=alpl1HA/zUZSF0AASFFdVq6CgpgpZ69OEMyafJkePfM=; fh=wBx2q3POj/CBhzD9Fdza0ZUotonKwqiP+z39JAjILQQ=; b=KWmruJ5fgPwLhhcsj84GL286MdQgq0+ucT20MhEgS3B3akMtRTJzLjH3uPso5pAnKx 5m5Y2AMGKgiAMppasUgTMqCDSivH3i5IQi8YapUxYreDISUZYejV7XudTZvllnCg44D2 YmdonuQyPwFnyW3WzgQwPODsV2xW7cCsevvtmL2cEClHlblBZ41NCvFpC0UrkUW3i9z1 nYfhU1EUSTXanxZEXiYtuUMt6pGD0O4r7iDe/pGIFFCk+SVRv3Hlrf/F0bkSSP7eIIXk Td/hJ2mXjGQN0kAvwrTQmF5NqcZQBbqIK12+Ab/S2vZY0OIEqRQeKbC+jOE0xjrvim0g e5Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IdX7isk4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id x10-20020a25ac8a000000b00d7828490b96si14395607ybi.142.2023.10.26.06.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 06:40:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IdX7isk4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B1E4481C57D2; Thu, 26 Oct 2023 06:40:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345050AbjJZNkB (ORCPT + 99 others); Thu, 26 Oct 2023 09:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230413AbjJZNj7 (ORCPT ); Thu, 26 Oct 2023 09:39:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03424BD for ; Thu, 26 Oct 2023 06:39:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32633C433C8; Thu, 26 Oct 2023 13:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698327597; bh=Yo1Jp9MQveisgDNa7SmJESLL8DTmwQjMaMUWrbBXxQ4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IdX7isk4NJaVOXcPxsCULZn8rikRNx7vqIfiZeABmRI621N7Cvlsn56W7+1HNsMrh G/tm35NXAg7C4dXWXtbxzcgABqW4TqOyGhMWrR6fpjxS/Ngs9+O8ynCykZFW1FtrR+ R/ycI79jMq++DsW5LLDfVgarZpTC/6qsPRVR4T1/uRerxpXbOwOckF8KDct9ws50ac mwZm1HUF6z4nCDJqJyusf6pwv5W5dX3I/4IjRPYJT5BWDlln55oLU1GhLFn2MdjehF 3JgrmVxs+r/cuINidO7zi5VxB7ix19gdcKzUtcltqPqcIjo5adLPEB8R1LqEIOXMUE dd45wcEkfGtXg== From: Pratyush Yadav To: AceLan Kao Cc: Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mika Westerberg , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] mtd: spi-nor: Improve reporting for software reset failures In-Reply-To: <20231026012017.518610-1-acelan.kao@canonical.com> (AceLan Kao's message of "Thu, 26 Oct 2023 09:20:17 +0800") References: <20231026012017.518610-1-acelan.kao@canonical.com> Date: Thu, 26 Oct 2023 15:39:54 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 06:40:16 -0700 (PDT) On Thu, Oct 26 2023, AceLan Kao wrote: > From: "Chia-Lin Kao (AceLan)" > > When the software reset command isn't supported, we now report it > as an informational message(dev_info) instead of a warning(dev_warn). > This adjustment helps avoid unnecessary alarm and confusion regarding > software reset capabilities. I still think the soft reset command deserves a warn, and not an info. Because it _is_ a bad thing if you need to soft reset and are unable to do so. Your bootloader (or linux if you rmmod and modprobe again) might not be able to detect the flash mode and operate it properly. I think we should just not unconditionally run this and instead only call it when the flash reset is not connected -- that is only call this under a check for SNOR_F_BROKEN_RESET, like we do for 4-byte addressing mode. I don't have a strong opposition to this patch but I do think it is fixing the problem in the wrong place. [...] -- Regards, Pratyush Yadav