Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp324762rdb; Thu, 19 Oct 2023 05:53:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOu3EneFkQs0Joyfqrva4hLLwFXVklh9CRXfgdHoFDaccofDo/MDEGDBj8va+xtDozytzf X-Received: by 2002:a17:90a:196:b0:27d:6dfb:405c with SMTP id 22-20020a17090a019600b0027d6dfb405cmr1668502pjc.42.1697720016127; Thu, 19 Oct 2023 05:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697720016; cv=none; d=google.com; s=arc-20160816; b=BicpUuatG0hLhjklM1a6mky3JUH3IecRyTQLuiHnnwyMus5vzRx5aoAS57is3OpkDO S0MLVHIHl2XcUZqD0vZ3gy7pNbeUh4nsAqgFFeI/4iHsInVnohiUCK0N6S/imb9TOFun RefHRD+HCXfkRMGHxPCUymQsfjeNTLAX6nFYEBSQcETzCqcL2uJEpCkReJ3QBGr6Fpde NXRhBossGAVYOLbCtn1kJQe2dCqcUegCgCmk/v01qs63v31098TBUmzi3MwHfYZi9K6A 3Ifpk2dYjZFlFry8h6LMd/NUmZ/hdBU7SKZwi7rrZaaOiJBeX1i66WMuLr8S0wHXOtI1 NqAw== 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=KprE7suUBEWP0k+5jTfoPS0xuYP4w2mCoqdRGW6Tx58=; fh=Z21sdrxzgcUFLXsgM94anVuXVDBhMf/so7vHEsei/i0=; b=ss16wH1zk2oE/P4VT8iWaL5Y2RSju4qx8l4J/YLOLJH3T6JWyZAJ/IvdW7W572EBZ3 t52NJxo10Ny1f/qr9Fq3QRehoWKgDQZFnUon8om/FjjC8dypM8fpI/dpZ/K3UMMPO6B9 0d6h7H9IfPUumhP5tafh9d60xp+GsWLDuwprAJTmB4acgqyYovipzc0XHkss6T8QAbux jCYchAduhrcYtiqp16jwTJOD4er+zhEixqlSHO6q+BlUxqIq+b5vBPHVl6vqsm6YRMH4 8eKW0PCQS1b8VI5Ezcu9DxUML5jZFFj6LPq6EzghujT8qySqZ3J3nmiNvYI1G264F6T+ 54yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pNnFayKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id 14-20020a17090a000e00b00268178130a2si1961350pja.60.2023.10.19.05.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 05:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pNnFayKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id B0E0582E874C; Thu, 19 Oct 2023 05:53:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345902AbjJSMxL (ORCPT + 99 others); Thu, 19 Oct 2023 08:53:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345722AbjJSMwh (ORCPT ); Thu, 19 Oct 2023 08:52:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6DC11B for ; Thu, 19 Oct 2023 05:52:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97689C433CC; Thu, 19 Oct 2023 12:52:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697719955; bh=yuOr6eC+UVD/IHhv/fixcoalqBvESFwRL92GtxeNa7I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=pNnFayKsiffxCOuRCKBeRs5ptNAQMvMDxbA3GN2LaSThQrvAZiASeOSymI0QNje4U 6ATHOmk+SUzkTwID1dB+nrE4OplbCrDvSBsGykpQTMkgE0wSZmsjHkb5FUxudGcRjM s6uF9dQgQ989gKDx+90fS6/B7AV5KOcciYeV6AIyzyHXUlXeKykkrI+TFqPJJITl0D uvjQYh/AVgw6Jmvfbc71rZr275c6wvAPHStRa+JDbnJPw4D5UD2DGQB0HjFaJ49j2m 6JUQPk7KFnbLo5xUhUQXSTVyzru/XxHk+MswENfOAS3XhXtDl7in3l7qJ0yB4X2yVQ 7NrhVeQ2dUrNA== From: Pratyush Yadav To: AceLan Kao Cc: Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: Lower the priority of the software reset failure message In-Reply-To: <20231019064547.348446-1-acelan.kao@canonical.com> (AceLan Kao's message of "Thu, 19 Oct 2023 14:45:47 +0800") References: <20231019064547.348446-1-acelan.kao@canonical.com> Date: Thu, 19 Oct 2023 14:52:33 +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 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]); Thu, 19 Oct 2023 05:53:30 -0700 (PDT) On Thu, Oct 19 2023, AceLan Kao wrote: > From: "Chia-Lin Kao (AceLan)" > > Not all SPI drivers support soft reset enable and soft reset commands. > This failure is expected and not critical. Thus, we avoid reporting it > to regular users to prevent potential confusion regarding power-off issues. No, failure to soft reset can very much be critical in certain cases. For example, if you are operating the flash in 8D-8D-8D mode and do not have the hard reset line connected, the bootloader (or the kernel) would be unable to detect or operate the flash after a warm reboot. Perhaps it makes sense to just call it when SNOR_F_BROKEN_RESET is set? This way you do not unnecessarily call it when you do not need to, and won't see the error message. > > Signed-off-by: Chia-Lin Kao (AceLan) > --- > drivers/mtd/spi-nor/core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c > index 1b0c6770c14e..7bca8ffcd756 100644 > --- a/drivers/mtd/spi-nor/core.c > +++ b/drivers/mtd/spi-nor/core.c > @@ -3252,7 +3252,7 @@ static void spi_nor_soft_reset(struct spi_nor *nor) > > ret = spi_mem_exec_op(nor->spimem, &op); > if (ret) { > - dev_warn(nor->dev, "Software reset failed: %d\n", ret); > + dev_info(nor->dev, "Software reset failed: %d\n", ret); > return; > } > > @@ -3262,7 +3262,7 @@ static void spi_nor_soft_reset(struct spi_nor *nor) > > ret = spi_mem_exec_op(nor->spimem, &op); > if (ret) { > - dev_warn(nor->dev, "Software reset failed: %d\n", ret); > + dev_info(nor->dev, "Software reset failed: %d\n", ret); > return; > } -- Regards, Pratyush Yadav