Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp160514rdb; Wed, 18 Oct 2023 23:46:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErCN1AelCQZZNzOkac2oDLiHzgAZHc4dfxzSUN6TTaAiC7/+bYcd79L1ocoJ3dx6BUe1xW X-Received: by 2002:a05:6a00:2355:b0:6be:2803:9c92 with SMTP id j21-20020a056a00235500b006be28039c92mr1316611pfj.32.1697697968480; Wed, 18 Oct 2023 23:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697697968; cv=none; d=google.com; s=arc-20160816; b=RYXCABZ9YQAhZ01pSAYkZkGGb2NoE3Qw55Wr1Es2p5AFGpWQTb/M5wq5U10zeUIPv7 tpkAXH1F9mTB864SSj1BGaTlPQqro3Eafn8/b9k1Et0uNDCPLpAFJUJ/vFfrKAcc3zyl Lo8eVtCoXNJWZ1wbH4Z6URxyvao3uxSEYM7e9mTnm58l5K/bve/C9eXmvMnQy3/VNIAW 225uH7FauOTr5WF3hQyrw4zsyrjk4HU4cu9PEZo3Wt/b9oQyQq/pMhYQ2h02K5InA6fb t3eeo7OQ/XezKpS2ycrSWJ5C7rBmUlfxlIoDC9Vb2Yo8J9IroX021l+xpgWmxfc82UNS dJGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:sender:dkim-signature; bh=VnD+4+o/AktznkdSPALDpojy3+u5FZvAU0rtTI4+TYE=; fh=reyTq3ZEwOy/20x1KvuBrYZShs1QUD80lbRVOUxwTuE=; b=DIjCVrwcqnVynL3gnRUS2d4kmt48hpQWZUlCTehv1Zx1okJmvv1dEaf7Cw0z2MITXO SL/2uu0q0Dk98ajspNH/TGKG8+Bvdb/ZzJZQwDZxMsi4t7U68wu6t4MBQ+XGHErVUff1 VNf+MbOF4d0XPIgU+Art0D1Elh8dPi3xJwdyjtCwNtHhTyD0i+SpS0rhZ9XPudb0b8lS hncfONnCA7oJst3R8Ptcu7ikGIYPQeEI9X607n5YMTvCXavphjkpvwAhZW/C90dWPttc 56a6djIrLtxAdpFWs3+kdVsEs2gD8+uCQOov7uifqZB19xxsdbqMU+sm6ET1d4PcgZCE 0sVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FZBwIrRi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z16-20020a656650000000b00573f9d84ecbsi3644195pgv.387.2023.10.18.23.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FZBwIrRi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 93B7D80DF9B6; Wed, 18 Oct 2023 23:46:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232670AbjJSGp4 (ORCPT + 99 others); Thu, 19 Oct 2023 02:45:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232752AbjJSGpx (ORCPT ); Thu, 19 Oct 2023 02:45:53 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C0C10F for ; Wed, 18 Oct 2023 23:45:50 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-564b6276941so5744240a12.3 for ; Wed, 18 Oct 2023 23:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697697950; x=1698302750; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:from:to:cc:subject:date:message-id:reply-to; bh=VnD+4+o/AktznkdSPALDpojy3+u5FZvAU0rtTI4+TYE=; b=FZBwIrRiMLZ6vbqL2h0xmarz1F1op4HVyQwQ6SYX5VFwklrCyiM+YuEMpgf8wFjtfb Wo//DH0LiLw15xokIVf1egwAwNRwe7SzZVY/sSZMuAkvxxW3z3cGneVvmn2SP3O8Xpb9 1p+aFN6EKw7Y7MWMzKQHkaFfL8VOnzyEHjjZ1R6dJ/unCNrQSRPXPjrWz6BdmpcQXYK/ uU4lcy6Dznv+QAnrIA8HMFTfsGF6daMsSSxRgk6helsm6WEpshKofPaQgUIuZYtV5v62 FVL9bU/j5LfcLyu4TtaUV/Q01k9DzeYuDdaBmDhl/nTAttY3z4Zae/MN8Rj4F33sq44b 75Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697697950; x=1698302750; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VnD+4+o/AktznkdSPALDpojy3+u5FZvAU0rtTI4+TYE=; b=DMYDL95lUnDY0yskupDhkNw6LZ3xsVez5okDT3GGuD1lrew6e77uglsogZZA8XQXhg tJP0Hb9iChh9ISTpZCpdvLluoYJRAV++8y9sj60L6DPwsXbCAls98ko19EixQta7rG52 Z/E2/dH/yC961SbD0C+ec8aKY+KW5GJPQuFTNq90C229qzSGXkehA1ljGc8ECr282oFT 8nlvnxpfPflDlfkrhrQeKy7aISE2K8k4w44lS5DSUciXzXTlNQZhDcT54mIDAu7Z02WL eD0wjdCO/qLy5JWcSrWZLF+JSUd35oOq+rHdYk/2woTq0tSfLk3CWUR75vTLWHFALSGe SY1g== X-Gm-Message-State: AOJu0YyNDm1JETGUcvESygjtnya4ThAEGkp1wrsl8lSPQokrCwIFHdq4 TsFpDzyj8Ktd4DCJ8B5TZ58= X-Received: by 2002:a17:90a:94c2:b0:27d:2b81:5798 with SMTP id j2-20020a17090a94c200b0027d2b815798mr1179229pjw.48.1697697950140; Wed, 18 Oct 2023 23:45:50 -0700 (PDT) Received: from localhost (211-75-139-217.hinet-ip.hinet.net. [211.75.139.217]) by smtp.gmail.com with ESMTPSA id t8-20020a17090ae50800b0026b46ad94c9sm879353pjy.24.2023.10.18.23.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:45:49 -0700 (PDT) Sender: AceLan Kao From: AceLan Kao To: Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mtd: spi-nor: Lower the priority of the software reset failure message Date: Thu, 19 Oct 2023 14:45:47 +0800 Message-Id: <20231019064547.348446-1-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:46:05 -0700 (PDT) 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. 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; } -- 2.34.1