From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E2D8C25B67 for ; Thu, 26 Oct 2023 13:40:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345061AbjJZNkB (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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